cmvr-wms/mobile-app/plugins/with-private-build-inputs.cjs

14 lines
595 B
JavaScript
Raw Normal View History

const {withAppBuildGradle}=require('expo/config-plugins');
// Signing material is not application source. Exclude the directory itself as
// well as descendants so Gradle never needs to traverse protected private keys.
module.exports=config=>withAppBuildGradle(config,cfg=>{
const marker='// CMVR private build inputs';
if(!cfg.modResults.contents.includes(marker))cfg.modResults.contents+=`
${marker}
tasks.withType(com.facebook.react.tasks.BundleHermesCTask).configureEach {
sources.exclude("keys", "keys/**", "**/keys", "**/keys/**", "ota-data", "ota-data/**")
}
`;
return cfg;
});