Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to newest RN, add Expo SDK, general cleanup. #550

Merged
merged 34 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
19803b4
chore: update deps
vonovak Jan 17, 2024
7389711
feat: ios app builds
vonovak Jan 21, 2024
306696a
feat: expo migration wip
vonovak Jan 26, 2024
1510c54
refactor: delete WalletEventReceive stub
vonovak Jan 27, 2024
4da703e
refactor: undo some circular dep fixes
vonovak Feb 5, 2024
b659ad9
refactor: remove unused module
vonovak Feb 5, 2024
67d40b6
refactor: remove some leftovers
vonovak Feb 5, 2024
400006d
chore: ci update ios
vonovak Feb 5, 2024
de2d89d
chore: ci update android
vonovak Feb 5, 2024
c9fa72c
chore: ci updates
vonovak Feb 5, 2024
6f2a6ac
chore: do not run ci repeatedly
vonovak Feb 5, 2024
02f5a64
chore: fix lint
vonovak Feb 5, 2024
c299221
chore: use newer java to build android
vonovak Feb 5, 2024
81e5b70
chore: use java 17
vonovak Feb 5, 2024
da2959e
fix: disable flipper on Android
vonovak Feb 5, 2024
5b61843
chore: more portable sed syntax?
vonovak Feb 5, 2024
6f9f465
chore: use xcode 15
vonovak Feb 5, 2024
db216d1
chore: xcode-select at start
vonovak Feb 5, 2024
5fa7faf
docs: document the prebuild step
vonovak Feb 9, 2024
ee50410
docs: fix list number
vonovak Feb 13, 2024
0763ca2
Update to latest jsonld, http-client, webcrypto.
dmitrizagidulin Feb 8, 2024
8c40151
Move unit test to test/ dir.
dmitrizagidulin Feb 11, 2024
a59412b
Add VC verification unit test.
dmitrizagidulin Feb 11, 2024
b73129c
fix: make verify.test.ts green
vonovak Feb 14, 2024
e0e1d43
chore: rename gh action
vonovak Feb 14, 2024
3d1fedc
fix: importing mock credentials
vonovak Feb 16, 2024
eab42c7
fix: use scrollView on DeveloperScreen
vonovak Feb 16, 2024
fc98b53
fix: respond to dccrequest links on ios
vonovak Feb 16, 2024
b925b0f
fix: update react-native-document-picker
vonovak Feb 20, 2024
e5d25cd
chore: remove unused deps
vonovak Feb 21, 2024
8ef3f8a
fix: import correct @digitalbazaar/http-client dep
vonovak Feb 23, 2024
6104b05
fix: make jest pass
vonovak Feb 23, 2024
ffc1fe9
chore: update package.json scripts
vonovak Feb 26, 2024
473e311
fix: package.json ios script
vonovak Feb 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ const { getDefaultConfig } = require('expo/metro-config');
const defaultConfig = getDefaultConfig(__dirname);

defaultConfig.resolver.assetExts.push('cjs');
// this will be the default in the future, so let's be future-proof
defaultConfig.resolver.enablePackageExports = true;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a major change in how metro resolves packages. It's not needed but it's going to be the default in future, so I figured I'd give it a try

defaultConfig.resolver.unstable_enablePackageExports = true;

module.exports = defaultConfig;
12 changes: 0 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
}
}
},
"overrides": {
"@digitalbazaar/http-client": "4.1.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there were 2 versions of this installed, because @interop/did-web-resolver also depends on a different version of http-client

},
"dependencies": {
"@digitalcredentials/cborld": "^4.3.4",
"@digitalcredentials/did-method-key": "^2.0.3",
Expand All @@ -54,6 +57,7 @@
"big-integer": "^1.6.49",
"bson": "4.4.1",
"expo": "~50.0.6",
"expo-crypto": "~12.8.0",
"expo-dev-client": "~3.3.8",
"expo-secure-store": "~12.8.1",
"expo-splash-screen": "~0.26.4",
Expand Down Expand Up @@ -104,8 +108,7 @@
"text-encoding": "^0.7.0",
"util": "^0.10.4",
"validator": "^13.11.0",
"whatwg-fetch": "^3.6.20",
"expo-crypto": "~12.8.0"
"whatwg-fetch": "^3.6.20"
},
"devDependencies": {
"@react-native/eslint-config": "^0.73.2",
Expand Down
25 changes: 25 additions & 0 deletions patches/@digitalbazaar+http-client+4.1.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
diff --git a/node_modules/@digitalbazaar/http-client/package.json b/node_modules/@digitalbazaar/http-client/package.json
index 4dd70e5..5a24632 100644
--- a/node_modules/@digitalbazaar/http-client/package.json
+++ b/node_modules/@digitalbazaar/http-client/package.json
@@ -5,16 +5,14 @@
"license": "BSD-3-Clause",
"type": "module",
"main": "./dist/cjs/index.cjs",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

metro loaded this implementation, which is for node. That was the issue

- "exports": {
- "require": "./dist/cjs/index.cjs",
- "import": "./lib/index.js"
- },
"browser": {
"./lib/agentCompatibility.js": "./lib/agentCompatibility-browser.js",
"./tests/utils.cjs": "./tests/utils-browser.cjs"
},
- "react-native": {
- "./lib/agentCompatibility.js": "./lib/agentCompatibility-browser.js"
+ "exports": {
+ "react-native": "./lib/index.js",
+ "require": "./dist/cjs/index.cjs",
+ "import": "./lib/index.js"
},
"scripts": {
"rollup": "rollup -c rollup.config.js",
Loading