Skip to content

Commit

Permalink
fix: allow opening external links on android 12+
Browse files Browse the repository at this point in the history
- the universal wildcard is not accepted
  • Loading branch information
MSOB7YY committed Aug 20, 2024
1 parent 99eaea8 commit d642e5e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
29 changes: 13 additions & 16 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
android:label="Namida"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:appCategory="audio"
android:requestLegacyExternalStorage="true"
android:supportsPictureInPicture="true"
android:usesCleartextTraffic="true"
Expand Down Expand Up @@ -55,24 +56,20 @@
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" />
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="*youtube.com"
android:scheme="https"
android:pathPrefix="/" />
<data
android:host="*youtube.com"
android:scheme="http"
android:pathPrefix="/" />
<data
android:host="*youtu.be"
android:scheme="https"
android:pathPrefix="/" />
<data
android:host="*youtu.be"
android:scheme="http"
android:pathPrefix="/" />

<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="*youtube.com" />
<data android:host="youtube.com" />
<data android:host="m.youtube.com" />
<data android:host="www.youtube.com" />
<data android:host="music.youtube.com" />
<data android:host="youtu.be" />
<data android:pathPrefix="/" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: namida
description: A Beautiful and Feature-rich Music Player, With YouTube & Video Support Built in Flutter
publish_to: "none"
version: 3.9.7-beta+240820016
version: 3.9.72-beta+240820185

environment:
sdk: ">=3.4.0 <4.0.0"
Expand Down

0 comments on commit d642e5e

Please sign in to comment.