@qore-id/react-native-qoreid-sdk 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  QoreID React Native SDK
2
2
 
3
3
 
4
- Link to [documentation](https://dash.readme.com/project/qoreid/v1.0/docs/qoreid-react-native-sdk)
4
+ Link to [documentation](https://docs.qoreid.com/docs/qoreid-react-native-sdk)
5
5
 
6
6
  ## Installation
7
7
 
@@ -36,6 +36,13 @@ Add this snippet of code to your `~/java/com.<app name>/MainActivity`
36
36
 
37
37
  ```
38
38
 
39
+ Add this import statement above the class
40
+
41
+ ```java
42
+ import com.qoreidsdk.QoreidSdkModule;
43
+
44
+ ```
45
+
39
46
  <!-- ### iOS
40
47
 
41
48
  From your root directory
@@ -43,7 +50,19 @@ From your root directory
43
50
  ```sh
44
51
  npm i react-native-webview
45
52
  ``` -->
46
-
53
+ ## Permissions
54
+ Certain services on QoreID require device permissions to work properly. Follow the instructions [here](https://docs.qoreid.com/docs/permissions) to add the required permissions to your `~/android/app/src/main/AndroidManifest.xml` file.
55
+
56
+ Verifind required permissions
57
+ ```xml
58
+ ...
59
+ <!-- Required for Verifind -->
60
+ <uses-permission android:name="android.permission.ACTIVITY_RECOGNITION" />
61
+ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
62
+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
63
+ <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
64
+ ...
65
+ ```
47
66
 
48
67
  ## Usage
49
68
 
@@ -109,8 +128,6 @@ function App() {
109
128
 
110
129
 
111
130
 
112
-
113
-
114
131
  ### Utilities
115
132
 
116
133
  QoreId SDK exposes utilities that you can easily use
@@ -92,7 +92,7 @@ dependencies {
92
92
  // For < 0.71, this will be from the local maven repo
93
93
  // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
94
94
  //noinspection GradleDynamicVersion
95
- implementation 'com.qoreid:qoreid-sdk:1.1.0'
95
+ implementation 'com.qoreid:qoreid-sdk:1.1.1'
96
96
  implementation "com.google.code.gson:gson:2.8.5"
97
97
  implementation "com.facebook.react:react-native:+"
98
98
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qore-id/react-native-qoreid-sdk",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "QoreId React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",