-
Notifications
You must be signed in to change notification settings - Fork 33
/
plugin.xml
executable file
·91 lines (77 loc) · 3.69 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
<?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="cordova-plugin-game"
version="1.0.120">
<name>Cordova Game plugin</name>
<description>show leaderboard and achievements (google play game and game center, SDK)</description>
<author>Sang Ki Kwon (Cranberrygame)</author>
<license>MIT</license>
<keywords>cordova,plugin,game,google play game,game center</keywords>
<repo>https://github.com/cranberrygame/cordova-plugin-game</repo>
<issue>https://github.com/cranberrygame/cordova-plugin-game/issues</issue>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<js-module src="www/game.js" name="game">
<clobbers target="window.game" />
</js-module>
<!-- android -->
<platform name="android">
<preference name="APP_ID" />
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Game" >
<param name="android-package" value="com.cranberrygame.cordova.plugin.game.Game"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/app_id" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</config-file>
<source-file src="src/android/ids.xml" target-dir="res/values" />
<config-file target="res/values/ids.xml" parent="/*">
<string name="app_id">$APP_ID</string>
</config-file>
<!-- cranberrygame start: google-play-services.jar -->
<!--
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
</config-file>
-->
<!-- cranberrygame end -->
<source-file src="src/android/GameHelper.java" target-dir="src/com/google/example/games/basegameutils"/>
<source-file src="src/android/GameHelperUtils.java" target-dir="src/com/google/example/games/basegameutils"/>
<source-file src="src/android/Game.java" target-dir="src/com/cranberrygame/cordova/plugin/game"/>
<!-- cranberrygame start: google-play-services.jar -->
<!--
<source-file src="src/android/google-play-services.jar" target-dir="libs" />
<source-file src="src/android/version.xml" target-dir="res/values" />
-->
<!-- cranberrygame end -->
<!--
<dependency id="com.google.playservices" url="https://github.com/MobileChromeApps/google-play-services" commit="00f511a8ce332d4586f067240460bfe978ace2ae" />
<dependency id="com.google.playservices@21.0.0" />
<dependency id="android.support.v4@1.0.0" />
-->
<!--
<dependency id="cordova-plugin-extras-google-play-services" />
<dependency id="cordova-plugin-extras-android-support-library-v4" />
-->
<dependency id="cordova-plugin-extras-google-play-services" url="https://github.com/cranberrygame/cordova-plugin-extras-google-play-services" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="Game">
<param name="ios-package" value="Game" />
<param name="onload" value="true" />
</feature>
</config-file>
<header-file src="src/ios/Game.h" compiler-flags="-fno-objc-arc" />
<source-file src="src/ios/Game.m" compiler-flags="-fno-objc-arc" />
<framework src="GameKit.framework" />
</platform>
</plugin>