Auto-Commit: 2026-07-04 18:52:22

This commit is contained in:
2026-07-04 18:52:22 +02:00
parent c7a81cd0c3
commit 1b0dbcca69
228 changed files with 97 additions and 13317 deletions
+12 -12
View File
@@ -22,19 +22,19 @@ module.exports = function withRemoveMediaPermissions(config) {
androidManifest.$['xmlns:tools'] = 'http://schemas.android.com/tools';
}
// Remove any existing declarations of these permissions in the app manifest
androidManifest['uses-permission'] = androidManifest['uses-permission'].filter(
p => !permissionsToRemove.includes(p.$['android:name'])
);
// Add explicit tools:node="remove" directives to block libraries from adding them
permissionsToRemove.forEach(permissionName => {
// Check if it already exists to avoid duplicates
const exists = androidManifest['uses-permission'].some(
p => p.$['android:name'] === permissionName && p.$['tools:node'] === 'remove'
);
if (!exists) {
androidManifest['uses-permission'].push({
$: {
'android:name': permissionName,
'tools:node': 'remove'
}
});
}
androidManifest['uses-permission'].push({
$: {
'android:name': permissionName,
'tools:node': 'remove'
}
});
});
return config;