Răsfoiți Sursa

feat: signed release APK with custom icon (blue Σ)

nonvioce 3 luni în urmă
părinte
comite
63071e5c5b

+ 2 - 0
.gitignore

@@ -16,6 +16,8 @@ tiku-client/.flutter-plugins*
 tiku-client/android/.gradle/
 tiku-client/android/local.properties
 tiku-client/android/key.properties
+tiku-client/key.jks
+tiku-client/keystore.properties
 tiku-client/ios/
 tiku-client/linux/
 

+ 20 - 3
tiku-client/android/app/build.gradle.kts

@@ -25,11 +25,28 @@ android {
         versionName = flutter.versionName
     }
 
+    signingConfigs {
+        create("release") {
+            val props = rootProject.file("keystore.properties")
+            if (props.exists()) {
+                props.reader().use { reader ->
+                    reader.readLines().forEach { line ->
+                        val (k, v) = line.split("=", limit = 2)
+                        when (k.trim()) {
+                            "storeFile" -> storeFile = file(v.trim())
+                            "storePassword" -> storePassword = v.trim()
+                            "keyAlias" -> keyAlias = v.trim()
+                            "keyPassword" -> keyPassword = v.trim()
+                        }
+                    }
+                }
+            }
+        }
+    }
+
     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.getByName("debug")
+            signingConfig = signingConfigs.getByName("release")
         }
     }
 }

+ 4 - 0
tiku-client/android/app/keystore.properties

@@ -0,0 +1,4 @@
+storeFile=key.jks
+storePassword=Ycm@252135
+keyAlias=nonvioce
+keyPassword=Ycm@252135

+ 5 - 0
tiku-client/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
+    <background android:drawable="@color/ic_launcher_background"/>
+    <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
+</adaptive-icon>

BIN
tiku-client/android/app/src/main/res/mipmap-hdpi/ic_launcher.png


BIN
tiku-client/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png


BIN
tiku-client/android/app/src/main/res/mipmap-mdpi/ic_launcher.png


BIN
tiku-client/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png


BIN
tiku-client/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png


BIN
tiku-client/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png


BIN
tiku-client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png


BIN
tiku-client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png


BIN
tiku-client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png


BIN
tiku-client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png


+ 4 - 0
tiku-client/android/app/src/main/res/values/ic_launcher_background.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <color name="ic_launcher_background">#1565C0</color>
+</resources>

Fișier diff suprimat deoarece este prea mare
+ 337 - 0
tiku-client/android/build/reports/problems/problems-report.html


+ 4 - 0
tiku-client/android/keystore.properties

@@ -0,0 +1,4 @@
+storeFile=key.jks
+storePassword=Ycm@252135
+keyAlias=nonvioce
+keyPassword=Ycm@252135

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff