<?xml version="1.0" encoding="UTF-8"?>
<!--
 Copyright 2020 The TensorFlow Authors. All Rights Reserved.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="org.tensorflow.lite.benchmark.firebase">

    <!-- Necessary for loading custom models from disk and writing result to disk. -->
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

    <uses-sdk
        android:minSdkVersion="23"
        android:targetSdkVersion="23" />

    <application>
        <!-- Number of Firebase Game Loop test scenarios defined in this application. -->
        <meta-data
            android:name="com.google.test.loops"
            android:value="10" />
        <!-- This Activity runs on the Firebase Test Lab. -->
        <activity
            android:name=".BenchmarkModelActivity"
            android:screenOrientation="portrait"
            android:label="TFLite Benchmark on Firebase Test Lab"
            android:theme="@android:style/Theme.NoDisplay"
            android:exported="true"
            android:noHistory="true">
            <!-- Intent filter for the Firebase Game Loop test.  -->
            <intent-filter>
                <action android:name="com.google.intent.action.TEST_LOOP" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="application/javascript" />
            </intent-filter>
        </activity>
    </application>

</manifest>
