mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-11-30 00:27:42 +08:00
移动端: - 登录页新增 Sign in with Apple(仅 iOS + 官方云),app.json 开启 usesAppleSignIn - 个人页新增「注销账号」入口,两步确认后删号;导航交给鉴权守卫避免二次跳转 - AuthContext 增加 loginWithApple / deleteAccount;登录直接用接口返回的用户信息 后端: - 新增 POST /api/v1/users/apple-login:JWKS 验签 identity token,按 Apple sub 找/建用户;同邮箱(仅信任 token 验签的邮箱)则关联既有个人账号,避免撞唯一索引 - 新增 DELETE /api/v1/users/account:软删用户及第三方身份,撤销 Apple 授权 - pkg/applesign:JWKS 验签(读写锁 + 负缓存,刷新不阻塞登录)+ token 换取/撤销 - user_identities 增加 credential 字段(存 Apple refresh token)+ 迁移 000013 - apple-login 仅在配置了 client_id 时启用,私有化部署默认关闭
103 lines
2.5 KiB
JSON
103 lines
2.5 KiB
JSON
{
|
|
"expo": {
|
|
"name": "MonkeyCode",
|
|
"slug": "monkeycode",
|
|
"version": "260608",
|
|
"orientation": "portrait",
|
|
"icon": "./assets/icon.png",
|
|
"scheme": "monkeycode",
|
|
"userInterfaceStyle": "automatic",
|
|
"runtimeVersion": {
|
|
"policy": "fingerprint"
|
|
},
|
|
"updates": {
|
|
"url": "https://monkeycode-ai.com/mobile/app/manifest",
|
|
"enabled": true,
|
|
"checkAutomatically": "ON_LOAD",
|
|
"fallbackToCacheTimeout": 0
|
|
},
|
|
"ios": {
|
|
"supportsTablet": true,
|
|
"usesAppleSignIn": true,
|
|
"bundleIdentifier": "com.chaitin.baizhi.monkeycode",
|
|
"buildNumber": "1",
|
|
"icon": {
|
|
"light": "./assets/icon.png",
|
|
"dark": "./assets/icon-dark.png"
|
|
},
|
|
"infoPlist": {
|
|
"ITSAppUsesNonExemptEncryption": false,
|
|
"NSMicrophoneUsageDescription": "用于语音输入,将你的语音实时转写为文字",
|
|
"NSAppTransportSecurity": {
|
|
"NSAllowsArbitraryLoads": true,
|
|
"NSAllowsLocalNetworking": true
|
|
}
|
|
},
|
|
"appleTeamId": "8Z56KX83T3"
|
|
},
|
|
"android": {
|
|
"package": "com.chaitin.baizhi.monkeycode",
|
|
"versionCode": 1,
|
|
"permissions": [
|
|
"RECORD_AUDIO"
|
|
],
|
|
"adaptiveIcon": {
|
|
"foregroundImage": "./assets/adaptive-icon.png",
|
|
"backgroundColor": "#ffffff"
|
|
}
|
|
},
|
|
"web": {
|
|
"bundler": "metro",
|
|
"output": "single"
|
|
},
|
|
"plugins": [
|
|
"expo-apple-authentication",
|
|
"expo-router",
|
|
"expo-font",
|
|
"expo-asset",
|
|
[
|
|
"expo-splash-screen",
|
|
{
|
|
"image": "./assets/splash.png",
|
|
"imageWidth": 200,
|
|
"resizeMode": "contain",
|
|
"backgroundColor": "#ffffff",
|
|
"dark": {
|
|
"image": "./assets/splash-dark.png",
|
|
"backgroundColor": "#0b0b0e"
|
|
}
|
|
}
|
|
],
|
|
"expo-sharing",
|
|
[
|
|
"expo-image-picker",
|
|
{
|
|
"photosPermission": "用于选择图片作为对话附件发送给 AI"
|
|
}
|
|
],
|
|
[
|
|
"expo-media-library",
|
|
{
|
|
"savePhotosPermission": "用于把对话中的图片保存到相册",
|
|
"photosPermission": false,
|
|
"isAccessMediaLocationEnabled": false
|
|
}
|
|
],
|
|
[
|
|
"expo-build-properties",
|
|
{
|
|
"ios": {
|
|
"buildReactNativeFromSource": true
|
|
}
|
|
}
|
|
]
|
|
],
|
|
"experiments": {
|
|
"typedRoutes": true
|
|
},
|
|
"extra": {
|
|
"updatesServer": "https://release.monkeycode-ai.com"
|
|
}
|
|
}
|
|
}
|