Upgrade Android ecosystem and dependencies to android 11+#2679
Upgrade Android ecosystem and dependencies to android 11+#2679
Conversation
Agent-Logs-Url: https://github.com/jMonkeyEngine/jmonkeyengine/sessions/0bac661f-576c-4cfa-85ff-80a2adcd1e24 Co-authored-by: riccardobl <4943530+riccardobl@users.noreply.github.com>
|
@copilot lets target android 11+ with java 11 |
Agent-Logs-Url: https://github.com/jMonkeyEngine/jmonkeyengine/sessions/89d6ac36-7802-42b9-bcf1-03c6108beeb7 Co-authored-by: riccardobl <4943530+riccardobl@users.noreply.github.com>
|
🖼️ Screenshot tests have failed. The purpose of these tests is to ensure that changes introduced in this PR don't break visual features. They are visual unit tests. 📄 Where to find the report:
✅ If you did mean to change things: ✨ If you are creating entirely new tests: Note; it is very important that the committed reference images are created on the build pipeline, locally created images are not reliable. Similarly tests will fail locally but you can look at the report to check they are "visually similar". See https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-screenshot-tests/README.md for more information Contact @richardTingle (aka richtea) for guidance if required |
The Android build scripts were using AGP 4.2.0, the deprecated
com.android.supportlibrary, and outdated SDK/AndroidX versions.gradle/libs.versions.tomlcom.android.tools.build:gradle:4.2.0→8.3.2com.android.support:appcompat-v7:28.0.0→androidx.appcompat:appcompat:1.6.1(entry renamedandroid-support-appcompat→androidx-appcompat)androidx-annotation:1.3.0→1.7.1androidx-lifecycle-common:2.4.0→2.7.0jme3-android-examples/build.gradleAGP 8.x syntax and SDK target updates:
namespace(required by AGP 7.3+); removedpackagefromAndroidManifest.xmlcompileSdkVersion 28→compileSdk 34targetSdkVersion 28→targetSdk 34minSdkVersion 15→minSdk 30(Android 11+)lintOptions→lintbuildToolsVersion(auto-managed by AGP 8.x)compileOptionsblock (Java 11 source/target)libs.androidx.appcompatcommon-android-app.gradlesourceCompatibility = '1.6'; Java compat is now set viacompileOptionsin theandroidDSL block