diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-08-31 23:07:20 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-08-31 23:07:20 +0200 |
| commit | 22721a013bdd10d5eb395ba18453585f5f3f1f7f (patch) | |
| tree | 5a920e31d6026ed5dc55265e5fd057febccc50e3 /StoneIsland/plugins/phonegap-plugin-push/hooks/windows/setToastCapable.js | |
| parent | d22d51a1ae49680015326857360eb699f31efced (diff) | |
rebuild the ios platform and the plugins
Diffstat (limited to 'StoneIsland/plugins/phonegap-plugin-push/hooks/windows/setToastCapable.js')
| -rw-r--r-- | StoneIsland/plugins/phonegap-plugin-push/hooks/windows/setToastCapable.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/StoneIsland/plugins/phonegap-plugin-push/hooks/windows/setToastCapable.js b/StoneIsland/plugins/phonegap-plugin-push/hooks/windows/setToastCapable.js deleted file mode 100644 index b8cbcbc0..00000000 --- a/StoneIsland/plugins/phonegap-plugin-push/hooks/windows/setToastCapable.js +++ /dev/null @@ -1,12 +0,0 @@ -module.exports = function(context) { - console.log('Updating appxmanifests with ToastCapable=true...'); - var path = require('path'); - var platformProjPath = path.join(context.opts.projectRoot, 'platforms/windows'); - var AppxManifest = require(path.join(platformProjPath, 'cordova/lib/AppxManifest')); - - ['package.phone.appxmanifest', 'package.windows.appxmanifest'].forEach(function(manifestPath) { - var manifest = AppxManifest.get(path.join(platformProjPath, manifestPath)); - manifest.getVisualElements().setToastCapable(true); - manifest.write(); - }); -} |
