From 654f0769b83ac046605f85bacc5628b8a01e103a Mon Sep 17 00:00:00 2001 From: mx1700 Date: Mon, 15 Jul 2019 23:11:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20build=20=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/build.gradle | 15 +++++++++++++-- ios/Timepill/Info.plist | 14 +++++++++----- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 8e02467..b59b036 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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 diff --git a/ios/Timepill/Info.plist b/ios/Timepill/Info.plist index cff7d6f..308cd6a 100644 --- a/ios/Timepill/Info.plist +++ b/ios/Timepill/Info.plist @@ -21,7 +21,7 @@ CFBundleSignature ???? CFBundleVersion - 24 + 26 LSRequiresIPhoneOS NSAppTransportSecurity @@ -39,10 +39,6 @@ NSCameraUsageDescription - NSLocationWhenInUseUsageDescription - - NSPhotoLibraryUsageDescription - UIAppFonts Entypo.ttf @@ -71,5 +67,13 @@ UIViewControllerBasedStatusBarAppearance + NSPhotoLibraryUsageDescription + 胶囊需要访问你的相册 + NSLocationAlwaysUsageDescription + 胶囊需要获取你的位置 + NSLocationWhenInUseUsageDescription + 胶囊需要获取你的位置 + NSPhotoLibraryAddUsageDescription + 胶囊需要保存图片到相册