Skip to content

Commit 9f679ed

Browse files
authored
fix: Compilation errors (#199)
With the latest Xcode version 16.3, we can no longer compile example apps. So this PR updates the Expo version to v53 (the latest). We also fixed an API compilation issue at runtime by upgrading to Buf v2, which comes with many breaking changes. That's why we also updated the code base, mostly `transport_native.ts`. Signed-off-by: D4ryl00 <[email protected]>
1 parent b193a05 commit 9f679ed

File tree

14 files changed

+4922
-12124
lines changed

14 files changed

+4922
-12124
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ cocoapods 1.15.2
44
java openjdk-17.0.2
55
yarn 1.22.19
66
golang 1.23.7
7-
buf 1.39.0
7+
buf 1.53.0

api/gen/es/gnonativetypes_pb.ts

Lines changed: 715 additions & 2226 deletions
Large diffs are not rendered by default.

api/gen/es/rpc_connect.ts

Lines changed: 0 additions & 467 deletions
This file was deleted.

api/gen/es/rpc_pb.ts

Lines changed: 451 additions & 75 deletions
Large diffs are not rendered by default.

buf.gen.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ plugins:
66
- remote: buf.build/connectrpc/go
77
out: ./api/gen/go
88
opt: module=github.com/gnolang/gnonative/api/gen/go
9-
- remote: buf.build/bufbuild/es:v1.7.2
10-
opt: target=ts
11-
out: ./api/gen/es
12-
- remote: buf.build/connectrpc/es:v1.4.0
9+
- remote: buf.build/bufbuild/es:v2.2.5
1310
opt: target=ts
1411
out: ./api/gen/es
1512
- remote: buf.build/protocolbuffers/csharp

expo/example/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const InnerApp = () => {
2727

2828
const remote = await gnonative.getRemote();
2929
const chainId = await gnonative.getChainID();
30-
console.log('Remote %s ChainId %s', remote, chainId);
30+
console.log(`Remote ${remote} ChainId ${chainId}`);
3131

3232
const phrase = await gnonative.generateRecoveryPhrase();
3333
const address = await gnonative.addressFromMnemonic(phrase);

expo/example/package-lock.json

Lines changed: 3617 additions & 9143 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

expo/example/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@
99
"web": "expo start --web"
1010
},
1111
"dependencies": {
12-
"expo": "~51.0.8",
13-
"react": "18.2.0",
14-
"react-native": "0.74.1"
12+
"expo": "^53.0.0",
13+
"react": "19.0.0",
14+
"react-native": "0.79.2"
1515
},
1616
"devDependencies": {
1717
"@babel/core": "^7.20.0",
18-
"@types/react": "~18.2.79",
19-
"typescript": "~5.3.3"
18+
"typescript": "~5.8.3"
2019
},
2120
"private": true,
2221
"expo": {

expo/package-lock.json

Lines changed: 18 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

expo/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
"license": "MIT",
3030
"homepage": "https://github.com/gnolang/gnonative#readme",
3131
"dependencies": {
32-
"@bufbuild/protobuf": "^1.8.0",
33-
"@connectrpc/connect": "^1.4.0",
34-
"@connectrpc/connect-web": "^1.4.0",
32+
"@bufbuild/protobuf": "^2.2.5",
33+
"@connectrpc/connect": "^2.0.2",
34+
"@connectrpc/connect-web": "^2.0.2",
3535
"base64-js": "^1.5.1",
3636
"fast-text-encoding": "^1.0.6"
3737
},

0 commit comments

Comments
 (0)