1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/packages/app-mobile/tools/clean.js
Laurent c758377188
All: Add support for public-private key pairs and improved master password support (#5438)
Also improved SCSS support, which was needed for the master password dialog.
2021-10-03 16:00:49 +01:00

18 lines
584 B
JavaScript

// We don't make that a gulp task because we might want to run it before
// gulp has been installed.
const fs = require('fs-extra');
async function main() {
const mobileDir = `${__dirname}/..`;
await fs.remove(`${mobileDir}/android/.gradle`);
await fs.remove(`${mobileDir}/android/app/build`);
await fs.remove(`${mobileDir}/ios/Pods`);
console.info('To clean the Android build, in some rare cases you might also need to clear the cache in ~/.android and ~/.gradle');
}
main().catch((error) => {
console.error('Could not clean mobile app build', error);
process.exit(1);
});