File tree Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " branch-cordova-sdk" ,
3
3
"description" : " Branch Metrics Cordova SDK" ,
4
4
"main" : " src/branch.js" ,
5
- "version" : " 2.6.11 " ,
5
+ "version" : " 2.6.12 " ,
6
6
"homepage" : " https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking" ,
7
7
"repository" : {
8
8
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ SOFTWARE.
24
24
<plugin xmlns =" http://apache.org/cordova/ns/plugins/1.0"
25
25
xmlns : android =" http://schemas.android.com/apk/res/android"
26
26
id =" branch-cordova-sdk"
27
- version =" 2.6.11 " >
27
+ version =" 2.6.12 " >
28
28
29
29
<!-- DO NOT EDIT THIS FILE. MAKE ALL CHANGES TO plugin.template.xml INSTEAD -->
30
30
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ SOFTWARE.
24
24
<plugin xmlns =" http://apache.org/cordova/ns/plugins/1.0"
25
25
xmlns : android =" http://schemas.android.com/apk/res/android"
26
26
id =" branch-cordova-sdk"
27
- version =" 2.6.11 " >
27
+ version =" 2.6.12 " >
28
28
29
29
<!-- DO NOT EDIT THIS FILE. MAKE ALL CHANGES TO plugin.template.xml INSTEAD -->
30
30
Original file line number Diff line number Diff line change 19
19
manifest = updateMultidex ( manifest )
20
20
manifest = updateBranchMetaData ( manifest , preferences )
21
21
manifest = updateBranchReferrerTracking ( manifest )
22
- manifest = updateLaunchOptionToSingleTask ( manifest , mainActivityIndex , preferences )
22
+ manifest = updateLaunchOptionToSingleTask ( manifest , mainActivityIndex )
23
23
manifest = updateBranchURIScheme ( manifest , mainActivityIndex , preferences )
24
24
manifest = updateBranchAppLinks ( manifest , mainActivityIndex , preferences )
25
25
98
98
99
99
// adds to main <activity>:
100
100
// android:launchMode="singleTask"
101
- function updateLaunchOptionToSingleTask ( manifest , mainActivityIndex , preferences ) {
101
+ function updateLaunchOptionToSingleTask ( manifest , mainActivityIndex ) {
102
102
manifest [ 'manifest' ] [ 'application' ] [ 0 ] [ 'activity' ] [ mainActivityIndex ] [ '$' ] [ 'android:launchMode' ] = 'singleTask'
103
103
return manifest
104
104
}
Original file line number Diff line number Diff line change 3
3
'use strict'
4
4
var configPreferences = require ( '../npm/processConfigXml.js' )
5
5
var iosDevelopmentTeam = require ( '../ios/updateDevelopmentTeam.js' )
6
+ var androidManifest = require ( '../android/updateAndroidManifest.js' )
7
+ var ANDROID = 'android'
6
8
var IOS = 'ios'
7
9
8
10
// entry
14
16
var platforms = context . opts . cordova . platforms
15
17
16
18
platforms . forEach ( function ( platform ) {
19
+ if ( platform === ANDROID ) {
20
+ androidManifest . writePreferences ( context , preferences )
21
+ }
17
22
if ( platform === IOS ) {
18
23
iosDevelopmentTeam . addDevelopmentTeam ( preferences )
19
24
}
Original file line number Diff line number Diff line change 5
5
var iosPlist = require ( '../ios/updatePlist.js' )
6
6
var iosCapabilities = require ( '../ios/enableEntitlements.js' )
7
7
var iosAssociatedDomains = require ( '../ios/updateAssociatedDomains.js' )
8
- var androidManifest = require ( '../android/updateAndroidManifest.js' )
9
8
var IOS = 'ios'
10
- var ANDROID = 'android'
11
9
12
10
// entry
13
11
module . exports = run
18
16
var platforms = context . opts . cordova . platforms
19
17
20
18
platforms . forEach ( function ( platform ) {
21
- if ( platform === ANDROID ) {
22
- androidManifest . writePreferences ( context , preferences )
23
- }
24
19
if ( platform === IOS ) {
25
20
iosPlist . addBranchSettings ( preferences )
26
21
iosCapabilities . enableAssociatedDomains ( preferences )
You can’t perform that action at this time.
0 commit comments