fix: 修复 Android 闪退问题 - SecureStore 异步调用
问题: - NativeStorage 使用了同步方法调用 expo-secure-store - expo-secure-store 的正确 API 是异步的(getItemAsync/setItemAsync/deleteItemAsync) - 在 Android 上同步调用不存在的方法导致应用崩溃 修复: - 将 Storage 接口改为异步方法 - 使用 SecureStore.getItemAsync/setItemAsync/deleteItemAsync - removeItem 使用 deleteItemAsync 而不是设置空字符串 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
8
app.json
8
app.json
@@ -20,7 +20,8 @@
|
||||
},
|
||||
"edgeToEdgeEnabled": true,
|
||||
"predictiveBackGestureEnabled": false,
|
||||
"package": "com.anonymous.bwexpoappv3"
|
||||
"package": "com.anonymous.bwexpoappv3",
|
||||
"versionCode": 3
|
||||
},
|
||||
"web": {
|
||||
"output": "static",
|
||||
@@ -42,7 +43,8 @@
|
||||
],
|
||||
"expo-video",
|
||||
"expo-audio",
|
||||
"expo-web-browser"
|
||||
"expo-web-browser",
|
||||
"expo-asset"
|
||||
],
|
||||
"experiments": {
|
||||
"typedRoutes": true,
|
||||
@@ -53,6 +55,6 @@
|
||||
"projectId": "191f0396-3e0c-40ec-bd06-b15f58278b8f"
|
||||
}
|
||||
},
|
||||
"owner": "imeepos"
|
||||
"owner": "bowong"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user