Skip to content

Commit 5cc3b44

Browse files
committed
added app sign in configurations
1 parent 23937e8 commit 5cc3b44

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

android/app/build.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ plugins {
88
id "dev.flutter.flutter-gradle-plugin"
99
}
1010

11+
// Move keystoreProperties definition here, before it's used
12+
def keystoreProperties = new Properties()
13+
def keystorePropertiesFile = rootProject.file('key.properties')
14+
if (keystorePropertiesFile.exists()) {
15+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
16+
}
17+
1118
android {
1219
namespace = "com.example.disaster_management"
1320
compileSdk = flutter.compileSdkVersion
@@ -55,8 +62,4 @@ flutter {
5562
source = "../.."
5663
}
5764

58-
def keystoreProperties = new Properties()
59-
def keystorePropertiesFile = rootProject.file('key.properties')
60-
if (keystorePropertiesFile.exists()) {
61-
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
62-
}
65+
// Remove the duplicate keystoreProperties definition that was here

0 commit comments

Comments
 (0)