GeezerVison is showing github.com — (fix) fix crashes · omer20120/MagiskModuleManager@aa34e36
File tree
Expand file treeCollapse file tree
Open diff view settings
src/main/java/com/fox2code/mmm
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: app/build.gradle.kts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -467,7 +467,7 @@ dependencies { |
467 | 467 | implementation("androidx.security:security-crypto:1.1.0-alpha06") |
468 | 468 |
|
469 | 469 | // some utils |
470 | | - implementation("commons-io:commons-io:20030203.000550") |
| 470 | + implementation("commons-io:commons-io:2.11.0") |
471 | 471 | implementation("org.apache.commons:commons-compress:1.23.0") |
472 | 472 |
|
473 | 473 | // analytics |
|
Collapse file
Copy file name to clipboardExpand all lines: app/proguard-rules.pro +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
192 | 192 | -keepclassmembers class kotlin.SafePublicationLazyImpl { |
193 | 193 | java.lang.Object _value; |
194 | 194 | } |
| 195 | +-keepclassmembers class org.apache.commons.compress.archivers.zip.* { *; } |
195 | 196 |
|
196 | 197 | # fix bug with androidx work and future |
197 | 198 | # -keep class androidx.work.impl.utils.futures.* { *; } |
|
Collapse file
Copy file name to clipboardExpand all lines: app/src/main/java/com/fox2code/mmm/CrashHandler.java +4-2Lines changed: 4 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -106,7 +106,9 @@ protected void onCreate(Bundle savedInstanceState) { |
106 | 106 | }); |
107 | 107 | // get restart button |
108 | 108 | findViewById(R.id.restart).setOnClickListener(v -> { |
109 | | - // Restart the app |
| 109 | + // Restart the app and submit sans feedback |
| 110 | + Throwable sentryException = (Throwable) getIntent().getSerializableExtra("sentryException"); |
| 111 | + if (crashReportingEnabled) Sentry.captureException(sentryException); |
110 | 112 | finish(); |
111 | 113 | startActivity(getPackageManager().getLaunchIntentForPackage(getPackageName())); |
112 | 114 | }); |
@@ -169,4 +171,4 @@ public void copyCrashDetails(View view) { |
169 | 171 | runOnUiThread(() -> view.setBackgroundResource(R.drawable.baseline_copy_all_24)); |
170 | 172 | }).start(); |
171 | 173 | } |
172 | | -} |
| 174 | +} |
Collapse file
Copy file name to clipboardExpand all lines: app/src/main/java/com/fox2code/mmm/MainActivity.java +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -738,7 +738,7 @@ public void maybeShowUpgrade() { |
738 | 738 | } |
739 | 739 | // if it's still null, but it's enabled, throw an error |
740 | 740 | if (AndroidacyRepoData.getInstance().isEnabled() && AndroidacyRepoData.getInstance().memberLevel == null) { |
741 | | - throw new IllegalStateException("AndroidacyRepoData is enabled, but member level is null"); |
| 741 | + Timber.e("AndroidacyRepoData is enabled, but member level is null"); |
742 | 742 | } |
743 | 743 | if (AndroidacyRepoData.getInstance() != null && AndroidacyRepoData.getInstance().isEnabled() && Objects.equals(AndroidacyRepoData.getInstance().memberLevel, "Guest")) { |
744 | 744 | runtimeUtils.showUpgradeSnackbar(this, this); |
@@ -763,4 +763,4 @@ public void maybeShowUpgrade() { |
763 | 763 | } |
764 | 764 | } |
765 | 765 | } |
766 | | -} |
| 766 | +} |
Collapse file
Copy file name to clipboardExpand all lines: settings.gradle.kts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -17,8 +17,8 @@ gradleEnterprise { |
17 | 17 | dependencyResolutionManagement { |
18 | 18 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) |
19 | 19 | repositories { |
20 | | - google() |
21 | 20 | mavenCentral() |
| 21 | + google() |
22 | 22 | // enable jitpack |
23 | 23 | maven { setUrl("https://jitpack.io") } |
24 | 24 | } |
|