mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-21 00:16:59 +08:00
Compare commits
12 Commits
compose/fe
...
v1.9.3
Author | SHA1 | Date | |
---|---|---|---|
e45a7824c1 | |||
5d72c48a76 | |||
d6169c6fa2 | |||
9df6d52e2d | |||
239de8e923 | |||
7d553a87f3 | |||
557b42bc56 | |||
8423914748 | |||
07dce23794 | |||
18fd0552db | |||
d537d48f8e | |||
b456512bbb |
@ -52,6 +52,8 @@ android {
|
|||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
|
shrinkResources false
|
||||||
|
minifyEnabled false
|
||||||
resValue "string", "app_name", "ReVanced Manager"
|
resValue "string", "app_name", "ReVanced Manager"
|
||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.debug
|
||||||
ndk {
|
ndk {
|
||||||
|
@ -77,10 +77,12 @@ class MainActivity : FlutterActivity() {
|
|||||||
result.notImplemented()
|
result.notImplemented()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
"stopPatcher" -> {
|
"stopPatcher" -> {
|
||||||
cancel = true
|
cancel = true
|
||||||
stopResult = result
|
stopResult = result
|
||||||
}
|
}
|
||||||
|
|
||||||
else -> result.notImplemented()
|
else -> result.notImplemented()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -114,7 +116,7 @@ class MainActivity : FlutterActivity() {
|
|||||||
mapOf(
|
mapOf(
|
||||||
"progress" to 0.1,
|
"progress" to 0.1,
|
||||||
"header" to "",
|
"header" to "",
|
||||||
"log" to "Copying original apk"
|
"log" to "Copying original APK"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -131,8 +133,8 @@ class MainActivity : FlutterActivity() {
|
|||||||
"update",
|
"update",
|
||||||
mapOf(
|
mapOf(
|
||||||
"progress" to 0.2,
|
"progress" to 0.2,
|
||||||
"header" to "Unpacking apk...",
|
"header" to "Reading APK...",
|
||||||
"log" to "Unpacking input apk"
|
"log" to "Reading input APK"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -153,7 +155,7 @@ class MainActivity : FlutterActivity() {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if(cancel) {
|
if (cancel) {
|
||||||
handler.post { stopResult!!.success(null) }
|
handler.post { stopResult!!.success(null) }
|
||||||
return@Thread
|
return@Thread
|
||||||
}
|
}
|
||||||
@ -264,8 +266,8 @@ class MainActivity : FlutterActivity() {
|
|||||||
"update",
|
"update",
|
||||||
mapOf(
|
mapOf(
|
||||||
"progress" to 0.7,
|
"progress" to 0.7,
|
||||||
"header" to "Repacking apk...",
|
"header" to "Repacking APK...",
|
||||||
"log" to "Repacking patched apk"
|
"log" to ""
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -276,7 +278,7 @@ class MainActivity : FlutterActivity() {
|
|||||||
val res = patcher.save()
|
val res = patcher.save()
|
||||||
ZipFile(patchedFile).use { file ->
|
ZipFile(patchedFile).use { file ->
|
||||||
res.dexFiles.forEach {
|
res.dexFiles.forEach {
|
||||||
if(cancel) {
|
if (cancel) {
|
||||||
handler.post { stopResult!!.success(null) }
|
handler.post { stopResult!!.success(null) }
|
||||||
return@Thread
|
return@Thread
|
||||||
}
|
}
|
||||||
@ -296,7 +298,7 @@ class MainActivity : FlutterActivity() {
|
|||||||
ZipAligner::getEntryAlignment
|
ZipAligner::getEntryAlignment
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if(cancel) {
|
if (cancel) {
|
||||||
handler.post { stopResult!!.success(null) }
|
handler.post { stopResult!!.success(null) }
|
||||||
return@Thread
|
return@Thread
|
||||||
}
|
}
|
||||||
@ -305,7 +307,7 @@ class MainActivity : FlutterActivity() {
|
|||||||
"update",
|
"update",
|
||||||
mapOf(
|
mapOf(
|
||||||
"progress" to 0.9,
|
"progress" to 0.9,
|
||||||
"header" to "Signing apk...",
|
"header" to "Signing APK...",
|
||||||
"log" to ""
|
"log" to ""
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -319,7 +321,7 @@ class MainActivity : FlutterActivity() {
|
|||||||
)
|
)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
//log to console
|
//log to console
|
||||||
print("Error signing apk: ${e.message}")
|
print("Error signing APK: ${e.message}")
|
||||||
e.printStackTrace()
|
e.printStackTrace()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,17 +111,6 @@ class ManagerAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool isPatchesChangeEnabled() {
|
bool isPatchesChangeEnabled() {
|
||||||
if (getPatchedApps().isNotEmpty && !isChangingToggleModified()) {
|
|
||||||
for (final apps in getPatchedApps()) {
|
|
||||||
if (getSavedPatches(apps.originalPackageName)
|
|
||||||
.indexWhere((patch) => patch.excluded) !=
|
|
||||||
-1) {
|
|
||||||
setPatchesChangeWarning(false);
|
|
||||||
setPatchesChangeEnabled(true);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return _prefs.getBool('patchesChangeEnabled') ?? false;
|
return _prefs.getBool('patchesChangeEnabled') ?? false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ homepage: https://github.com/revanced/revanced-manager
|
|||||||
|
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 1.8.0+100800000
|
version: 1.9.3+100900300
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.0.0 <4.0.0'
|
sdk: '>=3.0.0 <4.0.0'
|
||||||
|
Reference in New Issue
Block a user