@expo/build-tools 0.1.114 → 0.1.115
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.
- package/package.json +1 -1
- package/templates/eas-build.gradle +19 -34
package/package.json
CHANGED
|
@@ -5,47 +5,32 @@ import java.nio.file.Paths
|
|
|
5
5
|
android {
|
|
6
6
|
signingConfigs {
|
|
7
7
|
release {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
def credentialsJson = rootProject.file("../credentials.json");
|
|
9
|
+
def credentials = new groovy.json.JsonSlurper().parse(credentialsJson)
|
|
10
|
+
def keystorePath = Paths.get(credentials.android.keystore.keystorePath);
|
|
11
|
+
def storeFilePath = keystorePath.isAbsolute()
|
|
12
|
+
? keystorePath
|
|
13
|
+
: rootProject.file("..").toPath().resolve(keystorePath);
|
|
14
|
+
|
|
15
|
+
storeFile storeFilePath.toFile()
|
|
16
|
+
storePassword credentials.android.keystore.keystorePassword
|
|
17
|
+
keyAlias credentials.android.keystore.keyAlias
|
|
18
|
+
if (credentials.android.keystore.containsKey("keyPassword")) {
|
|
19
|
+
keyPassword credentials.android.keystore.keyPassword
|
|
20
|
+
} else {
|
|
21
|
+
// key password is required by Gradle, but PKCS keystores don't have one
|
|
22
|
+
// using the keystore password seems to satisfy the requirement
|
|
23
|
+
keyPassword credentials.android.keystore.keystorePassword
|
|
24
|
+
}
|
|
10
25
|
}
|
|
11
26
|
}
|
|
12
27
|
|
|
13
28
|
buildTypes {
|
|
14
29
|
release {
|
|
15
|
-
|
|
30
|
+
signingConfig android.signingConfigs.release
|
|
16
31
|
}
|
|
17
32
|
debug {
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
tasks.whenTaskAdded {
|
|
24
|
-
android.signingConfigs.release {
|
|
25
|
-
def credentialsJson = rootProject.file("../credentials.json");
|
|
26
|
-
def credentials = new groovy.json.JsonSlurper().parse(credentialsJson)
|
|
27
|
-
def keystorePath = Paths.get(credentials.android.keystore.keystorePath);
|
|
28
|
-
def storeFilePath = keystorePath.isAbsolute()
|
|
29
|
-
? keystorePath
|
|
30
|
-
: rootProject.file("..").toPath().resolve(keystorePath);
|
|
31
|
-
|
|
32
|
-
storeFile storeFilePath.toFile()
|
|
33
|
-
storePassword credentials.android.keystore.keystorePassword
|
|
34
|
-
keyAlias credentials.android.keystore.keyAlias
|
|
35
|
-
if (credentials.android.keystore.containsKey("keyPassword")) {
|
|
36
|
-
keyPassword credentials.android.keystore.keyPassword
|
|
37
|
-
} else {
|
|
38
|
-
// key password is required by Gradle, but PKCS keystores don't have one
|
|
39
|
-
// using the keystore password seems to satisfy the requirement
|
|
40
|
-
keyPassword credentials.android.keystore.keystorePassword
|
|
33
|
+
signingConfig android.signingConfigs.release
|
|
41
34
|
}
|
|
42
35
|
}
|
|
43
|
-
|
|
44
|
-
android.buildTypes.release {
|
|
45
|
-
signingConfig android.signingConfigs.release
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
android.buildTypes.debug {
|
|
49
|
-
signingConfig android.signingConfigs.release
|
|
50
|
-
}
|
|
51
36
|
}
|