Skip to content

Commit ba32f20

Browse files
committed
배포준비
1 parent 8d8f62c commit ba32f20

File tree

4 files changed

+32
-9
lines changed

4 files changed

+32
-9
lines changed

android/app/build.gradle

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
def keystoreProperties = new Properties()
2+
def keystorePropertiesFile = rootProject.file('key.properties')
3+
if (keystorePropertiesFile.exists()) {
4+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
5+
}
6+
17
def localProperties = new Properties()
28
def localPropertiesFile = rootProject.file('local.properties')
39
if (localPropertiesFile.exists()) {
@@ -26,7 +32,7 @@ apply plugin: 'kotlin-android'
2632
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2733

2834
android {
29-
compileSdkVersion 27
35+
compileSdkVersion 28
3036

3137
sourceSets {
3238
main.java.srcDirs += 'src/main/kotlin'
@@ -37,20 +43,30 @@ android {
3743
}
3844

3945
defaultConfig {
40-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41-
applicationId "com.droidknights.droidknights"
46+
applicationId "com.droidknights.flutterdroidknights"
4247
minSdkVersion 16
43-
targetSdkVersion 27
48+
targetSdkVersion 28
4449
versionCode flutterVersionCode.toInteger()
4550
versionName flutterVersionName
4651
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
4752
}
4853

54+
signingConfigs {
55+
release {
56+
keyAlias keystoreProperties['keyAlias']
57+
keyPassword keystoreProperties['keyPassword']
58+
storeFile file(keystoreProperties['storeFile'])
59+
storePassword keystoreProperties['storePassword']
60+
}
61+
}
62+
4963
buildTypes {
5064
release {
51-
// TODO: Add your own signing config for the release build.
52-
// Signing with the debug keys for now, so `flutter run --release` works.
53-
signingConfig signingConfigs.debug
65+
minifyEnabled true
66+
useProguard true
67+
68+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
69+
signingConfig signingConfigs.release
5470
}
5571
}
5672
}

android/app/proguard-rules.pro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#Flutter Wrapper
2+
-keep class io.flutter.app.** { *; }
3+
-keep class io.flutter.plugin.** { *; }
4+
-keep class io.flutter.util.** { *; }
5+
-keep class io.flutter.view.** { *; }
6+
-keep class io.flutter.** { *; }
7+
-keep class io.flutter.plugins.** { *; }

android/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
org.gradle.jvmargs=-Xmx1536M
2+
android.useAndroidX=true
3+
android.enableJetifier=true

pubspec.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ environment:
1515
dependencies:
1616
google_maps_flutter: ^0.3.0+2
1717
path_provider: 0.4.1
18-
barcode_scan: ^0.0.4
19-
qr_flutter: ^1.1.1
2018
flutter:
2119
sdk: flutter
2220
url_launcher: ^5.0.1

0 commit comments

Comments
 (0)