From 3eec4d2bb0c69a6a004f11d578ebc5dcedb86546 Mon Sep 17 00:00:00 2001 From: validcube Date: Wed, 18 Oct 2023 16:33:11 +0700 Subject: [PATCH 1/4] feat: root status in export patch log --- lib/ui/views/installer/installer_viewmodel.dart | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/ui/views/installer/installer_viewmodel.dart b/lib/ui/views/installer/installer_viewmodel.dart index 082dd74c09..73cd2d0887 100644 --- a/lib/ui/views/installer/installer_viewmodel.dart +++ b/lib/ui/views/installer/installer_viewmodel.dart @@ -139,7 +139,6 @@ class InstallerViewModel extends BaseViewModel { } Future runPatcher() async { - try { await _patcherAPI.runPatcher( _app.packageName, @@ -159,7 +158,7 @@ class InstallerViewModel extends BaseViewModel { // Necessary to reset the state of patches so that they // can be reloaded again. - _managerAPI.patches.clear(); + _managerAPI.patches.clear(); await _patcherAPI.loadPatches(); try { @@ -191,19 +190,17 @@ class InstallerViewModel extends BaseViewModel { 'Model: ${info['model']}', 'Android version: ${info['androidVersion']}', 'Supported architectures: ${info['supportedArch'].join(", ")}', - + 'Roo: ${isRooted ? 'Yes' : 'No'}', '\n- Patch Info', 'App: ${_app.packageName} v${_app.version}', 'Patches version: ${_managerAPI.patchesVersion}', 'Patches: ${_patches.map((p) => p.name + (p.options.isEmpty ? '' : ' [${p.options.map((o) => '${o.title}: ${o.value}').join(", ")}]')).toList().join(", ")}', - '\n- Settings', 'Allow changing patch selection: ${_managerAPI.isPatchesChangeEnabled()}', 'Version compatibility check: ${_managerAPI.isVersionCompatibilityCheckEnabled()}', 'Show universal patches: ${_managerAPI.areUniversalPatchesEnabled()}', 'Patches source: ${_managerAPI.getPatchesRepo()}', 'Integration source: ${_managerAPI.getIntegrationsRepo()}', - '\n- Logs', logs, '```', From 3b4c25c53569fc29486c28d52b90b57dabd5988a Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Wed, 18 Oct 2023 16:45:54 +0700 Subject: [PATCH 2/4] refactor: "slight mistake" Very slight mistake Co-authored-by: Ushie --- lib/ui/views/installer/installer_viewmodel.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/views/installer/installer_viewmodel.dart b/lib/ui/views/installer/installer_viewmodel.dart index 73cd2d0887..205e4d0e3c 100644 --- a/lib/ui/views/installer/installer_viewmodel.dart +++ b/lib/ui/views/installer/installer_viewmodel.dart @@ -190,7 +190,7 @@ class InstallerViewModel extends BaseViewModel { 'Model: ${info['model']}', 'Android version: ${info['androidVersion']}', 'Supported architectures: ${info['supportedArch'].join(", ")}', - 'Roo: ${isRooted ? 'Yes' : 'No'}', + Root permissions: ${isRooted ? 'Yes' : 'No'}', '\n- Patch Info', 'App: ${_app.packageName} v${_app.version}', 'Patches version: ${_managerAPI.patchesVersion}', From 903387a95bf212e784a20036a76def9110537d48 Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Fri, 20 Oct 2023 15:11:35 +0700 Subject: [PATCH 3/4] refactor: restore whitespace --- lib/ui/views/installer/installer_viewmodel.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ui/views/installer/installer_viewmodel.dart b/lib/ui/views/installer/installer_viewmodel.dart index 205e4d0e3c..8e797e8347 100644 --- a/lib/ui/views/installer/installer_viewmodel.dart +++ b/lib/ui/views/installer/installer_viewmodel.dart @@ -191,16 +191,19 @@ class InstallerViewModel extends BaseViewModel { 'Android version: ${info['androidVersion']}', 'Supported architectures: ${info['supportedArch'].join(", ")}', Root permissions: ${isRooted ? 'Yes' : 'No'}', + '\n- Patch Info', 'App: ${_app.packageName} v${_app.version}', 'Patches version: ${_managerAPI.patchesVersion}', 'Patches: ${_patches.map((p) => p.name + (p.options.isEmpty ? '' : ' [${p.options.map((o) => '${o.title}: ${o.value}').join(", ")}]')).toList().join(", ")}', + '\n- Settings', 'Allow changing patch selection: ${_managerAPI.isPatchesChangeEnabled()}', 'Version compatibility check: ${_managerAPI.isVersionCompatibilityCheckEnabled()}', 'Show universal patches: ${_managerAPI.areUniversalPatchesEnabled()}', 'Patches source: ${_managerAPI.getPatchesRepo()}', 'Integration source: ${_managerAPI.getIntegrationsRepo()}', + '\n- Logs', logs, '```', From 6223b9829b394fb0bc7066a52acd1ec0d82aa47e Mon Sep 17 00:00:00 2001 From: Pun Butrach Date: Fri, 20 Oct 2023 15:13:12 +0700 Subject: [PATCH 4/4] fix: "slight mistake" --- lib/ui/views/installer/installer_viewmodel.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/views/installer/installer_viewmodel.dart b/lib/ui/views/installer/installer_viewmodel.dart index 8e797e8347..295e4b660f 100644 --- a/lib/ui/views/installer/installer_viewmodel.dart +++ b/lib/ui/views/installer/installer_viewmodel.dart @@ -190,7 +190,7 @@ class InstallerViewModel extends BaseViewModel { 'Model: ${info['model']}', 'Android version: ${info['androidVersion']}', 'Supported architectures: ${info['supportedArch'].join(", ")}', - Root permissions: ${isRooted ? 'Yes' : 'No'}', + 'Root permissions: ${isRooted ? 'Yes' : 'No'}', '\n- Patch Info', 'App: ${_app.packageName} v${_app.version}',