@@ -43,14 +43,6 @@ enum InvocationMode {
43
43
REPLIES
44
44
}
45
45
46
- enum InvocationOption {
47
- COMMENT_FIELD_REQUIRED ,
48
- DISABLE_POST_SENDING_DIALOG ,
49
- EMAIL_FIELD_HIDDEN ,
50
- EMAIL_FIELD_OPTIONAL
51
- }
52
-
53
-
54
46
enum ColorTheme { dark, light }
55
47
56
48
enum IBGCustomTextPlaceHolderKey {
@@ -143,56 +135,6 @@ class Instabug {
143
135
final List <dynamic > params = < dynamic > [locale.toString ()];
144
136
await _channel.invokeMethod <Object >('setLocale:' , params);
145
137
}
146
-
147
- /// Appends a log [message] to Instabug internal log
148
- /// These logs are then sent along the next uploaded report.
149
- /// All log messages are timestamped
150
- /// Note: logs passed to this method are NOT printed to console
151
- static void logVerbose (String message) async {
152
- final List <dynamic > params = < dynamic > [message];
153
- await _channel.invokeMethod <Object >('logVerbose:' , params);
154
- }
155
-
156
- /// Appends a log [message] to Instabug internal log
157
- /// These logs are then sent along the next uploaded report.
158
- /// All log messages are timestamped
159
- /// Note: logs passed to this method are NOT printed to console
160
- static void logDebug (String message) async {
161
- final List <dynamic > params = < dynamic > [message];
162
- await _channel.invokeMethod <Object >('logDebug:' , params);
163
- }
164
-
165
- /// Appends a log [message] to Instabug internal log
166
- /// These logs are then sent along the next uploaded report.
167
- /// All log messages are timestamped
168
- /// Note: logs passed to this method are NOT printed to console
169
- static void logInfo (String message) async {
170
- final List <dynamic > params = < dynamic > [message];
171
- await _channel.invokeMethod <Object >('logInfo:' , params);
172
- }
173
-
174
- /// Clears Instabug internal log
175
- static void clearAllLogs () async {
176
- await _channel.invokeMethod <Object >('clearAllLogs' );
177
- }
178
-
179
- /// Appends a log [message] to Instabug internal log
180
- /// These logs are then sent along the next uploaded report.
181
- /// All log messages are timestamped
182
- /// Note: logs passed to this method are NOT printed to console
183
- static void logError (String message) async {
184
- final List <dynamic > params = < dynamic > [message];
185
- await _channel.invokeMethod <Object >('logError:' , params);
186
- }
187
-
188
- /// Appends a log [message] to Instabug internal log
189
- /// These logs are then sent along the next uploaded report.
190
- /// All log messages are timestamped
191
- /// Note: logs passed to this method are NOT printed to console
192
- static void logWarn (String message) async {
193
- final List <dynamic > params = < dynamic > [message];
194
- await _channel.invokeMethod <Object >('logWarn:' , params);
195
- }
196
138
197
139
/// Sets the color theme of the SDK's whole UI to the [colorTheme] given.
198
140
/// It should be of type [ColorTheme] .
@@ -248,21 +190,6 @@ class Instabug {
248
190
await _channel.invokeMethod <Object >('show' );
249
191
}
250
192
251
-
252
- /// invoke sdk manually with desire invocation mode
253
- /// [invocationMode] the invocation mode
254
- /// [invocationOptions] the array of invocation options
255
- static void invokeWithMode (InvocationMode invocationMode, [List <InvocationOption > invocationOptions]) async {
256
- List <String > invocationOptionsStrings = < String > [];
257
- if (invocationOptions != null ) {
258
- invocationOptions.forEach ((e) {
259
- invocationOptionsStrings.add (e.toString ());
260
- });
261
- }
262
- final List <dynamic > params = < dynamic > [invocationMode.toString (), invocationOptionsStrings];
263
- await _channel.invokeMethod <Object >('invokeWithMode:options:' ,params);
264
- }
265
-
266
193
/// Logs a user event with [name] that happens through the lifecycle of the application.
267
194
/// Logged user events are going to be sent with each report, as well as at the end of a session.
268
195
static void logUserEventWithName (String name) async {
@@ -279,3 +206,4 @@ class Instabug {
279
206
}
280
207
281
208
209
+
0 commit comments