-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqueries.js
More file actions
39 lines (34 loc) · 994 Bytes
/
Copy pathqueries.js
File metadata and controls
39 lines (34 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// based on https://github.com/expo/config-plugins/issues/123#issuecomment-1746757954
const {
AndroidConfig,
withAndroidManifest,
createRunOncePlugin,
} = require('expo/config-plugins');
const queries = {
package: [
{ $: { 'android:name': 'com.wallet.crypto.trustapp' } },
{ $: { 'android:name': 'io.metamask' } },
{ $: { 'android:name': 'me.rainbow' } },
{ $: { 'android:name': 'io.zerion.android' } },
{ $: { 'android:name': 'io.gnosis.safe' } },
{ $: { 'android:name': 'com.uniswap.mobile' } },
// Add other wallet package names here
],
};
/**
* @param {import('@expo/config-plugins').ExportedConfig} config
*/
const withAndroidManifestService = (config) => {
return withAndroidManifest(config, (config) => {
config.modResults.manifest = {
...config.modResults.manifest,
queries,
};
return config;
});
};
module.exports = createRunOncePlugin(
withAndroidManifestService,
'withAndroidManifestService',
'1.0.0'
);