Compare commits

...

9 Commits

Author SHA1 Message Date
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
3 changed files with 15 additions and 11 deletions

View File

@ -52,6 +52,8 @@ android {
buildTypes {
release {
shrinkResources false
minifyEnabled false
resValue "string", "app_name", "ReVanced Manager"
signingConfig signingConfigs.debug
ndk {

View File

@ -77,10 +77,12 @@ class MainActivity : FlutterActivity() {
result.notImplemented()
}
}
"stopPatcher" -> {
cancel = true
stopResult = result
}
else -> result.notImplemented()
}
}
@ -114,7 +116,7 @@ class MainActivity : FlutterActivity() {
mapOf(
"progress" to 0.1,
"header" to "",
"log" to "Copying original apk"
"log" to "Copying original APK"
)
)
}
@ -131,8 +133,8 @@ class MainActivity : FlutterActivity() {
"update",
mapOf(
"progress" to 0.2,
"header" to "Unpacking apk...",
"log" to "Unpacking input apk"
"header" to "Reading APK...",
"log" to "Reading input APK"
)
)
}
@ -153,7 +155,7 @@ class MainActivity : FlutterActivity() {
)
)
if(cancel) {
if (cancel) {
handler.post { stopResult!!.success(null) }
return@Thread
}
@ -264,8 +266,8 @@ class MainActivity : FlutterActivity() {
"update",
mapOf(
"progress" to 0.7,
"header" to "Repacking apk...",
"log" to "Repacking patched apk"
"header" to "Repacking APK...",
"log" to ""
)
)
}
@ -276,7 +278,7 @@ class MainActivity : FlutterActivity() {
val res = patcher.save()
ZipFile(patchedFile).use { file ->
res.dexFiles.forEach {
if(cancel) {
if (cancel) {
handler.post { stopResult!!.success(null) }
return@Thread
}
@ -296,7 +298,7 @@ class MainActivity : FlutterActivity() {
ZipAligner::getEntryAlignment
)
}
if(cancel) {
if (cancel) {
handler.post { stopResult!!.success(null) }
return@Thread
}
@ -305,7 +307,7 @@ class MainActivity : FlutterActivity() {
"update",
mapOf(
"progress" to 0.9,
"header" to "Signing apk...",
"header" to "Signing APK...",
"log" to ""
)
)
@ -319,7 +321,7 @@ class MainActivity : FlutterActivity() {
)
} catch (e: Exception) {
//log to console
print("Error signing apk: ${e.message}")
print("Error signing APK: ${e.message}")
e.printStackTrace()
}

View File

@ -4,7 +4,7 @@ homepage: https://github.com/revanced/revanced-manager
publish_to: 'none'
version: 1.8.0+100800000
version: 1.9.2+100900200
environment:
sdk: '>=3.0.0 <4.0.0'