forked from e-mission/cordova-server-sync
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugin.xml
More file actions
106 lines (92 loc) · 5.07 KB
/
plugin.xml
File metadata and controls
106 lines (92 loc) · 5.07 KB
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
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="edu.berkeley.eecs.emission.cordova.serversync"
version="0.0.1">
<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"/>
</engines>
<asset src="www/serversync.js" target="js/serversync.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"/>
-->
<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">
<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"
android:process=":sync">
<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="edu.berkeley.eecs.emission.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"/>
<resource-file src="res/android/authenticator.xml" target="res/xml/authenticator.xml"/>
<resource-file src="res/android/syncadapter.xml" target="res/xml/syncadapter.xml"/>
</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"/>
<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"/>
</platform>
</plugin>