react-native-gleapsdk 8.1.0 → 8.2.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/android/build.gradle
CHANGED
|
@@ -53,9 +53,8 @@ repositories {
|
|
|
53
53
|
|
|
54
54
|
dependencies {
|
|
55
55
|
implementation "com.facebook.react:react-native:+"
|
|
56
|
-
implementation group: 'io.gleap', name: 'gleap-android-sdk', version: '8.
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
implementation group: 'io.gleap', name: 'gleap-android-sdk', version: '8.2.0'
|
|
57
|
+
|
|
59
58
|
if(rootProject && rootProject.ext) {
|
|
60
59
|
if(rootProject.ext.targetSdkVersion == 30 || rootProject.ext.compileSdkVersion == 30) {
|
|
61
60
|
implementation( "androidx.appcompat:appcompat:1.3.0") {
|
|
@@ -274,7 +274,7 @@ public class GleapsdkModule extends ReactContextBaseJavaModule implements Lifecy
|
|
|
274
274
|
public void run() {
|
|
275
275
|
try {
|
|
276
276
|
promise.resolve(Gleap.getInstance().isUserIdentified());
|
|
277
|
-
}catch (Exception ex) {}
|
|
277
|
+
} catch (Exception ex) {}
|
|
278
278
|
}
|
|
279
279
|
});
|
|
280
280
|
} catch (NoUiThreadException e) {
|
|
@@ -334,13 +334,13 @@ public class GleapsdkModule extends ReactContextBaseJavaModule implements Lifecy
|
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
@ReactMethod
|
|
337
|
-
public void isOpened() {
|
|
337
|
+
public void isOpened(final Promise promise) {
|
|
338
338
|
try {
|
|
339
339
|
getActivitySafe().runOnUiThread(
|
|
340
340
|
new Runnable() {
|
|
341
341
|
@Override
|
|
342
342
|
public void run() {
|
|
343
|
-
Gleap.getInstance().isOpened();
|
|
343
|
+
promise.resolve(Gleap.getInstance().isOpened());
|
|
344
344
|
}
|
|
345
345
|
});
|
|
346
346
|
} catch (NoUiThreadException e) {
|
package/ios/Gleapsdk.m
CHANGED
|
@@ -287,6 +287,13 @@ RCT_EXPORT_METHOD(getIdentity:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromi
|
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
289
|
|
|
290
|
+
RCT_EXPORT_METHOD(isOpened:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
291
|
+
{
|
|
292
|
+
dispatch_async(dispatch_get_main_queue(), ^{
|
|
293
|
+
resolve(@([Gleap isOpened]));
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
|
|
290
297
|
RCT_EXPORT_METHOD(isUserIdentified:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
291
298
|
{
|
|
292
299
|
dispatch_async(dispatch_get_main_queue(), ^{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-gleapsdk",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"description": "Know exactly why and how a bug happened. Get reports with screenshots, live action replays and all of the important metadata every time.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|