Skip to content

Commit

Permalink
add spm support, bump min ios version to 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
charafau committed Oct 18, 2024
1 parent 1e7e116 commit 36c3ae5
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
Empty file removed apple_passkit/ios/Assets/.gitkeep
Empty file.
7 changes: 4 additions & 3 deletions apple_passkit/ios/apple_passkit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ A new Flutter plugin project.
s.license = { :file => '../LICENSE' }
s.author = { 'Your Company' => 'email@example.com' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.source_files = 'apple_passkit/Sources/apple_passkit/**/*.swift'
s.dependency 'Flutter'
s.platform = :ios, '11.0'
s.resource_bundles = {'apple_passkit_privacy' => ['Resources/PrivacyInfo.xcprivacy']}
s.platform = :ios, '12.0'
s.resource_bundles = {'apple_passkit_privacy' => ['apple_passkit/Sources/apple_passkit/PrivacyInfo.xcprivacy']}


# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
Expand Down
24 changes: 24 additions & 0 deletions apple_passkit/ios/apple_passkit/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// 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: "apple_passkit",
platforms: [
.iOS("12.0"),
],
products: [
.library(name: "apple-passkit", targets: ["apple_passkit"])
],
dependencies: [],
targets: [
.target(
name: "apple_passkit",
dependencies: [],
resources: [
.process("PrivacyInfo.xcprivacy"),
]
)
]
)

0 comments on commit 36c3ae5

Please sign in to comment.