Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

Commit

Permalink
fix: clean snapshot artifacts on cleanApp hook (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitko-Kerezov authored and sis0k0 committed Feb 15, 2018
1 parent 0bb673a commit 50c3ab9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/before-cleanApp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const ProjectSnapshotGenerator = require("../snapshot/android/project-snapshot-generator");
module.exports = function ($mobileHelper, hookArgs) {
if ($mobileHelper.isAndroidPlatform(hookArgs.platformInfo.platform)) {
ProjectSnapshotGenerator.cleanSnapshotArtefacts(hookArgs.platformInfo.projectData.projectDir);
}
}
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
"script": "lib/before-prepareJS.js",
"inject": true
},
{
"type": "before-cleanApp",
"script": "lib/before-cleanApp.js",
"inject": true
},
{
"type": "after-prepare",
"script": "lib/after-prepare.js",
Expand Down

0 comments on commit 50c3ab9

Please sign in to comment.