mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-19 01:03:56 +00:00
fix: save patched and installed apps on prefs, improve installer log, improve dashboard with real data (wip)
This commit is contained in:
@@ -179,10 +179,41 @@ class MainActivity : FlutterActivity() {
|
||||
return true
|
||||
}
|
||||
|
||||
fun createPatcher(inputFilePath: String, cacheDirPath: String, resourcePatching: Boolean): Boolean {
|
||||
fun createPatcher(
|
||||
inputFilePath: String,
|
||||
cacheDirPath: String,
|
||||
resourcePatching: Boolean
|
||||
): Boolean {
|
||||
val inputFile = File(inputFilePath)
|
||||
val aaptPath = Aapt.binary(applicationContext).absolutePath
|
||||
patcher = Patcher(PatcherOptions(inputFile, cacheDirPath, resourcePatching, aaptPath, cacheDirPath))
|
||||
patcher =
|
||||
Patcher(
|
||||
PatcherOptions(
|
||||
inputFile,
|
||||
cacheDirPath,
|
||||
resourcePatching,
|
||||
aaptPath,
|
||||
cacheDirPath,
|
||||
logger =
|
||||
object : app.revanced.patcher.logging.Logger {
|
||||
override fun error(msg: String) {
|
||||
methodChannel.invokeMethod("updateInstallerLog", msg)
|
||||
}
|
||||
|
||||
override fun warn(msg: String) {
|
||||
methodChannel.invokeMethod("updateInstallerLog", msg)
|
||||
}
|
||||
|
||||
override fun info(msg: String) {
|
||||
methodChannel.invokeMethod("updateInstallerLog", msg)
|
||||
}
|
||||
|
||||
override fun trace(msg: String) {
|
||||
methodChannel.invokeMethod("updateInstallerLog", msg)
|
||||
}
|
||||
}
|
||||
)
|
||||
)
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user