fix(android): possible fix for notifications

This commit is contained in:
Fredrik Burmester
2025-11-07 08:08:01 +01:00
parent e4e1e556bf
commit ce37351099

View File

@@ -10,10 +10,15 @@ module.exports = ({ config }) => {
// Add the background downloader plugin only for non-TV builds
config.plugins.push("./plugins/withRNBackgroundDownloader.js");
}
// Only override googleServicesFile if env var is set
const androidConfig = {};
if (process.env.GOOGLE_SERVICES_JSON) {
androidConfig.googleServicesFile = process.env.GOOGLE_SERVICES_JSON;
}
return {
android: {
googleServicesFile: process.env.GOOGLE_SERVICES_JSON,
},
...(Object.keys(androidConfig).length > 0 && { android: androidConfig }),
...config,
};
};