File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ if (flutterRoot == null) {
1414apply plugin : ' com.android.application'
1515apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
1616
17+ def keystorePropertiesFile = rootProject. file(" key.properties" )
18+ def keystoreProperties = new Properties ()
19+ keystoreProperties. load(new FileInputStream (keystorePropertiesFile))
20+
1721android {
1822 compileSdkVersion 27
1923
@@ -30,11 +34,17 @@ android {
3034 testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
3135 }
3236
37+ signingConfigs {
38+ release {
39+ keyAlias keystoreProperties[' keyAlias' ]
40+ keyPassword keystoreProperties[' keyPassword' ]
41+ storeFile file(keystoreProperties[' storeFile' ])
42+ storePassword keystoreProperties[' storePassword' ]
43+ }
44+ }
3345 buildTypes {
3446 release {
35- // TODO: Add your own signing config for the release build.
36- // Signing with the debug keys for now, so `flutter run --release` works.
37- signingConfig signingConfigs. debug
47+ signingConfig signingConfigs. release
3848 }
3949 }
4050}
You can’t perform that action at this time.
0 commit comments