Skip to content

Commit cf32f12

Browse files
committed
Fix screen mirror crash
1 parent a262081 commit cf32f12

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

app/build.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ android {
8181
else -> 0
8282
}
8383

84-
val vCode = 532
84+
val vCode = 535
8585
versionCode = vCode - singleAbiNum
86-
versionName = "3.0.11"
86+
versionName = "3.0.12"
8787

8888
ndk {
8989
//noinspection ChromeOsAbiSupport
@@ -122,8 +122,8 @@ android {
122122
configure<CrashlyticsExtension> {
123123
mappingFileUploadEnabled = false
124124
}
125-
buildConfigField("String", "CHANNEL", "\"\"")
126-
// setProguardFiles(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"))
125+
buildConfigField("String", "CHANNEL", "\"GITHUB\"")
126+
setProguardFiles(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"))
127127
}
128128
release {
129129
signingConfig = signingConfigs.getByName("release")
@@ -135,7 +135,7 @@ android {
135135
configure<CrashlyticsExtension> {
136136
mappingFileUploadEnabled = true
137137
}
138-
// setProguardFiles(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"))
138+
setProguardFiles(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"))
139139
}
140140
}
141141

@@ -268,10 +268,10 @@ dependencies {
268268

269269
debugImplementation(libs.leakcanary.android)
270270
implementation(kotlin("stdlib", libs.versions.kotlin.get()))
271-
271+
272272
// For cryptography (Ed25519 support on all Android versions)
273273
implementation(libs.tink.android)
274-
274+
275275
// WebRTC for screen mirroring
276276
implementation(libs.webrtc.sdk.android)
277277

app/proguard-rules.pro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,9 @@
2222

2323
# Restore some Source file names and restore approximate line numbers in the stack traces,
2424
# otherwise the stack traces are pretty useless
25+
26+
# WebRTC / jni_zero: JniInit is loaded by native code at runtime via System.loadLibrary().
27+
# R8 cannot see this reference through static analysis, so it must be kept explicitly.
28+
-keep class org.jni_zero.JniInit { *; }
29+
-keep class org.jni_zero.** { *; }
30+
-keep class org.webrtc.** { *; }

lib/consumer-rules.pro

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
-keep class com.apurebase.kgraphql.** { *; }
22
-keep class org.bouncycastle.jcajce.provider.** { *; }
33
-keep class org.bouncycastle.jce.provider.** { *; }
4-
-keep class com.ismartcoding.plain.** { *; }
54
-keep class io.ktor.server.** { *; }
65
-keep class io.netty.** { *; }
76

@@ -13,11 +12,6 @@
1312
public static <fields>;
1413
}
1514

16-
-keepclassmembers class **.R$* {
17-
public static **[] values();
18-
public static ** valueOf(java.lang.String);
19-
}
20-
2115
# Please add these rules to your existing keep rules in order to suppress warnings.
2216
# This is generated automatically by the Android Gradle plugin.
2317
-dontwarn com.aayushatharva.brotli4j.Brotli4jLoader

0 commit comments

Comments
 (0)