Skip to content

Commit 5020f6a

Browse files
enedclaude
andcommitted
fix: iOS compilation error and remove verbose flags
iOS fixes: - Fix BackgroundWorker type conversion for inputData - Handle Map type properly in method channel arguments - Ensure compatibility with [String: Any] method channel format CI/CD cleanup: - Remove --verbose flag from integration tests - Clean stable CI/CD configuration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 94be83b commit 5020f6a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,4 @@ jobs:
141141
disk-size: 6000M
142142
heap-size: 600M
143143
script: |
144-
cd example && flutter test integration_test/workmanager_integration_test.dart --verbose
144+
cd example && flutter test integration_test/workmanager_integration_test.dart

workmanager_ios/ios/Classes/BackgroundWorker.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ class BackgroundWorker {
106106
switch call.method {
107107
case BackgroundChannel.initialized:
108108
result(true) // Agree to Flutter's method invocation
109-
var arguments = self.backgroundMode.onResultSendArguments
110-
if self.inputData != "" {
111-
arguments = arguments.merging(["dev.fluttercommunity.workmanager.INPUT_DATA": self.inputData]) { current, _ in current }
109+
var arguments: [String: Any] = self.backgroundMode.onResultSendArguments
110+
if let inputData = self.inputData {
111+
arguments["dev.fluttercommunity.workmanager.INPUT_DATA"] = inputData
112112
}
113113

114114
backgroundMethodChannel?.invokeMethod(

0 commit comments

Comments
 (0)