Skip to content

Commit

Permalink
[pointer_interceptor] Add Swift Package Manager support (#6790)
Browse files Browse the repository at this point in the history
Adds support for Swift Package Manager on iOS.

Fixes flutter/flutter#146914
  • Loading branch information
stuartmorgan authored May 24, 2024
1 parent df6dd24 commit ce3d2f1
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NEXT
## 0.10.1

* Adds Swift Package Manager compatibility.
* Updates minimum iOS version to 12.0 and minimum Flutter version to 3.16.6.

## 0.10.0+2
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This Flutter plugin provides means to prevent gestures from being swallowed by P
s.license = { :type => 'BSD', :file => '../LICENSE' }
s.author = { 'Flutter Dev Team' => '[email protected]' }
s.source = { :http => 'https://github.com/flutter/packages/tree/main/packages/pointer_interceptor/pointer_interceptor_ios' }
s.source_files = 'Classes/**/*'
s.source_files = 'pointer_interceptor_ios/Sources/pointer_interceptor_ios/**/*.swift'
s.dependency 'Flutter'
s.platform = :ios, '12.0'
# Flutter.framework does not contain a i386 slice.
Expand All @@ -23,5 +23,5 @@ This Flutter plugin provides means to prevent gestures from being swallowed by P
'LIBRARY_SEARCH_PATHS' => '$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)/ $(SDKROOT)/usr/lib/swift',
'LD_RUNPATH_SEARCH_PATHS' => '/usr/lib/swift',
}
s.resource_bundles = {'pointer_interceptor_ios_privacy' => ['Resources/PrivacyInfo.xcprivacy']}
s.resource_bundles = {'pointer_interceptor_ios_privacy' => ['pointer_interceptor_ios/Sources/pointer_interceptor_ios/PrivacyInfo.xcprivacy']}
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import PackageDescription

let package = Package(
name: "pointer_interceptor_ios",
platforms: [
.iOS("12.0")
],
products: [
.library(name: "pointer-interceptor-ios", targets: ["pointer_interceptor_ios"])
],
dependencies: [],
targets: [
.target(
name: "pointer_interceptor_ios",
dependencies: [],
resources: [
.process("PrivacyInfo.xcprivacy")
]
)
]
)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: pointer_interceptor_ios
description: iOS implementation of the pointer_interceptor plugin.
repository: https://github.com/flutter/packages/tree/main/packages/pointer_interceptor/pointer_interceptor_ios
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Apointer_interceptor
version: 0.10.0+2
version: 0.10.1

environment:
sdk: ^3.2.3
Expand Down

0 comments on commit ce3d2f1

Please sign in to comment.