Skip to content

Commit e42d439

Browse files
Disable APM
1 parent 90dec1e commit e42d439

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

android/src/main/java/com/instabug/instabugflutter/InstabugFlutterPlugin.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import com.instabug.survey.callbacks.*;
2929
import com.instabug.survey.Survey;
3030
import com.instabug.survey.Surveys;
31+
import com.instabug.apm.APM;
3132

3233
import org.json.JSONException;
3334
import org.json.JSONObject;
@@ -136,6 +137,9 @@ public void start(Application application, String token, ArrayList<String> invoc
136137
}
137138
new Instabug.Builder(application, token).setInvocationEvents(invocationEventsArray).build();
138139
enableScreenShotByMediaProjection();
140+
141+
// Temporarily disabling APM
142+
APM.setEnabled(false);
139143
}
140144

141145
/**

ios/Classes/InstabugFlutterPlugin.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#import "InstabugFlutterPlugin.h"
22
#import "Instabug.h"
3+
#import "IBGAPM.h"
34

45
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:((float)((rgbValue & 0xFF000000) >> 24))/255.0 ];
56

@@ -76,6 +77,9 @@ + (void)startWithToken:(NSString *)token invocationEvents:(NSArray*)invocationEv
7677
invocationEvents = IBGInvocationEventNone;
7778
}
7879
[Instabug startWithToken:token invocationEvents:invocationEvents];
80+
81+
// Temporarily disabling APM
82+
IBGAPM.enabled = NO;
7983
}
8084

8185
/**

0 commit comments

Comments
 (0)