react-native-prizor-sdk-module 3.3.0 → 3.4.0
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
|
@@ -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
|
@@ -4,11 +4,11 @@ buildscript {
|
|
|
4
4
|
|
|
5
5
|
repositories {
|
|
6
6
|
google()
|
|
7
|
-
|
|
7
|
+
mavenCentral()
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
dependencies {
|
|
11
|
-
classpath 'com.android.tools.build:gradle:3.
|
|
11
|
+
classpath 'com.android.tools.build:gradle:3.5.4'
|
|
12
12
|
// noinspection DifferentKotlinGradleVersion
|
|
13
13
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
14
14
|
}
|
|
@@ -35,13 +35,13 @@ 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"
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
buildTypes {
|
|
46
46
|
release {
|
|
47
47
|
minifyEnabled false
|
|
@@ -73,7 +73,6 @@ rootProject.allprojects {
|
|
|
73
73
|
|
|
74
74
|
repositories {
|
|
75
75
|
mavenCentral()
|
|
76
|
-
jcenter()
|
|
77
76
|
google()
|
|
78
77
|
|
|
79
78
|
def found = false
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
PrizorSdkModule_kotlinVersion=1.
|
|
2
|
-
PrizorSdkModule_compileSdkVersion=
|
|
3
|
-
PrizorSdkModule_buildToolsVersion=
|
|
4
|
-
PrizorSdkModule_targetSdkVersion=
|
|
1
|
+
PrizorSdkModule_kotlinVersion=1.6.10
|
|
2
|
+
PrizorSdkModule_compileSdkVersion=31
|
|
3
|
+
PrizorSdkModule_buildToolsVersion=30.0.3
|
|
4
|
+
PrizorSdkModule_targetSdkVersion=31
|
|
@@ -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}"
|