Tweak manifest

This commit is contained in:
vfsfitvnm
2022-06-09 17:31:28 +02:00
parent e1f39005b6
commit 73a45ae462

View File

@@ -1,62 +1,63 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="it.vfsfitvnm.vimusic"> package="it.vfsfitvnm.vimusic">
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK"/> <uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<application <application
android:allowBackup="true" android:name=".MainApplication"
android:configChanges="colorMode|density|fontScale|keyboard|keyboardHidden|layoutDirection|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" android:allowBackup="true"
android:hardwareAccelerated="true" android:configChanges="colorMode|density|fontScale|keyboard|keyboardHidden|layoutDirection|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
android:icon="@mipmap/ic_launcher_round" android:hardwareAccelerated="true"
android:label="${appName}" android:icon="@mipmap/ic_launcher_round"
android:name=".MainApplication" android:label="${appName}"
android:roundIcon="@mipmap/ic_launcher_round" android:requestLegacyExternalStorage="true"
android:supportsRtl="true" android:roundIcon="@mipmap/ic_launcher_round"
android:requestLegacyExternalStorage="true" android:supportsRtl="true"
android:theme="@style/Theme.ViMusic.NoActionBar"> android:theme="@style/Theme.ViMusic.NoActionBar">
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
android:exported="true" android:exported="true"
android:theme="@style/Theme.ViMusic.NoActionBar" android:launchMode="singleTop"
android:launchMode="singleTop" android:theme="@style/Theme.ViMusic.NoActionBar"
android:windowSoftInputMode="adjustResize"> android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" <data
android:host="music.youtube.com" android:host="music.youtube.com"
android:pathPrefix="/playlist" /> android:pathPrefix="/playlist"
android:scheme="https" />
<data android:scheme="https" <data
android:host="www.youtube.com" android:host="www.youtube.com"
android:pathPrefix="/playlist" /> android:pathPrefix="/playlist"
android:scheme="https" />
<data android:scheme="https" <data
android:host="music.youtube.com" android:host="music.youtube.com"
android:pathPrefix="/watch" /> android:pathPrefix="/watch"
android:scheme="https" />
<data android:scheme="https" <data
android:host="www.youtube.com" android:host="www.youtube.com"
android:pathPrefix="/watch" /> android:pathPrefix="/watch"
android:scheme="https" />
</intent-filter> </intent-filter>
</activity> </activity>
<service android:name=".services.PlayerService" android:exported="false"> <service
android:name=".services.PlayerService"
android:exported="false">
<intent-filter> <intent-filter>
<action android:name="androidx.media3.session.MediaSessionService"/> <action android:name="androidx.media3.session.MediaSessionService" />
<action android:name="android.media.browse.MediaBrowserService"/> <action android:name="android.media.browse.MediaBrowserService" />
</intent-filter> </intent-filter>
</service> </service>
</application> </application>