blob: 27dbe259ed5833af01823484fe4e4091e375e3dc [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.3.0-alpha02" type="baseline" client="gradle" dependencies="false" name="AGP (8.3.0-alpha02)" variant="all" version="8.3.0-alpha02">
<issue
id="NewApi"
message="Call requires API level 29 (current min is 21): `android.graphics.Paint#getBlendMode`"
errorLine1=" assertThat(paragraph.textPaint.blendMode).isEqualTo(BlendMode.SrcOver)"
errorLine2=" ~~~~~~~~~">
<location
file="src/androidInstrumentedTest/kotlin/androidx/compose/ui/text/AndroidParagraphTest.kt"/>
</issue>
<issue
id="NewApi"
message="Cast from `BlendMode` to `Comparable` requires API level 29 (current min is 21)"
errorLine1=" assertThat(paragraph.textPaint.blendMode).isEqualTo(BlendMode.SrcOver)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/androidInstrumentedTest/kotlin/androidx/compose/ui/text/AndroidParagraphTest.kt"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 29 (current min is 21): `android.graphics.Paint#getBlendMode`"
errorLine1=" assertThat(paragraph.textPaint.blendMode).isEqualTo(BlendMode.SrcOver)"
errorLine2=" ~~~~~~~~~">
<location
file="src/androidInstrumentedTest/kotlin/androidx/compose/ui/text/AndroidParagraphTest.kt"/>
</issue>
<issue
id="NewApi"
message="Cast from `BlendMode` to `Comparable` requires API level 29 (current min is 21)"
errorLine1=" assertThat(paragraph.textPaint.blendMode).isEqualTo(BlendMode.SrcOver)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/androidInstrumentedTest/kotlin/androidx/compose/ui/text/AndroidParagraphTest.kt"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 29 (current min is 21): `android.graphics.Paint#getBlendMode`"
errorLine1=" assertThat(textPaint.blendMode).isEqualTo(BlendMode.SrcOver)"
errorLine2=" ~~~~~~~~~">
<location
file="src/androidInstrumentedTest/kotlin/androidx/compose/ui/text/platform/AndroidTextPaintTest.kt"/>
</issue>
<issue
id="NewApi"
message="Cast from `BlendMode` to `Comparable` requires API level 29 (current min is 21)"
errorLine1=" assertThat(textPaint.blendMode).isEqualTo(BlendMode.SrcOver)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
<location
file="src/androidInstrumentedTest/kotlin/androidx/compose/ui/text/platform/AndroidTextPaintTest.kt"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 29 (current min is 21): `android.graphics.Paint#setBlendMode`"
errorLine1=" textPaint.blendMode = BlendMode.DstOver"
errorLine2=" ~~~~~~~~~">
<location
file="src/androidInstrumentedTest/kotlin/androidx/compose/ui/text/platform/AndroidTextPaintTest.kt"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 29 (current min is 21): `android.graphics.Paint#getBlendMode`"
errorLine1=" assertThat(textPaint.blendMode).isEqualTo(BlendMode.DstOver)"
errorLine2=" ~~~~~~~~~">
<location
file="src/androidInstrumentedTest/kotlin/androidx/compose/ui/text/platform/AndroidTextPaintTest.kt"/>
</issue>
<issue
id="NewApi"
message="Cast from `BlendMode` to `Comparable` requires API level 29 (current min is 21)"
errorLine1=" assertThat(textPaint.blendMode).isEqualTo(BlendMode.DstOver)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
<location
file="src/androidInstrumentedTest/kotlin/androidx/compose/ui/text/platform/AndroidTextPaintTest.kt"/>
</issue>
<issue
id="ListIterator"
message="Creating an unnecessary Iterator to iterate through a List"
errorLine1=" &quot;&apos;$key&apos; must be unique. Actual [ [${value.joinToString()}]&quot;"
errorLine2=" ~~~~~~~~~~~~">
<location
file="src/commonMain/kotlin/androidx/compose/ui/text/font/FontVariation.kt"/>
</issue>
<issue
id="PrimitiveInCollection"
message="return type List&lt;FontStyle> of values: replace with IntList"
errorLine1=" fun values(): List&lt;FontStyle> = listOf(Normal, Italic)"
errorLine2=" ~~~~~~~~~~~~~~~">
<location
file="src/commonMain/kotlin/androidx/compose/ui/text/font/FontStyle.kt"/>
</issue>
<issue
id="PrimitiveInCollection"
message="variable transitions with type TreeSet&lt;Integer>: replace with IntSet"
errorLine1=" val transitions = sortedSetOf(0, text.length)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/jvmMain/kotlin/androidx/compose/ui/text/JvmAnnotatedString.jvm.kt"/>
</issue>
<issue
id="PrimitiveInCollection"
message="variable offsetMap with type Map&lt;Integer, Integer>: replace with IntIntMap"
errorLine1=" val offsetMap = mutableMapOf(0 to 0)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/jvmMain/kotlin/androidx/compose/ui/text/JvmAnnotatedString.jvm.kt"/>
</issue>
<issue
id="PrimitiveInCollection"
message="method collectRangeTransitions has parameter target with type SortedSet&lt;Integer>: replace with IntSet"
errorLine1=" target: SortedSet&lt;Int>"
errorLine2=" ~~~~~~~~~~~~~~">
<location
file="src/jvmMain/kotlin/androidx/compose/ui/text/JvmAnnotatedString.jvm.kt"/>
</issue>
<issue
id="PrimitiveInCollection"
message="field paragraphEnds with type List&lt;Integer>: replace with IntList"
errorLine1=" private val paragraphEnds: List&lt;Int>"
errorLine2=" ~~~~~~~~~">
<location
file="../../../text/text/src/main/java/androidx/compose/ui/text/android/LayoutHelper.kt"/>
</issue>
<issue
id="PrimitiveInCollection"
message="variable lineFeeds with type List&lt;Integer>: replace with IntList"
errorLine1=" val lineFeeds = mutableListOf&lt;Int>()"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="../../../text/text/src/main/java/androidx/compose/ui/text/android/LayoutHelper.kt"/>
</issue>
<issue
id="PrimitiveInCollection"
message="variable list with type List&lt;? extends Float>: replace with FloatList"
errorLine1=" @Suppress(&quot;UNCHECKED_CAST&quot;)"
errorLine2=" ^">
<location
file="src/commonMain/kotlin/androidx/compose/ui/text/Savers.kt"/>
</issue>
<issue
id="PrimitiveInCollection"
message="return type List&lt;Integer> of breakInWords: replace with IntList"
errorLine1=" private fun breakInWords(layoutHelper: LayoutHelper): List&lt;Int> {"
errorLine2=" ~~~~~~~~~">
<location
file="../../../text/text/src/main/java/androidx/compose/ui/text/android/animation/SegmentBreaker.kt"/>
</issue>
<issue
id="PrimitiveInCollection"
message="variable words with type List&lt;? extends Integer>: replace with IntList"
errorLine1=" val words = breakWithBreakIterator(text, BreakIterator.getLineInstance(Locale.getDefault()))"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="../../../text/text/src/main/java/androidx/compose/ui/text/android/animation/SegmentBreaker.kt"/>
</issue>
<issue
id="PrimitiveInCollection"
message="variable set with type TreeSet&lt;Integer>: replace with IntSet"
errorLine1=" val set = TreeSet&lt;Int>().apply {"
errorLine2=" ^">
<location
file="../../../text/text/src/main/java/androidx/compose/ui/text/android/animation/SegmentBreaker.kt"/>
</issue>
<issue
id="PrimitiveInCollection"
message="return type List&lt;Integer> of breakWithBreakIterator: replace with IntList"
errorLine1=" private fun breakWithBreakIterator(text: CharSequence, breaker: BreakIterator): List&lt;Int> {"
errorLine2=" ~~~~~~~~~">
<location
file="../../../text/text/src/main/java/androidx/compose/ui/text/android/animation/SegmentBreaker.kt"/>
</issue>
<issue
id="PrimitiveInCollection"
message="variable res with type List&lt;Integer>: replace with IntList"
errorLine1=" val res = mutableListOf(0)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="../../../text/text/src/main/java/androidx/compose/ui/text/android/animation/SegmentBreaker.kt"/>
</issue>
<issue
id="PrimitiveInCollection"
message="return type List&lt;Integer> of breakOffsets: replace with IntList"
errorLine1=" fun breakOffsets(layoutHelper: LayoutHelper, segmentType: SegmentType): List&lt;Int> {"
errorLine2=" ~~~~~~~~~">
<location
file="../../../text/text/src/main/java/androidx/compose/ui/text/android/animation/SegmentBreaker.kt"/>
</issue>
<issue
id="PrimitiveInCollection"
message="return type List&lt;TextAlign> of values: replace with IntList"
errorLine1=" fun values(): List&lt;TextAlign> = listOf(Left, Right, Center, Justify, Start, End)"
errorLine2=" ~~~~~~~~~~~~~~~">
<location
file="src/commonMain/kotlin/androidx/compose/ui/text/style/TextAlign.kt"/>
</issue>
<issue
id="PrimitiveInLambda"
message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method createCharSequence has parameter &apos;resolveTypeface&apos; with type Function4&lt;? super FontFamily, ? super FontWeight, ? super FontStyle, ? super FontSynthesis, ? extends Typeface>."
errorLine1=" resolveTypeface: (FontFamily?, FontWeight, FontStyle, FontSynthesis) -> Typeface,"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/androidMain/kotlin/androidx/compose/ui/text/platform/AndroidParagraphHelper.android.kt"/>
</issue>
<issue
id="PrimitiveInLambda"
message="Use a functional interface instead of lambda syntax for lambdas with primitive values in variable &apos;resolveTypeface&apos; with type Function4&lt;? super FontFamily, ? super FontWeight, ? super FontStyle, ? super FontSynthesis, ? extends Typeface>."
errorLine1=" val resolveTypeface: (FontFamily?, FontWeight, FontStyle, FontSynthesis) -> Typeface ="
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/androidMain/kotlin/androidx/compose/ui/text/platform/AndroidParagraphIntrinsics.android.kt"/>
</issue>
<issue
id="PrimitiveInLambda"
message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method transform has parameter &apos;transform&apos; with type Function3&lt;? super String, ? super Integer, ? super Integer, String>."
errorLine1=" transform: (String, Int, Int) -> String"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/commonMain/kotlin/androidx/compose/ui/text/AnnotatedString.kt"/>
</issue>
<issue
id="PrimitiveInLambda"
message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method transform has parameter &apos;transform&apos; with type Function3&lt;? super String, ? super Integer, ? super Integer, String>."
errorLine1=" transform: (String, Int, Int) -> String"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/jvmMain/kotlin/androidx/compose/ui/text/JvmAnnotatedString.jvm.kt"/>
</issue>
<issue
id="PrimitiveInLambda"
message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method setSpanStyles has parameter &apos;resolveTypeface&apos; with type Function4&lt;? super FontFamily, ? super FontWeight, ? super FontStyle, ? super FontSynthesis, ? extends Typeface>."
errorLine1=" resolveTypeface: (FontFamily?, FontWeight, FontStyle, FontSynthesis) -> Typeface,"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/androidMain/kotlin/androidx/compose/ui/text/platform/extensions/SpannableExtensions.android.kt"/>
</issue>
<issue
id="PrimitiveInLambda"
message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method setFontAttributes has parameter &apos;resolveTypeface&apos; with type Function4&lt;? super FontFamily, ? super FontWeight, ? super FontStyle, ? super FontSynthesis, ? extends Typeface>."
errorLine1=" resolveTypeface: (FontFamily?, FontWeight, FontStyle, FontSynthesis) -> Typeface,"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/androidMain/kotlin/androidx/compose/ui/text/platform/extensions/SpannableExtensions.android.kt"/>
</issue>
<issue
id="PrimitiveInLambda"
message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method flattenFontStylesAndApply has parameter &apos;block&apos; with type Function3&lt;? super SpanStyle, ? super Integer, ? super Integer, Unit>."
errorLine1=" block: (SpanStyle, Int, Int) -> Unit"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/androidMain/kotlin/androidx/compose/ui/text/platform/extensions/SpannableExtensions.android.kt"/>
</issue>
<issue
id="PrimitiveInLambda"
message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method takeOrElse has parameter &apos;block&apos; with type Function0&lt;Float>."
errorLine1="private fun Float.takeOrElse(block: () -> Float): Float {"
errorLine2=" ~~~~~~~~~~~">
<location
file="src/commonMain/kotlin/androidx/compose/ui/text/style/TextForegroundStyle.kt"/>
</issue>
<issue
id="PrimitiveInLambda"
message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method startInput has parameter &apos;onImeActionPerformed&apos; with type Function1&lt;? super ImeAction, Unit>."
errorLine1=" onImeActionPerformed: (ImeAction) -> Unit"
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
<location
file="src/commonMain/kotlin/androidx/compose/ui/text/input/TextInputService.kt"/>
</issue>
<issue
id="PrimitiveInLambda"
message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method startInput has parameter &apos;onImeActionPerformed&apos; with type Function1&lt;? super ImeAction, Unit>."
errorLine1=" onImeActionPerformed: (ImeAction) -> Unit"
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
<location
file="src/commonMain/kotlin/androidx/compose/ui/text/input/TextInputService.kt"/>
</issue>
<issue
id="PrimitiveInLambda"
message="Use a functional interface instead of lambda syntax for lambdas with primitive values in method applySpanStyle has parameter &apos;resolveTypeface&apos; with type Function4&lt;? super FontFamily, ? super FontWeight, ? super FontStyle, ? super FontSynthesis, ? extends Typeface>."
errorLine1=" resolveTypeface: (FontFamily?, FontWeight, FontStyle, FontSynthesis) -> Typeface,"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/androidMain/kotlin/androidx/compose/ui/text/platform/extensions/TextPaintExtensions.android.kt"/>
</issue>
</issues>