OXYGENHUB
◆ v0.1.9 oxygenhub-android / app / src / main / AndroidManifest.xml
4.8 KiB · XML · last changed oxygenhub.io links open in the app (closes #36) 1 day ago source blame history raw
e0e4a1c4 Andy McCall ↶ 1
<?xml version="1.0" encoding="utf-8"?>
2
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
    xmlns:tools="http://schemas.android.com/tools">
4
263c6cad Andy McCall ↶ 5
    <!-- The phone as a second factor (#32): the system prompt that opens its key. -->
6
    <uses-permission android:name="android.permission.USE_BIOMETRIC" />
5ae4af48 Andy McCall ↶ 7
    <uses-permission android:name="android.permission.INTERNET" />
4aee5293 Andy McCall ↶ 8
    <!-- The phone as an OxygenFlow runner (#8): a foreground service while it runs jobs,
9
         its notification, and the network's state for the Wi-Fi rule. -->
10
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
11
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
12
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
13
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
ff65ea45 Andy McCall ↶ 14
    <!-- The check for proposals ready to land (#20) is kept across reboots, and the runner (#8) offered again. -->
15
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
5ae4af48 Andy McCall ↶ 16
e0e4a1c4 Andy McCall ↶ 17
    <application
5ae4af48 Andy McCall ↶ 18
        android:name=".OxygenHubApp"
e0e4a1c4 Andy McCall ↶ 19
        android:allowBackup="true"
20
        android:dataExtractionRules="@xml/data_extraction_rules"
21
        android:fullBackupContent="@xml/backup_rules"
22
        android:icon="@mipmap/ic_launcher"
23
        android:label="@string/app_name"
24
        android:roundIcon="@mipmap/ic_launcher_round"
25
        android:supportsRtl="true"
26
        android:theme="@style/Theme.OxygenHub">
27
        <activity
28
            android:name=".MainActivity"
29
            android:exported="true"
30
            android:theme="@style/Theme.OxygenHub"
31
            android:windowSoftInputMode="adjustResize">
32
            <intent-filter>
33
                <action android:name="android.intent.action.MAIN" />
34
35
                <category android:name="android.intent.category.LAUNCHER" />
36
            </intent-filter>
cccf0646 Andy McCall ↶ 37
            <!-- App Links (#36): oxygenhub.io's links to what the app shows open
38
                 it there; the hub vouches for the app in assetlinks.json
39
                 (oxygenhub#370). Only the paths the app has a screen for. -->
40
            <intent-filter android:autoVerify="true">
41
                <action android:name="android.intent.action.VIEW" />
42
                <category android:name="android.intent.category.DEFAULT" />
43
                <category android:name="android.intent.category.BROWSABLE" />
44
                <data android:scheme="https" android:host="oxygenhub.io" />
45
                <data android:pathAdvancedPattern="/[^/]+/[^/]+/issue/[0-9]+" />
46
                <data android:pathAdvancedPattern="/[^/]+/[^/]+/proposal/[0-9]+" />
47
                <data android:pathAdvancedPattern="/[^/]+/[^/]+/flow/[0-9]+" />
48
                <data android:pathAdvancedPattern="/[^/]+/[^/]+/change/.+" />
49
                <data android:pathAdvancedPattern="/[^/]+/[^/]+/changes/.+" />
50
                <data android:pathAdvancedPattern="/[^/]+/[^/]+/file/.+" />
51
                <data android:pathAdvancedPattern="/projects/[^/]+/[0-9]+" />
52
            </intent-filter>
e0e4a1c4 Andy McCall ↶ 53
        </activity>
4aee5293 Andy McCall ↶ 54
        <service
55
            android:name=".runner.RunnerService"
56
            android:exported="false"
57
            android:foregroundServiceType="specialUse">
58
            <property
59
                android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
60
                android:value="Runs OxygenFlow CI jobs (WebAssembly) for the signed-in account while the phone is charging on Wi-Fi" />
61
        </service>
ff65ea45 Andy McCall ↶ 62
        <receiver
63
            android:name=".runner.RunnerResume"
64
            android:exported="false">
65
            <intent-filter>
66
                <action android:name="android.intent.action.BOOT_COMPLETED" />
67
                <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
68
            </intent-filter>
69
        </receiver>
b610bc6e Andy McCall ↶ 70
        <!-- The home screen widget (#28): latest runs, unread, reviews waiting. -->
71
        <receiver
72
            android:name=".widget.HubWidgetReceiver"
73
            android:exported="true"
74
            android:label="@string/widget_name">
75
            <intent-filter>
76
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
77
            </intent-filter>
78
            <meta-data
79
                android:name="android.appwidget.provider"
80
                android:resource="@xml/hub_widget_info" />
81
        </receiver>
aa21eb5e Andy McCall ↶ 82
        <!-- Alerts from the hub (#16): sealed data messages through Cloud Messaging. -->
ff65ea45 Andy McCall ↶ 83
        <service
aa21eb5e Andy McCall ↶ 84
            android:name=".alerts.AlertService"
85
            android:exported="false">
86
            <intent-filter>
87
                <action android:name="com.google.firebase.MESSAGING_EVENT" />
88
            </intent-filter>
89
        </service>
90
        <service
ff65ea45 Andy McCall ↶ 91
            android:name=".alerts.LandCheckJob"
92
            android:exported="false"
93
            android:permission="android.permission.BIND_JOB_SERVICE" />
e0e4a1c4 Andy McCall ↶ 94
    </application>
95
96
</manifest>