Skip to content

Commit 5df2744

Browse files
Disable APM hot launches
1 parent 770c62f commit 5df2744

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativePackage.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import com.instabug.library.visualusersteps.State;
1919
import com.instabug.reactlibrary.utils.InstabugUtil;
2020
import com.instabug.reactlibrary.utils.MainThreadHandler;
21+
import com.instabug.apm.APM;
2122

2223
import android.graphics.Color;
2324

@@ -67,6 +68,8 @@ public RNInstabugReactnativePackage(String androidApplicationToken, Application
6768
if(offset != null)
6869
BugReporting.setFloatingButtonOffset(offset);
6970

71+
// Temporarily disabling APM hot launches
72+
APM.setHotAppLaunchEnabled(false);
7073
}
7174

7275
public RNInstabugReactnativePackage(String androidApplicationToken, Application androidApplication,

ios/RNInstabug/InstabugReactBridge.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#import <Instabug/IBGCrashReporting.h>
1111
#import <Instabug/IBGSurveys.h>
1212
#import <Instabug/IBGLog.h>
13+
#import <Instabug/IBGAPM.h>
1314
#import <asl.h>
1415
#import <React/RCTLog.h>
1516
#import <os/log.h>
@@ -57,7 +58,10 @@ - (dispatch_queue_t)methodQueue {
5758
RCTAddLogFunction(InstabugReactLogFunction);
5859
RCTSetLogThreshold(RCTLogLevelInfo);
5960

60-
IBGNetworkLogger.enabled = YES;
61+
IBGNetworkLogger.enabled = YES;
62+
63+
// Temporarily disabling APM hot launches
64+
IBGAPM.hotAppLaunchEnabled = NO;
6165
}
6266

6367
RCT_EXPORT_METHOD(callPrivateApi:(NSString *)apiName apiParam: (NSString *) param) {

0 commit comments

Comments
 (0)