Compare commits

...

12 Commits

Author SHA1 Message Date
e45a7824c1 build: bump version to v1.9.3 2023-08-27 13:27:53 +07:00
5d72c48a76 chore: merge dev to main (#1157) 2023-08-27 13:27:01 +07:00
d6169c6fa2 fix: broken settings page 2023-08-27 11:55:21 +05:45
9df6d52e2d build: bump version to v1.9.2 2023-08-27 05:40:50 +03:00
239de8e923 chore: merge dev to main (#1156) 2023-08-27 05:40:13 +03:00
7d553a87f3 build: revert patcher to v11.0.4 2023-08-27 05:39:24 +03:00
557b42bc56 build: bump version to 1.9.1 2023-08-27 03:58:30 +03:00
8423914748 chore: merge dev to main (#1155) 2023-08-27 03:57:57 +03:00
07dce23794 build: bump patcher to v14.2.0 2023-08-27 03:55:56 +03:00
18fd0552db build: bump version to v1.9.0 2023-08-27 02:23:36 +03:00
d537d48f8e chore: merge dev to main (#1125) 2023-08-27 02:21:48 +03:00
b456512bbb build: bump patcher to v14.1.0 (#1153)
Co-authored-by: aAbed <aabedhkhan@gmail.com>
2023-08-27 02:21:16 +03:00
4 changed files with 15 additions and 22 deletions

View File

@ -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 {

View File

@ -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()
} }

View File

@ -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;
} }

View File

@ -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'