Skip to content

Commit

Permalink
feat: Add Kestore Properties
Browse files Browse the repository at this point in the history
  • Loading branch information
0niel committed Sep 22, 2023
1 parent 81c5694 commit cf84b9b
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ if (flutterVersionName == null) {
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlinx-serialization'
apply plugin: 'com.google.gms.google-services'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

android {
compileSdkVersion 33
ndkVersion flutter.ndkVersion
Expand All @@ -47,28 +52,38 @@ android {
defaultConfig {
multiDexEnabled true
applicationId "ninja.mirea.mireaapp"
minSdkVersion 19
targetSdkVersion 32
minSdkVersion 23
targetSdkVersion 33
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}

signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
signingConfig signingConfigs.release
}
}

}

flutter {
source '../..'
}

dependencies {
implementation("androidx.security:security-crypto:1.1.0-alpha05")
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:multidex:2.0.1'
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.1"
implementation("androidx.constraintlayout:constraintlayout:2.1.2")
}

apply plugin: 'com.google.gms.google-services'

0 comments on commit cf84b9b

Please sign in to comment.