1.0.0 • Published 5 years ago
react-native-google-safetynet v1.0.0
SafetyNet for React Native
About SafetyNet
Google provides an API to verify device integrity and detect harmful apps. See the SafetyNet documentation for more information.
Getting started
$ npm install react-native-google-safetynet --save
or
$ yarn add react-native-google-safetynet
Mostly automatic installation
$ react-native link react-native-google-safetynet
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.rajivshah.safetynet.RNGoogleSafetyNetPackage;
to the imports at the top of the file - Add
new RNGoogleSafetyNetPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-google-safetynet' project(':react-native-google-safetynet').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-google-safetynet/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-google-safetynet')
Usage
See the full documentation here
import RNGoogleSafetyNet from 'react-native-google-safetynet';
// TODO: What to do with the module?
1.0.0
5 years ago
0.4.0
5 years ago
0.3.4
5 years ago
0.3.3
6 years ago
0.3.2
6 years ago
0.3.0
6 years ago
0.2.3
6 years ago
0.2.2
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago