forked from thetypingpuppy/ezleaderboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
75 lines (54 loc) · 2.47 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="ezleaderboard"
version="1.0.0">
<name>ezleaderboard</name>
<description>
Simplest Google Play Services leaderboard interface for Cordova / Android.
</description>
<license>MIT</license>
<engines>
<engine name="cordova" version=">=3.0.0"/>
</engines>
<!-- <js-module src="www/ezleaderboard.js" name="ezleaderboard">
<clobbers target="window.plugins.ezleaderboard" />
</js-module> -->
<asset src="www/ezleaderboard.js" target="plugins/ezleaderboard/ezleaderboard.js" />
<platform name="android">
<dependency id="cordova-plugin-androidx" version="2.0.0"/>
<framework src="com.google.android.gms:play-services-auth:18.1.0" />
<framework src="com.google.android.gms:play-services-games:18.0.1" />
<preference name="PLAY_APP_ID" />
<!-- <preference name="PLAY_LEADERBOARD_ID" /> -->
<config-file target="res/xml/config.xml" parent="/*">
<feature name="ezleaderboard">
<param name="android-package" value="com.orbost.plugins.ezleaderboard" />
</feature>
</config-file>
<config-file target="res/values/strings.xml" parent="/*">
<string name="ezleaderboard_app_id">$PLAY_APP_ID</string>
<!-- <string name="ezleaderboard_leaderboard_id">$PLAY_LEADERBOARD_ID</string> -->
</config-file>
<config-file parent="/manifest/application" target="AndroidManifest.xml">
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/ezleaderboard_app_id" />
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/>
</config-file>
<source-file src="src/android/ezleaderboard.java" target-dir="src/com/orbost/plugins"/>
</platform>
<platform name="browser">
<js-module src="src/browser/ezleaderboard.js" name="ezleaderboardproxy">
<merges target="window.plugins.ezleaderboard" />
</js-module>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="ezleaderboard">
<param name="ios-package" value="CDVezleaderboard" />
</feature>
</config-file>
<header-file src="src/ios/CDVezleaderboard.h" />
<source-file src="src/ios/CDVezleaderboard.m" />
<framework src="GameKit.framework" />
</platform>
</plugin>