Release modifications
This commit is contained in:
parent
0a7393f149
commit
5b5b3f3585
4 changed files with 40 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -27,5 +27,7 @@ android/app/src/main/AndroidManifest.xml
|
||||||
android/app/src/main/gen/
|
android/app/src/main/gen/
|
||||||
|
|
||||||
android/app/google-services.json
|
android/app/google-services.json
|
||||||
|
android/app/key.jks
|
||||||
|
android/key.properties
|
||||||
|
|
||||||
assets/private-settings.json
|
assets/private-settings.json
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,10 @@ if (flutterRoot == null) {
|
||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||||
|
|
||||||
|
def keystorePropertiesFile = rootProject.file("key.properties")
|
||||||
|
def keystoreProperties = new Properties()
|
||||||
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 27
|
compileSdkVersion 27
|
||||||
|
|
||||||
|
|
@ -31,13 +35,26 @@ android {
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
// TODO: Add your own signing config for the release build.
|
keyAlias keystoreProperties['keyAlias']
|
||||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
keyPassword keystoreProperties['keyPassword']
|
||||||
signingConfig signingConfigs.debug
|
storeFile file(keystoreProperties['storeFile'])
|
||||||
|
storePassword keystoreProperties['storePassword']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buildTypes {
|
||||||
|
release {
|
||||||
|
signingConfig signingConfigs.release
|
||||||
|
|
||||||
|
minifyEnabled true
|
||||||
|
useProguard true
|
||||||
|
|
||||||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
flutter {
|
flutter {
|
||||||
|
|
|
||||||
16
android/app/proguard-rules.pro
vendored
Normal file
16
android/app/proguard-rules.pro
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#Flutter Wrapper
|
||||||
|
-keep class io.flutter.app.** { *; }
|
||||||
|
-keep class io.flutter.plugin.** { *; }
|
||||||
|
-keep class io.flutter.util.** { *; }
|
||||||
|
-keep class io.flutter.view.** { *; }
|
||||||
|
-keep class io.flutter.** { *; }
|
||||||
|
-keep class io.flutter.plugins.** { *; }
|
||||||
|
|
||||||
|
# Basic ProGuard rules for Firebase Android SDK 2.0.0+
|
||||||
|
-keep class com.firebase.** { *; }
|
||||||
|
-keep class org.apache.** { *; }
|
||||||
|
-keepnames class com.fasterxml.jackson.** { *; }
|
||||||
|
-keepnames class javax.servlet.** { *; }
|
||||||
|
-keepnames class org.ietf.jgss.** { *; }
|
||||||
|
-dontwarn org.apache.**
|
||||||
|
-dontwarn org.w3c.dom.**
|
||||||
|
|
@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
final String appVersion = '0.0.1';
|
final String appVersion = '1.0';
|
||||||
|
|
||||||
final Widget appMediumIcon =
|
final Widget appMediumIcon =
|
||||||
Image.asset('images/logo-200.png', width: 60.0, height: 60.0);
|
Image.asset('images/logo-200.png', width: 60.0, height: 60.0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue