forked from vash15/me.apla.cordova.app-preferences
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This solution was reported on issue: apla#135 . The solution was implemented in this branch: https://github.com/vash15/me.apla.cordova.app-preferences. But as we need to have a solution which contains both cordova 9.0.0 compatibility AND a fix for this error. I'm mergin the two solutions into our own repository
- Loading branch information
Showing
7 changed files
with
49 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use strict'; | ||
|
||
module.exports = (context) => ({ | ||
forPlatform: function (platform, action) { | ||
try { | ||
if (context.opts.platforms && context.opts.platforms.indexOf(platform)=== -1) { | ||
return; | ||
} else { | ||
return action(); | ||
} | ||
} catch (e) { | ||
console.info(`Failed for platform: ${platform} -- START`); | ||
console.info(`If you don't need ${platform} just ignore this error.`); | ||
console.info(e); | ||
console.info(`Failed for platform: ${platform} -- END`); | ||
} | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters