Skip to content

Commit

Permalink
Merge pull request #1161 from Xa69/users/nimish/1150-SPM-Support-on-m…
Browse files Browse the repository at this point in the history
…acOS

build: SPM temp support changes for support on MacOS
  • Loading branch information
navaronbracke authored Aug 31, 2024
2 parents 65bc14b + c3f3ad6 commit 5b6436e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion macos/mobile_scanner.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ An universal scanner for Flutter based on MLKit.
s.license = { :file => '../LICENSE' }
s.author = { 'Julian Steenbakker' => '[email protected]' }
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' }
Expand Down
25 changes: 25 additions & 0 deletions macos/mobile_scanner/Package.swift
Original file line number Diff line number Diff line change
@@ -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
]
)
]
)
File renamed without changes.
File renamed without changes.

0 comments on commit 5b6436e

Please sign in to comment.