Advertisement
Guest User

Untitled

a guest
Oct 12th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.33 KB | None | 0 0
  1. $ cat /home/kivy/Project/QuotesSaints/quotessaints/.buildozer/android/platform/build/dists/quotessaints/build/templates/AndroidManifest.tmpl.xml
  2. <?xml version="1.0" encoding="utf-8"?>
  3. <!-- Replace org.libsdl.app with the identifier of your game below, e.g.
  4. com.gamemaker.game
  5. -->
  6. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  7. package="{{ args.package }}"
  8. android:versionCode="{{ args.numeric_version }}"
  9. android:versionName="{{ args.version }}"
  10. android:installLocation="auto">
  11.  
  12. <supports-screens
  13. android:smallScreens="true"
  14. android:normalScreens="true"
  15. android:largeScreens="true"
  16. android:anyDensity="true"
  17. {% if args.min_sdk_version >= 9 %}
  18. android:xlargeScreens="true"
  19. {% endif %}
  20. />
  21.  
  22. <!-- Android 2.3.3 -->
  23. <uses-sdk android:minSdkVersion="{{ args.min_sdk_version }}" android:targetSdkVersion="{{ android_api }}" />
  24.  
  25. <!-- OpenGL ES 2.0 -->
  26. <uses-feature android:glEsVersion="0x00020000" />
  27.  
  28. <!-- Allow writing to external storage -->
  29. <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  30. {% for perm in args.permissions %}
  31. {% if '.' in perm %}
  32. <uses-permission android:name="{{ perm }}" />
  33. {% else %}
  34. <uses-permission android:name="android.permission.{{ perm }}" />
  35. {% endif %}
  36. {% endfor %}
  37.  
  38. {% if args.wakelock %}
  39. <uses-permission android:name="android.permission.WAKE_LOCK" />
  40. {% endif %}
  41.  
  42. {% if args.billing_pubkey %}
  43. <uses-permission android:name="com.android.vending.BILLING" />
  44. {% endif %}
  45.  
  46. <!-- Create a Java class extending SDLActivity and place it in a
  47. directory under src matching the package, e.g.
  48. src/com/gamemaker/game/MyGame.java
  49.  
  50. then replace "SDLActivity" with the name of your class (e.g. "MyGame")
  51. in the XML below.
  52.  
  53. An example Java class can be found in README-android.txt
  54. -->
  55. <application android:label="@string/app_name"
  56. android:icon="@drawable/icon"
  57. android:allowBackup="true"
  58. android:theme="@android:style/Theme.NoTitleBar{% if not args.window %}.Fullscreen{% endif %}"
  59. android:hardwareAccelerated="true" >
  60.  
  61. {% for m in args.meta_data %}
  62. <meta-data android:name="{{ m.split('=', 1)[0] }}" android:value="{{ m.split('=', 1)[-1] }}"/>{% endfor %}
  63. <meta-data android:name="wakelock" android:value="{% if args.wakelock %}1{% else %}0{% endif %}"/>
  64.  
  65. <activity android:name="org.kivy.android.PythonActivity"
  66. android:label="@string/app_name"
  67. android:configChanges="keyboardHidden|orientation{% if args.min_sdk_version >= 13 %}|screenSize{% endif %}"
  68. android:screenOrientation="{{ args.orientation }}"
  69. {% if args.activity_launch_mode %}
  70. android:launchMode="{{ args.activity_launch_mode }}"
  71. {% endif %}
  72. >
  73.  
  74. {% if args.launcher %}
  75. <intent-filter>
  76. <action android:name="org.kivy.LAUNCH" />
  77. <category android:name="android.intent.category.DEFAULT" />
  78. <data android:scheme="{{ url_scheme }}" />
  79. </intent-filter>
  80. {% else %}
  81. <intent-filter>
  82. <action android:name="android.intent.action.MAIN" />
  83. <category android:name="android.intent.category.LAUNCHER" />
  84. </intent-filter>
  85. {% endif %}
  86.  
  87. {%- if args.intent_filters -%}
  88. {{- args.intent_filters -}}
  89. {%- endif -%}
  90. </activity>
  91.  
  92. {% if args.launcher %}
  93. <activity android:name="org.kivy.android.launcher.ProjectChooser"
  94. android:icon="@drawable/icon"
  95. android:label="@string/app_name">
  96.  
  97. <intent-filter>
  98. <action android:name="android.intent.action.MAIN" />
  99. <category android:name="android.intent.category.LAUNCHER" />
  100. </intent-filter>
  101.  
  102. </activity>
  103. {% endif %}
  104.  
  105. {% if service or args.launcher %}
  106. <service android:name="org.kivy.android.PythonService"
  107. android:process=":pythonservice" />
  108. {% endif %}
  109. {% for name in service_names %}
  110. <service android:name="{{ args.package }}.Service{{ name|capitalize }}"
  111. android:process=":service_{{ name }}" />
  112. {% endfor %}
  113.  
  114. {% if args.billing_pubkey %}
  115. <service android:name="org.kivy.android.billing.BillingReceiver"
  116. android:process=":pythonbilling" />
  117. <receiver android:name="org.kivy.android.billing.BillingReceiver"
  118. android:process=":pythonbillingreceiver">
  119. <intent-filter>
  120. <action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
  121. <action android:name="com.android.vending.billing.RESPONSE_CODE" />
  122. <action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED" />
  123. </intent-filter>
  124. </receiver>
  125. {% endif %}
  126. {% for a in args.add_activity %}
  127. <activity android:name="{{ a }}"></activity>
  128. {% endfor %}
  129. </application>
  130.  
  131. </manifest>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement