react-native-prizor-sdk-module 4.5.4 → 4.5.7

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.
@@ -56,21 +56,21 @@ android {
56
56
  }
57
57
  }
58
58
 
59
- rootProject.allprojects {
60
- repositories {
61
- maven {
62
- url "https://maven.prizor.com/"
63
- credentials {
64
- username System.getenv('MAVEN_PRIZOR_USERNAME') ?: "username"
65
- password System.getenv('MAVEN_PRIZOR_PASSWORD') ?: "password"
66
- }
67
- }
68
- maven {
69
- url 'https://storage.googleapis.com/download.flutter.io'
70
- }
59
+
60
+ repositories {
61
+ maven {
62
+ url "https://maven.prizor.com/"
63
+ credentials {
64
+ username System.getenv('MAVEN_PRIZOR_USERNAME') ?: "username"
65
+ password System.getenv('MAVEN_PRIZOR_PASSWORD') ?: "password"
71
66
  }
67
+ }
68
+ maven {
69
+ url 'https://storage.googleapis.com/download.flutter.io'
70
+ }
72
71
  }
73
72
 
73
+
74
74
  repositories {
75
75
  mavenCentral()
76
76
  google()
@@ -12,9 +12,10 @@ class PrizorSdkModuleModule(reactContext: ReactApplicationContext) : ReactContex
12
12
  @ReactMethod
13
13
  fun startWithJson(jsonString: String) {
14
14
  if (!this.reactApplicationContext.hasCurrentActivity()) return;
15
- this.reactApplicationContext.currentActivity?.runOnUiThread {
15
+ this.reactApplicationContext.currentActivity?.runOnUiThread {
16
16
  PrizorManager.startPrizor(
17
- this.reactApplicationContext.currentActivity,
17
+ this.reactApplicationContext.currentActivity,
18
+ false,
18
19
  jsonString,
19
20
  null,
20
21
  null,
@@ -27,16 +28,17 @@ class PrizorSdkModuleModule(reactContext: ReactApplicationContext) : ReactContex
27
28
  null,
28
29
  null,
29
30
  null
30
- )
31
+ )
31
32
  }
32
33
  }
33
34
 
34
35
  @ReactMethod
35
36
  fun startWithKeyValuePairs(keyValuePairs: ReadableMap) {
36
37
  if (!this.reactApplicationContext.hasCurrentActivity()) return;
37
- this.reactApplicationContext.currentActivity?.runOnUiThread {
38
+ this.reactApplicationContext.currentActivity?.runOnUiThread {
38
39
  PrizorManager.startPrizor(
39
- this.reactApplicationContext.currentActivity,
40
+ this.reactApplicationContext.currentActivity,
41
+ false,
40
42
  keyValuePairs.toHashMap(),
41
43
  null,
42
44
  null,
@@ -49,7 +51,7 @@ class PrizorSdkModuleModule(reactContext: ReactApplicationContext) : ReactContex
49
51
  null,
50
52
  null,
51
53
  null
52
- )
54
+ )
53
55
  }
54
56
  }
55
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-prizor-sdk-module",
3
- "version": "4.5.4",
3
+ "version": "4.5.7",
4
4
  "description": "iOS and Android native integration for Prizor SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
File without changes
@@ -1,2 +0,0 @@
1
- #Wed Aug 21 21:12:24 BRT 2024
2
- gradle.version=8.9
File without changes