forked from Marketo/PhoneGapPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
112 lines (91 loc) · 4.2 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-marketofork"
version="4.0.0">
<name>MarketoPluginFork</name>
<description>Forked Marketo plugin</description>
<license>Apache 2.0</license>
<repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git</repo>
<keywords>phonegap,cordova,Marketo,marketing,push</keywords>
<preference name="APPLICATION_SECRET_KEY"/>
<js-module src="www/marketo.js" name="MarketoPlugin">
<clobbers target="window.marketo" />
</js-module>
<!-- android -->
<platform name="android">
<hook type="after_plugin_install" src="scripts/android/after_plugin_install.js" />
<hook type="before_plugin_uninstall" src="scripts/android/before_plugin_uninstall.js" />
<info>
1.We are using application secret key ='$APPLICATION_SECRET_KEY' to configure your Marketo PhoneGap plugin for Android.
2.Adding Marketo Activity, Marketo Boradcast Receiver.
3.Adding required permission for push notification.
</info>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.VIBRATE"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.marketo.MarketoActivity" android:configChanges="orientation|screenSize">
<intent-filter android:label="MarketoActivity">
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="mkto" android:host="add_test_device"/>
</intent-filter>
</activity>
</config-file>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="MarketoPlugin">
<param name="android-package" value="com.marketo.plugin.MarketoPlugin"/>
</feature>
</config-file>
<framework src="src/android/Marketo.gradle" custom="true" type="gradleReference" />
<framework src="com.google.android.gms:play-services-tagmanager:+" type="gradleReference"/>
<framework src="com.google.firebase:firebase-core:+" type="gradleReference"/>
<framework src="com.google.firebase:firebase-messaging:+" type="gradleReference"/>
<framework src="com.google.firebase:firebase-config:+" type="gradleReference"/>
<framework src="com.google.firebase:firebase-perf:+" type="gradleReference"/>
<resource-file src="aar/MarketoRelease.aar" target="aar/MarketoRelease.aar"/>
<source-file src="src/android/MarketoPlugin.java" target-dir="src/com/marketo/plugin" />
<info>
Successfully added Marketo PhoneGap Plugin.
</info>
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="MarketoPlugin">
<param name="ios-package" value="MarketoPlugin"/>
</feature>
</config-file>
<!-- for test devices add this -->
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>mkto-$APPLICATION_SECRET_KEY</string>
</array>
</dict>
</array>
</config-file>
<header-file src="src/ios/MarketoPlugin.h"/>
<source-file src="src/ios/MarketoPlugin.m"/>
<source-file src="src/ios/AppDelegate+Marketo.m" />
<header-file src="src/ios/AppDelegate+Marketo.h" />
<!-- system frameworks -->
<framework src="libsqlite3.dylib" />
<!-- Marketo framework -->
<framework src="framework/Marketo.framework" custom="true" />
<framework src="framework/UserNotifications.framework" custom="false" />
<resource-file src="framework/MKTResources.bundle"/>
<info>
1. We are using application secret key ='$APPLICATION_SECRET_KEY' to configure your Marketo PhoneGap plugin for iOS.
2. Adding new URL schedule to handle test devices registration.
3. Successfully added Marketo PhoneGap Plugin for iOS.
</info>
</platform>
<hook type="after_prepare" src="scripts/after_prepare.js" />
</plugin>