AndroidManifest.xml 5.92 KB
Newer Older
Ricki Hirner's avatar
Ricki Hirner committed
1
<?xml version="1.0" encoding="utf-8"?>
Ricki Hirner's avatar
Ricki Hirner committed
2
<!--
Ricki Hirner's avatar
Ricki Hirner committed
3 4 5 6 7
  ~ Copyright (c) Ricki Hirner (bitfire web engineering).
  ~ All rights reserved. This program and the accompanying materials
  ~ are made available under the terms of the GNU Public License v3.0
  ~ which accompanies this distribution, and is available at
  ~ http://www.gnu.org/licenses/gpl.html
Ricki Hirner's avatar
Ricki Hirner committed
8 9
  -->

Ricki Hirner's avatar
Ricki Hirner committed
10
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
11
          xmlns:tools="http://schemas.android.com/tools"
12 13
          package="at.bitfire.icsdroid"
          android:installLocation="internalOnly">
Ricki Hirner's avatar
Ricki Hirner committed
14

15
    <!-- fetch iCalendar files -->
Ricki Hirner's avatar
Ricki Hirner committed
16
    <uses-permission android:name="android.permission.INTERNET" />
17
    <!-- manage ICSx⁵ accounts -->
18 19
    <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" android:maxSdkVersion="22"/>
    <uses-permission android:name="android.permission.GET_ACCOUNTS" android:maxSdkVersion="22"/>
20
    <!-- add/update/delete events -->
Ricki Hirner's avatar
Ricki Hirner committed
21 22
    <uses-permission android:name="android.permission.READ_CALENDAR" />
    <uses-permission android:name="android.permission.WRITE_CALENDAR" />
23
    <!-- view/change the sync. interval and whether the account is sync.ing -->
Ricki Hirner's avatar
Ricki Hirner committed
24 25
    <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
    <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
Ricki Hirner's avatar
Ricki Hirner committed
26
    <uses-permission android:name="android.permission.READ_SYNC_STATS" />
27 28
    <!-- access local .ics files -->
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Ricki Hirner's avatar
Ricki Hirner committed
29

Ricki Hirner's avatar
Ricki Hirner committed
30 31 32 33
    <!-- remove task permissions from ical4android -->
    <uses-permission android:name="org.dmfs.permission.READ_TASKS" tools:node="remove"/>
    <uses-permission android:name="org.dmfs.permission.WRITE_TASKS" tools:node="remove"/>

Ricki Hirner's avatar
Ricki Hirner committed
34
    <application
35
        android:allowBackup="false"
Ricki Hirner's avatar
Ricki Hirner committed
36
        android:icon="@mipmap/ic_launcher"
Ricki Hirner's avatar
Ricki Hirner committed
37
        android:label="@string/app_name"
38
        android:theme="@style/AppTheme"
Ricki Hirner's avatar
Ricki Hirner committed
39 40
        android:networkSecurityConfig="@xml/network_security"
        tools:ignore="UnusedAttribute">
Ricki Hirner's avatar
Ricki Hirner committed
41 42 43 44 45 46 47 48 49 50 51 52 53
        <service
            android:name=".AccountAuthenticatorService"
            android:exported="false" >
            <intent-filter>
                <action android:name="android.accounts.AccountAuthenticator" />
            </intent-filter>

            <meta-data
                android:name="android.accounts.AccountAuthenticator"
                android:resource="@xml/account_authenticator" />
        </service>
        <service
            android:name=".SyncAdapterService"
Ricki Hirner's avatar
Ricki Hirner committed
54 55
            android:exported="true"
            tools:ignore="ExportedService">
Ricki Hirner's avatar
Ricki Hirner committed
56 57 58 59 60 61 62
            <intent-filter>
                <action android:name="android.content.SyncAdapter"/>
            </intent-filter>
            <meta-data android:name="android.content.SyncAdapter"
                       android:resource="@xml/sync_calendars" />
        </service>

Ricki Hirner's avatar
Ricki Hirner committed
63 64 65 66 67 68 69 70
        <activity
            android:name=".ui.CalendarListActivity"
            android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
Ricki Hirner's avatar
Ricki Hirner committed
71
        <activity
Ricki Hirner's avatar
Ricki Hirner committed
72
            android:name=".ui.AddCalendarActivity"
Ricki Hirner's avatar
Ricki Hirner committed
73
            android:label="@string/activity_add_calendar"
Ricki Hirner's avatar
Ricki Hirner committed
74 75
            android:parentActivityName=".ui.CalendarListActivity"
            tools:ignore="UnusedAttribute">
76
            <intent-filter>
Ricki Hirner's avatar
Ricki Hirner committed
77 78 79
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
80
                <data android:scheme="file" android:host="*" android:pathPattern=".*\\.ics"/>
Ricki Hirner's avatar
Ricki Hirner committed
81 82
                <data android:scheme="file" android:host="*" android:pathPattern=".*\\..*\\.ics"/>
                <data android:scheme="file" android:host="*" android:pathPattern=".*\\..*\\..*\\.ics"/>
83
                <data android:scheme="http" android:host="*" android:pathPattern=".*\\.ics"/>
Ricki Hirner's avatar
Ricki Hirner committed
84 85
                <data android:scheme="http" android:host="*" android:pathPattern=".*\\..*\\.ics"/>
                <data android:scheme="http" android:host="*" android:pathPattern=".*\\..*\\..*\\.ics"/>
86
                <data android:scheme="https" android:host="*" android:pathPattern=".*\\.ics"/>
Ricki Hirner's avatar
Ricki Hirner committed
87 88
                <data android:scheme="https" android:host="*" android:pathPattern=".*\\..*\\.ics"/>
                <data android:scheme="https" android:host="*" android:pathPattern=".*\\..*\\..*\\.ics"/>
Ricki Hirner's avatar
Ricki Hirner committed
89 90 91 92 93
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
94 95 96
                <data android:scheme="file" android:mimeType="text/calendar"/>
                <data android:scheme="http" android:mimeType="text/calendar"/>
                <data android:scheme="https" android:mimeType="text/calendar"/>
Ricki Hirner's avatar
Ricki Hirner committed
97 98 99 100 101 102 103 104 105 106
            </intent-filter>
            <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="webcal"/>
                <data android:scheme="webcals"/>
            </intent-filter>
        </activity>
        <activity
Ricki Hirner's avatar
Ricki Hirner committed
107 108
            android:name=".ui.EditCalendarActivity"
            android:label="@string/activity_edit_calendar"
Ricki Hirner's avatar
Ricki Hirner committed
109
            android:windowSoftInputMode="stateHidden"
110 111 112
            android:parentActivityName=".ui.CalendarListActivity"/>

        <activity android:name=".ui.ColorPickerActivity" />
Ricki Hirner's avatar
Ricki Hirner committed
113 114 115
        <activity
            android:name=".ui.InfoActivity"
            android:label="@string/activity_app_info"
116
            android:parentActivityName=".ui.CalendarListActivity"/>
117

Ricki Hirner's avatar
Ricki Hirner committed
118 119 120
    </application>

</manifest>