File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
src/main/java/com/instabug/reactlibrary Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ android {
20
20
}
21
21
lintOptions {
22
22
warning ' InvalidPackage'
23
+ abortOnError true
24
+ // SuppressLint WrongConstant was used to suppress errors when using arrays of ints to represent annotations.
23
25
}
24
26
}
25
27
Original file line number Diff line number Diff line change 1
1
package com .instabug .reactlibrary ;
2
2
3
+ import android .annotation .SuppressLint ;
3
4
import android .app .Application ;
4
5
import android .net .Uri ;
5
6
import android .os .Handler ;
@@ -262,6 +263,7 @@ public void run() {
262
263
* @param invocationMode the invocation mode
263
264
* @param invocationOptions the array of invocation options
264
265
*/
266
+ @ SuppressLint ("WrongConstant" )
265
267
@ ReactMethod
266
268
public void invokeWithInvocationModeAndOptions (String invocationMode , ReadableArray invocationOptions ) {
267
269
@@ -1723,6 +1725,7 @@ public void show() {
1723
1725
Instabug .show ();
1724
1726
}
1725
1727
1728
+ @ SuppressLint ("WrongConstant" )
1726
1729
@ ReactMethod
1727
1730
public void setReportTypes (ReadableArray types ) {
1728
1731
Object [] objectArray = ArrayUtil .toArray (types );
@@ -1982,6 +1985,7 @@ public void setShouldShowSurveysWelcomeScreen(boolean shouldShow) {
1982
1985
* @param isEmailRequired set true to make email field required
1983
1986
* @param actionTypes Bitwise-or of actions
1984
1987
*/
1988
+ @ SuppressLint ("WrongConstant" )
1985
1989
@ ReactMethod
1986
1990
public void setEmailFieldRequiredForFeatureRequests (boolean isEmailRequired , ReadableArray actionTypes ) {
1987
1991
try {
You can’t perform that action at this time.
0 commit comments