Androidは開発したことないのでわからないことが多い。
android/app/build.gradle
のversionCode
とversionName
を変更すればいい。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
android { compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConfig { applicationId "com.wazalab.kagami" minSdkVersion 16 targetSdkVersion 22 versionCode 2 // ** this one versionName "1.0" // ** this one vectorDrawables.useSupportLibrary = true ndk { abiFilters "armeabi-v7a", "x86" } } |
ちなみにこの変数は、
- versionName - XcodeのVersionと同じ。ただじ数字でなくてもよい。
- versionCode – XcodeのBuildと同じ。ビルドごとに変更しないとpushできない。
参考: http://stackoverflow.com/questions/35924721/how-to-update-version-number-of-react-native-app