Lint Report: 10 warnings
Issue Types

Overview

Correctness
2warning OldTargetApi: Target SDK attribute is not targeting latest version
3warning SdCardPath: Hardcoded reference to /sdcard
2warning GradleDependency: Obsolete Gradle Dependency
1warning GradleDynamicVersion: Gradle Dynamic Version
2warning GradleOverrides: Value overridden by Gradle build script
Disabled Checks (23)

Target SDK attribute is not targeting latest version

../../src/main/AndroidManifest.xml:9: Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details.
  6 
  7     <uses-sdk
  8         android:minSdkVersion="19"
  9         android:targetSdkVersion="22" />                                                            
 10 
 11 </manifest>
../../build.gradle:20: Not targeting the latest versions of Android; compatibility
modes apply. Consider testing and updating this version.
Consult the android.os.Build.VERSION_CODES javadoc for details.

 17 
 18     defaultConfig {
 19         minSdkVersion 19
 20         targetSdkVersion 22                                                                         
 21         versionCode 1
 22         versionName "1.0"
 23         ndk {
OldTargetApi Correctness Warning Priority 6/10

Hardcoded reference to /sdcard

../../src/main/java/com/rusel/RCTBluetoothSerial/RCTBluetoothSerialService.java:67: Do not hardcode "/data/"; use Context.getFilesDir().getPath() instead
  64   ConnectionStatusNotifier connectionStatusNotifier = new ConnectionStatusNotifier(mModule);
  65 
  66   this.unixSocketBridge = new UnixSocketBridge(
  67           "/data/data/se.manyver/files/manyverse_bt_outgoing.sock",                           
  68           "/data/data/se.manyver/files/manyverse_bt_incoming.sock",
  69           uuid,
  70           connectionStatusNotifier,
../../src/main/java/com/rusel/RCTBluetoothSerial/RCTBluetoothSerialService.java:68: Do not hardcode "/data/"; use Context.getFilesDir().getPath() instead
  65 
  66         this.unixSocketBridge = new UnixSocketBridge(
  67                 "/data/data/se.manyver/files/manyverse_bt_outgoing.sock",
  68                 "/data/data/se.manyver/files/manyverse_bt_incoming.sock",                           
  69                 uuid,
  70                 connectionStatusNotifier,
  71                 mAdapter
../../src/main/java/com/rusel/RCTBluetoothSerial/RCTBluetoothSerialService.java:75: Do not hardcode "/data/"; use Context.getFilesDir().getPath() instead
  72                 );
  73 
  74         this.controlSocket = new ControlUnixSocket(
  75                 "/data/data/se.manyver/files/manyverse_bt_control.sock", mModule);                  
  76 
  77         startBridge();
  78         startControlSocket();
SdCardPath Correctness Warning Priority 6/10

Obsolete Gradle Dependency

../../build.gradle:8: A newer version of com.android.tools.build:gradle than 3.1.4 is available: 3.2.1
  5     }
  6 
  7     dependencies {
  8         classpath 'com.android.tools.build:gradle:3.1.4'                                            
  9     }
 10 }
../../build.gradle:16: Old buildToolsVersion 23.0.1; recommended version is 23.0.3 or later
 13 
 14 android {
 15     compileSdkVersion 23
 16     buildToolsVersion "23.0.1"                                                                      
 17 
 18     defaultConfig {
 19         minSdkVersion 19
GradleDependency Correctness Warning Priority 4/10

Gradle Dynamic Version

../../build.gradle:47: Avoid using + in version numbers; can lead to unpredictable and unrepeatable builds (com.facebook.react:react-native:+)
 44 }
 45 
 46 dependencies {
 47     compile 'com.facebook.react:react-native:+'                                                     
 48     compile "org.java-websocket:Java-WebSocket:1.3.9"
 49 
 50     compile group: 'org.apache.commons', name: 'commons-io', version: '1.3.2'
GradleDynamicVersion Correctness Warning Priority 4/10

Value overridden by Gradle build script

../../src/main/AndroidManifest.xml:8: This minSdkVersion value (19) is not used; it is always overridden by the value specified in the Gradle build script (19)
  5 
  6 
  7     <uses-sdk
  8         android:minSdkVersion="19"                                                                  
  9         android:targetSdkVersion="22" />
 10 
 11 </manifest>
../../src/main/AndroidManifest.xml:9: This targetSdkVersion value (22) is not used; it is always overridden by the value specified in the Gradle build script (22)
  6 
  7     <uses-sdk
  8         android:minSdkVersion="19"
  9         android:targetSdkVersion="22" />                                                            
 10 
 11 </manifest>
GradleOverrides Correctness Warning Priority 4/10

Disabled Checks

One or more issues were not run by lint, either because the check is not enabled by default, or because it was disabled with a command line flag or via one or more lint.xml configuration files in the project directories.

Suppressing Warnings and Errors

Lint errors can be suppressed in a variety of ways:

1. With a @SuppressLint annotation in the Java code
2. With a tools:ignore attribute in the XML file
3. With a //noinspection comment in the source code
4. With ignore flags specified in the build.gradle file, as explained below
5. With a lint.xml configuration file in the project
6. With a lint.xml configuration file passed to lint via the --config flag
7. With the --ignore flag passed to lint.

To suppress a lint warning with an annotation, add a @SuppressLint("id") annotation on the class, method or variable declaration closest to the warning instance you want to disable. The id can be one or more issue id's, such as "UnusedResources" or {"UnusedResources","UnusedIds"}, or it can be "all" to suppress all lint warnings in the given scope.

To suppress a lint warning with a comment, add a //noinspection id comment on the line before the statement with the error.

To suppress a lint warning in an XML file, add a tools:ignore="id" attribute on the element containing the error, or one of its surrounding elements. You also need to define the namespace for the tools prefix on the root element in your document, next to the xmlns:android declaration:
xmlns:tools="http://schemas.android.com/tools"

To suppress a lint warning in a build.gradle file, add a section like this:

android {
    lintOptions {
        disable 'TypographyFractions','TypographyQuotes'
    }
}

Here we specify a comma separated list of issue id's after the disable command. You can also use warning or error instead of disable to change the severity of issues.

To suppress lint warnings with a configuration XML file, create a file named lint.xml and place it at the root directory of the module in which it applies.

The format of the lint.xml file is something like the following:

<?xml version="1.0" encoding="UTF-8"?>
<lint>
    <!-- Ignore everything in the test source set -->
    <issue id="all">
        <ignore path="*/test/*" />
    </issue>

    <!-- Disable this given check in this project -->
    <issue id="IconMissingDensityFolder" severity="ignore" />

    <!-- Ignore the ObsoleteLayoutParam issue in the given files -->
    <issue id="ObsoleteLayoutParam">
        <ignore path="res/layout/activation.xml" />
        <ignore path="res/layout-xlarge/activation.xml" />
        <ignore regexp="(foo|bar).java" />
    </issue>

    <!-- Ignore the UselessLeaf issue in the given file -->
    <issue id="UselessLeaf">
        <ignore path="res/layout/main.xml" />
    </issue>

    <!-- Change the severity of hardcoded strings to "error" -->
    <issue id="HardcodedText" severity="error" />
</lint>

To suppress lint checks from the command line, pass the --ignore flag with a comma separated list of ids to be suppressed, such as:
$ lint --ignore UnusedResources,UselessLeaf /my/project/path

For more information, see http://g.co/androidstudio/suppressing-lint-warnings