Add camera functionality for task completion photos

- Add camera picker interface to common ImagePicker.kt
- Implement camera capture for Android using ActivityResultContracts.TakePicture
- Implement camera capture for iOS using UIImagePickerController
- Add camera picker stubs for wasmJs, jsMain, and jvmMain platforms
- Update CompleteTaskDialog to show both "Take Photo" and "Choose from Library" buttons
- Add camera permissions to Android manifest (CAMERA permission, camera intent queries)
- Configure Android FileProvider for camera photo sharing
- Add camera and photo library usage descriptions to iOS Info.plist
- Update iOS CompleteTaskView with native camera picker support
- Fix cancel button in CompleteTaskView using @Environment(\.dismiss)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Trey t
2025-11-10 10:25:37 -06:00
parent 131637e6f3
commit 872a7df86f
13 changed files with 252 additions and 19 deletions

View File

@@ -13,3 +13,15 @@ actual fun rememberImagePicker(
println("Image picker not yet implemented for desktop")
}
}
@Composable
actual fun rememberCameraPicker(
onImageCaptured: (ImageData) -> Unit
): () -> Unit {
// Desktop camera picker would require platform-specific camera access
// This is a placeholder implementation
return {
// TODO: Implement desktop camera capture
println("Camera picker not yet implemented for desktop")
}
}