57 lines
3.9 KiB
XML
57 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!--
|
||
自訂的 main manifest(Player Settings > Custom Main Manifest)
|
||
內容以 Unity 產生的版本為基礎,多加了「開啟 / 分享 zip 給本 app」的 intent-filter,
|
||
讓玩家能用檔案管理員或瀏覽器直接把曲包送進遊戲;
|
||
activity 換成 RhyculatorActivity(繼承 UnityPlayerGameActivity),負責把收到的 zip 複製到收件匣
|
||
-->
|
||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
|
||
<uses-permission android:name="android.permission.INTERNET" />
|
||
<uses-feature android:glEsVersion="0x00030000" />
|
||
<uses-feature android:name="android.hardware.vulkan.version" android:required="false" />
|
||
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
|
||
<uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" />
|
||
<uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false" />
|
||
<application android:appCategory="game" android:enableOnBackInvokedCallback="false" android:extractNativeLibs="true">
|
||
<meta-data android:name="unity.splash-mode" android:value="0" />
|
||
<meta-data android:name="unity.splash-enable" android:value="True" />
|
||
<meta-data android:name="unity.launch-fullscreen" android:value="True" />
|
||
<meta-data android:name="unity.render-outside-safearea" android:value="True" />
|
||
<meta-data android:name="notch.config" android:value="portrait|landscape" />
|
||
<meta-data android:name="unity.auto-report-fully-drawn" android:value="true" />
|
||
<meta-data android:name="unity.strip-engine-code" android:value="true" />
|
||
<meta-data android:name="unity.auto-set-game-state" android:value="true" />
|
||
<activity android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection|density" android:enabled="true" android:exported="true" android:hardwareAccelerated="false" android:launchMode="singleTask" android:name="com.rhyculator.RhyculatorActivity" android:resizeableActivity="true" android:screenOrientation="fullUser" android:theme="@style/BaseUnityGameActivityTheme">
|
||
<intent-filter>
|
||
<category android:name="android.intent.category.LAUNCHER" />
|
||
<action android:name="android.intent.action.MAIN" />
|
||
</intent-filter>
|
||
<!-- 用檔案管理員 / 瀏覽器「開啟」曲包 zip -->
|
||
<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="content" />
|
||
<data android:scheme="file" />
|
||
<data android:mimeType="application/zip" />
|
||
<data android:mimeType="application/x-zip-compressed" />
|
||
<data android:mimeType="application/octet-stream" />
|
||
</intent-filter>
|
||
<!-- 從其他 app「分享」zip 給本 app -->
|
||
<intent-filter>
|
||
<action android:name="android.intent.action.SEND" />
|
||
<category android:name="android.intent.category.DEFAULT" />
|
||
<data android:mimeType="application/zip" />
|
||
<data android:mimeType="application/x-zip-compressed" />
|
||
<data android:mimeType="application/octet-stream" />
|
||
</intent-filter>
|
||
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
|
||
<meta-data android:name="android.app.lib_name" android:value="game" />
|
||
<meta-data android:name="WindowManagerPreference:FreeformWindowSize" android:value="@string/FreeformWindowSize_maximize" />
|
||
<meta-data android:name="WindowManagerPreference:FreeformWindowOrientation" android:value="@string/FreeformWindowOrientation_landscape" />
|
||
<meta-data android:name="notch_support" android:value="true" />
|
||
<layout android:minHeight="300px" android:minWidth="400px" />
|
||
</activity>
|
||
</application>
|
||
</manifest>
|