react-native-geolocation
react-native-geolocation copied to clipboard
Android Issue: Fix Groovy DSL space-assignment deprecation in Gradle
trafficstars
Fix Deprecated Space-Assignment Syntax in Gradle Build Script
Problem
Gradle 8.x introduced a deprecation warning for space-assignment syntax in build.gradle files. The following usage is now deprecated and will be removed in Gradle 10:
Old (Deprecated Usage)
maven {
url "$rootDir/../node_modules/@react-native-community/geolocation/android"
New (Updated Syntax)
maven {
url = "$rootDir/../node_modules/@react-native-community/geolocation/android"
}
Why This Change?
- Gradle now requires explicit assignment (
property = value) instead of space-separated syntax. - This prevents future build failures when upgrading to Gradle 10.
- The change follows Gradle's official migration guide:
Changes in This PR
- Updated
build.gradleinside theandroidfolder to replace deprecatedurl "$rootDir/..."withurl = "$rootDir/...".