Lint Report: 27 warnings
Issue Types

Overview

Correctness
1warning RedundantLabel: Redundant label on activity
9warning GradleDependency: Obsolete Gradle Dependency
7warning UsingMaterialAndMaterial3Libraries: material and material3 are separate, incompatible design system libraries
Security
2warning TrustAllX509TrustManager: Insecure TLS/SSL trust manager
Performance
6warning UnusedResources: Unused resources
Usability:Icons
2warning MonochromeLauncherIcon: Monochrome icon is not defined
Included Additional Checks (68)
Disabled Checks (41)

Redundant label on activity

../../src/main/AndroidManifest.xml:41: Redundant label can be removed
 38         <activity
 39             android:name=".MainActivity"
 40             android:exported="true"
 41             android:label="@string/app_name"                                                        
 42             android:theme="@style/Theme.UstadApiConsumer" >
 43             <intent-filter>
 44                 <action android:name="android.intent.action.MAIN" />
RedundantLabel Correctness Warning Priority 5/10

Obsolete Gradle Dependency

../../../gradle/libs.versions.toml:2: A newer version of androidx.core:core-ktx than 1.12.0 is available: 1.13.1
  1 [versions]
  2 androidx-core = "1.12.0"                                                                            
  3 androidx-lifecycle = "2.7.0"
  4 androidx-activity = "1.8.2"
  5 compose-bom = "2024.05.00"
../../../gradle/libs.versions.toml:2: A newer version of androidx.core:core-ktx than 1.12.0 is available: 1.13.1
  1 [versions]
  2 androidx-core = "1.12.0"                                                                            
  3 androidx-lifecycle = "2.7.0"
  4 androidx-activity = "1.8.2"
  5 compose-bom = "2024.05.00"
../../../gradle/libs.versions.toml:2: A newer version of androidx.core:core-ktx than 1.12.0 is available: 1.13.1
  1 [versions]
  2 androidx-core = "1.12.0"                                                                            
  3 androidx-lifecycle = "2.7.0"
  4 androidx-activity = "1.8.2"
  5 compose-bom = "2024.05.00"
../../../gradle/libs.versions.toml:4: A newer version of androidx.activity:activity-compose than 1.8.2 is available: 1.9.0
  1 [versions]
  2 androidx-core = "1.12.0"
  3 androidx-lifecycle = "2.7.0"
  4 androidx-activity = "1.8.2"                                                                         
  5 compose-bom = "2024.05.00"
  6 androidx-navigation = "2.7.7"
  7 httpoveripc = "0.0.3"
../../../gradle/libs.versions.toml:4: A newer version of androidx.activity:activity-compose than 1.8.2 is available: 1.9.0
  1 [versions]
  2 androidx-core = "1.12.0"
  3 androidx-lifecycle = "2.7.0"
  4 androidx-activity = "1.8.2"                                                                         
  5 compose-bom = "2024.05.00"
  6 androidx-navigation = "2.7.7"
  7 httpoveripc = "0.0.3"
GradleDependency Correctness Warning Priority 4/10

material and material3 are separate, incompatible design system libraries

../../src/main/java/com/ustadmobile/ustadapiconsumer/ui/screens/AccountDetailScreen.kt:9: Using a material import while also using the material3 library
  6 import android.util.Log
  7 import androidx.activity.compose.rememberLauncherForActivityResult
  8 import androidx.compose.foundation.layout.Column
  9 import androidx.compose.material.Button                                                             
 10 import androidx.compose.material.Text
 11 import androidx.compose.runtime.Composable
 12 import androidx.compose.runtime.getValue
../../src/main/java/com/ustadmobile/ustadapiconsumer/ui/screens/AccountDetailScreen.kt:10: Using a material import while also using the material3 library
  7 import androidx.activity.compose.rememberLauncherForActivityResult
  8 import androidx.compose.foundation.layout.Column
  9 import androidx.compose.material.Button
 10 import androidx.compose.material.Text                                                               
 11 import androidx.compose.runtime.Composable
 12 import androidx.compose.runtime.getValue
 13 import androidx.compose.runtime.mutableStateOf
../../src/main/java/com/ustadmobile/ustadapiconsumer/ui/theme/Shape.kt:4: Using a material import while also using the material3 library
  1 package com.ustadmobile.ustadapiconsumer.ui.theme
  2 
  3 import androidx.compose.foundation.shape.RoundedCornerShape
  4 import androidx.compose.material.Shapes                                                             
  5 import androidx.compose.ui.unit.dp
  6 
  7 val Shapes = Shapes(
../../src/main/java/com/ustadmobile/ustadapiconsumer/ui/theme/Theme.kt:4: Using a material import while also using the material3 library
  1 package com.ustadmobile.ustadapiconsumer.ui.theme
  2 
  3 import androidx.compose.foundation.isSystemInDarkTheme
  4 import androidx.compose.material.MaterialTheme                                                      
  5 import androidx.compose.material.darkColors
  6 import androidx.compose.material.lightColors
  7 import androidx.compose.runtime.Composable
../../src/main/java/com/ustadmobile/ustadapiconsumer/ui/theme/Theme.kt:5: Using a material import while also using the material3 library
  2 
  3 import androidx.compose.foundation.isSystemInDarkTheme
  4 import androidx.compose.material.MaterialTheme
  5 import androidx.compose.material.darkColors                                                         
  6 import androidx.compose.material.lightColors
  7 import androidx.compose.runtime.Composable
../../src/main/java/com/ustadmobile/ustadapiconsumer/ui/theme/Theme.kt:6: Using a material import while also using the material3 library
  3 import androidx.compose.foundation.isSystemInDarkTheme
  4 import androidx.compose.material.MaterialTheme
  5 import androidx.compose.material.darkColors
  6 import androidx.compose.material.lightColors                                                        
  7 import androidx.compose.runtime.Composable
  8 
  9 private val DarkColorPalette = darkColors(
../../src/main/java/com/ustadmobile/ustadapiconsumer/ui/theme/Type.kt:3: Using a material import while also using the material3 library
  1 package com.ustadmobile.ustadapiconsumer.ui.theme
  2 
  3 import androidx.compose.material.Typography                                                         
  4 import androidx.compose.ui.text.TextStyle
  5 import androidx.compose.ui.text.font.FontFamily
  6 import androidx.compose.ui.text.font.FontWeight
Vendor: Jetpack Compose
Identifier: androidx.compose.material3
Feedback: https://issuetracker.google.com/issues/new?component=612128
UsingMaterialAndMaterial3Libraries Correctness Warning Priority 3/10

Insecure TLS/SSL trust manager

../../../../../../.gradle/caches/modules-2/files-2.1/com.athaydes.rawhttp/rawhttp-core/2.6.0/8bbc07fc8faa95d25f8d4d686336b37f674a84b1/rawhttp-core-2.6.0.jar: checkClientTrusted is empty, which could cause insecure network traffic due to trusting arbitrary TLS/SSL certificates presented by peers
../../../../../../.gradle/caches/modules-2/files-2.1/com.athaydes.rawhttp/rawhttp-core/2.6.0/8bbc07fc8faa95d25f8d4d686336b37f674a84b1/rawhttp-core-2.6.0.jar: checkServerTrusted is empty, which could cause insecure network traffic due to trusting arbitrary TLS/SSL certificates presented by peers
TrustAllX509TrustManager Security Warning Priority 6/10

Unused resources

../../src/main/res/values/colors.xml:3: The resource R.color.purple_200 appears to be unused
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <resources>
  3     <color name="purple_200">#FFBB86FC</color>                                                      
  4     <color name="purple_500">#FF6200EE</color>
  5     <color name="purple_700">#FF3700B3</color>
  6     <color name="teal_200">#FF03DAC5</color>
../../src/main/res/values/colors.xml:4: The resource R.color.purple_500 appears to be unused
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <resources>
  3     <color name="purple_200">#FFBB86FC</color>
  4     <color name="purple_500">#FF6200EE</color>                                                      
  5     <color name="purple_700">#FF3700B3</color>
  6     <color name="teal_200">#FF03DAC5</color>
  7     <color name="teal_700">#FF018786</color>
../../src/main/res/values/colors.xml:6: The resource R.color.teal_200 appears to be unused
  3     <color name="purple_200">#FFBB86FC</color>
  4     <color name="purple_500">#FF6200EE</color>
  5     <color name="purple_700">#FF3700B3</color>
  6     <color name="teal_200">#FF03DAC5</color>                                                        
  7     <color name="teal_700">#FF018786</color>
  8     <color name="black">#FF000000</color>
  9     <color name="white">#FFFFFFFF</color>
../../src/main/res/values/colors.xml:7: The resource R.color.teal_700 appears to be unused
  4     <color name="purple_500">#FF6200EE</color>
  5     <color name="purple_700">#FF3700B3</color>
  6     <color name="teal_200">#FF03DAC5</color>
  7     <color name="teal_700">#FF018786</color>                                                        
  8     <color name="black">#FF000000</color>
  9     <color name="white">#FFFFFFFF</color>
 10 </resources>
../../src/main/res/values/colors.xml:8: The resource R.color.black appears to be unused
  5     <color name="purple_700">#FF3700B3</color>
  6     <color name="teal_200">#FF03DAC5</color>
  7     <color name="teal_700">#FF018786</color>
  8     <color name="black">#FF000000</color>                                                           
  9     <color name="white">#FFFFFFFF</color>
 10 </resources>
../../src/main/res/values/colors.xml:9: The resource R.color.white appears to be unused
  6     <color name="teal_200">#FF03DAC5</color>
  7     <color name="teal_700">#FF018786</color>
  8     <color name="black">#FF000000</color>
  9     <color name="white">#FFFFFFFF</color>                                                           
 10 </resources>
UnusedResources Performance Warning Priority 3/10

Monochrome icon is not defined

../../src/main/res/mipmap-anydpi-v26/ic_launcher.xml:2: The application adaptive icon is missing a monochrome tag
 1 <?xml version="1.0" encoding="utf-8"?>
 2 <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">                          
 3     <background android:drawable="@drawable/ic_launcher_background" />
 4     <foreground android:drawable="@drawable/ic_launcher_foreground" />
 5 </adaptive-icon>
../../src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:2: The application adaptive roundIcon is missing a monochrome tag
 1 <?xml version="1.0" encoding="utf-8"?>
 2 <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">                          
 3     <background android:drawable="@drawable/ic_launcher_background" />
 4     <foreground android:drawable="@drawable/ic_launcher_foreground" />
 5 </adaptive-icon>
MonochromeLauncherIcon Icons Usability Warning Priority 6/10

Included Additional Checks

This card lists all the extra checks run by lint, provided from libraries, build configuration and extra flags. This is included to help you verify whether a particular check is included in analysis when configuring builds. (Note that the list does not include the hundreds of built-in checks into lint, only additional ones.)

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 https://developer.android.com/studio/write/lint.html#config