【发布时间】:2020-01-07 05:05:11
【问题描述】:
我正在使用 expo 构建一个简单的应用程序。在为 android 和 iOS 实现链接时,我正在编辑 app.JSON。我去rebuild android build的时候,终端报错:
app.json 必须包含一个 JSON 对象。
终端无法识别 app.JSON。
我还注意到applinks:<librexapp.app.link> 似乎无法识别。我在实现通用链接时缺少什么?代码如下:
{
"expo": {
"name": "Librex",
"slug": "Librex",
"privacy": "public",
"sdkVersion": "35.0.0",
"platforms": [
"ios",
"android",
"web"
],
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"scheme": "librexapp",
"assetBundlePatterns": [
"**/*"
],
"android":{
"package": "com.librex.app",
"googleServicesFile": "./google-services.json",
"config":{
"branch":{
"apiKey": "Redacted"
}
}
},
"ios":{
"supportsTablet": true,
"associatedDomains":
[applinks:<librexapp.app.link>],
"config":{
"branch":{
"apiKey": "Redacted"
}
}
},
"extra": {
"firebaseConfig": {
"apiKey" : "Redacted",
"authDomain" : "Redacted",
"databaseURL" : "Redacted",
"storageBucket": "Redacted",
"serviceAccount" : "./firebase-private-key.json"
}
}
}
}
【问题讨论】:
标签: ios json expo branch.io ios-universal-links