I'm not sure where to ask this.. but.. can people ...
# android
r
I'm not sure where to ask this.. but.. can people copy code from android open source project into a library which will also be open source under same licence? Or do we need to take some steps for it? Let's say I want to copy the method
<http://android.net|android.net>.Uri#encode(String)
adapt it a little bit maybe use Kotlin as well. I'm terrible at this license stuff 😅
e
depends on the license, but most commonly: it's ok with attribution
d
Ask a lawyer, not a coder 😉 Keep in mind the Oracle lawsuits against the Android platform if you want to be paranoid...
r
@ephemient the license is apache 2 from what it says on top of Uri source code file. thank you again!
@Daniel B Duval right? If only I knew a cool slack with friendly lawyers Ahah 😅
@ephemient attribution could be just having it clear in the source code as a comment or javadoc of the method saying where I took the algorithm from?