Skip to content

Commit a18b008

Browse files
authored
chore: bump SDK to expo 52 (#44)
* chore: fix ts lint error fix ts lint error * fix: set createTask false set createTask false on android expo web browser auth session * chore: bump SDK to expo 52 bump SDK to expo 52
1 parent 491a972 commit a18b008

File tree

6 files changed

+2317
-1977
lines changed

6 files changed

+2317
-1977
lines changed

packages/rn-sample/metro.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ const monorepoRoot = path.resolve(projectRoot, '../..');
1414
const config = getDefaultConfig(projectRoot);
1515

1616
// 1. Watch all files within the monorepo
17+
// eslint-disable-next-line @silverhand/fp/no-mutation
1718
config.watchFolders = [monorepoRoot];
1819
// 2. Let Metro know where to resolve packages and in what order
20+
// eslint-disable-next-line @silverhand/fp/no-mutation
1921
config.resolver.nodeModulesPaths = [
2022
path.resolve(projectRoot, 'node_modules'),
2123
path.resolve(monorepoRoot, 'node_modules'),

packages/rn-sample/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
"ios": "expo run:ios"
1313
},
1414
"dependencies": {
15-
"@expo/metro-runtime": "~3.2.1",
15+
"@expo/metro-runtime": "~4.0.1",
1616
"@logto/rn": "workspace:^",
1717
"@react-native-async-storage/async-storage": "^1.23.1",
18-
"expo": "~51.0.39",
19-
"expo-crypto": "^13.0.2",
20-
"expo-secure-store": "^13.0.1",
21-
"expo-status-bar": "~1.12.1",
22-
"expo-web-browser": "^13.0.3",
18+
"expo": "~52.0.37",
19+
"expo-crypto": "^14.0.2",
20+
"expo-secure-store": "^14.0.1",
21+
"expo-status-bar": "~2.0.1",
22+
"expo-web-browser": "^14.0.2",
2323
"react": "18.3.1",
2424
"react-dom": "18.3.1",
25-
"react-native": "0.74.6",
26-
"react-native-web": "~0.19.6"
25+
"react-native": "~0.76.7",
26+
"react-native-web": "~0.19.13"
2727
},
2828
"devDependencies": {
29-
"@babel/core": "^7.24.4",
29+
"@babel/core": "^7.25.2",
3030
"@silverhand/eslint-config": "^6.0.1",
3131
"@silverhand/eslint-config-react": "^6.0.2",
3232
"@types/react": "~18.3.0",

packages/rn-sample/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "expo/tsconfig.base",
33
"compilerOptions": {
44
"moduleResolution": "bundler",
5+
"jsx": "react-jsx",
56
"strict": true
67
}
78
}

packages/rn/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publishConfig": {
44
"access": "public"
55
},
6-
"version": "0.4.0",
6+
"version": "1.0.0",
77
"type": "module",
88
"main": "./lib/index.js",
99
"types": "./lib/index.d.ts",
@@ -56,9 +56,9 @@
5656
},
5757
"peerDependencies": {
5858
"@react-native-async-storage/async-storage": "^1.23.1",
59-
"expo-crypto": "^13.0.2",
60-
"expo-secure-store": "^13.0.1",
61-
"expo-web-browser": "^13.0.3",
62-
"react-native": ">=0.74.1 <1"
59+
"expo-crypto": "^14.0.2",
60+
"expo-secure-store": "^14.0.1",
61+
"expo-web-browser": "^14.0.2",
62+
"react-native": ">=0.76.0 <1"
6363
}
6464
}

packages/rn/src/client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export class LogtoClient extends StandardLogtoClient {
6161
this.authSessionResult = undefined;
6262
this.authSessionResult = await WebBrowser.openAuthSessionAsync(url, redirectUri, {
6363
preferEphemeralSession: config.preferEphemeralSession ?? true,
64+
createTask: false,
6465
});
6566
break;
6667
}

0 commit comments

Comments
 (0)