File tree Expand file tree Collapse file tree 5 files changed +48
-8
lines changed
Expand file tree Collapse file tree 5 files changed +48
-8
lines changed Original file line number Diff line number Diff line change 2424 - name : Setup Gradle
2525 uses : gradle/gradle-build-action@v3
2626
27+ - name : Decode Keystore
28+ run : echo "${{ secrets.SIGNING_KEYSTORE }}" | base64 --decode > release.keystore
29+
30+ - name : Setup Gradle Signing Config
31+ run : |
32+ echo "STORE_FILE=release.keystore" >> gradle.properties
33+ echo "STORE_PASSWORD=${{ secrets.STORE_PASSWORD }}" >> gradle.properties
34+ echo "KEY_ALIAS=${{ secrets.KEY_ALIAS }}" >> gradle.properties
35+ echo "KEY_PASSWORD=${{ secrets.KEY_PASSWORD }}" >> gradle.properties
36+
2737 - name : Build Release APK
2838 run : ./gradlew assembleRelease --stacktrace
2939
Original file line number Diff line number Diff line change @@ -7,6 +7,15 @@ android {
77 namespace = " com.mrepol742.webappp"
88 compileSdk = 36
99
10+ signingConfigs {
11+ create(" release" ) {
12+ storeFile = file(project.findProperty(" STORE_FILE" ) as String )
13+ storePassword = project.findProperty(" STORE_PASSWORD" ) as String
14+ keyAlias = project.findProperty(" KEY_ALIAS" ) as String
15+ keyPassword = project.findProperty(" KEY_PASSWORD" ) as String
16+ }
17+ }
18+
1019 defaultConfig {
1120 applicationId = " com.mrepol742.webappp"
1221 minSdk = 21
@@ -22,7 +31,9 @@ android {
2231
2332 buildTypes {
2433 release {
34+ signingConfig = signingConfigs.getByName(" release" )
2535 isMinifyEnabled = true
36+ isShrinkResources = true
2637 proguardFiles(
2738 getDefaultProguardFile(" proguard-android-optimize.txt" ),
2839 " proguard-rules.pro"
Original file line number Diff line number Diff line change 1818
1919# If you keep the line number information, uncomment this to
2020# hide the original source file name.
21- #-renamesourcefileattribute SourceFile
21+ #-renamesourcefileattribute SourceFile
22+
23+ # Keep JavascriptInterface methods for WebView
24+ -keepclassmembers class * {
25+ @android.webkit.JavascriptInterface <methods>;
26+ }
27+
28+ # Strip logging
29+ -assumenosideeffects class android.util.Log {
30+ public static int d(...);
31+ public static int w(...);
32+ public static int i(...);
33+ public static int v(...);
34+ public static int e(...);
35+ public static int wtf(...);
36+ }
37+
38+ -keepattributes *Annotation*
39+ -keepattributes SourceFile,LineNumberTable
40+ -repackageclasses 'com.mrepol742.webappp'
Original file line number Diff line number Diff line change 55 android : viewportWidth =" 108"
66 android : viewportHeight =" 108" >
77 <path
8- android : fillColor =" #3DDC84 "
8+ android : fillColor =" #FF5722 "
99 android : pathData =" M0,0h108v108h-108z" />
1010 <path
1111 android : fillColor =" #00000000"
Original file line number Diff line number Diff line change 11[versions ]
22agp = " 8.13.0"
33kotlin = " 1.9.0"
4- coreKtx = " 1.10.1 "
4+ coreKtx = " 1.17.0 "
55junit = " 4.13.2"
6- junitVersion = " 1.1.5 "
7- espressoCore = " 3.5.1 "
8- lifecycleRuntimeKtx = " 2.6.1 "
9- activityCompose = " 1.8 .0"
10- composeBom = " 2024.04.01 "
6+ junitVersion = " 1.3.0 "
7+ espressoCore = " 3.7.0 "
8+ lifecycleRuntimeKtx = " 2.9.3 "
9+ activityCompose = " 1.11 .0"
10+ composeBom = " 2025.09.00 "
1111browser = " 1.9.0"
1212
1313[libraries ]
You can’t perform that action at this time.
0 commit comments