Repository navigation
Compile against API level 37 and upgrade to AGP 9.4.1 - #14
Merged
Merged
Conversation
API 37.0 (Android 17) is only supported from AGP 9.1.1, so this bumps
the build toolchain to AGP 9.4.1 and Gradle 9.6.1 and switches to AGP's
built-in Kotlin support (Kotlin stdlib 2.2). Build files stay in Groovy.
- compileSdk 37 in the library and example; targetSdk 37 in the example
- Remove library targetSdk/versionCode/versionName (not allowed by AGP 9)
and the now-unused aptabase/gradle.properties
- Declare singleVariant('release') publishing with a sources JAR
- Pin aarMetadata.minCompileSdk to 16 so consumers are not forced onto
compileSdk 37 (0.0.9 had no constraint; the library uses no newer APIs)
- Fix Groovy space-assignment syntax deprecated for Gradle 10
- Bump version to 0.1.0 and document compatibility in README/llms.txt
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
ivnbogdan
force-pushed
the
fix/compile-sdk-37
branch
from
October 10, 2026 03:49
6f4e046 to
db5ca45
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
targetSdk/versionCode/versionName(no longer allowed on library modules in AGP 9) and the now-unusedaptabase/gradle.propertiessingleVariant('release')publishing with a sources JAR (required by AGP 9 forcomponents.release)aarMetadata.minCompileSdk = 16: AGP 9 defaults it tocompileSdk, which would force every consumer onto compileSdk 37. Version 0.0.9 had no such constraint and the library uses no APIs above minSdk. Drop this block if forcing consumers to 37 is preferred.Consumer impact
minSdk16 still supported, consumers do not need to raise their owncompileSdkTesting
./gradlew clean build publishToMavenLocal --warning-mode allpasses on JDK 17 and on Android Studio's bundled JDK 25; lint and unit tests pass, no deprecation warnings from project scriptsminCompileSdk=16, POM dependencies unchanged apart from the stdlib version🤖 Generated with Claude Code