diff --git a/src/android/app/build.gradle b/src/android/app/build.gradle index 4272a7e..3976ecc 100644 --- a/src/android/app/build.gradle +++ b/src/android/app/build.gradle @@ -25,6 +25,12 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' 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 30 @@ -43,20 +49,26 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.src" + applicationId "com.harrydang.rainfall" minSdkVersion 16 targetSdkVersion 30 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } - 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 - } - } + signingConfigs { + release { + keyAlias keystoreProperties['keyAlias'] + keyPassword keystoreProperties['keyPassword'] + storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null + storePassword keystoreProperties['storePassword'] + } + } + buildTypes { + release { + signingConfig signingConfigs.release + } + } } flutter { diff --git a/src/android/app/src/main/AndroidManifest.xml b/src/android/app/src/main/AndroidManifest.xml index c74f76d..6b9b0e5 100644 --- a/src/android/app/src/main/AndroidManifest.xml +++ b/src/android/app/src/main/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:label="rainfall" + android:icon="@mipmap/drop"> + diff --git a/src/android/app/src/main/res/mipmap-hdpi/drop.png b/src/android/app/src/main/res/mipmap-hdpi/drop.png new file mode 100644 index 0000000..9b03c22 Binary files /dev/null and b/src/android/app/src/main/res/mipmap-hdpi/drop.png differ diff --git a/src/android/app/src/main/res/mipmap-mdpi/drop.png b/src/android/app/src/main/res/mipmap-mdpi/drop.png new file mode 100644 index 0000000..3e5c6f2 Binary files /dev/null and b/src/android/app/src/main/res/mipmap-mdpi/drop.png differ diff --git a/src/android/app/src/main/res/mipmap-xhdpi/drop.png b/src/android/app/src/main/res/mipmap-xhdpi/drop.png new file mode 100644 index 0000000..a7468cf Binary files /dev/null and b/src/android/app/src/main/res/mipmap-xhdpi/drop.png differ diff --git a/src/android/app/src/main/res/mipmap-xxhdpi/drop.png b/src/android/app/src/main/res/mipmap-xxhdpi/drop.png new file mode 100644 index 0000000..ad238ba Binary files /dev/null and b/src/android/app/src/main/res/mipmap-xxhdpi/drop.png differ diff --git a/src/android/app/src/main/res/mipmap-xxxhdpi/drop.png b/src/android/app/src/main/res/mipmap-xxxhdpi/drop.png new file mode 100644 index 0000000..0674bb6 Binary files /dev/null and b/src/android/app/src/main/res/mipmap-xxxhdpi/drop.png differ diff --git a/src/pubspec.yaml b/src/pubspec.yaml index 40176f1..a9812f2 100644 --- a/src/pubspec.yaml +++ b/src/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.0+1 +version: 0.5.0+1 environment: sdk: ">=2.12.0 <3.0.0"