Skip to content

Commit 6286f30

Browse files
authored
Merge pull request #1503 from krille-chan/krille/update-receive-sharing-intent
refactor: Update to new receive sharing intent package
2 parents 625680e + 9bd6399 commit 6286f30

File tree

9 files changed

+119
-368
lines changed

9 files changed

+119
-368
lines changed

android/app/src/main/AndroidManifest.xml

+27
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,14 @@
4949
<action android:name="android.intent.action.MAIN"/>
5050
<category android:name="android.intent.category.LAUNCHER"/>
5151
</intent-filter>
52+
53+
<!-- App can open on notification action -->
5254
<intent-filter>
5355
<action android:name="FLUTTER_NOTIFICATION_CLICK" />
5456
<category android:name="android.intent.category.DEFAULT" />
5557
</intent-filter>
58+
59+
<!-- App can open https://matrix.to urls -->
5660
<intent-filter>
5761
<action android:name="android.intent.action.VIEW" />
5862
<category android:name="android.intent.category.DEFAULT" />
@@ -61,38 +65,61 @@
6165
android:scheme="https"
6266
android:host="matrix.to"/>
6367
</intent-filter>
68+
69+
<!-- App can open matrix: uris -->
6470
<intent-filter>
6571
<action android:name="android.intent.action.VIEW" />
6672
<category android:name="android.intent.category.DEFAULT" />
6773
<category android:name="android.intent.category.BROWSABLE" />
6874
<data android:scheme="matrix" />
6975
</intent-filter>
76+
77+
<!-- App can open im.fluffychat:// uris -->
7078
<intent-filter>
7179
<action android:name="android.intent.action.VIEW" />
7280
<category android:name="android.intent.category.DEFAULT" />
7381
<category android:name="android.intent.category.BROWSABLE" />
7482
<data android:scheme="im.fluffychat" android:host="chat" />
7583
</intent-filter>
84+
85+
<!-- App can receive shared files -->
86+
<intent-filter>
87+
<action android:name="android.intent.action.VIEW" />
88+
<category android:name="android.intent.category.DEFAULT" />
89+
<data
90+
android:mimeType="*/*"
91+
android:scheme="content" />
92+
</intent-filter>
93+
94+
<!-- App can receive shared text -->
7695
<intent-filter>
7796
<action android:name="android.intent.action.SEND" />
7897
<category android:name="android.intent.category.DEFAULT" />
7998
<data android:mimeType="text/*" />
8099
</intent-filter>
100+
101+
<!-- App can receive shared documents -->
81102
<intent-filter>
82103
<action android:name="android.intent.action.SEND" />
83104
<category android:name="android.intent.category.DEFAULT" />
84105
<data android:mimeType="document/*" />
85106
</intent-filter>
107+
108+
<!-- App can receive shared images -->
86109
<intent-filter>
87110
<action android:name="android.intent.action.SEND" />
88111
<category android:name="android.intent.category.DEFAULT" />
89112
<data android:mimeType="image/*" />
90113
</intent-filter>
114+
115+
<!-- App can receive shared videos -->
91116
<intent-filter>
92117
<action android:name="android.intent.action.SEND" />
93118
<category android:name="android.intent.category.DEFAULT" />
94119
<data android:mimeType="video/*" />
95120
</intent-filter>
121+
122+
<!-- App can receive shared audios -->
96123
<intent-filter>
97124
<action android:name="android.intent.action.SEND" />
98125
<category android:name="android.intent.category.DEFAULT" />

0 commit comments

Comments
 (0)