Skip to content

Commit

Permalink
feat(devtools): setted up Android release build configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
aeddi committed Nov 9, 2018
1 parent 64c0339 commit 768821c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/react-native/Makefile
Expand Up @@ -75,7 +75,7 @@ debug.android: deps.android patch.android

.PHONY: release.android
release.android: deps.android
@echo "Not implemented yet"
cd $(ROOT) && react-native run-android --variant=release --no-packager

.PHONY: debug.ios
debug.ios: deps.ios
Expand Down
11 changes: 11 additions & 0 deletions client/react-native/android/app/build.gradle
Expand Up @@ -107,6 +107,16 @@ android {
abiFilters "armeabi-v7a", "x86"
}
}
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
}
}
}
splits {
abi {
reset()
Expand All @@ -123,6 +133,7 @@ android {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
// applicationVariants are e.g. debug, release
Expand Down

0 comments on commit 768821c

Please sign in to comment.