How to open source an android application -


i finished android application put on play store. wish put on github / bitbucket in case interested it.

there ad banner, stored public key in strings.xml file. how should handle ?

i added "flavour" in order able generate apk without ads.

additionally kind of similar precautions should take before releasing in wild ?

you should not upload api keys or alike github repository since it's going against of terms , conditions of lot of providers, including github think.

to solve this, put placeholder in place people should put own api key , upload file repository, example:

<resources>     <string name="google_maps_api_key">put api key here</string> </resources> 

you should start thinking licensing code.

open source licenses licenses comply open source definition — in brief, allow software freely used, modified, , shared. approved open source initiative (also known osi), license must go through open source initiative's license review process.

there lot of different licenses, including:

  • apache license 2.0
  • bsd 3-clause "new" or "revised" license
  • bsd 2-clause "simplified" or "freebsd" license
  • gnu general public license (gpl)
  • gnu library or "lesser" general public license (lgpl)
  • mit license
  • mozilla public license 2.0
  • common development , distribution license
  • eclipse public license

check out this link see more these licenses.


and, yes can still benefit own ads using open source, in opensource.org website mentioned:

can open source software used commercial purposes?

absolutely. open source software can used commercial purpose; open source definition guarantees this. can sell open source software.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -