Skip to content

Commit 87dcd8f

Browse files
Truncate code lines that exceeded 80 character
1 parent c64c217 commit 87dcd8f

File tree

1 file changed

+50
-25
lines changed

1 file changed

+50
-25
lines changed

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java

Lines changed: 50 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
6666
* @param reactContext the react context
6767
* @param mInstabug the m instabug
6868
*/
69-
public RNInstabugReactnativeModule(ReactApplicationContext reactContext, Application androidApplication) {
69+
public RNInstabugReactnativeModule(ReactApplicationContext reactContext, Application
70+
androidApplication) {
7071
super(reactContext);
7172
this.androidApplication = androidApplication;
7273
}
@@ -168,7 +169,8 @@ public void changeLocale(String instabugLocale) {
168169
}
169170

170171
/**
171-
* The file at filePath will be uploaded along upcoming reports with the name fileNameWithExtension
172+
* The file at filePath will be uploaded along upcoming reports with the name
173+
* fileNameWithExtension
172174
*
173175
* @param fileUri the file uri
174176
* @param fileNameWithExtension the file name with extension
@@ -244,7 +246,8 @@ public void showIntroMessage() {
244246
* Set the primary color that the SDK will use to tint certain UI elements in the SDK
245247
*
246248
* @param primaryColorValue The value of the primary color ,
247-
* whatever this color was parsed from a resource color or hex color or RGB color values
249+
* whatever this color was parsed from a resource color or hex color
250+
* or RGB color values
248251
*/
249252
@ReactMethod
250253
public void setPrimaryColor(int primaryColor) {
@@ -265,9 +268,11 @@ public void setPrimaryColor(int primaryColor) {
265268
* @param {boolean} screenRecording A boolean to enable or disable screen recording attachments.
266269
*/
267270
@ReactMethod
268-
public void setAttachmentTypesEnabled(boolean screenshot, boolean extraScreenshot, boolean galleryImage, boolean voiceNote, boolean screenRecording) {
271+
public void setAttachmentTypesEnabled(boolean screenshot, boolean extraScreenshot, boolean
272+
galleryImage, boolean voiceNote, boolean screenRecording) {
269273
try {
270-
mInstabug.setAttachmentTypesEnabled(screenshot, extraScreenshot, galleryImage, voiceNote, screenRecording);
274+
mInstabug.setAttachmentTypesEnabled(screenshot, extraScreenshot, galleryImage,
275+
voiceNote, screenRecording);
271276
} catch (Exception e) {
272277
e.printStackTrace();
273278
}
@@ -276,8 +281,10 @@ public void setAttachmentTypesEnabled(boolean screenshot, boolean extraScreensho
276281
/**
277282
* Appends a log message to Instabug internal log
278283
* <p>
279-
* These logs are then sent along the next uploaded report. All log messages are timestamped <br/>
280-
* Logs aren't cleared per single application run. If you wish to reset the logs, use {@link #clearLog()}
284+
* These logs are then sent along the next uploaded report. All log messages are timestamped
285+
* <br/>
286+
* Logs aren't cleared per single application run. If you wish to reset the logs, use
287+
* {@link #clearLog()}
281288
* </p>
282289
* Note: logs passed to this method are <b>NOT</b> printed to Logcat
283290
*
@@ -480,7 +487,8 @@ public void reportJsException(ReadableArray stack, String message, String errorI
480487
String fileName = frame.getString("file");
481488
int lineNumber = frame.getInt("lineNumber");
482489

483-
stackTraceElements[i] = new StackTraceElement(fileName, methodName, fileName, lineNumber);
490+
stackTraceElements[i] = new StackTraceElement(fileName, methodName, fileName,
491+
lineNumber);
484492
}
485493
Throwable throwable = new Throwable(message);
486494
throwable.setStackTrace(stackTraceElements);
@@ -637,39 +645,56 @@ private Locale getLocaleByKey(String instabugLocale) {
637645
String localeInLowerCase = instabugLocale.toLowerCase();
638646
switch (localeInLowerCase) {
639647
case LOCALE_ARABIC:
640-
return new Locale(InstabugLocale.ARABIC.getCode(), InstabugLocale.ARABIC.getCountry());
648+
return new Locale(InstabugLocale.ARABIC.getCode(), InstabugLocale.ARABIC
649+
.getCountry());
641650
case LOCALE_ENGLISH:
642-
return new Locale(InstabugLocale.ENGLISH.getCode(), InstabugLocale.ENGLISH.getCountry());
651+
return new Locale(InstabugLocale.ENGLISH.getCode(), InstabugLocale.ENGLISH
652+
.getCountry());
643653
case LOCALE_CZECH:
644-
return new Locale(InstabugLocale.CZECH.getCode(), InstabugLocale.CZECH.getCountry());
654+
return new Locale(InstabugLocale.CZECH.getCode(), InstabugLocale.CZECH.getCountry
655+
());
645656
case LOCALE_FRENCH:
646-
return new Locale(InstabugLocale.FRENCH.getCode(), InstabugLocale.FRENCH.getCountry());
657+
return new Locale(InstabugLocale.FRENCH.getCode(), InstabugLocale.FRENCH
658+
.getCountry());
647659
case LOCALE_GERMAN:
648-
return new Locale(InstabugLocale.GERMAN.getCode(), InstabugLocale.GERMAN.getCountry());
660+
return new Locale(InstabugLocale.GERMAN.getCode(), InstabugLocale.GERMAN
661+
.getCountry());
649662
case LOCALE_ITALIAN:
650-
return new Locale(InstabugLocale.ITALIAN.getCode(), InstabugLocale.ITALIAN.getCountry());
663+
return new Locale(InstabugLocale.ITALIAN.getCode(), InstabugLocale.ITALIAN
664+
.getCountry());
651665
case LOCALE_JAPANESE:
652-
return new Locale(InstabugLocale.JAPANESE.getCode(), InstabugLocale.JAPANESE.getCountry());
666+
return new Locale(InstabugLocale.JAPANESE.getCode(), InstabugLocale.JAPANESE
667+
.getCountry());
653668
case LOCALE_POLISH:
654-
return new Locale(InstabugLocale.POLISH.getCode(), InstabugLocale.POLISH.getCountry());
669+
return new Locale(InstabugLocale.POLISH.getCode(), InstabugLocale.POLISH
670+
.getCountry());
655671
case LOCALE_RUSSIAN:
656-
return new Locale(InstabugLocale.RUSSIAN.getCode(), InstabugLocale.RUSSIAN.getCountry());
672+
return new Locale(InstabugLocale.RUSSIAN.getCode(), InstabugLocale.RUSSIAN
673+
.getCountry());
657674
case LOCALE_SPANISH:
658-
return new Locale(InstabugLocale.SPANISH.getCode(), InstabugLocale.SPANISH.getCountry());
675+
return new Locale(InstabugLocale.SPANISH.getCode(), InstabugLocale.SPANISH
676+
.getCountry());
659677
case LOCALE_SWEDISH:
660-
return new Locale(InstabugLocale.SWEDISH.getCode(), InstabugLocale.SWEDISH.getCountry());
678+
return new Locale(InstabugLocale.SWEDISH.getCode(), InstabugLocale.SWEDISH
679+
.getCountry());
661680
case LOCALE_TURKISH:
662-
return new Locale(InstabugLocale.TURKISH.getCode(), InstabugLocale.TURKISH.getCountry());
681+
return new Locale(InstabugLocale.TURKISH.getCode(), InstabugLocale.TURKISH
682+
.getCountry());
663683
case LOCALE_PORTUGUESE_BRAZIL:
664-
return new Locale(InstabugLocale.PORTUGUESE_BRAZIL.getCode(), InstabugLocale.PORTUGUESE_BRAZIL.getCountry());
684+
return new Locale(InstabugLocale.PORTUGUESE_BRAZIL.getCode(), InstabugLocale
685+
.PORTUGUESE_BRAZIL.getCountry());
665686
case LOCALE_CHINESE_SIMPLIFIED:
666-
return new Locale(InstabugLocale.SIMPLIFIED_CHINESE.getCode(), InstabugLocale.SIMPLIFIED_CHINESE.getCountry());
687+
return new Locale(InstabugLocale.SIMPLIFIED_CHINESE.getCode(), InstabugLocale
688+
.SIMPLIFIED_CHINESE.getCountry());
667689
case LOCALE_CHINESE_TRADITIONAL:
668-
return new Locale(InstabugLocale.TRADITIONAL_CHINESE.getCode(), InstabugLocale.TRADITIONAL_CHINESE.getCountry());
690+
return new Locale(InstabugLocale.TRADITIONAL_CHINESE.getCode(), InstabugLocale
691+
.TRADITIONAL_CHINESE.getCountry());
669692
case LOCALE_KOREAN:
670-
return new Locale(InstabugLocale.KOREAN.getCode(), InstabugLocale.KOREAN.getCountry());
693+
return new Locale(InstabugLocale.KOREAN.getCode(), InstabugLocale.KOREAN
694+
.getCountry());
671695
default:
672-
return new Locale(InstabugLocale.ENGLISH.getCode(), InstabugLocale.ENGLISH.getCountry());
696+
return new Locale(InstabugLocale.ENGLISH.getCode(), InstabugLocale.ENGLISH
697+
.getCountry());
673698
}
674699
}
675700

0 commit comments

Comments
 (0)