<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-permission tools:node="remove" android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
	<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
	<uses-permission android:name="android.permission.VIBRATE"/>
	<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
	<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
	<uses-permission tools:node="remove" android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
	<uses-permission tools:node="remove" android:name="com.google.android.gms.permission.AD_ID" />

	<application
		android:name=".MainApplication"
		android:allowBackup="false"
		android:icon="@mipmap/ic_launcher"
		android:label="@string/app_name"
		android:theme="@style/AppTheme"
		android:supportsRtl="true">

		<meta-data
			android:name="com.google.firebase.messaging.default_notification_icon"
			android:resource="@drawable/notification_icon" />
		<meta-data
			android:name="com.google.firebase.messaging.default_notification_color"
			android:resource="@color/colorAccent"
			tools:replace="android:resource" />

		<activity
			android:name=".MainActivity"
			android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
			android:screenOrientation="portrait"
			android:label="@string/app_name"
			android:launchMode="singleTask"
			android:windowSoftInputMode="adjustPan"
			android:exported="true"
			android:theme="@style/BootTheme">
			<intent-filter>
				<action android:name="android.intent.action.MAIN" />
				<category android:name="android.intent.category.LAUNCHER" />
			</intent-filter>
			<intent-filter
				android:autoVerify="true">
				<action android:name="android.intent.action.VIEW" />

				<category android:name="android.intent.category.DEFAULT" />
				<category android:name="android.intent.category.BROWSABLE" />

				<data
					android:scheme="https"
					android:host="${deepLinkInsightsHost}"
					android:pathPattern="/song/.*" />
			</intent-filter>
			<intent-filter
				android:autoVerify="true">
				<action android:name="android.intent.action.VIEW" />

				<category android:name="android.intent.category.DEFAULT" />
				<category android:name="android.intent.category.BROWSABLE" />

				<data
					android:scheme="https"
					android:host="${deepLinkInsightsHost}"
					android:pathPattern="/song/.*/playlist/.*" />
			</intent-filter>
			<intent-filter
				android:autoVerify="true">
				<action android:name="android.intent.action.VIEW" />

				<category android:name="android.intent.category.DEFAULT" />
				<category android:name="android.intent.category.BROWSABLE" />

				<data
					android:scheme="https"
					android:host="${deepLinkInsightsHost}"
					android:pathPattern="/artist/.*" />
			</intent-filter>
			<intent-filter
				android:autoVerify="true">
				<action android:name="android.intent.action.VIEW" />

				<category android:name="android.intent.category.DEFAULT" />
				<category android:name="android.intent.category.BROWSABLE" />

				<data
					android:scheme="https"
					android:host="${deepLinkInsightsHost}"
					android:pathPattern="/product/.*" />
			</intent-filter>
		</activity>
		<activity
				android:name="com.auth0.android.provider.RedirectActivity"
				tools:node="replace"
				android:exported="true">
			<intent-filter
					android:autoVerify="true">
				<action
						android:name="android.intent.action.VIEW" />
				<category
						android:name="android.intent.category.DEFAULT" />
				<category
						android:name="android.intent.category.BROWSABLE" />
				<data
						android:scheme="${auth0SdkCallbackScheme}"
						android:host="${auth0SdkCallbackHost}"
						android:pathPrefix="${auth0SdkCallbackPath}" />
			</intent-filter>
		</activity>
	</application>

</manifest>
