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 react-native to 0.73.4 #1996

Merged
merged 5 commits into from
Mar 28, 2024
Merged

Upgrade react-native to 0.73.4 #1996

merged 5 commits into from
Mar 28, 2024

Conversation

myxmaster
Copy link
Contributor

Description

Based on #1988.

Updated lots of react-native and other packages.

There was a problem with the react-native-tor package which is described here: Sifir-io/react-native-tor#57
I created a workaround by removing the incompatible JNI in the library.

All the updates for iOS related files still need to be done:
https://react-native-community.github.io/upgrade-helper/?from=0.72.10&to=0.73.4

This pull request is categorized as a:

  • New feature
  • Bug fix
  • Code refactor
  • Configuration change
  • Locales update
  • Quality assurance
  • Other

Checklist

  • I’ve run yarn run tsc and made sure my code compiles correctly
  • I’ve run yarn run lint and made sure my code didn’t contain any problematic patterns
  • I’ve run yarn run prettier and made sure my code is formatted correctly
  • I’ve run yarn run test and made sure all of the tests pass

Testing

If you modified or added a utility file, did you add new unit tests?

  • No, I’m a fool
  • Yes
  • N/A

I have tested this PR on the following platforms (please specify OS version and phone model/VM):

  • Android
  • iOS

I have tested this PR with the following types of nodes (please specify node version and API version where appropriate):

  • Embedded LND
  • LND (REST)
  • LND (Lightning Node Connect)
  • Core Lightning (c-lightning-REST)
  • LndHub
  • [DEPRECATED] Core Lightning (Spark)
  • [DEPRECATED] Eclair

Locales

  • I’ve added new locale text that requires translations
  • I’m aware that new translations should be made on the ZEUS Transfix page and not directly to this repo

Third Party Dependencies and Packages

  • Contributors will need to run yarn after this PR is merged in
  • 3rd party dependencies have been modified:
    • verify that package.json and yarn.lock have been properly updated
    • verify that dependencies are installed for both iOS and Android platforms

Other:

  • Changes were made that require an update to the README
  • Changes were made that require an update to onboarding

patch-sifir_android.mjs Outdated Show resolved Hide resolved
@myxmaster myxmaster marked this pull request as ready for review February 27, 2024 20:38
@kaloudis kaloudis added this to the v0.8.3 milestone Mar 5, 2024
@kaloudis
Copy link
Contributor

Hitting a bunch of pods issues. Gonna have to roll my sleeves up on the iOS side

@kaloudis
Copy link
Contributor

iOS changes pushed

package.json Outdated
@@ -18,7 +18,7 @@
"start": "react-native start",
"ra": "react-native run-android",
"ri": "react-native run-ios",
"postinstall": "rn-nodeify --install --hack & npx jetify & yarn run patch & react-native setup-ios-permissions & yarn run fetch-libraries & pod-install",
"postinstall": "rn-nodeify --install --hack & node patches/patch-sifir_android.mjs & npx jetify & yarn run patch & react-native setup-ios-permissions & yarn run fetch-libraries & pod-install",
Copy link
Contributor

Choose a reason for hiding this comment

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

any reason why node patches/patch-sifir_android.mjs isn't made part of the patch command instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, it's only git patches... and jetifier stuff is also not part of the patch command.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it should go along with the patches

@kaloudis
Copy link
Contributor

kaloudis commented Mar 24, 2024

On a fresh install the following error is thrown:

      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, scandir 'node_modules/react-native-tor/android/libs/sifir_android/META-INF/com/android/build'
Emitted 'error' event at:
    at onreaddir (/Users/satoshi/Repos/kaloudis/zeus/node_modules/findit/index.js:116:21)
    at /Users/satoshi/Repos/kaloudis/zeus/node_modules/findit/index.js:31:17
    at FSReqCallback.oncomplete (node:fs:191:23) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: 'node_modules/react-native-tor/android/libs/sifir_android/META-INF/com/android/build'
}

Node.js v20.11.1

@kaloudis
Copy link
Contributor

On a fresh install the following error is thrown:

      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, scandir 'node_modules/react-native-tor/android/libs/sifir_android/META-INF/com/android/build'
Emitted 'error' event at:
    at onreaddir (/Users/satoshi/Repos/kaloudis/zeus/node_modules/findit/index.js:116:21)
    at /Users/satoshi/Repos/kaloudis/zeus/node_modules/findit/index.js:31:17
    at FSReqCallback.oncomplete (node:fs:191:23) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: 'node_modules/react-native-tor/android/libs/sifir_android/META-INF/com/android/build'
}

Node.js v20.11.1

this goes away if node patches/patch-sifir_android.mjs is moved to patch. File must be made with jetify

@kaloudis kaloudis merged commit 25ccb86 into ZeusLN:master Mar 28, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants