Browse Source

Crashing while connecting WG is resolved by adding dependency of desugaring

Khubaib 11 months ago
parent
commit
124edf978e

+ 4 - 0
app/build.gradle.kts

@@ -28,6 +28,7 @@ android {
         vectorDrawables {
             useSupportLibrary = true
         }
+//        multiDexEnabled = true
     }
 
     buildTypes {
@@ -52,6 +53,7 @@ android {
         }
     }
     compileOptions {
+        isCoreLibraryDesugaringEnabled = true
         sourceCompatibility = JavaVersion.VERSION_1_8
         targetCompatibility = JavaVersion.VERSION_1_8
     }
@@ -151,6 +153,8 @@ dependencies {
     implementation("com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.44")
     implementation("androidx.recyclerview:recyclerview:1.1.0")
 
+    coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.5")
+
     testImplementation("junit:junit:4.13.2")
     androidTestImplementation("androidx.test.ext:junit:1.1.5")
     androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")

BIN
app/release/app-release-3.2.7.1.apk


+ 4 - 0
app/src/main/java/com/vpn/fastestvpnservice/utils/VPNConnectionUtilsTV.kt

@@ -220,9 +220,13 @@ class VPNConnectionUtilsTV: VpnStatus.StateListener {
 
                 if (listEnable?.size == 0) {
                     Log.d("TCP/UDP Split Tunneling", "All apps")
+                    Log.d("OpenVPNService", "VPNCUTV listEnable?.size == 0")
+
                 }
                 else
                 {
+                    Log.d("OpenVPNService", "VPNCUTV else")
+
                     val appPackageName: SortedSet<String> = TreeSet()
                     if (listEnable != null){
                         for (i in listEnable.indices) {

+ 1 - 0
app/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java

@@ -847,6 +847,7 @@ public class OpenVPNService extends VpnService implements StateListener, Callbac
 
             if (listEnable != null)
             {
+                Log.d("OpenVPNService", "listEnable != null");
                 SortedSet<String> appPackageName = new TreeSet<>();
                 for (int i=0; i<listEnable.size(); i++)
                 {