Audit platform-specific code in the DocuBox KMP project.
Steps:
- •
Find all
expectdeclarations in commonMain:- •Search for
expect class,expect fun,expect val,expect objectincomposeApp/src/commonMain/
- •Search for
- •
Find all
actualimplementations:- •Search
composeApp/src/androidMain/foractualdeclarations - •Search
composeApp/src/iosMain/foractualdeclarations
- •Search
- •
Find platform-specific code that isn't part of expect/actual:
- •List all Kotlin files in
androidMainandiosMain - •Identify any logic beyond the
actualimplementations
- •List all Kotlin files in
- •
Analyze and report:
- •List each expect/actual pair and its purpose
- •Flag any code in platform source sets that could move to commonMain
- •Flag any missing
actualimplementations (expect without matching actual) - •Flag any use of deprecated platform APIs