| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
AGP 9 changed the default so a published library's AAR metadata minCompileSdk mirrors its compileSdk, which we recently bumped to 37. That would force every consumer of the Android SDK onto compileSdk 37. Pin minCompileSdk to our minSdk for all published Android library modules so consumers stay free to compile against any SDK we support, preserving the pre-AGP-9 behavior. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
There was a problem hiding this comment.
LGTM!
Sorry, something went wrong.
📲 Install BuildsAndroid
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
📜 Description
Pin the AAR metadata minCompileSdk to our minSdk for all published Android library modules, set centrally in the shared com.android.library configuration in the root build.gradle.kts.
💡 Motivation and Context
AGP 9.0 changed the default so that a published library's AAR metadata minCompileSdk mirrors its compileSdk, requiring consumers to compile against the same or higher SDK. Since we recently bumped compileSdk to 37, this default would force every consumer of the Android SDK onto compileSdk 37.
Pinning minCompileSdk to our minSdk keeps consumers free to compile against any SDK we support, preserving the pre-AGP-9 behavior.
💚 How did you test it?
Verified that writeReleaseAarMetadata now emits minCompileSdk=21 for the published Android library modules (sentry-android-core, sentry-android-ndk, sentry-android-replay, sentry-compose).
📝 Checklist
🔮 Next steps