revert: "refactor: update deprecated and minor code refactors (#710)"

This reverts commit 6829d3cdea.

Signed-off-by: EvadeMaster <93124920+EvadeMaster@users.noreply.github.com>
This commit is contained in:
EvadeMaster
2023-03-03 18:06:24 +07:00
parent 6d60541626
commit 68ccefc59f
15 changed files with 94 additions and 95 deletions

View File

@@ -11,7 +11,7 @@ class RootAPI {
final bool? isRooted = await Root.isRootAvailable();
return isRooted != null && isRooted;
} on Exception catch (e, s) {
Sentry.captureException(e, stackTrace: s).ignore();
await Sentry.captureException(e, stackTrace: s);
return false;
}
}
@@ -25,7 +25,7 @@ class RootAPI {
}
return false;
} on Exception catch (e, s) {
Sentry.captureException(e, stackTrace: s).ignore();
await Sentry.captureException(e, stackTrace: s);
return false;
}
}
@@ -79,7 +79,7 @@ class RootAPI {
return apps.map((pack) => pack.trim()).toList();
}
} on Exception catch (e, s) {
Sentry.captureException(e, stackTrace: s).ignore();
await Sentry.captureException(e, stackTrace: s);
return List.empty();
}
return List.empty();
@@ -126,7 +126,7 @@ class RootAPI {
await mountApk(packageName, originalFilePath);
return true;
} on Exception catch (e, s) {
Sentry.captureException(e, stackTrace: s).ignore();
await Sentry.captureException(e, stackTrace: s);
return false;
}
}