diff --git a/template/android/app/build.gradle b/template/android/app/build.gradle index a123b6cfb..ab0cdc7c5 100644 --- a/template/android/app/build.gradle +++ b/template/android/app/build.gradle @@ -112,8 +112,22 @@ android { include "armeabi-v7a", "x86", "arm64-v8a" } } + signingConfigs { + debug { + storeFile file('debug.keystore') + storePassword 'android' + keyAlias 'androiddebugkey' + keyPassword 'android' + } + } buildTypes { + debug { + signingConfig signingConfigs.debug + } release { + // Caution! In production, you need to generate your own keystore file. + // see https://facebook.github.io/react-native/docs/signed-apk-android. + signingConfig signingConfigs.debug minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" } diff --git a/template/android/app/debug.keystore b/template/android/app/debug.keystore new file mode 100644 index 000000000..364e105ed Binary files /dev/null and b/template/android/app/debug.keystore differ diff --git a/template/android/keystores/_BUCK b/template/android/keystores/_BUCK deleted file mode 100644 index 88e4c31b2..000000000 --- a/template/android/keystores/_BUCK +++ /dev/null @@ -1,8 +0,0 @@ -keystore( - name = "debug", - properties = "debug.keystore.properties", - store = "debug.keystore", - visibility = [ - "PUBLIC", - ], -) diff --git a/template/android/keystores/debug.keystore.properties b/template/android/keystores/debug.keystore.properties deleted file mode 100644 index 121bfb49f..000000000 --- a/template/android/keystores/debug.keystore.properties +++ /dev/null @@ -1,4 +0,0 @@ -key.store=debug.keystore -key.alias=androiddebugkey -key.store.password=android -key.alias.password=android