-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.plugin.js
68 lines (65 loc) · 1.57 KB
/
app.plugin.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
const { withAndroidManifest } = require('@expo/config-plugins')
module.exports = function withMyCustomConfig(config) {
return withAndroidManifest(config, async config => {
config.modResults = await setCustomConfigAsync(config, config.modResults);
return config;
});
};
async function setCustomConfigAsync(
config,
androidManifest
){
const myAppName = "com.walletconnectexpo"
const rest = androidManifest.manifest
return {
manifest: {
...rest,
$: {
"xmlns:android": "http://schemas.android.com/apk/res/android",
"package": myAppName
},
queries: [
...rest.queries,
{
intent:[{
action: {
$: {
"android:name": "android.intent.action.VIEW",
},
},
data: {
$: {
"android:scheme": "http"
}
}
},
{
action: {
$: {
"android:name": "android.intent.action.VIEW",
},
},
data: {
$: {
"android:scheme": "https"
}
}
},
{
action: {
$: {
"android:name": "android.intent.action.VIEW",
},
},
data: {
$: {
"android:scheme": "wc"
}
}
}
],
}
]
}
};
}