Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ Supported Platforms:

Currently only a subset of the libsodium-wrappers exposed functionality is implemented. For missing functionality we welcome pull-requests or you can sponsor the development. Get in touch with us at `hi@serenity.re`.

## Requirements

- Node.js >= 20.19.4 (CI uses 20.20.0 via `.nvmrc`)
- Example app follows React Native 0.83 defaults:
- iOS deployment target 15.1 (via `min_ios_version_supported`)
- Android `minSdkVersion` 24
- New Architecture enabled

## Installation Expo (dev-client)

This package support the Expo plugin system and can be used together with the [Expo dev-client](https://docs.expo.dev/clients/introduction/).
Expand All @@ -36,8 +44,6 @@ npm install react-native-libsodium
cd ios && pod install
```

Note: The example app’s `example/ios/Podfile` patches the Boost podspec URL to use `archives.boost.io` because the default `boostorg.jfrog.io` endpoint redirects and can fail checksum verification.

## Usage

**Hint:** see the `example` app in the repository regarding how to use the functions
Expand Down
4 changes: 2 additions & 2 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ def enableProguardInReleaseBuilds = false
* The preferred build flavor of JavaScriptCore (JSC)
*
* For example, to use the international variant, you can use:
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
* `def jscFlavor = 'io.github.react-native-community:jsc-android-intl:2026004.+'`
*
* The international variant includes ICU i18n library and necessary data
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
* give correct results when using with locales other than en-US. Note that
* this variant is about 6MiB larger per architecture than default.
*/
def jscFlavor = 'io.github.react-native-community:jsc-android-intl:2026004.+'
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'

/**
* Private function to get the list of Native Architectures you want to build.
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
"webpack-dev-server": "^5.2.3"
},
"engines": {
"node": ">=20.20"
"node": ">=20.20.0"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"react-native": "*"
},
"engines": {
"node": ">= 20.0.0"
"node": ">= 20.20.0"
},
"packageManager": "yarn@1.22.21",
"jest": {
Expand Down
Loading