fix: sync validated Win11 RN host baseline
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled
This commit is contained in:
@@ -3,14 +3,14 @@ const { withProjectBuildGradle } = require("@expo/config-plugins");
|
||||
const marker = "// MapLibreParticleRNTestHost custom OpenGL SDK";
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* Pins the one custom MapLibre Native SDK coordinate to Maven Local without deleting
|
||||
* Expo/RN local repositories. Maven Central is filtered only for the custom OpenGL SDK,
|
||||
* so a missing local custom AAR fails instead of silently using the official Central AAR.
|
||||
*/
|
||||
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 { excludeModule(\"org.maplibre.gl\", \"android-sdk-opengl\") } }\n }\n}\nrootProject.ext.set(\"org.maplibre.reactnative.nativeVersion\", \"13.4.1-step060d\")\nrootProject.ext.set(\"org.maplibre.reactnative.nativeVariant\", \"opengl\")\n`;
|
||||
project.modResults.contents += `\n${marker}\ngradle.projectsEvaluated {\n allprojects { p ->\n p.repositories.mavenLocal()\n p.repositories.withType(org.gradle.api.artifacts.repositories.MavenArtifactRepository).configureEach { repo ->\n def repoUrl = repo.url.toString()\n if (repoUrl.contains(\"repo.maven.apache.org/maven2\") || repoUrl.contains(\"repo1.maven.org/maven2\")) {\n repo.content { excludeModule(\"org.maplibre.gl\", \"android-sdk-opengl\") }\n }\n }\n }\n}\nrootProject.ext.set(\"org.maplibre.reactnative.nativeVersion\", \"13.4.1-step060d\")\nrootProject.ext.set(\"org.maplibre.reactnative.nativeVariant\", \"opengl\")\n`;
|
||||
return project;
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user