Browse Source

android add cwtch knott icon, add signing release ability and drone support

android-sign
Dan Ballard 6 months ago
parent
commit
2016917d88
  1. 2
      android/.gitignore
  2. 18
      android/app/build.gradle
  3. 2
      android/app/src/main/AndroidManifest.xml
  4. BIN
      android/app/src/main/res/mipmap-hdpi/knott.png
  5. BIN
      android/app/src/main/res/mipmap-mdpi/knott.png
  6. BIN
      android/app/src/main/res/mipmap-xhdpi/knott.png
  7. BIN
      android/app/src/main/res/mipmap-xxhdpi/knott.png
  8. BIN
      android/app/src/main/res/mipmap-xxxhdpi/knott.png
  9. 4
      android/key.properties

2
android/.gitignore

@ -8,4 +8,4 @@ GeneratedPluginRegistrant.java
# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
# key.properties

18
android/app/build.gradle

@ -25,6 +25,13 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
// key.properties MUST have password placeholders filled in (via drone with secrets) and cwtch-upload.jks file must be added (from drone secret)
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android {
compileSdkVersion 29
@ -46,11 +53,20 @@ android {
versionName flutterVersionName
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
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.debug
signingConfig signingConfigs.release
}
}
}

2
android/app/src/main/AndroidManifest.xml

@ -8,7 +8,7 @@
<application
android:name="io.flutter.app.FlutterApplication"
android:label="flutter_app"
android:icon="@mipmap/ic_launcher">
android:icon="@mipmap/knott">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"

BIN
android/app/src/main/res/mipmap-hdpi/knott.png

After

Width: 64  |  Height: 64  |  Size: 3.7 KiB

BIN
android/app/src/main/res/mipmap-mdpi/knott.png

After

Width: 48  |  Height: 48  |  Size: 2.8 KiB

BIN
android/app/src/main/res/mipmap-xhdpi/knott.png

After

Width: 128  |  Height: 128  |  Size: 8.6 KiB

BIN
android/app/src/main/res/mipmap-xxhdpi/knott.png

After

Width: 128  |  Height: 128  |  Size: 8.6 KiB

BIN
android/app/src/main/res/mipmap-xxxhdpi/knott.png

After

Width: 500  |  Height: 500  |  Size: 44 KiB

4
android/key.properties

@ -0,0 +1,4 @@
storePassword=%jks-password%
keyPassword=%jks-password%
keyAlias=cwtch-upload
storeFile=upload-keystore.jks
Loading…
Cancel
Save