-
Notifications
You must be signed in to change notification settings - Fork 6
/
plugin.xml
118 lines (104 loc) · 6.14 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
113
114
115
116
117
118
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="cordova-plugin-em-serversync"
version="1.3.3">
<name>ServerSync</name>
<description>Push and pull local data to the server</description>
<author>K. Shankari (shankari@eecs.berkeley.edu)</author>
<license>Modified BSD license</license>
<engines>
<engine name="cordova" version=">=3.6.0"/>
<engine name="cordova-android" version=">=7.0.0"/>
</engines>
<asset src="www/ui/ionic/templates/main-sync-settings.html" target="templates/control/main-sync-settings.html"/>
<asset src="www/ui/ionic/js/sync-settings.js" target="js/control/sync-settings.js"/>
<js-module src="www/serversync.js" name="serversync">
<clobbers target="cordova.plugins.BEMServerSync" />
</js-module>
<!--
Since we have just moved over the existing data collection code, we no longer have
a dependency on the standard plugin push. We do need to change the existing
data collection code to call the methods from this plugin. I am not going to
add an explicit dependency on the data collection code because a) it is not
actually correct, and b) don't want to end up with circular dependencies.
<dependency id="phonegap-plugin-push"
url="https://github.com/phonegap/phonegap-plugin-push.git"/>
<dependency id="edu.berkeley.eecs.emission.cordova.usercache"
url="https://github.com/e-mission/cordova-usercache.git"/>
<dependency id="edu.berkeley.eecs.emission.cordova.comm"
url="https://github.com/e-mission/cordova-server-communication.git"/>
-->
<hook type="after_plugin_install" src="hooks/android/addResourcesClassImport.js" />
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="ServerSync">
<param name="android-package" value="edu.berkeley.eecs.emission.cordova.serversync.ServerSyncPlugin"/>
<param name="onload" value="true"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS"/>
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service
android:name="edu.berkeley.eecs.emission.cordova.serversync.AuthenticatorService"
android:enabled="true"
android:exported="false">
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator"/>
</intent-filter>
<meta-data
android:name="android.accounts.AccountAuthenticator"
android:resource="@xml/authenticator" />
</service>
<service
android:name="edu.berkeley.eecs.emission.cordova.serversync.SyncService"
android:exported="true">
<intent-filter>
<action android:name="android.content.SyncAdapter"/>
</intent-filter>
<meta-data android:name="android.content.SyncAdapter"
android:resource="@xml/syncadapter" />
</service>
<provider
android:name="edu.berkeley.eecs.emission.cordova.serversync.StubContentProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:syncable="true"/>
</config-file>
<source-file src="src/android/Authenticator.java" target-dir="src/edu/berkeley/eecs/emission/cordova/serversync"/>
<source-file src="src/android/AuthenticatorService.java" target-dir="src/edu/berkeley/eecs/emission/cordova/serversync"/>
<source-file src="src/android/ServerSyncAdapter.java" target-dir="src/edu/berkeley/eecs/emission/cordova/serversync"/>
<source-file src="src/android/StubContentProvider.java" target-dir="src/edu/berkeley/eecs/emission/cordova/serversync"/>
<source-file src="src/android/SyncService.java" target-dir="src/edu/berkeley/eecs/emission/cordova/serversync"/>
<source-file src="src/android/CommunicationHelper.java" target-dir="src/edu/berkeley/eecs/emission/cordova/serversync"/>
<source-file src="src/android/ServerSyncPlugin.java" target-dir="src/edu/berkeley/eecs/emission/cordova/serversync"/>
<source-file src="src/android/ConfigManager.java" target-dir="src/edu/berkeley/eecs/emission/cordova/serversync"/>
<source-file src="src/android/ServerSyncConfig.java" target-dir="src/edu/berkeley/eecs/emission/cordova/serversync"/>
<source-file src="src/android/ServerSyncUtil.java" target-dir="src/edu/berkeley/eecs/emission/cordova/serversync"/>
<resource-file src="res/android/authenticator.xml" target="res/xml/authenticator.xml"/>
<resource-file src="res/android/syncadapter.xml" target="res/xml/syncadapter.xml"/>
<resource-file src="res/android/ic_mood_question.png" target="res/drawable/ic_mood_question.png"/>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="ServerSync">
<param name="ios-package" value="BEMServerSyncPlugin" />
</feature>
</config-file>
<framework src="CoreMotion.framework"/>
<header-file src="src/ios/BEMActivitySync.h" target-dir="BEMServerSync"/>
<header-file src="src/ios/BEMServerSyncCommunicationHelper.h" target-dir="BEMServerSync"/>
<header-file src="src/ios/BEMServerSyncPlugin.h" target-dir="BEMServerSync"/>
<header-file src="src/ios/BEMServerSyncConfig.h" target-dir="BEMServerSync"/>
<header-file src="src/ios/BEMServerSyncConfigManager.h" target-dir="BEMServerSync"/>
<source-file src="src/ios/BEMActivitySync.m" target-dir="BEMServerSync"/>
<source-file src="src/ios/BEMServerSyncCommunicationHelper.m" target-dir="BEMServerSync"/>
<source-file src="src/ios/BEMServerSyncPlugin.m" target-dir="BEMServerSync"/>
<source-file src="src/ios/BEMServerSyncConfig.m" target-dir="BEMServerSync"/>
<source-file src="src/ios/BEMServerSyncConfigManager.m" target-dir="BEMServerSync"/>
</platform>
</plugin>