@survicate/react-native-survicate 3.0.1 → 3.0.3

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
@@ -3,7 +3,7 @@
3
3
  ## Requirements:
4
4
  - iOS at least on version 12.0
5
5
  - Android at least on version 5
6
- - React Native at least on version 0.59.10
6
+ - React Native at least on version 0.60.0
7
7
 
8
8
  ## Getting started
9
9
 
@@ -74,5 +74,5 @@ repositories {
74
74
  dependencies {
75
75
  //noinspection GradleDynamicVersion
76
76
  implementation 'com.facebook.react:react-native:+' // From node_modules
77
- implementation 'com.survicate:survicate-sdk:3.0.1'
77
+ implementation 'com.survicate:survicate-sdk:3.0.2'
78
78
  }
@@ -51,6 +51,11 @@ public class SurvicateBindingsModule extends ReactContextBaseJavaModule {
51
51
  Survicate.init(reactContext);
52
52
  }
53
53
 
54
+ @ReactMethod
55
+ public void initializeSdk() {
56
+ Survicate.init(reactContext);
57
+ }
58
+
54
59
  @ReactMethod
55
60
  public void reset() {
56
61
  Survicate.reset();
@@ -40,6 +40,11 @@ RCT_EXPORT_METHOD(initialize)
40
40
  [[SurvicateSdk shared] initialize];
41
41
  }
42
42
 
43
+ RCT_EXPORT_METHOD(initializeSdk)
44
+ {
45
+ [[SurvicateSdk shared] initialize];
46
+ }
47
+
43
48
  RCT_EXPORT_METHOD(reset)
44
49
  {
45
50
  [[SurvicateSdk shared] reset];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@survicate/react-native-survicate",
3
3
  "title": "React Native Survicate Bindings",
4
- "version": "3.0.1",
4
+ "version": "3.0.3",
5
5
  "description": "React Native bindings for Survicate Mobile SDK",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -9,8 +9,8 @@
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "git+https://github.com/Survicate/react-native-survicate.git",
13
- "baseUrl": "https://github.com/Survicate/react-native-survicate"
12
+ "url": "git+https://github.com/Survicate/survicate-react-native-sdk.git",
13
+ "baseUrl": "https://github.com/Survicate/survicate-react-native-sdk"
14
14
  },
15
15
  "keywords": [
16
16
  "react-native"
@@ -23,11 +23,11 @@
23
23
  "licenseFilename": "LICENSE",
24
24
  "readmeFilename": "README.md",
25
25
  "peerDependencies": {
26
- "react": ">=16.8.1",
27
- "react-native": ">=0.59.0-rc.0 <1.0.x"
26
+ "react": ">=16.8.6",
27
+ "react-native": ">=0.60.0"
28
28
  },
29
29
  "devDependencies": {
30
- "react": "^16.8.3",
31
- "react-native": "^0.59.10"
30
+ "react": "18.2.0",
31
+ "react-native": "0.72.4"
32
32
  }
33
33
  }
@@ -9,18 +9,18 @@ Pod::Spec.new do |s|
9
9
  s.description = <<-DESC
10
10
  React Native bindings for Survicate Mobile SDK
11
11
  DESC
12
- s.homepage = "https://github.com/Survicate/react-native-survicate"
12
+ s.homepage = "https://github.com/Survicate/survicate-react-native-sdk"
13
13
  s.license = "MIT"
14
14
  # s.license = { :type => "MIT", :file => "FILE_LICENSE" }
15
15
  s.authors = { "Survicate" => "help@survicate.com" }
16
16
  s.platforms = { :ios => "10.0" }
17
- s.source = { :git => "https://github.com/Survicate/react-native-survicate.git", :tag => "#{s.version}" }
17
+ s.source = { :git => "https://github.com/Survicate/survicate-react-native-sdk.git", :tag => "#{s.version}" }
18
18
 
19
19
  s.source_files = "ios/**/*.{h,m,swift}"
20
20
  s.requires_arc = true
21
21
 
22
22
  s.dependency "React"
23
- s.dependency "Survicate", "3.0.1"
23
+ s.dependency "Survicate", "3.0.2"
24
24
  # ...
25
25
  # s.dependency "..."
26
26
  end