mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-01 18:19:43 +00:00
Fix Firebase Analytics setup and disable ad ID
This commit is contained in:
1 parent
a558f5e67e
commit
12f312421b
18 files changed
+3791
-1422
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user