@craft-native/android 0.0.168 → 0.0.170

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,8 +18,24 @@ android {
18
18
  testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
19
19
  }
20
20
 
21
+ // Release signing from the environment (the upload key Google Play
22
+ // expects; Play App Signing re-signs for devices). Without
23
+ // CRAFT_ANDROID_KEYSTORE a release build is unsigned.
24
+ val releaseKeystore = System.getenv("CRAFT_ANDROID_KEYSTORE")?.takeIf { it.isNotBlank() }
25
+ signingConfigs {
26
+ if (releaseKeystore != null) {
27
+ create("release") {
28
+ storeFile = file(releaseKeystore)
29
+ storePassword = System.getenv("CRAFT_ANDROID_KEYSTORE_PASSWORD")
30
+ keyAlias = System.getenv("CRAFT_ANDROID_KEY_ALIAS")
31
+ keyPassword = System.getenv("CRAFT_ANDROID_KEY_PASSWORD") ?: System.getenv("CRAFT_ANDROID_KEYSTORE_PASSWORD")
32
+ }
33
+ }
34
+ }
35
+
21
36
  buildTypes {
22
37
  release {
38
+ if (releaseKeystore != null) signingConfig = signingConfigs.getByName("release")
23
39
  isMinifyEnabled = true
24
40
  isShrinkResources = true
25
41
  proguardFiles(