增加 build 版本号

This commit is contained in:
mx1700 2019-07-15 23:11:27 +08:00
parent f9bd2ec8c1
commit 654f0769b8
2 changed files with 22 additions and 7 deletions

View file

@ -107,8 +107,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
missingDimensionStrategy "RNN.reactNativeVersion", "reactNative57_5"
versionCode 1
versionName "1.0"
versionCode 21
versionName "2.0.1"
vectorDrawables.useSupportLibrary = true
ndk {
@ -132,10 +132,21 @@ android {
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
}
}
signingConfigs {
release {
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
}
buildTypes {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
// applicationVariants are e.g. debug, release

View file

@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>24</string>
<string>26</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
@ -39,10 +39,6 @@
</dict>
<key>NSCameraUsageDescription</key>
<string></string>
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<key>NSPhotoLibraryUsageDescription</key>
<string></string>
<key>UIAppFonts</key>
<array>
<string>Entypo.ttf</string>
@ -71,5 +67,13 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>NSPhotoLibraryUsageDescription</key>
<string>胶囊需要访问你的相册</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>胶囊需要获取你的位置</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>胶囊需要获取你的位置</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>胶囊需要保存图片到相册</string>
</dict>
</plist>