diff --git a/package.json b/package.json index 3b05ec37..52e8b3ee 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "branch-cordova-sdk", "description": "Branch Metrics Cordova SDK", "main": "www/branch.js", - "version": "2.6.0", + "version": "2.6.1", "homepage": "https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking", "repository": { "type": "git", diff --git a/plugin.template.xml b/plugin.template.xml index cce2919f..5504ec32 100644 --- a/plugin.template.xml +++ b/plugin.template.xml @@ -24,7 +24,7 @@ SOFTWARE. + version="2.6.1"> @@ -43,8 +43,8 @@ SOFTWARE. - - + + diff --git a/plugin.xml b/plugin.xml index 9bd4ebe3..4f51a00f 100644 --- a/plugin.xml +++ b/plugin.xml @@ -24,7 +24,7 @@ SOFTWARE. + version="2.6.1"> @@ -43,8 +43,8 @@ SOFTWARE. - - + + diff --git a/src/scripts/hooks/afterPrepare.js b/src/scripts/hooks/afterPluginAdd.js similarity index 94% rename from src/scripts/hooks/afterPrepare.js rename to src/scripts/hooks/afterPluginAdd.js index ebb37608..1c86868e 100644 --- a/src/scripts/hooks/afterPrepare.js +++ b/src/scripts/hooks/afterPluginAdd.js @@ -15,7 +15,7 @@ // after prepare hooks based on platform function run (context) { var preferences = configPreferences.read(context) - var platforms = context.opts.platforms + var platforms = context.opts.cordova.platforms platforms.forEach(function (platform) { if (platform === ANDROID) { diff --git a/src/scripts/hooks/beforePrepare.js b/src/scripts/hooks/afterPluginInstall.js similarity index 91% rename from src/scripts/hooks/beforePrepare.js rename to src/scripts/hooks/afterPluginInstall.js index 3b303bac..225fa7c4 100644 --- a/src/scripts/hooks/beforePrepare.js +++ b/src/scripts/hooks/afterPluginInstall.js @@ -11,7 +11,7 @@ // after prepare hooks based on platform function run (context) { var preferences = configPreferences.read(context) - var platforms = context.opts.platforms + var platforms = context.opts.cordova.platforms platforms.forEach(function (platform) { if (platform === IOS) {