scatesdk-react 0.4.8 → 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.
Files changed (2) hide show
  1. package/README.md +24 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -19,6 +19,30 @@ repositories {
19
19
  }
20
20
  ```
21
21
 
22
+ ### ⚠️ Attention ⚠️
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:**
36
+ If you enable `minifyEnabled` (code shrinking and obfuscation) in your `build.gradle`,
37
+ you must keep ScateSDK classes to avoid issues with JSON serialization (such as `@SerializedName` fields turning into random letters).
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
+
22
46
  ## Usage
23
47
 
24
48
  ### Initialize the SDK
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scatesdk-react",
3
- "version": "0.4.8",
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",