1- <?xml version =" 1.0" encoding =" utf-8" ?>
2- <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3- package =" {{ args.package }}"
4- android : versionCode =" {{ args.numeric_version }}"
5- android : versionName =" {{ args.version }}"
6- android : installLocation =" auto" >
7-
8- <supports-screens
9- android : smallScreens =" true"
10- android : normalScreens =" true"
11- android : largeScreens =" true"
12- android : anyDensity =" true"
13- {% if args.min_sdk_version >= 9 %}
14- android:xlargeScreens="true"
15- {% endif %}
16- />
17-
18- <!-- Android 2.3.3 -->
19- <uses-sdk android : minSdkVersion =" {{ args.min_sdk_version }}" android : targetSdkVersion =" {{ args.sdk_version }}" />
20-
21- <!-- Allow writing to external storage -->
22- <uses-permission android : name =" android.permission.INTERNET" />
23- {% for perm in args.permissions %}
24- {% if '.' in perm %}
25- <uses-permission android : name =" {{ perm }}" />
26- {% else %}
27- <uses-permission android : name =" android.permission.{{ perm }}" />
28- {% endif %}
29- {% endfor %}
30-
31- {% if args.wakelock %}
32- <uses-permission android : name =" android.permission.WAKE_LOCK" />
33- {% endif %}
34-
35- {% if args.billing_pubkey %}
36- <uses-permission android : name =" com.android.vending.BILLING" />
37- {% endif %}
38-
39- <!-- Create a Java class extending SDLActivity and place it in a
40- directory under src matching the package, e.g.
41- src/com/gamemaker/game/MyGame.java
42-
43- then replace "SDLActivity" with the name of your class (e.g. "MyGame")
44- in the XML below.
45-
46- An example Java class can be found in README-android.txt
47- -->
48- <application android : label =" @string/app_name"
49- android : icon =" @drawable/icon"
50- android : allowBackup =" true"
51- android : theme =" @android:style/Theme.NoTitleBar{% if not args.window %}.Fullscreen{% endif %}"
52- android : hardwareAccelerated =" true" >
53-
54- {% for m in args.meta_data %}
55- <meta-data android : name =" {{ m.split('=', 1)[0] }}" android : value =" {{ m.split('=', 1)[-1] }}" />{% endfor %}
56- <meta-data android : name =" wakelock" android : value =" {% if args.wakelock %}1{% else %}0{% endif %}" />
57-
58- <activity android : name =" org.kivy.android.PythonActivity"
59- android : label =" @string/app_name"
60- android : configChanges =" keyboardHidden|orientation"
61- android : screenOrientation =" {{ args.orientation }}"
62- >
63- <intent-filter >
64- <action android : name =" android.intent.action.MAIN" />
65- <category android : name =" android.intent.category.LAUNCHER" />
66- </intent-filter >
67- {%- if args.intent_filters -%}
68- {{- args.intent_filters -}}
69- {%- endif -%}
70- </activity >
71-
721 {% if service %}
732 <service android : name =" org.kivy.android.PythonService"
743 android : process =" :pythonservice" />
754 {% endif %}
765 {% for name in service_names %}
776 <service android : name =" {{ args.package }}.Service{{ name|capitalize }}"
787 android : process =" :service_{{ name }}" />
79- {% endfor %}
80-
81- {% if args.billing_pubkey %}
82- <service android : name =" org.kivy.android.billing.BillingReceiver"
83- android : process =" :pythonbilling" />
84- <receiver android : name =" org.kivy.android.billing.BillingReceiver"
85- android : process =" :pythonbillingreceiver" >
86- <intent-filter >
87- <action android : name =" com.android.vending.billing.IN_APP_NOTIFY" />
88- <action android : name =" com.android.vending.billing.RESPONSE_CODE" />
89- <action android : name =" com.android.vending.billing.PURCHASE_STATE_CHANGED" />
90- </intent-filter >
91- </receiver >
92- {% endif %}
93- </application >
94-
95- </manifest >
8+ {% endfor %}
0 commit comments