AndroidManifest.xml 5.92 KB
Newer Older
rhi's avatar
rhi committed
1
<?xml version="1.0" encoding="utf-8"?>
rhi's avatar
GPL v3    
rhi committed
2
<!--
rhi's avatar
rhi 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
rhi's avatar
GPL v3    
rhi committed
8
9
  -->

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

rhi's avatar
rhi committed
15
    <!-- fetch iCalendar files -->
rhi's avatar
rhi committed
16
    <uses-permission android:name="android.permission.INTERNET" />
rhi's avatar
rhi committed
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"/>
rhi's avatar
rhi committed
20
    <!-- add/update/delete events -->
rhi's avatar
rhi committed
21
22
    <uses-permission android:name="android.permission.READ_CALENDAR" />
    <uses-permission android:name="android.permission.WRITE_CALENDAR" />
rhi's avatar
rhi committed
23
    <!-- view/change the sync. interval and whether the account is sync.ing -->
rhi's avatar
rhi committed
24
25
    <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
    <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
rhi's avatar
rhi committed
26
    <uses-permission android:name="android.permission.READ_SYNC_STATS" />
rhi's avatar
rhi committed
27
28
    <!-- access local .ics files -->
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
rhi's avatar
rhi committed
29

rhi's avatar
rhi 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"/>

rhi's avatar
rhi committed
34
    <application
rhi's avatar
rhi committed
35
        android:allowBackup="false"
rhi's avatar
rhi committed
36
        android:icon="@mipmap/ic_launcher"
rhi's avatar
rhi committed
37
        android:label="@string/app_name"
rhi's avatar
rhi committed
38
        android:theme="@style/AppTheme"
rhi's avatar
rhi committed
39
40
        android:networkSecurityConfig="@xml/network_security"
        tools:ignore="UnusedAttribute">
rhi's avatar
rhi 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"
rhi's avatar
rhi committed
54
55
            android:exported="true"
            tools:ignore="ExportedService">
rhi's avatar
rhi 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>

rhi's avatar
rhi 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>
rhi's avatar
rhi committed
71
        <activity
rhi's avatar
rhi committed
72
            android:name=".ui.AddCalendarActivity"
rhi's avatar
rhi committed
73
            android:label="@string/activity_add_calendar"
rhi's avatar
rhi committed
74
75
            android:parentActivityName=".ui.CalendarListActivity"
            tools:ignore="UnusedAttribute">
rhi's avatar
rhi committed
76
            <intent-filter>
rhi's avatar
rhi 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"/>
rhi's avatar
rhi committed
80
                <data android:scheme="file" android:host="*" android:pathPattern=".*\\.ics"/>
rhi's avatar
rhi committed
81
82
                <data android:scheme="file" android:host="*" android:pathPattern=".*\\..*\\.ics"/>
                <data android:scheme="file" android:host="*" android:pathPattern=".*\\..*\\..*\\.ics"/>
rhi's avatar
rhi committed
83
                <data android:scheme="http" android:host="*" android:pathPattern=".*\\.ics"/>
rhi's avatar
rhi committed
84
85
                <data android:scheme="http" android:host="*" android:pathPattern=".*\\..*\\.ics"/>
                <data android:scheme="http" android:host="*" android:pathPattern=".*\\..*\\..*\\.ics"/>
rhi's avatar
rhi committed
86
                <data android:scheme="https" android:host="*" android:pathPattern=".*\\.ics"/>
rhi's avatar
rhi committed
87
88
                <data android:scheme="https" android:host="*" android:pathPattern=".*\\..*\\.ics"/>
                <data android:scheme="https" android:host="*" android:pathPattern=".*\\..*\\..*\\.ics"/>
rhi's avatar
rhi 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"/>
rhi's avatar
rhi committed
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"/>
rhi's avatar
rhi 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
rhi's avatar
rhi committed
107
108
            android:name=".ui.EditCalendarActivity"
            android:label="@string/activity_edit_calendar"
rhi's avatar
rhi committed
109
            android:windowSoftInputMode="stateHidden"
rhi's avatar
rhi committed
110
111
112
            android:parentActivityName=".ui.CalendarListActivity"/>

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

rhi's avatar
rhi committed
118
119
120
    </application>

</manifest>