blob: 35d7db193c501a0f0f102aa29c0148d029032afe [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="{{{manifest_package}}}"
android:versionCode="{{{version_code}}}"
android:versionName="{{{version_name}}}" >
<uses-permission android:name="android.permission.VIBRATE"></uses-permission>
{{{raw_manifest_tags}}}
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="26" />
<application
android:icon="@mipmap/ic_launcher"
android:label="@string/short_name"
android:allowBackup="false"
android:supportsRtl="true">
<activity android:name="org.chromium.webapk.shell_apk.MainActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:excludeFromRecents="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
{{#intent_filters}}
<intent-filter>
<action android:name="android.intent.action.VIEW"></action>
<category android:name="android.intent.category.DEFAULT"></category>
<category android:name="android.intent.category.BROWSABLE"></category>
<data android:scheme="{{{scope_url_scheme}}}" android:host="{{{scope_url_host}}}" {{{scope_url_path_type}}}="{{{scope_url_path}}}"></data>
</intent-filter>
{{/intent_filters}}
{{{raw_intent_filters}}}
</activity>
{{#share_template}}
<activity android:name="org.chromium.webapk.shell_apk.ShareActivity{{{index}}}"
android:label="{{{title}}}"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:excludeFromRecents="true">
<meta-data android:name="org.chromium.webapk.shell_apk.shareTemplate" android:value="{{{url_template}}}" />
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
{{/share_template}}
<meta-data android:name="org.chromium.webapk.shell_apk.shellApkVersion" android:value="{{{shell_apk_version}}}" />
{{#bound_webapk}}
<meta-data android:name="org.chromium.webapk.shell_apk.runtimeHost" android:value="{{{runtime_host}}}" />
<meta-data android:name="org.chromium.webapk.shell_apk.runtimeHostApplicationName" android:value="{{{runtime_host_application_name}}}" />
{{/bound_webapk}}
<meta-data android:name="org.chromium.webapk.shell_apk.startUrl" android:value="{{{start_url}}}" />
{{#logged_intent_url_param}}
<meta-data android:name="org.chromium.webapk.shell_apk.loggedIntentUrlParam" android:value="{{{logged_intent_url_param}}}" />
{{/logged_intent_url_param}}
<meta-data android:name="org.chromium.webapk.shell_apk.scope" android:value="{{{scope_url}}}" />
<meta-data android:name="org.chromium.webapk.shell_apk.displayMode" android:value="{{{display_mode}}}" />
<meta-data android:name="org.chromium.webapk.shell_apk.orientation" android:value="{{{orientation}}}" />
<meta-data android:name="org.chromium.webapk.shell_apk.themeColor" android:value="{{{theme_color}}}" />
<meta-data android:name="org.chromium.webapk.shell_apk.backgroundColor" android:value="{{{background_color}}}" />
<meta-data android:name="org.chromium.webapk.shell_apk.iconId" android:resource="{{{splash_screen_icon}}}" />
{{! Hashes of icons should be taken of the icons as they are available on the web. The icon
bytes should not be transformed (e.g. decoded / encoded) prior to taking the hash.
}}
<meta-data android:name="org.chromium.webapk.shell_apk.iconUrlsAndIconMurmur2Hashes" android:value="{{{icon_urls_and_icon_murmur2_hashes}}}" />
<meta-data android:name="org.chromium.webapk.shell_apk.webManifestUrl" android:value="{{{web_manifest_url}}}" />
{{#badge_icon_id}}<meta-data android:name="org.chromium.webapk.shell_apk.badgeIconId" android:resource="{{{badge_icon_id}}}" />{{/badge_icon_id}}
<service
android:name="org.chromium.webapk.shell_apk.WebApkServiceFactory"
android:exported="true"
tools:ignore="ExportedService">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.WEBAPK_API" />
</intent-filter>
</service>
<service
android:name="org.chromium.webapk.shell_apk.IdentityService"
android:exported="true"
tools:ignore="ExportedService">
<intent-filter>
<action android:name="org.webapk.IDENTITY_SERVICE_API" />
</intent-filter>
</service>
</application>
</manifest>