Ability to create Unsigned ipa and apk files (#896)

* Build unsigned ipa file

* Build unsigned apk file
This commit is contained in:
enahum
2017-09-12 13:30:12 -03:00
committed by Harrison Healey
parent cd412bd2c9
commit 6e1d351a73
3 changed files with 102 additions and 44 deletions

View File

@@ -66,9 +66,12 @@ import com.android.build.OutputFile
*/
apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/react-native-sentry/sentry.gradle"
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
if (System.getenv("MM_SENTRY_ENABLED") == "true") {
apply from: "../../node_modules/react-native-sentry/sentry.gradle"
}
/**
* Set this to true to create two separate APKs instead of one:
* - An APK that only works on ARM devices
@@ -89,7 +92,7 @@ android {
buildToolsVersion "25.0.1"
defaultConfig {
applicationId "com.mattermost.rnbeta"
applicationId "com.mattermost.rn"
minSdkVersion 16
targetSdkVersion 23
versionCode 49
@@ -128,6 +131,10 @@ android {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
unsigned.initWith(buildTypes.release)
unsigned {
signingConfig null
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->