Skip to content

Commit 3a99ea3

Browse files
enedclaude
andcommitted
chore: clean up formatting and prepare for unit test implementation
- Run ktlint, dart format, and SwiftLint across all code - Fix iOS native test by removing obsolete NetworkType test - Move .editorconfig to root and configure to ignore Pigeon files - Add .swiftlint.yml to exclude Pigeon-generated files - Update CLAUDE.md with Pigeon and GitHub Actions documentation - Remove old CLAUDE.md files from individual packages 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8e8f5c5 commit 3a99ea3

6 files changed

Lines changed: 784 additions & 635 deletions

File tree

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.kt]
2+
ktlint_standard = enabled
3+
4+
[**/pigeon/*.g.kt]
5+
ktlint = disabled

.swiftlint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
excluded:
2+
- "**/*.g.swift"
3+
- "**/pigeon/*.swift"

CLAUDE.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## Project Workflow
2+
- Project uses GitHub Actions
3+
- Use `ktlint -F .` in root folder to format Kotlin code
4+
- Use SwiftLint for code formatting
5+
- Always resolve formatting and analyzer errors before completing a task
6+
7+
## Pigeon Code Generation
8+
- Pigeon configuration is in `workmanager_platform_interface/pigeons/workmanager_api.dart`
9+
- To regenerate Pigeon files: `cd workmanager_platform_interface && dart run pigeon --input pigeons/workmanager_api.dart`
10+
- Generated files:
11+
- Dart: `workmanager_platform_interface/lib/src/pigeon/workmanager_api.g.dart`
12+
- Kotlin: `workmanager_android/android/src/main/kotlin/dev/fluttercommunity/workmanager/pigeon/WorkmanagerApi.g.kt`
13+
- Swift: `workmanager_apple/ios/Classes/pigeon/WorkmanagerApi.g.swift`
14+
- Do not manually edit generated files (*.g.* files)
15+
16+
## Code Formatting Configuration
17+
- `.editorconfig` in root folder configures ktlint to ignore Pigeon-generated Kotlin files
18+
- `.swiftlint.yml` in root folder excludes Pigeon-generated Swift files from linting
19+
20+
## GitHub Actions Configuration
21+
- Format checks: `.github/workflows/format.yml`
22+
- Runs dart format, ktlint, and SwiftLint
23+
- Tests: `.github/workflows/test.yml`
24+
- `test`: Runs Dart unit tests
25+
- `native_ios_tests`: Runs iOS native tests with xcodebuild
26+
- `native_android_tests`: Runs Android native tests with Gradle
27+
- `drive_ios`: Runs Flutter integration tests on iOS simulator
28+
- `drive_android`: Runs Flutter integration tests on Android emulator

0 commit comments

Comments
 (0)