futurice / pepperoni-app-kit

Pepperoni - React Native App Starter Kit for Android and iOS
http://getpepperoni.com
MIT License
4.63k stars 645 forks source link

Android builds: Use version name and code from package.json #176

Closed FruitieX closed 7 years ago

FruitieX commented 7 years ago

Automatically use version name and code from the "version" property in package.json for Android builds.

FruitieX commented 7 years ago

Note that this will change the app versioning scheme to semanting versioning, so the current version name will change to "1.0.0" (previously "1.0"), and the current version code to 10000 (previously 1)

krivachy commented 7 years ago

Thanks @FruitieX for the contribution. 👍 🍕 🚀
I added some error handling code, just in case the files are not there or there's some garbage in the package.json's version - this way the error messages will be less cryptic.