- For example, see down picture:
5 - Change your version from “1.0.0.0” to “1.0” -> Optional
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# Explanation why do you need to do these changes to your Config.xml File
1- As you know there is ARM and x86 APK, but most phones use ARM APK, so by adding this code Phonegap will be able to generate ARM APK, and if you don’t add it Phonegap automatically by Default will generate x86 APK.
2- If you are adding AdMob to your game. You need this code to delete “android.permission.READ_PHONE_STATE” since AdMob will add it your code automatically, and you won’t be all to publish your app at Google Play because you will get an error about this permission that need to write a “Privacy Policy” for your app.
3- To get more downloads :), see the chart down:
4- As I said before you need this code, so code number 3 can take actions.
5- If your building for both IOS & Android, you will need to change to two digits because IOS won’t take four digits, and if you don’t change it. You will get an error for IOS. Since, Google Play takes two digits then do it with two and forget about it :).
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
# Save the changes, and close the file.
**# Select all everything inside you project file -> Right Click -> Send to
-> Compressed (zipped) folder
**
**# Open now Phonegap Build:
https://build.phonegap.com/**
1- Sign in Or Sign Up if you don’t have an account.
2- Click on “ Upload a .zip file “
3- Now, wait until everything is ready, and you can see your project is uploaded.
4- Click on “ Ready to Build “, wait for a few seconds, then click on the name of the project to enter it.
5- Ok, you may see the Phonegap already build APK. However, this APK is only for Debugging not Publishing, So don’t download it.
6-1 - To get the Publishing APK you need to add your Google Key. You can see to the right, a box saying “ No Key Selected “ click on it -> add a Key -> Fill out the in info needed on the box showing -> choose your Google Key store -> Click Submit Key.
6-2 - Be sure what entered on “Alias “ box is the same name as the Google Key name.
6-3 - Most IMPORTANTLY be sure your Google Key is on this Format .Keystore not .Jks format.
Check out this video tutorial on how to convert your from JKS to Keystore format:
https://www.youtube.com/watch?v=g88QueOPG-I&t=243s
7- Click Rebuild if all number 6 steps are good to go.
8- Download your APK, and you are good to go.
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
With this I can concluded the tutorial is over. I hope you found it helpful. Thank you for keeping up either reading or watching the tutorial.
- One last thing, here is a Config.xml File example:
https://drive.google.com/open?id=0B7FBA_KN-1bXWklycTI4T2h4NFE
Good Luck…………….. :) :) :)