2021-10-25 15:01:10 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
2021-10-31 20:19:25 +01:00
|
|
|
package="io.heckel.ntfy">
|
2021-11-14 01:26:37 +01:00
|
|
|
<!--
|
|
|
|
Permissions
|
|
|
|
- FOREGROUND_SERVICE is needed to support "use another server" feature
|
|
|
|
- WAKE_LOCK & RECEIVE_BOOT_COMPLETED are required to restart the foreground service
|
|
|
|
if it is stopped; see https://robertohuertas.com/2019/06/29/android_foreground_services/
|
|
|
|
-->
|
|
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
|
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
|
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
2021-10-25 21:39:52 +02:00
|
|
|
|
2021-11-14 01:26:37 +01:00
|
|
|
<!--
|
|
|
|
Application
|
|
|
|
- usesCleartextTraffic is required to support "use another server" feature
|
|
|
|
-->
|
2021-10-25 15:01:10 +02:00
|
|
|
<application
|
2021-10-31 20:19:25 +01:00
|
|
|
android:name=".app.Application"
|
|
|
|
android:allowBackup="true"
|
|
|
|
android:icon="@mipmap/ic_launcher"
|
|
|
|
android:label="@string/app_name"
|
|
|
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|
|
|
android:supportsRtl="true"
|
2021-11-14 01:26:37 +01:00
|
|
|
android:theme="@style/AppTheme"
|
|
|
|
android:usesCleartextTraffic="true">
|
2021-10-30 03:13:58 +02:00
|
|
|
|
|
|
|
<!-- Main activity -->
|
2021-10-31 20:19:25 +01:00
|
|
|
<activity
|
|
|
|
android:name=".ui.MainActivity"
|
|
|
|
android:label="@string/app_name">
|
2021-10-25 15:01:10 +02:00
|
|
|
<intent-filter>
|
2021-10-31 20:19:25 +01:00
|
|
|
<action android:name="android.intent.action.MAIN"/>
|
|
|
|
|
|
|
|
<category android:name="android.intent.category.LAUNCHER"/>
|
2021-10-25 15:01:10 +02:00
|
|
|
</intent-filter>
|
|
|
|
</activity>
|
2021-10-30 03:13:58 +02:00
|
|
|
|
2021-10-31 20:19:25 +01:00
|
|
|
<!-- Detail activity -->
|
2021-11-01 13:58:12 +01:00
|
|
|
<activity
|
|
|
|
android:name=".ui.DetailActivity"
|
|
|
|
android:parentActivityName=".ui.MainActivity">
|
2021-10-31 20:19:25 +01:00
|
|
|
<meta-data
|
|
|
|
android:name="android.support.PARENT_ACTIVITY"
|
|
|
|
android:value=".ui.MainActivity" />
|
|
|
|
</activity>
|
|
|
|
|
2021-11-14 01:26:37 +01:00
|
|
|
<!-- Subscriber foreground service for hosts other than ntfy.sh -->
|
|
|
|
<service android:name=".msg.SubscriberService" />
|
|
|
|
|
2021-11-14 19:54:48 +01:00
|
|
|
<!-- Subscriber service restart on reboot -->
|
|
|
|
<receiver android:enabled="true" android:name=".msg.SubscriberService$StartReceiver">
|
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
|
|
|
</intent-filter>
|
|
|
|
</receiver>
|
|
|
|
|
2021-10-30 03:13:58 +02:00
|
|
|
<!-- Firebase messaging -->
|
2021-10-31 20:19:25 +01:00
|
|
|
<service
|
2021-11-12 01:41:29 +01:00
|
|
|
android:name=".msg.FirebaseService"
|
2021-10-31 20:19:25 +01:00
|
|
|
android:exported="false">
|
2021-10-30 03:13:58 +02:00
|
|
|
<intent-filter>
|
2021-10-31 20:19:25 +01:00
|
|
|
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
|
2021-10-30 03:13:58 +02:00
|
|
|
</intent-filter>
|
|
|
|
</service>
|
2021-10-31 20:19:25 +01:00
|
|
|
|
|
|
|
<meta-data
|
|
|
|
android:name="firebase_analytics_collection_enabled"
|
|
|
|
android:value="false"/>
|
2021-10-30 03:13:58 +02:00
|
|
|
<meta-data
|
|
|
|
android:name="com.google.firebase.messaging.default_notification_icon"
|
2021-10-31 20:19:25 +01:00
|
|
|
android:resource="@drawable/ic_notification_icon"/>
|
2021-10-25 15:01:10 +02:00
|
|
|
</application>
|
2021-10-31 20:19:25 +01:00
|
|
|
|
2021-10-25 15:01:10 +02:00
|
|
|
</manifest>
|