diff --git a/.gitignore b/.gitignore index bafb8b8..d205e48 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,8 @@ node_modules/ dist/ web-build/ lib/ +android +ios # Native *.orig.* diff --git a/packages/rn-sample/app.json b/packages/rn-sample/app.json index 97b1322..206109b 100644 --- a/packages/rn-sample/app.json +++ b/packages/rn-sample/app.json @@ -11,9 +11,7 @@ "resizeMode": "contain", "backgroundColor": "#ffffff" }, - "assetBundlePatterns": [ - "**/*" - ], + "assetBundlePatterns": ["**/*"], "ios": { "supportsTablet": true }, @@ -25,6 +23,7 @@ }, "web": { "favicon": "./assets/favicon.png" - } + }, + "scheme": "io.logto" } } diff --git a/packages/rn-sample/package.json b/packages/rn-sample/package.json index 8b69ee9..15cbe9e 100644 --- a/packages/rn-sample/package.json +++ b/packages/rn-sample/package.json @@ -4,15 +4,22 @@ "version": "0.1.0", "main": "index.js", "scripts": { - "start": "expo start", - "android": "expo start --android", - "ios": "expo start --ios", - "web": "expo start --web" + "dev": "expo start", + "dev:android": "expo start --android", + "dev:ios": "expo start --ios", + "dev:web": "expo start --web", + "run": "expo run", + "android": "expo run:android", + "ios": "expo run:ios" }, "dependencies": { "@logto/rn": "workspace:^", + "@react-native-async-storage/async-storage": "^1.22.0", "expo": "~50.0.6", + "expo-crypto": "^12.8.1", + "expo-secure-store": "^12.8.1", "expo-status-bar": "~1.11.1", + "expo-web-browser": "^12.8.2", "react": "18.2.0", "react-native": "0.73.4" }, diff --git a/packages/rn/package.json b/packages/rn/package.json index 1080d54..540dfb3 100644 --- a/packages/rn/package.json +++ b/packages/rn/package.json @@ -55,11 +55,13 @@ "dependencies": { "@logto/client": "3.0.0-alpha.2", "@logto/js": "4.0.0-alpha.2", - "@react-native-async-storage/async-storage": "^1.22.0", "crypto-es": "^2.1.0", + "js-base64": "^3.7.6" + }, + "peerDependencies": { + "@react-native-async-storage/async-storage": "^1.22.0", "expo-crypto": "^12.8.0", "expo-secure-store": "^12.8.1", - "expo-web-browser": "^12.8.2", - "js-base64": "^3.7.6" + "expo-web-browser": "^12.8.2" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 78ddf2a..6952e93 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -74,12 +74,24 @@ importers: '@logto/rn': specifier: workspace:^ version: link:../rn + '@react-native-async-storage/async-storage': + specifier: ^1.22.0 + version: 1.22.0(react-native@0.73.4) expo: specifier: ~50.0.6 version: 50.0.6(@babel/core@7.23.9)(@react-native/babel-preset@0.73.21) + expo-crypto: + specifier: ^12.8.1 + version: 12.8.1(expo@50.0.6) + expo-secure-store: + specifier: ^12.8.1 + version: 12.8.1(expo@50.0.6) expo-status-bar: specifier: ~1.11.1 version: 1.11.1 + expo-web-browser: + specifier: ^12.8.2 + version: 12.8.2(expo@50.0.6) react: specifier: 18.2.0 version: 18.2.0 @@ -5254,6 +5266,15 @@ packages: expo: 50.0.6(@babel/core@7.23.9)(@react-native/babel-preset@0.73.21) dev: false + /expo-crypto@12.8.1(expo@50.0.6): + resolution: {integrity: sha512-EJEzmfBUSkGfALTlZRKUbh1RMKF7mWI12vkhO2w6bhGO4bjgGB8XzUHgLfrvSjphDFMx/lwaR6bAQDmXKO9UkQ==} + peerDependencies: + expo: '*' + dependencies: + base64-js: 1.5.1 + expo: 50.0.6(@babel/core@7.23.9)(@react-native/babel-preset@0.73.21) + dev: false + /expo-file-system@16.0.6(expo@50.0.6): resolution: {integrity: sha512-ATCHL7nEg2WwKeamW/SDTR9jBEqM5wncFq594ftKS5QFmhKIrX48d9jyPFGnNq+6h8AGPg4QKh2KCA4OY49L4g==} peerDependencies: