| <?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="RestrictedApiAndroidX" |
| message="ListenableFutureKt.await can only be called from within the same library group (referenced groupId=`androidx.work` from groupId=`androidx.glance`)" |
| errorLine1=" .result.await()" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/main/java/androidx/glance/session/SessionManager.kt"/> |
| </issue> |
| |
| <issue |
| id="RestrictedApiAndroidX" |
| message="ListenableFutureKt.await can only be called from within the same library group (referenced groupId=`androidx.work` from groupId=`androidx.glance`)" |
| errorLine1=" (WorkManager.getInstance(context).getWorkInfosForUniqueWork(key).await()" |
| errorLine2=" ~~~~~"> |
| <location |
| file="src/main/java/androidx/glance/session/SessionManager.kt"/> |
| </issue> |
| |
| <issue |
| id="ListIterator" |
| message="Creating an unnecessary Iterator to iterate through a List" |
| errorLine1=" it.children.addAll(children.map { it.copy() })" |
| errorLine2=" ~~~"> |
| <location |
| file="src/main/java/androidx/glance/layout/Box.kt"/> |
| </issue> |
| |
| <issue |
| id="ListIterator" |
| message="Creating an unnecessary Iterator to iterate through a List" |
| errorLine1=" it.children.addAll(children.map { it.copy() })" |
| errorLine2=" ~~~"> |
| <location |
| file="src/main/java/androidx/glance/layout/Column.kt"/> |
| </issue> |
| |
| <issue |
| id="ListIterator" |
| message="Creating an unnecessary Iterator to iterate through a List" |
| errorLine1=" children.joinToString(",\n").prependIndent(" ")" |
| errorLine2=" ~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/glance/Emittables.kt"/> |
| </issue> |
| |
| <issue |
| id="ListIterator" |
| message="Creating an unnecessary Iterator to iterate through a List" |
| errorLine1=" events.forEach { addAction(it) }" |
| errorLine2=" ~~~~~~~"> |
| <location |
| file="src/main/java/androidx/glance/session/IdleEventBroadcastReceiver.kt"/> |
| </issue> |
| |
| <issue |
| id="ListIterator" |
| message="Creating an unnecessary Iterator to iterate through a List" |
| errorLine1=" fold(0.dp) { acc, res ->" |
| errorLine2=" ~~~~"> |
| <location |
| file="src/main/java/androidx/glance/layout/Padding.kt"/> |
| </issue> |
| |
| <issue |
| id="ListIterator" |
| message="Creating an unnecessary Iterator to iterate through a List" |
| errorLine1=" it.children.addAll(children.map { it.copy() })" |
| errorLine2=" ~~~"> |
| <location |
| file="src/main/java/androidx/glance/layout/Row.kt"/> |
| </issue> |
| |
| <issue |
| id="ListIterator" |
| message="Creating an unnecessary Iterator to iterate through a List" |
| errorLine1=" .any { it.state == WorkInfo.State.RUNNING } && synchronized(sessions) {" |
| errorLine2=" ~~~"> |
| <location |
| file="src/main/java/androidx/glance/session/SessionManager.kt"/> |
| </issue> |
| |
| <issue |
| id="ListIterator" |
| message="Creating an unnecessary Iterator to iterate through a List" |
| errorLine1=" val mask = decorations.fold(0) { acc, decoration ->" |
| errorLine2=" ~~~~"> |
| <location |
| file="src/main/java/androidx/glance/text/TextDecoration.kt"/> |
| </issue> |
| |
| <issue |
| id="ListIterator" |
| message="Creating an unnecessary Iterator to iterate through a List" |
| errorLine1=" return "TextDecoration[${values.joinToString(separator = ", ")}]"" |
| errorLine2=" ~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/glance/text/TextDecoration.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type List<FontStyle> of values: replace with IntList" |
| errorLine1=" fun values(): List<FontStyle> = listOf(Normal, Italic)" |
| errorLine2=" ~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/glance/text/FontStyle.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method toDp has parameter $this$toDp with type List<Integer>: replace with IntList" |
| errorLine1="private fun List<Int>.toDp(resources: Resources) =" |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/glance/layout/Padding.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="constructor PaddingDimension has parameter resourceIds with type List<Integer>: replace with IntList" |
| errorLine1=" val resourceIds: List<Int> = emptyList()," |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/glance/layout/Padding.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="field resourceIds with type List<Integer>: replace with IntList" |
| errorLine1=" val resourceIds: List<Int> = emptyList()," |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/glance/layout/Padding.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type List<Integer> of getResourceIds: replace with IntList" |
| errorLine1=" val resourceIds: List<Int> = emptyList()," |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/glance/layout/Padding.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="return type List<TextAlign> of values: replace with IntList" |
| errorLine1=" fun values(): List<TextAlign> = listOf(Left, Right, Center, Start, End)" |
| errorLine2=" ~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/glance/text/TextAlign.kt"/> |
| </issue> |
| |
| <issue |
| id="PrimitiveInCollection" |
| message="method combine has parameter decorations with type List<TextDecoration>: replace with IntList" |
| errorLine1=" fun combine(decorations: List<TextDecoration>): TextDecoration {" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/glance/text/TextDecoration.kt"/> |
| </issue> |
| |
| </issues> |