@sodyo/react-native-sodyo-sdk 3.2.2 → 3.5.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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
# React Native Sodyo SDK Plugin that wraps Sodyo sdk for Android and iOS
|
|
3
3
|
|
|
4
|
-
[SodyoSDK for iOS](https://github.com/sodyo-ltd/SodyoSDKPod) v3.54.
|
|
4
|
+
[SodyoSDK for iOS](https://github.com/sodyo-ltd/SodyoSDKPod) v3.54.28
|
|
5
5
|
|
|
6
|
-
[SodyoSDK for Android](https://search.maven.org/search?q=a:sodyo-android-sdk) v3.54.
|
|
6
|
+
[SodyoSDK for Android](https://search.maven.org/search?q=a:sodyo-android-sdk) v3.54.39
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
## Install
|
package/RNSodyoSdk.podspec
CHANGED
|
@@ -12,11 +12,11 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
s.author = package['author']
|
|
13
13
|
s.homepage = package['homepage']
|
|
14
14
|
s.platform = :ios, "11.0"
|
|
15
|
-
s.source = { :git => "https://github.com/sodyo-ltd/SodyoSDKPod", :commit => "
|
|
15
|
+
s.source = { :git => "https://github.com/sodyo-ltd/SodyoSDKPod", :commit => "0f595bd" }
|
|
16
16
|
s.source_files = "ios/**/*.{h,m}"
|
|
17
17
|
s.requires_arc = true
|
|
18
18
|
|
|
19
19
|
s.dependency "React"
|
|
20
|
-
s.dependency "SodyoSDK", "3.54.
|
|
20
|
+
s.dependency "SodyoSDK", "3.54.28"
|
|
21
21
|
end
|
|
22
22
|
|
package/android/build.gradle
CHANGED
|
@@ -55,7 +55,7 @@ repositories {
|
|
|
55
55
|
|
|
56
56
|
dependencies {
|
|
57
57
|
implementation ('com.facebook.react:react-native:+')
|
|
58
|
-
implementation ('com.sodyo:sodyo-android-sdk:3.54.
|
|
58
|
+
implementation ('com.sodyo:sodyo-android-sdk:3.54.39') {
|
|
59
59
|
transitive = true
|
|
60
60
|
exclude group: 'com.parse.bolts', module: 'bolts-android'
|
|
61
61
|
}
|
|
@@ -271,6 +271,13 @@ public class RNSodyoSdkModule extends ReactContextBaseJavaModule {
|
|
|
271
271
|
Sodyo.performMarker(markerId, activity);
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
+
@ReactMethod
|
|
275
|
+
public void startTroubleshoot() {
|
|
276
|
+
Log.i(TAG, "startTroubleshoot()");
|
|
277
|
+
Activity activity = getCurrentActivity();
|
|
278
|
+
Sodyo.startTroubleshoot(activity);
|
|
279
|
+
}
|
|
280
|
+
|
|
274
281
|
@ReactMethod
|
|
275
282
|
public void setSodyoLogoVisible(Boolean isVisible) {
|
|
276
283
|
Log.i(TAG, "setSodyoLogoVisible()");
|
package/package.json
CHANGED
package/sodyosdk.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ declare const _default: {
|
|
|
18
18
|
removeAllListeners (eventType?: string): void
|
|
19
19
|
onMarkerContent (callback: (markerId: string, data: { [key: string]: any }) => void): () => void,
|
|
20
20
|
performMarker (markerId: string): void,
|
|
21
|
+
startTroubleshoot (): void,
|
|
21
22
|
setSodyoLogoVisible (isVisible: boolean): void,
|
|
22
23
|
setEnv(env: TEnv): void,
|
|
23
24
|
}
|
package/sodyosdk.js
CHANGED
|
@@ -89,6 +89,10 @@ export default {
|
|
|
89
89
|
return RNSodyoSdk.performMarker(markerId);
|
|
90
90
|
},
|
|
91
91
|
|
|
92
|
+
startTroubleshoot: () => {
|
|
93
|
+
return RNSodyoSdk.startTroubleshoot();
|
|
94
|
+
},
|
|
95
|
+
|
|
92
96
|
start: (successCallback, errorCallback) => {
|
|
93
97
|
eventEmitter.removeAllListeners('EventMarkerDetectSuccess');
|
|
94
98
|
eventEmitter.removeAllListeners('EventMarkerDetectError');
|