Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
2.2 kB · 112 lines
JavaScript
at commit 5efae600
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113const {withAndroidManifest} = require('@expo/config-plugins')
const withIntentFilters = config => { // eslint-disable-next-line no-shadow return withAndroidManifest(config, config => { const intents = [ { action: [ { $: { 'android:name': 'android.intent.action.SEND', }, }, ], category: [ { $: { 'android:name': 'android.intent.category.DEFAULT', }, }, ], data: [ { $: { 'android:mimeType': 'image/*', }, }, ], }, { action: [ { $: { 'android:name': 'android.intent.action.SEND', }, }, ], category: [ { $: { 'android:name': 'android.intent.category.DEFAULT', }, }, ], data: [ { $: { 'android:mimeType': 'video/*', }, }, ], }, { action: [ { $: { 'android:name': 'android.intent.action.SEND', }, }, ], category: [ { $: { 'android:name': 'android.intent.category.DEFAULT', }, }, ], data: [ { $: { 'android:mimeType': 'text/plain', }, }, ], }, { action: [ { $: { 'android:name': 'android.intent.action.SEND_MULTIPLE', }, }, ], category: [ { $: { 'android:name': 'android.intent.category.DEFAULT', }, }, ], data: [ { $: { 'android:mimeType': 'image/*', }, }, ], }, ]
const intentFilter = config.modResults.manifest.application?.[0].activity?.[0]['intent-filter']
if (intentFilter) { intentFilter.push(...intents) }
return config })}
module.exports = {withIntentFilters}