-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config.js
More file actions
53 lines (48 loc) · 1.05 KB
/
app.config.js
File metadata and controls
53 lines (48 loc) · 1.05 KB
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
const fs = require("fs");
const path = require("path");
const appJson = require("./app.json");
const readKakaoNativeKey = () => {
const keyPath = path.join(__dirname, "kakao-native-key.txt");
if (!fs.existsSync(keyPath)) {
return "";
}
return fs.readFileSync(keyPath, "utf8").trim();
};
const kakaoNativeKey = readKakaoNativeKey();
module.exports = {
expo: {
...appJson.expo,
plugins: [
"expo-secure-store",
"expo-web-browser",
[
"expo-notifications",
{
icon: "./assets/icon.png",
color: "#3AB40B",
},
],
"expo-font",
...(kakaoNativeKey
? [
[
"@react-native-seoul/kakao-login",
{
kakaoAppKey: kakaoNativeKey,
},
],
]
: []),
[
"expo-build-properties",
{
android: {
extraMavenRepos: [
"https://devrepo.kakao.com/nexus/content/groups/public/",
],
},
},
],
],
},
};