fix(android): AGP 8 / Gradle 8 support — drop deprecated 'maven' plugin, keep com.reactlibrary namespace, set default SDKs, widen peerDeps, update README #99
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.
Problem
Android builds on modern toolchains (Gradle 7/8, AGP 8) fail with:
Plugin with id 'maven' not foundcompileSdkVersion is not specifiednamespace not specified for project ...The package also still referenced
jcenter()and documented the obsoleteinstallArchivesflow. Additionally, current Expo / RN templates (React 19) could not install the package because of a too‑narrowreactpeerDependency (<19.0.0).What this PR does
Android / Gradle
mavenplugin and all legacy publishing tasks.namespacebut keeps it ascom.reactlibraryto remain fully backward‑compatible with the existing Java package and RN autolinking.rootProject.ext):compileSdkVersion: 34targetSdkVersion: 34minSdkVersion: 21jcenter().lint {}and Java 8compileOptions.Peer deps
reactto allow React 19:>=16.8.0 <20.0.0react-nativerange to>=0.59.0 <1.0.0react-native-svgto>=9.5.3 <17.0.0so modern Expo/RN stacks don’t fail to install.Docs
android/README.mdto remove the obsoleteinstallArchives/ maven instructions and mentionmaven-publishas the modern alternative if Gradle publishing is still desired.Backwards compatibility
com.reactlibrary.rootProject.extcontinue to work.How to test