Skip to content

Commit

Permalink
Add accidentally removed signingConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ciriousjoker committed May 18, 2024
1 parent d6e1222 commit 45e6f5b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ if (flutterVersionName == null) {
flutterVersionName = "1.0"
}

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystorePropertiesFile.withReader('UTF-8') { reader ->
keystoreProperties.load(reader)
}
}

android {
namespace = "com.ciriousjoker.amidoneyet"
compileSdk = flutter.compileSdkVersion
Expand All @@ -43,6 +51,15 @@ android {
versionName = flutterVersionName
}

signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? rootProject.file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}

buildTypes {
debug {
applicationIdSuffix ".debug"
Expand Down

0 comments on commit 45e6f5b

Please sign in to comment.