Skip to content

Commit 6b24e3a

Browse files
refactor: bump deps + misc fixes
- Update various dependencies to newer versions. - Update F-Droid builds as no longer maintained, and add note about it in README. - Update minimum sdk version to 26. - Remove unused `kapt` plugin. - Refactor to replace `MainApplication.INSTANCE!!` with `MainApplication.getInstance()` - Update NDK version to 28.0.13004108. -Update comments and other minor tweaks. - Add `ExpiredActivity` to handle expired builds. - Make `isWrapped` a static final variable with appropriate assertion. - Improve error handling for cases where activities are null. Signed-off-by: androidacy-user <[email protected]>
1 parent 11a0dc5 commit 6b24e3a

38 files changed

+644
-714
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ We're actively working on its replacement though! We target a Q3 release for v3,
1919

2020
More news will be available soon!
2121

22+
**All builds before 2.3.7 are expired and cannot be used.**
23+
24+
##### F-Droid builds are no longer being maintained. Please do not use them.
25+
2226
[![Latest Release](https://img.shields.io/github/v/release/Androidacy/AndroidacyModuleManager?color=neon&label=Latest%20release&style=for-the-badge)](https://www.androidacy.com/downloads/?view=FoxMMM&utm_source=fox-readme&utm_medium=web&utm_campaign=github-readme)
2327

2428
## Overview and Purpose

app/build.gradle.kts

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ plugins {
1212
id("com.android.application")
1313
id("com.mikepenz.aboutlibraries.plugin")
1414
kotlin("android")
15-
kotlin("kapt")
1615
id("com.google.devtools.ksp") version "2.0.21-1.0.25"
1716
}
1817
android {
@@ -29,8 +28,7 @@ android {
2928
val timestamp = System.currentTimeMillis()
3029

3130
namespace = "com.fox2code.mmm"
32-
compileSdk = 34
33-
ndkVersion = "25.2.9519653"
31+
compileSdk = 35
3432
signingConfigs {
3533
create("release") {
3634
if (File("signing.properties").exists()) {
@@ -330,7 +328,7 @@ androidComponents {
330328
if (baseAbiCode != null) {
331329
// Assigns the new version code to output.versionCode, which changes the version code
332330
// for only the output APK, not for the variant itself.
333-
val versioCode = output.versionCode.get() as Int
331+
val versioCode = output.versionCode.get()
334332
output.versionCode.set((baseAbiCode * 1000) + versioCode)
335333
}
336334
}
@@ -353,28 +351,28 @@ configurations {
353351
dependencies {
354352
// UI
355353
implementation("androidx.appcompat:appcompat:1.7.0")
356-
implementation("androidx.activity:activity-ktx:1.9.0")
357-
implementation("androidx.emoji2:emoji2:1.4.0")
358-
implementation("androidx.emoji2:emoji2-views-helper:1.4.0")
354+
implementation("androidx.activity:activity-ktx:1.10.1")
355+
implementation("androidx.emoji2:emoji2:1.5.0")
356+
implementation("androidx.emoji2:emoji2-views-helper:1.5.0")
359357
implementation("androidx.preference:preference-ktx:1.2.1")
360-
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
361-
implementation("androidx.recyclerview:recyclerview:1.3.2")
358+
implementation("androidx.constraintlayout:constraintlayout:2.2.1")
359+
implementation("androidx.recyclerview:recyclerview:1.4.0")
362360
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
363-
implementation("androidx.webkit:webkit:1.11.0")
361+
implementation("androidx.webkit:webkit:1.13.0")
364362
implementation("com.google.android.material:material:1.12.0")
365363

366-
implementation("com.mikepenz:aboutlibraries:11.2.2")
364+
implementation("com.mikepenz:aboutlibraries:11.6.3")
367365

368366
// Utils
369-
implementation("androidx.work:work-runtime:2.9.0")
367+
implementation("androidx.work:work-runtime:2.10.0")
370368
implementation("com.squareup.okhttp3:okhttp:5.0.0-alpha.14")
371369
implementation("com.squareup.okhttp3:okhttp-dnsoverhttps:5.0.0-alpha.14")
372370
// logging interceptor
373371
debugImplementation("com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.14")
374372
// Chromium cronet from androidacy
375373
implementation("org.chromium.net:cronet-embedded:119.6045.31")
376374

377-
val libsuVersion = "5.2.2"
375+
val libsuVersion = "6.0.0"
378376
// The core module that provides APIs to a shell
379377
implementation("com.github.topjohnwu.libsu:core:${libsuVersion}")
380378

@@ -396,7 +394,7 @@ dependencies {
396394
implementation("com.google.net.cronet:cronet-okhttp:0.1.0")
397395
implementation("com.caverock:androidsvg:1.4")
398396

399-
implementation("androidx.core:core-ktx:1.13.1")
397+
implementation("androidx.core:core-ktx:1.15.0")
400398

401399
// timber
402400
implementation("com.jakewharton.timber:timber:5.0.1")
@@ -405,11 +403,11 @@ dependencies {
405403
implementation("androidx.security:security-crypto:1.1.0-alpha06")
406404

407405
// some utils
408-
implementation("commons-io:commons-io:2.16.1")
409-
implementation("org.apache.commons:commons-compress:1.26.1")
406+
implementation("commons-io:commons-io:2.18.0")
407+
implementation("org.apache.commons:commons-compress:1.27.1")
410408

411409
// analytics
412-
implementation("ly.count.android:sdk:24.7.4")
410+
implementation("ly.count.android:sdk:25.1.1")
413411

414412
// annotations
415413
implementation("org.jetbrains:annotations-java5:24.1.0")
@@ -418,10 +416,10 @@ dependencies {
418416
debugImplementation("com.squareup.leakcanary:leakcanary-android:2.14")
419417

420418
// desugaring
421-
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
419+
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")
422420

423421
// yes
424-
implementation("com.github.fingerprintjs:fingerprint-android:2.1.0")
422+
implementation("com.github.fingerprintjs:fingerprint-android:2.2.0")
425423

426424
// room
427425
implementation("androidx.room:room-runtime:2.6.1")
@@ -445,7 +443,7 @@ android {
445443
}
446444
}
447445

448-
ndkVersion = "26.1.10909125"
446+
ndkVersion = "28.0.13004108"
449447
dependenciesInfo {
450448
includeInApk = false
451449
includeInBundle = false
@@ -455,7 +453,6 @@ android {
455453
buildConfig = true
456454
}
457455
//noinspection GrDeprecatedAPIUsage
458-
buildToolsVersion = "34.0.0"
459456
kotlinOptions {
460457
jvmTarget = "17"
461458
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AppUpdateManager private constructor() {
1919
private var changes: String? = null
2020
private val compatDataId = HashMap<String, Int>()
2121
private val updateLock = Any()
22-
private val compatFile: File = File(MainApplication.INSTANCE!!.filesDir, "compat.txt")
22+
private val compatFile: File = File(MainApplication.getInstance().filesDir, "compat.txt")
2323
private var latestRelease: Int?
2424
private var lastChecked: Long
2525

app/src/main/kotlin/com/fox2code/mmm/CrashHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class CrashHandler : AppCompatActivity() {
4848
builder.setMessage(R.string.reset_app_confirmation)
4949
builder.setPositiveButton(R.string.reset) { _: DialogInterface?, _: Int ->
5050
// reset the app
51-
MainApplication.INSTANCE!!.resetApp()
51+
MainApplication.getInstance().resetApp()
5252
}
5353
builder.setNegativeButton(R.string.cancel) { _: DialogInterface?, _: Int -> }
5454
builder.show()

0 commit comments

Comments
 (0)