diff --git a/.gitignore b/.gitignore index 2ddde2a..176d59c 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,7 @@ **/android/captures/ **/android/gradlew **/android/gradlew.bat +**/android/key.properties **/android/local.properties **/android/**/GeneratedPluginRegistrant.java diff --git a/android/app/build.gradle b/android/app/build.gradle index bb76746..321f7d1 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -24,6 +24,12 @@ if (flutterVersionName == null) { apply plugin: 'com.android.application' 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 29 @@ -40,11 +46,17 @@ android { testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } + signingConfigs { + release { + keyAlias keystoreProperties['keyAlias'] + keyPassword keystoreProperties['keyPassword'] + 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 minifyEnabled true useProguard true diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro index bccd023..239ec33 100644 --- a/android/app/proguard-rules.pro +++ b/android/app/proguard-rules.pro @@ -1,4 +1,4 @@ -#Flutter Wrapper +## Flutter wrapper -keep class io.flutter.app.** { *; } -keep class io.flutter.plugin.** { *; } -keep class io.flutter.util.** { *; } diff --git a/pubspec.lock b/pubspec.lock index cf2ec39..1331608 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -402,7 +402,7 @@ packages: name: quiver url: "https://pub.dartlang.org" source: hosted - version: "2.0.4" + version: "2.0.5" shelf: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 09d1ac2..b2da110 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: time_tracker description: Papierkram.de - TimeTracker as flutter app -version: 1.0.0+1 +version: 1.0.0 environment: sdk: ">=2.2.2 <3.0.0"