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

chore: update nodejs mobile to v18 #194

Merged
merged 3 commits into from
Feb 27, 2024
Merged

Conversation

achou11
Copy link
Member

@achou11 achou11 commented Feb 26, 2024

Towards #171

  • 1/N steps towards potentially addressing the app startup issues. This is not the culprit of our issues but allows us to make upgrades to the development environment and other important deps that are more likely to blame (looking at you expo...)
  • No app code changes
  • Improves build scripts
  • Updates the development node version to 20 (both frontend and backend)
  • Updates minimum android version to 7 (sdk 24) - this is required by nodejs mobile react native.

Confirmation log via adb:

02-26 18:23:47.848 14728 14828 E NODEJS-MOBILE: RUNNING NODE v18.17.1

@achou11 achou11 requested a review from ErikSin February 26, 2024 23:30
Comment on lines +43 to +44
// We use NDK >= 24 due to NodeJS Mobile React Native
ndkVersion = "24.0.8215888"
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think this was strictly necessary since we don't really rely on the ndk for nodejs-mobile, but maybe better to keep here (i didn't try without this change)

return `${name}-${version}-node-${NODE_ABI}-${target}.tar.gz`;
function getNodeJsMobileNodeVersions() {
const nodeVersionFilePath = new URL(
'android/libnode/include/node/node_version.h',
Copy link
Member Author

Choose a reason for hiding this comment

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

this corresponds to the header file that the NodeJS project places several version-related constants in

Copy link
Contributor

@ErikSin ErikSin left a comment

Choose a reason for hiding this comment

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

Everything (that was working before) seems to be working!

@achou11 achou11 merged commit fca0d5d into main Feb 27, 2024
@achou11 achou11 deleted the ac/update-nodejs-mobile-18 branch February 27, 2024 16:00
EvanHahn added a commit to digidem/mapeo-map-server that referenced this pull request Mar 4, 2024
This removes Node 16 support, given that (1) it is deprecated (2) it
[is no longer used in CoMapeo][0].

[0]: digidem/comapeo-mobile#194
EvanHahn added a commit to digidem/comapeo-core that referenced this pull request Mar 4, 2024
This removes Node 16 support, given that (1) it is deprecated (2) it
[is no longer used in CoMapeo][0].

[0]: digidem/comapeo-mobile#194
EvanHahn added a commit to digidem/comapeo-core that referenced this pull request Mar 4, 2024
This removes Node 16 support, given that (1) it is deprecated (2) it
[is no longer used in CoMapeo][0].

[0]: digidem/comapeo-mobile#194
EvanHahn added a commit to digidem/multi-core-indexer that referenced this pull request Mar 4, 2024
This removes Node 16 support, given that (1) it is deprecated (2) it
[is no longer used in CoMapeo][0].

[0]: digidem/comapeo-mobile#194
EvanHahn added a commit to digidem/mapeo-sqlite-indexer that referenced this pull request Mar 4, 2024
This removes Node 16 support, given that (1) it is deprecated (2) it
[is no longer used in CoMapeo][0].

[0]: digidem/comapeo-mobile#194
EvanHahn added a commit to digidem/mapeo-map-server that referenced this pull request Mar 4, 2024
This removes Node 16 support, given that (1) it is deprecated (2) it
[is no longer used in CoMapeo][0].

[0]: digidem/comapeo-mobile#194
EvanHahn added a commit to digidem/mapeo-sqlite-indexer that referenced this pull request Mar 13, 2024
This removes Node 16 support, given that (1) it is deprecated (2) it
[is no longer used in CoMapeo][0].

[0]: digidem/comapeo-mobile#194
EvanHahn added a commit to digidem/multi-core-indexer that referenced this pull request Mar 13, 2024
This removes Node 16 support, given that (1) it is deprecated (2) it
[is no longer used in CoMapeo][0].

[0]: digidem/comapeo-mobile#194
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