Installation
info
If you don't have NPM token, please contact us at info@silencelaboratories.com.
Configure Your Package Manager
Configure your package manager with a private token provided by us to access the private registry.
- yarn v2
- yarn v1 / npm
- Create a
.yarnrc.ymlfile in the root of your project and add the following line:
npmScopes:
"silencelaboratories":
npmAlwaysAuth: true
npmRegistryServer: "https://registry.npmjs.org"
npmAuthToken: ${NPM_TOKEN}
- Create a
.npmrcfile in the root of your project and add the following line:
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
- Add the npm token as an environment variable, e.g., in a terminal session run:
export NPM_TOKEN=your-npm-token
Install the packages
Now you can install the Silent Shard SDK packages.
- npm
- yarn
npm install @silencelaboratories/silent-shard-sdk @silencelaboratories/dkls-sdk @silencelaboratories/schnorr-sdk
yarn add @silencelaboratories/silent-shard-sdk @silencelaboratories/dkls-sdk @silencelaboratories/schnorr-sdk
- Android
- iOS
- Expo
No additional steps are required.
To run on the iOS platform, install pods before running the application:
cd ios && pod install
For the current version of libraries, doesn't support Expo Go projects.
However, Expo users can use the Expo prebuild to extract native modules. Then auto-link should handle the linking of the native dependencies.
In the root of your project, run:
npx expo prebuild
After the prebuild is done, you can run the project on your desired platform:
npx expo run:android
or
npx expo run:ios