diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 6ac5a983fd..c0241cd329 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -6,6 +6,7 @@ plugins { id("com.android.application") id("org.jetbrains.kotlin.android") id("com.google.devtools.ksp") + id("org.jetbrains.kotlin.android.extensions") kotlin("plugin.serialization") version "1.7.10" } @@ -142,7 +143,7 @@ dependencies { // Material 3 + 2 implementation("androidx.compose.material3:material3-window-size-class:1.0.0-alpha15") - implementation("androidx.compose.material3:material3:1.0.0-alpha14") + implementation("androidx.compose.material3:material3:1.0.0-alpha15") implementation("androidx.compose.material:material:1.1.1") // Tests diff --git a/app/src/main/java/app/revanced/manager/ui/screens/mainsubscreens/PatcherSubscreen.kt b/app/src/main/java/app/revanced/manager/ui/screens/mainsubscreens/PatcherSubscreen.kt index 73e1806960..22c67de7d0 100644 --- a/app/src/main/java/app/revanced/manager/ui/screens/mainsubscreens/PatcherSubscreen.kt +++ b/app/src/main/java/app/revanced/manager/ui/screens/mainsubscreens/PatcherSubscreen.kt @@ -2,6 +2,7 @@ package app.revanced.manager.ui.screens.mainsubscreens import android.app.Application import android.content.pm.PackageManager +import android.os.Parcelable import android.util.Log import androidx.activity.ComponentActivity import androidx.compose.foundation.layout.Column @@ -41,6 +42,7 @@ import app.revanced.patcher.util.patch.implementation.DexPatchBundle import com.ramcosta.composedestinations.annotation.Destination import com.ramcosta.composedestinations.annotation.RootNavGraph import dalvik.system.DexClassLoader +import kotlinx.android.parcel.Parcelize import kotlinx.coroutines.flow.first import kotlinx.coroutines.flow.map import kotlinx.coroutines.launch @@ -127,10 +129,11 @@ fun PatcherSubscreen( } } +@Parcelize data class PatchClass( val patch: Class>, val unsupported: Boolean, -) +) : Parcelable class PatcherViewModel(val app: Application) : AndroidViewModel(app) { private val bundleCacheDir = app.filesDir.resolve("bundle-cache").also { it.mkdirs() }