From 73421cd6be380400e68f90a766b8ab2bc3308966 Mon Sep 17 00:00:00 2001 From: FongMi Date: Fri, 11 Apr 2025 20:44:24 +0800 Subject: [PATCH] Update gradle --- app/build.gradle | 8 ++++---- app/proguard-rules.pro | 15 ++++++++------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 8937235ec..fbdedfe52 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -89,7 +89,7 @@ dependencies { implementation project(':quickjs') implementation 'androidx.appcompat:appcompat:1.7.0' implementation 'androidx.media:media:1.7.0' - implementation 'androidx.room:room-runtime:2.6.1' + implementation 'androidx.room:room-runtime:2.7.0' implementation 'cat.ereza:customactivityoncrash:2.4.0' implementation 'com.github.bassaer:materialdesigncolors:1.0.0' implementation 'com.github.bumptech.glide:glide:4.16.0' @@ -100,7 +100,7 @@ dependencies { implementation 'com.github.thegrizzlylabs:sardine-android:0.9' implementation 'com.github.teamnewpipe:NewPipeExtractor:v0.24.5' implementation 'com.google.android.material:material:1.12.0' - implementation 'com.google.zxing:core:3.3.0' + implementation 'com.google.zxing:core:3.5.3' implementation 'com.guolindev.permissionx:permissionx:1.8.0' implementation 'com.hierynomus:smbj:0.14.0' implementation 'io.antmedia:rtmp-client:3.2.0' @@ -113,13 +113,13 @@ dependencies { implementation 'org.fourthline.cling:cling-support:2.1.1' implementation 'org.greenrobot:eventbus:3.3.1' implementation('org.simpleframework:simple-xml:2.7.1') { exclude group: 'stax', module: 'stax-api' exclude group: 'xpp3', module: 'xpp3' } - leanbackImplementation 'androidx.leanback:leanback:1.2.0-beta01' + leanbackImplementation 'androidx.leanback:leanback:1.2.0-rc01' leanbackImplementation 'com.github.JessYanCoding:AndroidAutoSize:1.2.1' mobileImplementation 'androidx.biometric:biometric:1.1.0' mobileImplementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' mobileImplementation 'com.google.android.flexbox:flexbox:3.0.0' mobileImplementation('com.journeyapps:zxing-android-embedded:4.3.0') { transitive = false } - annotationProcessor 'androidx.room:room-compiler:2.6.1' + annotationProcessor 'androidx.room:room-compiler:2.7.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0' annotationProcessor 'org.greenrobot:eventbus-annotation-processor:3.3.1' coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs_nio:2.1.4' diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 01f168bc7..9a3d6851e 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -60,10 +60,15 @@ # NewPipeExtractor -keep class org.schabi.newpipe.extractor.timeago.patterns.** { *; } +-keep class org.mozilla.javascript.* { *; } -keep class org.mozilla.javascript.** { *; } --keep class org.mozilla.classfile.ClassFileWriter +-keep class org.mozilla.javascript.engine.** { *; } +-keep class javax.script.** { *; } +-keep class jdk.dynalink.** { *; } +-dontwarn org.mozilla.javascript.JavaToJSONConverters -dontwarn org.mozilla.javascript.tools.** --dontwarn java.beans.** +-dontwarn javax.script.** +-dontwarn jdk.dynalink.** # QuickJS -keep class com.fongmi.quickjs.method.** { *; } @@ -86,8 +91,4 @@ -keep class com.east.android.zlive.** { *; } # Zxing --keep class com.google.zxing.** { *; } --keepclassmembers enum * { - public static **[] values(); - public static ** valueOf(java.lang.String); -} \ No newline at end of file +-keep class com.google.zxing.** { *; } \ No newline at end of file