File tree 3 files changed +34
-0
lines changed
android/src/main/java/com/instabug/instabugflutter
3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## master
2
+
3
+ * Added Enable/Disable APIs on Android
4
+
1
5
## v9.1.6 (2020-07-13)
2
6
3
7
* Added CrashReporting
Original file line number Diff line number Diff line change @@ -983,4 +983,18 @@ public void setShakingThresholdForAndroid(int androidThreshold) {
983
983
BugReporting .setShakingThreshold (androidThreshold );
984
984
}
985
985
986
+ /**
987
+ * Enables all Instabug functionality
988
+ */
989
+ public void enable () {
990
+ Instabug .enable ();
991
+ }
992
+
993
+ /**
994
+ * Disables all Instabug functionality
995
+ */
996
+ public void disable () {
997
+ Instabug .disable ();
998
+ }
999
+
986
1000
}
Original file line number Diff line number Diff line change @@ -286,4 +286,20 @@ class Instabug {
286
286
final List <dynamic > params = < dynamic > [reproStepsMode.toString ()];
287
287
await _channel.invokeMethod <Object >('setReproStepsMode:' , params);
288
288
}
289
+
290
+ ///Android Only
291
+ ///Enables all Instabug functionality
292
+ static void enableAndroid () async {
293
+ if (Platform .isAndroid) {
294
+ await _channel.invokeMethod <Object >('enable:' );
295
+ }
296
+ }
297
+
298
+ ///Android Only
299
+ ///Disables all Instabug functionality
300
+ static void disableAndroid () async {
301
+ if (Platform .isAndroid) {
302
+ await _channel.invokeMethod <Object >('disable:' );
303
+ }
304
+ }
289
305
}
You can’t perform that action at this time.
0 commit comments