Skip to content

Commit 23c8ed7

Browse files
committed
v13.9.0
1 parent 4c548dc commit 23c8ed7

File tree

8 files changed

+335
-1666
lines changed

8 files changed

+335
-1666
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ repositories {
5656

5757
dependencies {
5858
implementation "com.facebook.react:react-native:+"
59-
implementation group: 'io.gleap', name: 'gleap-android-sdk', version: '13.8.3'
59+
implementation group: 'io.gleap', name: 'gleap-android-sdk', version: '13.9.0'
6060

6161
if(rootProject && rootProject.ext) {
6262
if(rootProject.ext.targetSdkVersion == 30 || rootProject.ext.compileSdkVersion == 30) {

android/src/main/java/com/reactnativegleapsdk/GleapsdkModule.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,20 @@ public void showSurvey(String surveyId, String format) {
11601160
Gleap.getInstance().showSurvey(surveyId, surveyFormat);
11611161
}
11621162

1163+
@ReactMethod
1164+
public void openConversations(Boolean showBackButton) {
1165+
try {
1166+
getActivitySafe().runOnUiThread(
1167+
new Runnable() {
1168+
@Override
1169+
public void run() {
1170+
Gleap.getInstance().openConversations(showBackButton);
1171+
}
1172+
});
1173+
} catch (NoUiThreadException e) {
1174+
}
1175+
}
1176+
11631177
@ReactMethod
11641178
public void startConversation(Boolean showBackButton) {
11651179
try {

example/ios/Podfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ PODS:
1010
- React-jsi (= 0.71.11)
1111
- ReactCommon/turbomodule/core (= 0.71.11)
1212
- fmt (6.2.1)
13-
- Gleap (13.8.0)
13+
- Gleap (13.9.1)
1414
- glog (0.3.5)
1515
- hermes-engine (0.71.11):
1616
- hermes-engine/Pre-built (= 0.71.11)
@@ -267,8 +267,8 @@ PODS:
267267
- React-jsinspector (0.71.11)
268268
- React-logger (0.71.11):
269269
- glog
270-
- react-native-gleapsdk (13.8.0):
271-
- Gleap (= 13.8.0)
270+
- react-native-gleapsdk (13.9.0):
271+
- Gleap (= 13.9.1)
272272
- React-Core
273273
- React-perflogger (0.71.11)
274274
- React-RCTActionSheet (0.71.11):
@@ -479,7 +479,7 @@ SPEC CHECKSUMS:
479479
FBLazyVector: c511d4cd0210f416cb5c289bd5ae6b36d909b048
480480
FBReactNativeSpec: a911fb22def57aef1d74215e8b6b8761d25c1c54
481481
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
482-
Gleap: 870bdc3546bc6d09c4804c99aa95fd04ceeedd14
482+
Gleap: 502ec8d28d4fef2ca83ffd606aca4b7db9990b72
483483
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
484484
hermes-engine: 34c863b446d0135b85a6536fa5fd89f48196f848
485485
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
@@ -497,7 +497,7 @@ SPEC CHECKSUMS:
497497
React-jsiexecutor: 18b5b33c5f2687a784a61bc8176611b73524ae77
498498
React-jsinspector: b6ed4cb3ffa27a041cd440300503dc512b761450
499499
React-logger: 186dd536128ae5924bc38ed70932c00aa740cd5b
500-
react-native-gleapsdk: 4feae3987b096ba2cbce7a726d128807ba369123
500+
react-native-gleapsdk: 3bf79d6f878a39601d925bbb18eb98d06cd92844
501501
React-perflogger: e706562ab7eb8eb590aa83a224d26fa13963d7f2
502502
React-RCTActionSheet: 57d4bd98122f557479a3359ad5dad8e109e20c5a
503503
React-RCTAnimation: ccf3ef00101ea74bda73a045d79a658b36728a60

example/package-lock.json

Lines changed: 280 additions & 1635 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/Gleapsdk.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,13 @@ - (void)stopObserving
255255
});
256256
}
257257

258+
RCT_EXPORT_METHOD(openConversations:(BOOL)showBackButton)
259+
{
260+
dispatch_async(dispatch_get_main_queue(), ^{
261+
[Gleap openConversations: showBackButton];
262+
});
263+
}
264+
258265
RCT_EXPORT_METHOD(startConversation:(BOOL)showBackButton)
259266
{
260267
dispatch_async(dispatch_get_main_queue(), ^{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-gleapsdk",
3-
"version": "13.8.5",
3+
"version": "13.9.0",
44
"description": "Know exactly why and how a bug happened. Get reports with screenshots, live action replays and all of the important metadata every time.",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

react-native-gleapsdk.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
1616
s.source_files = "ios/**/*.{h,m,mm}"
1717

1818
s.dependency "React-Core"
19-
s.dependency "Gleap", "13.8.5"
19+
s.dependency "Gleap", "13.9.1"
2020
end

src/index.tsx

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ type GleapSdkType = {
4343
replays?: Boolean;
4444
}
4545
): void;
46+
openConversations(showBackButton: boolean): void;
4647
startConversation(showBackButton: boolean): void;
4748
startClassicForm(formId: string, showBackButton: boolean): void;
4849
open(): void;
@@ -102,31 +103,33 @@ type GleapSdkType = {
102103
getIdentity(): Promise<any>;
103104
isUserIdentified(): Promise<boolean>;
104105
setTicketAttribute(key: string, value: string): void;
105-
setAiTools(tools: {
106-
name: string;
107-
description: string;
108-
response: string;
109-
executionType: "auto" | "button";
110-
parameters: {
106+
setAiTools(
107+
tools: {
111108
name: string;
112109
description: string;
113-
type: "string" | "number" | "boolean";
114-
required: boolean;
115-
enums?: string[];
116-
}[];
117-
}[]): void;
110+
response: string;
111+
executionType: 'auto' | 'button';
112+
parameters: {
113+
name: string;
114+
description: string;
115+
type: 'string' | 'number' | 'boolean';
116+
required: boolean;
117+
enums?: string[];
118+
}[];
119+
}[]
120+
): void;
118121
};
119122

120123
const GleapSdk = NativeModules.Gleapsdk
121124
? NativeModules.Gleapsdk
122125
: new Proxy(
123-
{},
124-
{
125-
get() {
126-
throw new Error(LINKING_ERROR);
127-
},
128-
}
129-
);
126+
{},
127+
{
128+
get() {
129+
throw new Error(LINKING_ERROR);
130+
},
131+
}
132+
);
130133

131134
if (GleapSdk && !GleapSdk.touched) {
132135
const networkLogger = new GleapNetworkIntercepter();
@@ -200,27 +203,27 @@ if (GleapSdk && !GleapSdk.touched) {
200203
GleapSdk.startNetworkLogging();
201204
}
202205
notifyCallback('configLoaded', configJSON);
203-
} catch (exp) { }
206+
} catch (exp) {}
204207
});
205208

206209
gleapEmitter.addListener('initialized', () => {
207210
try {
208211
notifyCallback('initialized');
209-
} catch (exp) { }
212+
} catch (exp) {}
210213
});
211214

212215
gleapEmitter.addListener('toolExecution', (data) => {
213216
try {
214217
const dataJSON = data instanceof Object ? data : JSON.parse(data);
215218
notifyCallback('toolExecution', dataJSON);
216-
} catch (exp) { }
219+
} catch (exp) {}
217220
});
218221

219222
gleapEmitter.addListener('feedbackSent', (data) => {
220223
try {
221224
const dataJSON = data instanceof Object ? data : JSON.parse(data);
222225
notifyCallback('feedbackSent', dataJSON);
223-
} catch (exp) { }
226+
} catch (exp) {}
224227
});
225228

226229
gleapEmitter.addListener('feedbackFlowStarted', (feedbackAction) => {
@@ -271,7 +274,7 @@ if (GleapSdk && !GleapSdk.touched) {
271274
name,
272275
});
273276
}
274-
} catch (exp) { }
277+
} catch (exp) {}
275278
});
276279

277280
GleapSdk.removeAllAttachments();

0 commit comments

Comments
 (0)