Skip to content

Releases: Faithlife/AndroidLint

v1.2.0

22 Nov 03:07
5d3e729
Compare
Choose a tag to compare

Added

  • RedundantCoroutineScopeDetector warns when a androidx.lifecycle.LifecycleOwner, androidx.lifecycle.ViewModel, or android.view.View implements or has a field assignable to kotlinx.coroutines.CoroutineScope.
    Existing scopes are bound to relevant lifecycle events in the system and will prevent coroutines from running past their utility.
    • LifecycleOwner should use lifecycleScope
    • Fragment should use viewLifecycleOwner.lifecycleScope,
    • ViewModel should use viewModelScope
    • View should use findViewTreeLifecycleOwner()?.lifecycleScope
  • FiniteWhenCasesDetector warns when else is used as a when branch when the when subject has finite possibilities
    • This detector works best when applied to an app project with lint.checkDependencies = true in the app module AGP DSL.
  • ForEachFunctionDetector reports forEach and forEachIndexed use and encourages a language for loop replacement
  • SkippedClassLocalOverrideDetector warns when an explicit super method is called outside of the corresponding override.
  • ErrorCatchDetector reports an error when a catch block might catch a java.lang.Error type.

Changed

  • Updated build tooling
  • Treat lint warnings as errors for issues in this library
  • Add spotless

v1.1.6

11 Mar 17:08
Compare
Choose a tag to compare

Added

Changed

  • Java version is increased to Java 11

Deprecated

Removed

Fixed

  • Multiple build variants are published after upgrading gradle maven publish plugin to 0.19.0
  • A NPE in SingleApostropheDetector for atypical resource definitions

Security

v1.1.5

05 Mar 03:21
fd7bba7
Compare
Choose a tag to compare

Added

  • Changelog automation

Changed

  • Issues related to Java 8 time APIs (java.time) are warnings instead of errors

Fixed

  • Updated compile (31), target (31), and minimum sdk (25)
  • Use of period at the end of a lint message
  • Updated development tools

1.1.3

13 Feb 17:50
Compare
Choose a tag to compare
  • Compile against SDK 30
  • Update the Android Gradle Plugin
  • Publish to sonatype

1.0.1

15 Nov 16:19
Compare
Choose a tag to compare

Fixes an issue where escaped apostrophe were not correctly detected

1.0.0

15 Nov 15:58
3503769
Compare
Choose a tag to compare
Create LICENSE