Skip to content

Commit

Permalink
Added release signing.
Browse files Browse the repository at this point in the history
  • Loading branch information
philseeley committed Jun 16, 2020
1 parent bae841e commit aeefe1a
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

def keystorePropertiesFile = rootProject.file("/home/phil/Documents/key.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))

android {
compileSdkVersion 28

Expand All @@ -37,7 +41,6 @@ android {
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "name.seeley.phil.ecardapp"
minSdkVersion 18
targetSdkVersion 28
Expand All @@ -46,11 +49,18 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

signingConfigs {
release {
keyAlias keystoreProperties['uploadAlias']
keyPassword keystoreProperties['uploadPassword']
storeFile file(keystoreProperties['storeFile'])
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
}
}
}
Expand Down

0 comments on commit aeefe1a

Please sign in to comment.