这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Rimusolamus
Copy link

@Rimusolamus Rimusolamus commented Oct 18, 2025

🧩 Summary

Modernize the Termux build setup for AGP 8 / Gradle 8 / SDK 36 and update dependencies.
Includes namespace migration, publishing improvements, and minor cleanups.

🔧 Changes

Bump Gradle → 8.13, AGP → 8.1.3, NDK → 26.3.11579264

Update compileSdk → 36, minSdk → 23

Add namespace to all modules

Replace lintOptions with new lint block

Enable buildFeatures.buildConfig in app module

Update AndroidX, Material, Guava, and testing dependencies

Use WindowMetricsCalculator in ViewUtils (API 30+ compliant)

Fix deprecated AlertDialog style reference

Replace @nullable import with AndroidX annotation

Remove obsolete manifest attributes and add stubs for AGP 8

Simplify Maven publishing (singleVariant("release") { withSourcesJar() })

Add new resources: bell.ogg, action_yes, action_no

✅ Motivation

Brings Termux up to date with the latest Android tooling, ensuring:

Compatibility with Android 14+ (API 34–36)

Cleaner and more maintainable Gradle configuration

Reliable library publishing and desugaring setup

Removal of deprecated APIs

🧪 Testing

Built and ran successfully on Android 14 (API 34) emulator

All modules compile under AGP 8.1.3 / Gradle 8.13 / JDK 11

With new ndk I was able to run project on arm macbook

🧭 Notes

Requires Gradle wrapper update (./gradlew wrapper --gradle-version 8.13)

Old Gradle 7.x projects or scripts may need minor adjustments

Screenshot 2025-10-18 at 21 16 09

PS: It's my first open source PR ever so if I do something wrong, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant