Skip to content

Commit 10498f1

Browse files
authoredOct 3, 2022
Fix formatting not running on samples (android#981)
Formatting is now done using the `scripts/format.sh` script - Removed spotless from each sample - Removed spotless from versions.toml
1 parent 49b81e5 commit 10498f1

File tree

71 files changed

+958
-228
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+958
-228
lines changed
 

‎.github/workflows/build-sample.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ jobs:
4141
~/.gradle/caches/build-cache-*
4242
key: gradle-${{ hashFiles('checksum.txt') }}
4343

44-
- name: Check spotless
44+
- name: Check formatting
4545
working-directory: ${{ inputs.path }}
46-
run: ./gradlew spotlessCheck --stacktrace
46+
run: ./gradlew --init-script buildscripts/init.gradle.kts spotlessCheck --stacktrace
4747

4848
- name: Check lint
4949
working-directory: ${{ inputs.path }}

‎Crane/app/src/androidTest/java/androidx/compose/samples/crane/calendar/CalendarTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ import androidx.compose.ui.test.performClick
2828
import androidx.compose.ui.test.performScrollToKey
2929
import dagger.hilt.android.testing.HiltAndroidRule
3030
import dagger.hilt.android.testing.HiltAndroidTest
31+
import java.time.LocalDate
3132
import org.junit.Before
3233
import org.junit.Rule
3334
import org.junit.Test
34-
import java.time.LocalDate
3535

3636
@HiltAndroidTest
3737
class CalendarTest {

0 commit comments

Comments
 (0)