-
Notifications
You must be signed in to change notification settings - Fork 2
Contributing
Marco Fantauzzo edited this page May 1, 2020
·
2 revisions
- Make sure you have latest Android Studio version.
- Set the following Android Studio Settings (to ensure same code formatting):
New line: CRLF - Encoding: UTF-8 - Indenting: 4 spaces
- Fork the project
- Clone it to your desktop
- Import the project in Android Studio
- Add Firebase API keys (follow the next section)
- Let it build & Start coding
- Visit https://console.firebase.google.com/ and create a new Android project
- Download the google-services.json file and place it in /app
- Visit https://apps.admob.com/ and add a new app
- Copy the app ID and pub ID
- Create a file secret_id.xml in the /app/main/res/strings folder
- Use this template
<resources>
<string name="admob_app_id" translatable="false">app_id_copied_from_Admob</string>
<string name="admob_pub_id" translatable="false">pub_id_copied_from_Admob_account_settings</string>
<string name="admob_2players_unit_id" translatable="false">@string/test_ad_unit_id</string>
<string name="admob_3players_unit_id" translatable="false">@string/test_ad_unit_id</string>
<string name="google_play_license_key" translatable="false">license_key_from_play_store</string>
<string name="in_app_pro_version" translatable="false">in_app_purchase_id</string>
</resources>
- Save all and you are ready
- Note that the app will build, but will crash if you try to open the UpgradeActivity: you should also add a license key from Google Play and in-app purchase id to be able to use the UI to buy the PRO version
Please make sure your commit messages are meaningful.
- Create new Branch with the feature or fix you made.
- Submit your PR with an explanation of what you did & why
I really appreciate your efforts on contributing to this project.
Just some information about how I manage the app version.
Note that first releases (from 1.0 to 2.8) were not following this pattern.
Major.minor.fix
Fix: this number is related to a bug fix, a correction, polishing, or a minimal change.
Minor: this number is related to a new feature. Every new feature or interface element increase this number.
Major: this number is increased when a new concept of the app is released, with a big rework of the core of the app