Skip to content

Commit 07f064a

Browse files
riggaroogithub-actions[bot]
authored andcommitted
Apply Spotless
1 parent aaa30d6 commit 07f064a

File tree

7 files changed

+36
-35
lines changed

7 files changed

+36
-35
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/animations/demo/Cheese.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright (C) 2024 The Android Open Source Project
2+
* Copyright 2024 The Android Open Source Project
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -172,8 +172,8 @@ data class Cheese(
172172
id = (i + 1).toLong(),
173173
name = name,
174174
image = CheeseImages[
175-
((name.hashCode() % CheeseImages.size) + CheeseImages.size)
176-
% CheeseImages.size
175+
((name.hashCode() % CheeseImages.size) + CheeseImages.size) %
176+
CheeseImages.size
177177
]
178178
)
179179
}

compose/snippets/src/main/java/com/example/compose/snippets/animations/demo/SimpleScaffold.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright (C) 2024 The Android Open Source Project
2+
* Copyright 2024 The Android Open Source Project
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

compose/snippets/src/main/java/com/example/compose/snippets/animations/demo/custom/CustomCanvasAnimation.kt

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
/*
2-
* Copyright 2024 The Android Open Source Project
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
15-
*/
2+
* Copyright 2024 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
1617
package com.example.compose.snippets.animations.demo.custom
1718

1819
import androidx.compose.animation.core.Animatable
@@ -73,7 +74,8 @@ fun CustomCanvasBouncyLoader() {
7374
// We get the size change of the whole composable, and use this to determine how
7475
// big the ball should be.
7576
size.value = it
76-
}) {
77+
}
78+
) {
7779
GradientCircle(
7880
Modifier
7981
.align(Alignment.TopCenter)
@@ -105,4 +107,4 @@ private fun GradientCircle(modifier: Modifier = Modifier) {
105107
private val bouncyAnimationSpec: SpringSpec<Float> = spring(
106108
dampingRatio = Spring.DampingRatioMediumBouncy,
107109
stiffness = Spring.StiffnessLow
108-
)
110+
)

compose/snippets/src/main/java/com/example/compose/snippets/animations/demo/fade/FadeDemo.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright (C) 2024 The Android Open Source Project
2+
* Copyright 2024 The Android Open Source Project
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -17,7 +17,6 @@
1717
package com.example.compose.snippets.animations.demo.fade
1818

1919
import androidx.compose.animation.AnimatedContent
20-
import androidx.compose.animation.AnimatedContentScope
2120
import androidx.compose.animation.AnimatedContentTransitionScope
2221
import androidx.compose.animation.ContentTransform
2322
import androidx.compose.animation.core.LinearOutSlowInEasing

compose/snippets/src/main/java/com/example/compose/snippets/animations/demo/fadethrough/FadeThroughDemo.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright (C) 2024 The Android Open Source Project
2+
* Copyright 2024 The Android Open Source Project
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

compose/snippets/src/main/java/com/example/compose/snippets/animations/demo/sharedaxis/SharedAxisDemo.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright (C) 2024 The Android Open Source Project
2+
* Copyright 2024 The Android Open Source Project
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -139,19 +139,19 @@ private fun <T : Comparable<T>> SharedYAxis(
139139
ContentTransform(
140140
// Outgoing elements fade out and slide up to the top.
141141
initialContentExit = fadeOut(exitSpec()) +
142-
slideOutVertically(exitSpec()) { -slideDistance },
142+
slideOutVertically(exitSpec()) { -slideDistance },
143143
// Incoming elements fade in and slide up from the bottom.
144144
targetContentEnter = fadeIn(enterSpec()) +
145-
slideInVertically(enterSpec()) { slideDistance }
145+
slideInVertically(enterSpec()) { slideDistance }
146146
)
147147
} else { // Move up
148148
ContentTransform(
149149
// Outgoing elements fade out and slide down to the bottom.
150150
initialContentExit = fadeOut(exitSpec()) +
151-
slideOutVertically(exitSpec()) { slideDistance },
151+
slideOutVertically(exitSpec()) { slideDistance },
152152
// Outgoing elements fade in and slide down from the top.
153153
targetContentEnter = fadeIn(enterSpec()) +
154-
slideInVertically(enterSpec()) { -slideDistance }
154+
slideInVertically(enterSpec()) { -slideDistance }
155155
)
156156
}
157157
},

compose/snippets/src/main/java/com/example/compose/snippets/animations/demo/sharedtransform/SharedTransformDemo.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright (C) 2024 The Android Open Source Project
2+
* Copyright 2024 The Android Open Source Project
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

0 commit comments

Comments
 (0)