Skip to content

Commit 071da60

Browse files
committed
releasing version 1.0 of contra flutter kit
1 parent 58a4afb commit 071da60

File tree

4 files changed

+42
-10
lines changed

4 files changed

+42
-10
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
*.iws
1616
.idea/
1717

18+
# Android related
19+
**/android/**/gradle-wrapper.jar
20+
**/android/.gradle
21+
**/android/captures/
22+
**/android/gradlew
23+
**/android/gradlew.bat
24+
**/android/local.properties
25+
**/android/**/GeneratedPluginRegistrant.java
26+
1827
# The .vscode folder contains launch configuration and tasks you configure in
1928
# VS Code which you may wish to be included in version control, so this line
2029
# is commented out by default.

android/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ gradle-wrapper.jar
44
/gradlew
55
/gradlew.bat
66
/local.properties
7+
/key.properties
78
GeneratedPluginRegistrant.java

android/app/build.gradle

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,18 @@ if (flutterVersionName == null) {
2121
flutterVersionName = '1.0'
2222
}
2323

24+
def keystoreProperties = new Properties()
25+
def keystorePropertiesFile = rootProject.file('key.properties')
26+
if (keystorePropertiesFile.exists()) {
27+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
28+
}
29+
2430
apply plugin: 'com.android.application'
2531
apply plugin: 'kotlin-android'
2632
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2733

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

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

3945
defaultConfig {
40-
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4146
applicationId "com.example.contraflutterkit"
42-
minSdkVersion 16
43-
targetSdkVersion 28
47+
minSdkVersion 19
48+
targetSdkVersion 29
4449
versionCode flutterVersionCode.toInteger()
4550
versionName flutterVersionName
4651
testInstrumentationRunner "androidx.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+
debug {
62+
63+
}
64+
}
65+
4966
buildTypes {
5067
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.
68+
signingConfig signingConfigs.release
69+
minifyEnabled true
70+
useProguard true
71+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
72+
}
73+
74+
debug {
5375
signingConfig signingConfigs.debug
5476
}
5577
}
@@ -62,6 +84,6 @@ flutter {
6284
dependencies {
6385
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
6486
testImplementation 'junit:junit:4.12'
65-
androidTestImplementation 'androidx.test:runner:1.1.1'
66-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
87+
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
88+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
6789
}

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
2-
ext.kotlin_version = '1.3.50'
2+
ext.kotlin_version = '1.3.72'
33
repositories {
44
google()
55
jcenter()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.5.0'
9+
classpath 'com.android.tools.build:gradle:3.5.3'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}

0 commit comments

Comments
 (0)