Skip to content

Commit 93b44ac

Browse files
fix build issues
Signed-off-by: androidacy-user <opensource@androidacy.com>
1 parent d51dbef commit 93b44ac

6 files changed

Lines changed: 12 additions & 10 deletions

File tree

app/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ import java.util.Properties
77

88
plugins {
99
// Gradle doesn't allow conditionally enabling/disabling plugins
10-
id("io.sentry.android.gradle")
1110
id("com.android.application")
11+
id("org.gradle.android.cache-fix")
1212
id("com.mikepenz.aboutlibraries.plugin")
1313
kotlin("android")
1414
kotlin("kapt")
15+
id("io.sentry.android.gradle")
1516
}
1617

1718
// apply realm-android

app/src/main/java/com/fox2code/mmm/AppUpdateManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,4 @@ class AppUpdateManager private constructor() {
170170
) && appUpdateManager.getCompatibilityFlags(repoId) and FLAG_COMPAT_FORCE_HIDE != 0
171171
}
172172
}
173-
}
173+
}

app/src/main/java/com/fox2code/mmm/MainActivity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public void commonNext() {
351351
}
352352
// update compat metadata
353353
if (BuildConfig.DEBUG) Timber.i("Check Update Compat");
354-
AppUpdateManager.getAppUpdateManager().checkUpdateCompat();
354+
AppUpdateManager.Companion.getAppUpdateManager().checkUpdateCompat();
355355
if (BuildConfig.DEBUG) Timber.i("Check Update");
356356
// update repos
357357
if (Http.hasWebView()) {
@@ -375,7 +375,7 @@ public void commonNext() {
375375
return;
376376
}
377377
// Compatibility data still needs to be updated
378-
AppUpdateManager appUpdateManager = AppUpdateManager.getAppUpdateManager();
378+
AppUpdateManager appUpdateManager = AppUpdateManager.Companion.getAppUpdateManager();
379379
if (BuildConfig.DEBUG) Timber.i("Check App Update");
380380
if (BuildConfig.ENABLE_AUTO_UPDATER && appUpdateManager.checkUpdate(true))
381381
moduleViewListBuilder.addNotification(NotificationType.UPDATE_AVAILABLE);
@@ -554,7 +554,7 @@ public void commonNext() {
554554
moduleViewListBuilder.addNotification(NotificationType.SHOWCASE_MODE);
555555
NotificationType.NEED_CAPTCHA_ANDROIDACY.autoAdd(moduleViewListBuilderOnline);
556556
NotificationType.NO_INTERNET.autoAdd(moduleViewListBuilderOnline);
557-
if (AppUpdateManager.getAppUpdateManager().checkUpdate(false))
557+
if (AppUpdateManager.Companion.getAppUpdateManager().checkUpdate(false))
558558
moduleViewListBuilder.addNotification(NotificationType.UPDATE_AVAILABLE);
559559
RepoManager.getINSTANCE().updateEnabledStates();
560560
if (RepoManager.getINSTANCE().getCustomRepoManager().needUpdate()) {
@@ -607,7 +607,7 @@ public void onRefresh() {
607607
moduleViewListBuilder.addNotification(NotificationType.REPO_UPDATE_FAILED);
608608
} else {
609609
// Compatibility data still needs to be updated
610-
AppUpdateManager appUpdateManager = AppUpdateManager.getAppUpdateManager();
610+
AppUpdateManager appUpdateManager = AppUpdateManager.Companion.getAppUpdateManager();
611611
if (BuildConfig.DEBUG) Timber.i("Check App Update");
612612
if (BuildConfig.ENABLE_AUTO_UPDATER && appUpdateManager.checkUpdate(true))
613613
moduleViewListBuilder.addNotification(NotificationType.UPDATE_AVAILABLE);

app/src/main/java/com/fox2code/mmm/repo/RepoUpdater.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import timber.log.Timber
1212
import java.nio.charset.StandardCharsets
1313
import java.util.concurrent.atomic.AtomicBoolean
1414

15-
class RepoUpdater(val repoData: RepoData) {
15+
class RepoUpdater(val repoData2: RepoData) {
1616
private var indexRaw: ByteArray? = null
17-
public var repoData = repoData
17+
@JvmField public var repoData: RepoData = repoData2
1818
private var toUpdate: List<RepoModule>? = null
1919
private var toApply: Collection<RepoModule>? = null
2020
fun fetchIndex(): Int {

app/src/main/java/com/fox2code/mmm/settings/SettingsActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
686686
final LibsBuilder libsBuilder = new LibsBuilder().withShowLoadingProgress(false).withLicenseShown(true).withAboutMinimalDesign(false);
687687
ClipboardManager clipboard = (ClipboardManager) requireContext().getSystemService(Context.CLIPBOARD_SERVICE);
688688
LongClickablePreference linkClickable = findPreference("pref_update");
689-
linkClickable.setVisible(BuildConfig.ENABLE_AUTO_UPDATER && (BuildConfig.DEBUG || AppUpdateManager.getAppUpdateManager().peekHasUpdate()));
689+
linkClickable.setVisible(BuildConfig.ENABLE_AUTO_UPDATER && (BuildConfig.DEBUG || AppUpdateManager.Companion.getAppUpdateManager().peekHasUpdate()));
690690
linkClickable.setOnPreferenceClickListener(p -> {
691691
devModeStep = 0;
692692
// open UpdateActivity with CHECK action

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ buildscript {
2020

2121
// NOTE: Do not place your application dependencies here; they belong
2222
// in the individual module build.gradle files
23-
classpath("io.realm:realm-gradle-plugin:10.15.1")
23+
classpath("io.realm:realm-gradle-plugin:10.16.0")
2424
classpath("io.sentry:sentry-android-gradle-plugin:3.7.0")
25+
classpath("org.gradle.android.cache-fix:org.gradle.android.cache-fix.gradle.plugin:2.7.1")
2526
}
2627
}
2728

0 commit comments

Comments
 (0)