Skip to content

Commit

Permalink
Merge pull request #334 from harshabonthu/master
Browse files Browse the repository at this point in the history
Move Before prepare and After prepare hooks to after plugin install, add
  • Loading branch information
ethanneff authored Jun 16, 2017
2 parents 8426cbd + ef75476 commit 69cfaed
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions plugin.template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ SOFTWARE.
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="branch-cordova-sdk"
version="2.6.0">
version="2.6.1">

<!-- DO NOT EDIT THIS FILE. MAKE ALL CHANGES TO plugin.template.xml INSTEAD -->

Expand All @@ -43,8 +43,8 @@ SOFTWARE.

<!-- Hooks -->
<hook src="src/scripts/hooks/beforePluginInstall.js" type="before_plugin_install" />
<hook src="src/scripts/hooks/beforePrepare.js" type="before_prepare" />
<hook src="src/scripts/hooks/afterPrepare.js" type="after_prepare" />
<hook src="src/scripts/hooks/afterPluginInstall.js" type="after_plugin_install" />
<hook src="src/scripts/hooks/afterPluginAdd.js" type="after_plugin_add" />

<!-- JavaScript -->
<js-module src="src/branch.js" name="Branch">
Expand Down
6 changes: 3 additions & 3 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ SOFTWARE.
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="branch-cordova-sdk"
version="2.6.0">
version="2.6.1">

<!-- DO NOT EDIT THIS FILE. MAKE ALL CHANGES TO plugin.template.xml INSTEAD -->

Expand All @@ -43,8 +43,8 @@ SOFTWARE.

<!-- Hooks -->
<hook src="src/scripts/hooks/beforePluginInstall.js" type="before_plugin_install" />
<hook src="src/scripts/hooks/beforePrepare.js" type="before_prepare" />
<hook src="src/scripts/hooks/afterPrepare.js" type="after_prepare" />
<hook src="src/scripts/hooks/afterPluginInstall.js" type="after_plugin_install" />
<hook src="src/scripts/hooks/afterPluginAdd.js" type="after_plugin_add" />

<!-- JavaScript -->
<js-module src="src/branch.js" name="Branch">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 69cfaed

Please sign in to comment.