From 48b93b8609457b280de1034fe1dedc57cb3971e2 Mon Sep 17 00:00:00 2001 From: OpenAI Codex Date: Mon, 7 Sep 2026 19:31:55 +0800 Subject: [PATCH] fix: align RN test host with Gate C Maven handoff --- .../plugins/withParticleNativeAndroid.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integration/react-native/MapLibreParticleRNTestHost/plugins/withParticleNativeAndroid.js b/integration/react-native/MapLibreParticleRNTestHost/plugins/withParticleNativeAndroid.js index 04aee1af9..d96871a41 100644 --- a/integration/react-native/MapLibreParticleRNTestHost/plugins/withParticleNativeAndroid.js +++ b/integration/react-native/MapLibreParticleRNTestHost/plugins/withParticleNativeAndroid.js @@ -3,14 +3,14 @@ const { withProjectBuildGradle } = require("@expo/config-plugins"); const marker = "// MapLibreParticleRNTestHost custom OpenGL SDK"; /** - * Pins MLRN's configurable native dependency and makes org.maplibre.gl resolve from Maven Local - * only. A missing locally-published custom SDK is therefore a build error, never a fallback to - * Maven Central's official AAR. + * Pins the one custom MapLibre Native SDK coordinate to Maven Local. A missing locally-published + * SDK is therefore a build error, never a fallback to Maven Central's official AAR. MLRN's + * separate turf/annotation/scalebar artifacts remain available from Maven Central. */ module.exports = function withParticleNativeAndroid(config) { return withProjectBuildGradle(config, (project) => { if (project.modResults.contents.includes(marker)) return project; - project.modResults.contents += `\n${marker}\ngradle.projectsEvaluated {\n allprojects { p ->\n p.repositories.clear()\n p.repositories.mavenLocal()\n p.repositories.google()\n p.repositories.mavenCentral { content { excludeGroup(\"org.maplibre.gl\") } }\n }\n}\nrootProject.ext.set(\"org.maplibre.reactnative.nativeVersion\", \"13.4.1\")\nrootProject.ext.set(\"org.maplibre.reactnative.nativeVariant\", \"opengl\")\n`; + project.modResults.contents += `\n${marker}\ngradle.projectsEvaluated {\n allprojects { p ->\n p.repositories.clear()\n p.repositories.mavenLocal()\n p.repositories.google()\n p.repositories.mavenCentral { content { excludeModule(\"org.maplibre.gl\", \"android-sdk-opengl\") } }\n }\n}\nrootProject.ext.set(\"org.maplibre.reactnative.nativeVersion\", \"13.4.1\")\nrootProject.ext.set(\"org.maplibre.reactnative.nativeVariant\", \"opengl\")\n`; return project; }); };