From 466f0f898d580f0ede185ae9cb4cd7eaecf3dfd4 Mon Sep 17 00:00:00 2001 From: FongMi Date: Fri, 30 Dec 2022 13:00:36 +0800 Subject: [PATCH] Support http/3 --- app/build.gradle | 8 +++++--- app/proguard-rules.pro | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index af7b4c15d..53a1263c7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -68,23 +68,25 @@ dependencies { implementation project(':exoplayer-extension-rtmp') implementation project(':exoplayer-extension-ffmpeg') implementation 'androidx.appcompat:appcompat:1.5.1' - implementation 'androidx.preference:preference:1.2.0' - implementation 'androidx.lifecycle:lifecycle-viewmodel:2.5.1' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1' + implementation 'androidx.lifecycle:lifecycle-viewmodel:2.5.1' + implementation 'androidx.preference:preference:1.2.0' implementation 'androidx.room:room-runtime:2.4.3' implementation 'cat.ereza:customactivityoncrash:2.4.0' implementation 'com.github.bassaer:materialdesigncolors:1.0.0' implementation 'com.github.bumptech.glide:glide:4.14.2' + implementation 'com.google.android.gms:play-services-cronet:18.0.1' implementation 'com.google.android.material:material:1.7.0' implementation 'com.google.code.gson:gson:2.10' + implementation 'com.google.net.cronet:cronet-okhttp:0.1.0' implementation 'com.google.zxing:core:3.5.1' implementation 'com.guolindev.permissionx:permissionx:1.7.1' implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.10' implementation 'me.jessyan:autosize:1.2.1' implementation 'net.java.dev.jna:jna:5.12.1' + implementation 'org.apache.commons:commons-compress:1.20' implementation 'org.greenrobot:eventbus:3.3.1' implementation 'org.nanohttpd:nanohttpd:2.3.1' - implementation 'org.apache.commons:commons-compress:1.20' 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-alpha02' annotationProcessor 'androidx.room:room-compiler:2.4.3' diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 5229bc186..35a535dee 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -26,6 +26,10 @@ -dontwarn okhttp3.** -keep class okhttp3.** { *; } +# Cronet +-keep class org.chromium.net.**{*;} +-keep class com.google.net.cronet.**{*;} + # CatVod -keep class com.github.catvod.crawler.** { *; } -keep class * extends com.github.catvod.crawler.Spider