Skip to content

Commit 98674e4

Browse files
committed
feat: update launcher bg, add proguard rules, update libs and added release configs
1 parent 5aebe49 commit 98674e4

File tree

5 files changed

+48
-8
lines changed

5 files changed

+48
-8
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ jobs:
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

app/build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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"

app/proguard-rules.pro

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,23 @@
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'

app/src/main/res/drawable/ic_launcher_background.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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"

gradle/libs.versions.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[versions]
22
agp = "8.13.0"
33
kotlin = "1.9.0"
4-
coreKtx = "1.10.1"
4+
coreKtx = "1.17.0"
55
junit = "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"
1111
browser = "1.9.0"
1212

1313
[libraries]

0 commit comments

Comments
 (0)