From e81f732e8d4f94dd5c23265e95dfeca005eac575 Mon Sep 17 00:00:00 2001 From: pinpong Date: Mon, 2 Dec 2024 08:12:28 +0100 Subject: [PATCH 1/2] fixed package name deprecation warning --- android/build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index cf167cf..a95579a 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -11,6 +11,17 @@ def safeExtGet(prop, fallback) { } android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { + namespace "com.geoloc" + + def manifestFile = file("${projectDir}/src/main/AndroidManifest.xml") + def manifestContent = manifestFile.getText() + manifestContent = manifestContent.replaceAll("package=\"com.geoloc\"", '') + + manifestFile.write(manifestContent) + } + compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION) buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION) From 3c76c948d633266f96852ef65c23a3493ac5f2df Mon Sep 17 00:00:00 2001 From: pinpong Date: Mon, 2 Dec 2024 16:47:55 +0100 Subject: [PATCH 2/2] fixed package name --- android/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index a95579a..e0c6dcf 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -13,11 +13,11 @@ def safeExtGet(prop, fallback) { android { def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION if (agpVersion.tokenize('.')[0].toInteger() >= 7) { - namespace "com.geoloc" + namespace "com.agontuk.RNFusedLocation" def manifestFile = file("${projectDir}/src/main/AndroidManifest.xml") def manifestContent = manifestFile.getText() - manifestContent = manifestContent.replaceAll("package=\"com.geoloc\"", '') + manifestContent = manifestContent.replaceAll("package=\"com.agontuk.RNFusedLocation\"", '') manifestFile.write(manifestContent) }