From 361c73bb93d044044c61cb06e78d96a4373b11dc Mon Sep 17 00:00:00 2001 From: takahirom Date: Sat, 22 Jun 2024 10:44:36 +0900 Subject: [PATCH] Fix file name and apply detekt in ci --- .github/workflows/unit-test.yml | 2 ++ app-ios/Sources/AppExperiments/ContentView.swift | 2 +- .../{IosCompose.kt => ContributorsViewController.kt} | 0 .../eventmap/{IosCompose.kt => EventMapViewController.kt} | 0 4 files changed, 3 insertions(+), 1 deletion(-) rename feature/contributors/src/iosMain/kotlin/io/github/droidkaigi/confsched/contributors/{IosCompose.kt => ContributorsViewController.kt} (100%) rename feature/eventmap/src/iosMain/kotlin/io/github/droidkaigi/confsched/eventmap/{IosCompose.kt => EventMapViewController.kt} (100%) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 9b6aea9ec..a6749a70f 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -37,6 +37,8 @@ jobs: name: event-payload path: ${{ github.event_path }} + - run: ./gradlew detekt --stacktrace + - run: ./gradlew testDevDebugUnitTest testDebugUnitTest --stacktrace # Saving cost diff --git a/app-ios/Sources/AppExperiments/ContentView.swift b/app-ios/Sources/AppExperiments/ContentView.swift index 858928444..29abd2017 100644 --- a/app-ios/Sources/AppExperiments/ContentView.swift +++ b/app-ios/Sources/AppExperiments/ContentView.swift @@ -64,7 +64,7 @@ public struct ContentView: View { struct ContributorComposeViewControllerWrapper: UIViewControllerRepresentable { let repositories: any Repositories func makeUIViewController(context: Context) -> UIViewController { - return IosComposeKt.contributorsViewController( + return contributorsViewController( repositories: repositories, onContributorsItemClick: {_ in} ) diff --git a/feature/contributors/src/iosMain/kotlin/io/github/droidkaigi/confsched/contributors/IosCompose.kt b/feature/contributors/src/iosMain/kotlin/io/github/droidkaigi/confsched/contributors/ContributorsViewController.kt similarity index 100% rename from feature/contributors/src/iosMain/kotlin/io/github/droidkaigi/confsched/contributors/IosCompose.kt rename to feature/contributors/src/iosMain/kotlin/io/github/droidkaigi/confsched/contributors/ContributorsViewController.kt diff --git a/feature/eventmap/src/iosMain/kotlin/io/github/droidkaigi/confsched/eventmap/IosCompose.kt b/feature/eventmap/src/iosMain/kotlin/io/github/droidkaigi/confsched/eventmap/EventMapViewController.kt similarity index 100% rename from feature/eventmap/src/iosMain/kotlin/io/github/droidkaigi/confsched/eventmap/IosCompose.kt rename to feature/eventmap/src/iosMain/kotlin/io/github/droidkaigi/confsched/eventmap/EventMapViewController.kt