mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-29 18:45:40 -05:00
ec9387115f
Trying to use the extension pattern this way gets an error when uploading the APK to Google Play, so just hard code the extension patters. This won’t work for PBS kids version.
86 lines
4.2 KiB
XML
86 lines
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="org.scratchjr.android">
|
|
|
|
<uses-permission android:name="android.permission.CAMERA" />
|
|
<uses-permission android:name="android.permission.INTERNET"/>
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
|
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
|
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
|
|
|
<uses-feature android:name="android.hardware.camera" android:required="false" />
|
|
<uses-feature android:name="android.hardware.microphone" android:required="false" />
|
|
<uses-feature android:name="android.hardware.touchscreen" android:required="true" />
|
|
|
|
<supports-screens android:requiresSmallestWidthDp="600" />
|
|
<application
|
|
android:allowBackup="true"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:theme="@style/AppTheme"
|
|
android:hardwareAccelerated="true">
|
|
<provider android:name="ShareContentProvider"
|
|
android:grantUriPermissions="true"
|
|
android:authorities="${applicationId}.ShareContentProvider">
|
|
</provider>
|
|
|
|
<activity
|
|
android:name=".ScratchJrActivity"
|
|
android:label="@string/app_name"
|
|
android:windowSoftInputMode="adjustResize"
|
|
android:configChanges="keyboard|keyboardHidden"
|
|
android:theme="@style/FullscreenTheme"
|
|
android:launchMode="singleTask" >
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</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="file" />
|
|
<data android:mimeType="*/*" />
|
|
<data android:pathPattern="@string/share_extension_filter" />
|
|
<!-- These additional pathPattern blocks are to allow for paths with
|
|
additional periods in them. See:
|
|
http://stackoverflow.com/questions/3400072/pathpattern-to-match-file-extension-does-not-work-if-a-period-exists-elsewhere-i/8599921 -->
|
|
<data android:pathPattern=".*\\..*\\.sjr"/>
|
|
<data android:pathPattern=".*\\..*\\..*\\.sjr"/>
|
|
<data android:pathPattern=".*\\..*\\..*\\..*\\.sjr"/>
|
|
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.sjr"/>
|
|
<data android:host="*" />
|
|
</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="file" />
|
|
<data android:scheme="content" />
|
|
<data android:mimeType="@string/share_mimetype" />
|
|
<data android:host="*" />
|
|
</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="file" />
|
|
<data android:scheme="content" />
|
|
<data android:mimeType="application/octet-stream" />
|
|
<data android:host="*" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<receiver android:name="com.google.android.gms.analytics.AnalyticsReceiver"
|
|
android:enabled="true">
|
|
<intent-filter>
|
|
<action android:name="com.google.android.gms.analytics.ANALYTICS_DISPATCH" />
|
|
</intent-filter>
|
|
</receiver>
|
|
<service android:name="com.google.android.gms.analytics.AnalyticsService"
|
|
android:enabled="true"
|
|
android:exported="false"/>
|
|
</application>
|
|
|
|
</manifest>
|