mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-08-06 18:24:25 +08:00
Compare commits
3 Commits
v1.19.0-de
...
v1.19.0-de
Author | SHA1 | Date | |
---|---|---|---|
4fc913eae1 | |||
2d7026ac7a | |||
1200360588 |
@ -285,7 +285,7 @@ class MainActivity : FlutterActivity() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
if (cancel(patcher::close)) return@Thread
|
if (cancel(patcher::close)) return@Thread
|
||||||
updateProgress(0.1, "Loading patches...", "Loading patches")
|
updateProgress(0.02, "Loading patches...", "Loading patches")
|
||||||
|
|
||||||
val patches = patches.filter { patch ->
|
val patches = patches.filter { patch ->
|
||||||
val isCompatible = patch.compatiblePackages?.any {
|
val isCompatible = patch.compatiblePackages?.any {
|
||||||
@ -303,7 +303,7 @@ class MainActivity : FlutterActivity() {
|
|||||||
}.toSet()
|
}.toSet()
|
||||||
|
|
||||||
if (cancel(patcher::close)) return@Thread
|
if (cancel(patcher::close)) return@Thread
|
||||||
updateProgress(0.15, "Executing...", "")
|
updateProgress(0.05, "Executing...", "")
|
||||||
|
|
||||||
val patcherResult = patcher.use {
|
val patcherResult = patcher.use {
|
||||||
patcher.apply {
|
patcher.apply {
|
||||||
@ -315,7 +315,7 @@ class MainActivity : FlutterActivity() {
|
|||||||
// Update the progress bar every time a patch is executed from 0.15 to 0.7
|
// Update the progress bar every time a patch is executed from 0.15 to 0.7
|
||||||
val totalPatchesCount = patches.size
|
val totalPatchesCount = patches.size
|
||||||
val progressStep = 0.55 / totalPatchesCount
|
val progressStep = 0.55 / totalPatchesCount
|
||||||
var progress = 0.15
|
var progress = 0.05
|
||||||
|
|
||||||
patcher.apply(false).collect(FlowCollector { patchResult: PatchResult ->
|
patcher.apply(false).collect(FlowCollector { patchResult: PatchResult ->
|
||||||
if (cancel(patcher::close)) return@FlowCollector
|
if (cancel(patcher::close)) return@FlowCollector
|
||||||
|
@ -669,7 +669,7 @@ class ManagerAPI {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> rePatchedSavedApps() async {
|
Future<void> reAssessPatchedApps() async {
|
||||||
final List<PatchedApplication> patchedApps = getPatchedApps();
|
final List<PatchedApplication> patchedApps = getPatchedApps();
|
||||||
|
|
||||||
// Remove apps that are not installed anymore.
|
// Remove apps that are not installed anymore.
|
||||||
|
@ -43,7 +43,7 @@ class HomeViewModel extends BaseViewModel {
|
|||||||
File? downloadedApk;
|
File? downloadedApk;
|
||||||
|
|
||||||
Future<void> initialize(BuildContext context) async {
|
Future<void> initialize(BuildContext context) async {
|
||||||
_managerAPI.rePatchedSavedApps().then((_) => _getPatchedApps());
|
_managerAPI.reAssessPatchedApps().then((_) => getPatchedApps());
|
||||||
_currentManagerVersion = await _managerAPI.getCurrentManagerVersion();
|
_currentManagerVersion = await _managerAPI.getCurrentManagerVersion();
|
||||||
if (!_managerAPI.getDownloadConsent()) {
|
if (!_managerAPI.getDownloadConsent()) {
|
||||||
await showDownloadConsent(context);
|
await showDownloadConsent(context);
|
||||||
@ -122,7 +122,7 @@ class HomeViewModel extends BaseViewModel {
|
|||||||
locator<NavigationViewModel>().setIndex(1);
|
locator<NavigationViewModel>().setIndex(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _getPatchedApps() {
|
void getPatchedApps() {
|
||||||
patchedInstalledApps = _managerAPI.getPatchedApps().toList();
|
patchedInstalledApps = _managerAPI.getPatchedApps().toList();
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
@ -465,7 +465,10 @@ class InstallerViewModel extends BaseViewModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
await _managerAPI.savePatchedApp(_app);
|
await _managerAPI.savePatchedApp(_app);
|
||||||
await locator<HomeViewModel>().initialize(context);
|
|
||||||
|
_managerAPI
|
||||||
|
.reAssessPatchedApps()
|
||||||
|
.then((_) => locator<HomeViewModel>().getPatchedApps());
|
||||||
|
|
||||||
update(1.0, 'Installed', 'Installed');
|
update(1.0, 'Installed', 'Installed');
|
||||||
} else if (response == 3) {
|
} else if (response == 3) {
|
||||||
|
@ -4,7 +4,7 @@ homepage: https://github.com/ReVanced/revanced-manager
|
|||||||
|
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 1.19.0-dev.18+101900018
|
version: 1.19.0-dev.19+101900019
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.0.0 <4.0.0'
|
sdk: '>=3.0.0 <4.0.0'
|
||||||
|
Reference in New Issue
Block a user