2017-08-17 16:31:42 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Replace org.libsdl.app with the identifier of your game below, e.g.
|
|
|
|
com.gamemaker.game
|
|
|
|
-->
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-03-25 07:45:19 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-08-17 16:31:42 +02:00
|
|
|
package="{{ args.package }}"
|
|
|
|
android:versionCode="{{ args.numeric_version }}"
|
|
|
|
android:versionName="{{ args.version }}"
|
|
|
|
android:installLocation="auto">
|
|
|
|
|
|
|
|
<supports-screens
|
|
|
|
android:smallScreens="true"
|
|
|
|
android:normalScreens="true"
|
|
|
|
android:largeScreens="true"
|
|
|
|
android:anyDensity="true"
|
|
|
|
{% if args.min_sdk_version >= 9 %}
|
|
|
|
android:xlargeScreens="true"
|
|
|
|
{% endif %}
|
|
|
|
/>
|
|
|
|
|
|
|
|
<!-- Android 2.3.3 -->
|
2017-12-21 08:24:31 +01:00
|
|
|
<uses-sdk android:minSdkVersion="{{ args.min_sdk_version }}" android:targetSdkVersion="{{ android_api }}" />
|
2017-08-17 16:31:42 +02:00
|
|
|
|
|
|
|
<!-- OpenGL ES 2.0 -->
|
|
|
|
<uses-feature android:glEsVersion="0x00020000" />
|
|
|
|
|
2019-04-05 10:13:35 +02:00
|
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
2017-08-17 16:31:42 +02:00
|
|
|
{% for perm in args.permissions %}
|
|
|
|
{% if '.' in perm %}
|
|
|
|
<uses-permission android:name="{{ perm }}" />
|
|
|
|
{% else %}
|
|
|
|
<uses-permission android:name="android.permission.{{ perm }}" />
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% if args.wakelock %}
|
|
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if args.billing_pubkey %}
|
|
|
|
<uses-permission android:name="com.android.vending.BILLING" />
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<!-- Create a Java class extending SDLActivity and place it in a
|
|
|
|
directory under src matching the package, e.g.
|
|
|
|
src/com/gamemaker/game/MyGame.java
|
|
|
|
|
|
|
|
then replace "SDLActivity" with the name of your class (e.g. "MyGame")
|
|
|
|
in the XML below.
|
|
|
|
|
|
|
|
An example Java class can be found in README-android.txt
|
|
|
|
-->
|
2017-12-21 08:24:31 +01:00
|
|
|
<application android:label="@string/app_name"
|
2017-08-17 16:31:42 +02:00
|
|
|
android:icon="@drawable/icon"
|
|
|
|
android:allowBackup="true"
|
2018-06-08 10:13:45 +02:00
|
|
|
android:theme="@style/LbryAppTheme"
|
2019-04-05 10:13:35 +02:00
|
|
|
android:hardwareAccelerated="true"
|
|
|
|
android:usesCleartextTraffic="true">
|
2017-08-17 16:31:42 +02:00
|
|
|
|
2019-10-11 15:18:45 +02:00
|
|
|
<meta-data
|
|
|
|
android:name="com.google.firebase.messaging.default_notification_icon"
|
|
|
|
android:resource="@drawable/ic_lbry" />
|
|
|
|
<meta-data
|
|
|
|
android:name="com.google.firebase.messaging.default_notification_color"
|
|
|
|
android:resource="@color/lbryGreen" />
|
|
|
|
<meta-data
|
|
|
|
android:name="com.google.firebase.messaging.default_notification_channel_id"
|
|
|
|
android:value="@string/default_notification_channel_id"/>
|
|
|
|
|
2017-08-17 16:31:42 +02:00
|
|
|
{% for m in args.meta_data %}
|
|
|
|
<meta-data android:name="{{ m.split('=', 1)[0] }}" android:value="{{ m.split('=', 1)[-1] }}"/>{% endfor %}
|
|
|
|
<meta-data android:name="wakelock" android:value="{% if args.wakelock %}1{% else %}0{% endif %}"/>
|
|
|
|
|
2017-12-28 19:06:31 +01:00
|
|
|
<!--activity android:name="io.lbry.lbrynet.ServiceControlActivity"
|
2017-08-17 16:31:42 +02:00
|
|
|
android:label="@string/app_name"
|
|
|
|
android:configChanges="keyboardHidden|orientation{% if args.min_sdk_version >= 13 %}|screenSize{% endif %}"
|
|
|
|
android:screenOrientation="{{ args.orientation }}"
|
2017-12-28 19:06:31 +01:00
|
|
|
-->
|
2018-06-08 10:13:45 +02:00
|
|
|
|
2018-03-11 16:32:13 +01:00
|
|
|
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
|
|
|
|
|
2018-03-31 11:28:26 +02:00
|
|
|
<activity android:name="io.lbry.browser.MainActivity"
|
2017-12-28 19:06:31 +01:00
|
|
|
android:label="@string/app_name"
|
2019-05-28 17:00:15 +02:00
|
|
|
android:theme="@style/LbryAppTheme"
|
2017-12-28 19:06:31 +01:00
|
|
|
android:configChanges="keyboardHidden|orientation{% if args.min_sdk_version >= 13 %}|screenSize{% endif %}"
|
|
|
|
android:screenOrientation="{{ args.orientation }}"
|
2018-05-25 09:13:05 +02:00
|
|
|
android:launchMode="singleInstance"
|
2017-12-28 19:06:31 +01:00
|
|
|
>
|
2018-06-08 10:13:45 +02:00
|
|
|
|
2018-05-25 09:13:05 +02:00
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.intent.action.VIEW" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
<category android:name="android.intent.category.BROWSABLE" />
|
|
|
|
<data android:scheme="lbry" />
|
|
|
|
</intent-filter>
|
2017-08-17 16:31:42 +02:00
|
|
|
|
|
|
|
{% if args.launcher %}
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="org.kivy.LAUNCH" />
|
|
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
<data android:scheme="{{ url_scheme }}" />
|
|
|
|
</intent-filter>
|
|
|
|
{% else %}
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
|
|
</intent-filter>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{%- if args.intent_filters -%}
|
|
|
|
{{- args.intent_filters -}}
|
|
|
|
{%- endif -%}
|
|
|
|
</activity>
|
2018-06-08 10:13:45 +02:00
|
|
|
|
2018-04-19 23:43:15 +02:00
|
|
|
<receiver android:name="io.lbry.browser.receivers.NotificationDeletedReceiver" />
|
2018-06-08 10:13:45 +02:00
|
|
|
|
2017-08-17 16:31:42 +02:00
|
|
|
{% if args.launcher %}
|
|
|
|
<activity android:name="org.kivy.android.launcher.ProjectChooser"
|
|
|
|
android:icon="@drawable/icon"
|
|
|
|
android:label="@string/app_name">
|
|
|
|
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
|
|
</intent-filter>
|
|
|
|
|
|
|
|
</activity>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if service or args.launcher %}
|
|
|
|
<service android:name="org.kivy.android.PythonService"
|
|
|
|
android:process=":pythonservice" />
|
|
|
|
{% endif %}
|
|
|
|
{% for name in service_names %}
|
|
|
|
<service android:name="{{ args.package }}.Service{{ name|capitalize }}"
|
|
|
|
android:process=":service_{{ name }}" />
|
|
|
|
{% endfor %}
|
2017-12-21 08:24:31 +01:00
|
|
|
<service android:name="{{ args.package }}.LbrynetService"
|
2017-08-17 16:31:42 +02:00
|
|
|
android:process=":service_lbrynet" />
|
2017-10-03 11:16:24 +02:00
|
|
|
<service android:name="{{ args.package }}.LbrynetTestRunnerService"
|
|
|
|
android:process=":service_lbrynet_testrunner" />
|
2017-08-17 16:31:42 +02:00
|
|
|
|
2019-10-11 15:18:45 +02:00
|
|
|
<service
|
|
|
|
android:name="{{ args.package }}.LbrynetMessagingService"
|
|
|
|
android:exported="false">
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="com.google.firebase.MESSAGING_EVENT" />
|
|
|
|
</intent-filter>
|
|
|
|
</service>
|
|
|
|
|
2017-08-17 16:31:42 +02:00
|
|
|
{% if args.billing_pubkey %}
|
|
|
|
<service android:name="org.kivy.android.billing.BillingReceiver"
|
|
|
|
android:process=":pythonbilling" />
|
|
|
|
<receiver android:name="org.kivy.android.billing.BillingReceiver"
|
|
|
|
android:process=":pythonbillingreceiver">
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
|
|
|
|
<action android:name="com.android.vending.billing.RESPONSE_CODE" />
|
|
|
|
<action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED" />
|
|
|
|
</intent-filter>
|
|
|
|
</receiver>
|
|
|
|
{% endif %}
|
2018-12-02 00:34:57 +01:00
|
|
|
|
|
|
|
<provider
|
2019-03-25 07:45:19 +01:00
|
|
|
android:name="io.lbry.browser.LocalFileProvider"
|
2018-12-02 00:34:57 +01:00
|
|
|
android:authorities="io.lbry.browser.fileprovider"
|
|
|
|
android:grantUriPermissions="true"
|
|
|
|
android:exported="false">
|
|
|
|
<meta-data
|
|
|
|
android:name="android.support.FILE_PROVIDER_PATHS"
|
|
|
|
android:resource="@xml/filepaths" />
|
|
|
|
</provider>
|
2017-08-17 16:31:42 +02:00
|
|
|
</application>
|
|
|
|
|
|
|
|
</manifest>
|