-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathqueries.js
40 lines (34 loc) · 996 Bytes
/
queries.js
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
40
// 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"
);