Fix Firebase Analytics setup and disable ad ID

This commit is contained in:
jjbrunton committed 2026-01-16 23:36:52 +00:00
1 parent a558f5e67e
commit 12f312421b
18 files changed
+3791 -1422

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
const { withProjectBuildGradle } = require("expo/config-plugins");
/**
* Config plugin to ensure Kotlin 1.9.x is used in the Android build.
* This provides a safety net in case the default version causes issues.
*/
function withKotlinVersion(config, kotlinVersion = "1.9.25") {
return withProjectBuildGradle(config, (config) => {
if (config.modResults.language === "groovy") {
// Ensure Kotlin version is set correctly
config.modResults.contents = config.modResults.contents.replace(
/kotlinVersion = findProperty\('android\.kotlinVersion'\) \?: ['"][\d.]+['"]/,
`kotlinVersion = findProperty('android.kotlinVersion') ?: '${kotlinVersion}'`
);
}
return config;
});
}
module.exports = withKotlinVersion;