Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tru-sdk-react-native

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tru-sdk-react-native

React Native SDK for tru.ID

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

tru-sdk-react-native

License

React Native package for tru.ID

Installation

npm install tru-sdk-react-native

For Android, add the following to your application's build.gradle:

maven {
    url "https://gitlab.com/api/v4/projects/22035475/packages/maven"
}

Note: we'll begin publishing our Android SDK to Maven central shortly.

Usage

import TruSdkReactNative from "tru-sdk-react-native";

// ...

// Make a GET request using the cellular connection to the check URL
await TruSdkReactNative.openCheckUrl(checkUrl);

// Make a GET request using the cellular connection supplied URL
// Expects a JSON response and the value for the key identified by the second parameter
// will be returned. e.g. "ip_address" in the example below.
const ipAddress = await TruSdkReactNative.getJsonPropertyValue(
    `https://${BASE_URL}/my-ip`,
    'ip_address'
  );

Run example

The SDK contains an embedded example to make building and testing the SDK bridge easier.

  • For iOS: Require Xcode 12+
  • For Android:
    • Require JDK 14 (Java version 14.02 / Gradle v6.3).
    • Android Studio or Android SDK manager via Android developer downloads.
    • Set ANDROID_HOME environment variable (ie export ANDROID_HOME=~/Library/Android/sdk). Although $ANDROID_HOME is apparently deprecated it is still required.
    • Accepted the SDK licenses $ANDROID_HOME/tools/bin/sdkmanager --licenses or $ANDROID_SDK_ROOT/tools/bin/sdkmanager --licenses
  • For metro bundler, require node version > 10
  • yarn bootstrap && cd examples
    • Run Android: yarn android
    • Run iOS: yarn ios

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

Development

Releasing

Update CHANGELOG.md and finesse.

$ yarn run changelog

Commit the changes:

$ git commit -m 'chore(release): v{version}'

Tag:

$ git tag v{version}

Publish a new canary build to test.

$ yarn run publish:canary

Publish a full version:

$ yarn run publish:latest

Meta

Distributed under the MIT license. See LICENSE for more information.

https://github.com/tru-ID

Keywords

FAQs

Package last updated on 05 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc