Skip to content

Commit 2bd566b

Browse files
committed
Updated keys n stuff script
1 parent 4099be8 commit 2bd566b

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ android {
4747
minSdk 23
4848
targetSdk 35
4949
multiDexEnabled true
50+
buildToolsVersion '35.0.0'
5051
versionCode = flutter.versionCode
5152
versionName = flutter.versionName
5253
}
5354
signingConfigs {
54-
dev {
55+
debug {
5556
keyAlias debugStore['keyAlias']
5657
keyPassword debugStore['keyPassword']
5758
storeFile file(debugStore['storeFile'])
@@ -65,7 +66,7 @@ android {
6566
}
6667
}
6768
buildTypes {
68-
dev {
69+
debug {
6970
signingConfig signingConfigs.debug
7071
}
7172
release {
@@ -75,7 +76,6 @@ android {
7576
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
7677
}
7778
}
78-
buildToolsVersion '35.0.0'
7979
}
8080

8181
flutter {

scripts/keys-n-stuff.dart

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,17 @@ Future<void> main() async {
8282
await copyFile('$source/prod.properties', 'android/prod.properties');
8383

8484
// Copy keystore file to android/app
85-
final keystoreFile = File('$source/prod.jks');
86-
if (await keystoreFile.exists()) {
85+
final prodKeystoreFile = File('$source/prod.jks');
86+
if (await prodKeystoreFile.exists()) {
8787
await copyFile('$source/prod.jks', 'android/app/prod.jks');
8888
}
8989

90+
// Copy keystore file to android/app
91+
final testKeystoreFile = File('$source/test.jks');
92+
if (await testKeystoreFile.exists()) {
93+
await copyFile('$source/prod.jks', 'android/app/test.jks');
94+
}
95+
9096
final serviceAccountFile = File('$source/service-account.json');
9197
if (await serviceAccountFile.exists()) {
9298
await copyFile('$source/service-account.json', 'service-account.json');

0 commit comments

Comments
 (0)