File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
android/src/main/java/com/instabug/reactlibrary Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,24 @@ public void run() {
107
107
});
108
108
}
109
109
110
+ /**
111
+ * Enables or disables auto UI tracing
112
+ * @param isEnabled boolean indicating enabled or disabled.
113
+ */
114
+ @ ReactMethod
115
+ public void setAutoUITraceEnabled (final boolean isEnabled ) {
116
+ MainThreadHandler .runOnMainThread (new Runnable () {
117
+ @ Override
118
+ public void run () {
119
+ try {
120
+ APM .setAutoUITraceEnabled (isEnabled );
121
+ } catch (Exception e ) {
122
+ e .printStackTrace ();
123
+ }
124
+ }
125
+ });
126
+ }
127
+
110
128
/**
111
129
* Starts an execution trace
112
130
* @param name string name of the trace.
Original file line number Diff line number Diff line change @@ -70,9 +70,7 @@ export default {
70
70
* @param {boolean } isEnabled
71
71
*/
72
72
setAutoUITraceEnabled ( isEnabled ) {
73
- if ( Platform . OS === 'ios' ) {
74
- IBGAPM . setAutoUITraceEnabled ( isEnabled ) ;
75
- }
73
+ IBGAPM . setAutoUITraceEnabled ( isEnabled ) ;
76
74
} ,
77
75
78
76
/**
You can’t perform that action at this time.
0 commit comments