scatesdk-react 0.4.9 → 0.4.10
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 +19 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,9 +21,28 @@ repositories {
|
|
|
21
21
|
|
|
22
22
|
### ⚠️ Attention ⚠️
|
|
23
23
|
|
|
24
|
+
In your android/app/build.gradle file, under buildTypes, please add the following lines:
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
buildTypes {
|
|
28
|
+
release {
|
|
29
|
+
minifyEnabled false
|
|
30
|
+
shrinkResources false
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**Note:**
|
|
24
36
|
If you enable `minifyEnabled` (code shrinking and obfuscation) in your `build.gradle`,
|
|
25
37
|
you must keep ScateSDK classes to avoid issues with JSON serialization (such as `@SerializedName` fields turning into random letters).
|
|
26
38
|
|
|
39
|
+
To do this, add the following to your proguard-rules.pro file:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
-keep class com.scatesdkreact.** { *; }
|
|
43
|
+
-keepclassmembers class com.scatesdkreact.** { *; }
|
|
44
|
+
```
|
|
45
|
+
|
|
27
46
|
## Usage
|
|
28
47
|
|
|
29
48
|
### Initialize the SDK
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scatesdk-react",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.10",
|
|
4
4
|
"description": "Scate SDK is made for developers to integrate Scate's services into their apps. Please visit https://www.scate.io for more information.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|