react-native-prizor-sdk-module 3.3.0 → 3.3.2
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 +24 -2
- package/android/build.gradle +1 -1
- package/ios/PrizorSdkModule.swift +2 -24
- package/package.json +1 -1
- package/react-native-prizor-sdk-module.podspec +1 -1
package/README.md
CHANGED
|
@@ -16,9 +16,9 @@ Open `ios/Podfile` and fill the requirements above:
|
|
|
16
16
|
```Podfile
|
|
17
17
|
use_frameworks!
|
|
18
18
|
```
|
|
19
|
-
- Set minimum deployment target to `
|
|
19
|
+
- Set minimum deployment target to `12.0`
|
|
20
20
|
```Podfile
|
|
21
|
-
platform :ios, '
|
|
21
|
+
platform :ios, '12.0'
|
|
22
22
|
```
|
|
23
23
|
- Add private repository `source`
|
|
24
24
|
```Podfile
|
|
@@ -92,6 +92,28 @@ android {
|
|
|
92
92
|
}
|
|
93
93
|
```
|
|
94
94
|
|
|
95
|
+
Allow Prizor to request the opening of other apps on the user's device by adding the <queries> tag in the AndroidManifest.xml:
|
|
96
|
+
|
|
97
|
+
```xml
|
|
98
|
+
...
|
|
99
|
+
<queries>
|
|
100
|
+
<package android:name="com.whatsapp" />
|
|
101
|
+
<package android:name="com.whatsapp.w4b" />
|
|
102
|
+
<intent>
|
|
103
|
+
<action android:name="android.intent.action.VIEW" />
|
|
104
|
+
<data android:scheme="https" />
|
|
105
|
+
</intent>
|
|
106
|
+
<intent>
|
|
107
|
+
<action android:name="android.intent.action.DIAL" />
|
|
108
|
+
<data android:scheme="tel" />
|
|
109
|
+
</intent>
|
|
110
|
+
<intent>
|
|
111
|
+
<action android:name="android.intent.action.SEND" />
|
|
112
|
+
<data android:mimeType="*/*" />
|
|
113
|
+
</intent>
|
|
114
|
+
</queries>
|
|
115
|
+
```
|
|
116
|
+
|
|
95
117
|
Configure the Prizor's private maven repository:
|
|
96
118
|
|
|
97
119
|
- **1st option:** set the environment variables `MAVEN_PRIZOR_USERNAME` and `MAVEN_PRIZOR_PASSWORD` with the given credentials
|
package/android/build.gradle
CHANGED
|
@@ -35,7 +35,7 @@ android {
|
|
|
35
35
|
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
|
|
36
36
|
buildToolsVersion getExtOrDefault('buildToolsVersion')
|
|
37
37
|
defaultConfig {
|
|
38
|
-
minSdkVersion
|
|
38
|
+
minSdkVersion 21
|
|
39
39
|
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
|
|
40
40
|
versionCode 1
|
|
41
41
|
versionName "1.0"
|
|
@@ -15,18 +15,7 @@ class PrizorSdkModule: NSObject {
|
|
|
15
15
|
PrizorManager.startPrizor(
|
|
16
16
|
from: viewController,
|
|
17
17
|
withJson: jsonData,
|
|
18
|
-
animated: false
|
|
19
|
-
onDocumentSendStart: null,
|
|
20
|
-
onDocumentSendSuccess: null,
|
|
21
|
-
onDocumentSendError: null,
|
|
22
|
-
onCampaignTermsAccepted: null,
|
|
23
|
-
onCampaignParticipationSuccess: null,
|
|
24
|
-
onWizardStart: null,
|
|
25
|
-
onWizardSuccess: null,
|
|
26
|
-
onWizardError: null,
|
|
27
|
-
onDocumentListOpened: null,
|
|
28
|
-
onLuckynumberListOpened: null,
|
|
29
|
-
onBenefitListOpened: null
|
|
18
|
+
animated: false
|
|
30
19
|
)
|
|
31
20
|
}
|
|
32
21
|
}
|
|
@@ -39,18 +28,7 @@ class PrizorSdkModule: NSObject {
|
|
|
39
28
|
PrizorManager.startPrizor(
|
|
40
29
|
from: viewController,
|
|
41
30
|
with: keyValuePairs,
|
|
42
|
-
animated: false
|
|
43
|
-
onDocumentSendStart: null,
|
|
44
|
-
onDocumentSendSuccess: null,
|
|
45
|
-
onDocumentSendError: null,
|
|
46
|
-
onCampaignTermsAccepted: null,
|
|
47
|
-
onCampaignParticipationSuccess: null,
|
|
48
|
-
onWizardStart: null,
|
|
49
|
-
onWizardSuccess: null,
|
|
50
|
-
onWizardError: null,
|
|
51
|
-
onDocumentListOpened: null,
|
|
52
|
-
onLuckynumberListOpened: null,
|
|
53
|
-
onBenefitListOpened: null
|
|
31
|
+
animated: false
|
|
54
32
|
)
|
|
55
33
|
}
|
|
56
34
|
}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.license = package["license"]
|
|
11
11
|
s.authors = package["author"]
|
|
12
12
|
|
|
13
|
-
s.platforms = { :ios => "
|
|
13
|
+
s.platforms = { :ios => "12.0" }
|
|
14
14
|
s.source = { :git => "https://git-ext.crmall.com/npm/react-native-prizor-sdk-module.git", :tag => "#{s.version}" }
|
|
15
15
|
|
|
16
16
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|