diff --git a/macos/mobile_scanner.podspec b/macos/mobile_scanner.podspec index 0d94a11d8..bc4c60a1b 100644 --- a/macos/mobile_scanner.podspec +++ b/macos/mobile_scanner.podspec @@ -13,7 +13,7 @@ An universal scanner for Flutter based on MLKit. s.license = { :file => '../LICENSE' } s.author = { 'Julian Steenbakker' => 'juliansteenbakker@outlook.com' } s.source = { :path => '.' } - s.source_files = 'Classes/**/*' + s.source_files = 'mobile_scanner/Sources/mobile_scanner/**/*.swift' s.dependency 'FlutterMacOS' s.platform = :osx, '10.14' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } diff --git a/macos/mobile_scanner/Package.swift b/macos/mobile_scanner/Package.swift new file mode 100644 index 000000000..d08fee676 --- /dev/null +++ b/macos/mobile_scanner/Package.swift @@ -0,0 +1,25 @@ +// swift-tools-version: 5.9 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "mobile_scanner", + platforms: [ + .macOS("10.14") + ], + products: [ + .library(name: "mobile-scanner", targets: ["mobile_scanner"]) + ], + dependencies: [], + targets: [ + .target( + name: "mobile_scanner", + dependencies: [], + resources: [ + // To add other resources, see the instructions at + // https://developer.apple.com/documentation/xcode/bundling-resources-with-a-swift-package + ] + ) + ] +) diff --git a/macos/Classes/DetectionSpeed.swift b/macos/mobile_scanner/Sources/mobile_scanner/DetectionSpeed.swift similarity index 100% rename from macos/Classes/DetectionSpeed.swift rename to macos/mobile_scanner/Sources/mobile_scanner/DetectionSpeed.swift diff --git a/macos/Classes/MobileScannerPlugin.swift b/macos/mobile_scanner/Sources/mobile_scanner/MobileScannerPlugin.swift similarity index 100% rename from macos/Classes/MobileScannerPlugin.swift rename to macos/mobile_scanner/Sources/mobile_scanner/MobileScannerPlugin.swift