Skip to content

Commit ce3d2f1

Browse files
[pointer_interceptor] Add Swift Package Manager support (#6790)
Adds support for Swift Package Manager on iOS. Fixes flutter/flutter#146914
1 parent df6dd24 commit ce3d2f1

File tree

9 files changed

+33
-4
lines changed

9 files changed

+33
-4
lines changed

packages/pointer_interceptor/pointer_interceptor_ios/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## NEXT
1+
## 0.10.1
22

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

56
## 0.10.0+2

packages/pointer_interceptor/pointer_interceptor_ios/ios/Assets/.gitkeep

Whitespace-only changes.

packages/pointer_interceptor/pointer_interceptor_ios/ios/pointer_interceptor_ios.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This Flutter plugin provides means to prevent gestures from being swallowed by P
1313
s.license = { :type => 'BSD', :file => '../LICENSE' }
1414
s.author = { 'Flutter Dev Team' => '[email protected]' }
1515
s.source = { :http => 'https://github.com/flutter/packages/tree/main/packages/pointer_interceptor/pointer_interceptor_ios' }
16-
s.source_files = 'Classes/**/*'
16+
s.source_files = 'pointer_interceptor_ios/Sources/pointer_interceptor_ios/**/*.swift'
1717
s.dependency 'Flutter'
1818
s.platform = :ios, '12.0'
1919
# Flutter.framework does not contain a i386 slice.
@@ -23,5 +23,5 @@ This Flutter plugin provides means to prevent gestures from being swallowed by P
2323
'LIBRARY_SEARCH_PATHS' => '$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)/ $(SDKROOT)/usr/lib/swift',
2424
'LD_RUNPATH_SEARCH_PATHS' => '/usr/lib/swift',
2525
}
26-
s.resource_bundles = {'pointer_interceptor_ios_privacy' => ['Resources/PrivacyInfo.xcprivacy']}
26+
s.resource_bundles = {'pointer_interceptor_ios_privacy' => ['pointer_interceptor_ios/Sources/pointer_interceptor_ios/PrivacyInfo.xcprivacy']}
2727
end
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// swift-tools-version: 5.9
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
// Copyright 2013 The Flutter Authors. All rights reserved.
5+
// Use of this source code is governed by a BSD-style license that can be
6+
// found in the LICENSE file.
7+
8+
import PackageDescription
9+
10+
let package = Package(
11+
name: "pointer_interceptor_ios",
12+
platforms: [
13+
.iOS("12.0")
14+
],
15+
products: [
16+
.library(name: "pointer-interceptor-ios", targets: ["pointer_interceptor_ios"])
17+
],
18+
dependencies: [],
19+
targets: [
20+
.target(
21+
name: "pointer_interceptor_ios",
22+
dependencies: [],
23+
resources: [
24+
.process("PrivacyInfo.xcprivacy")
25+
]
26+
)
27+
]
28+
)

packages/pointer_interceptor/pointer_interceptor_ios/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: pointer_interceptor_ios
22
description: iOS implementation of the pointer_interceptor plugin.
33
repository: https://github.com/flutter/packages/tree/main/packages/pointer_interceptor/pointer_interceptor_ios
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Apointer_interceptor
5-
version: 0.10.0+2
5+
version: 0.10.1
66

77
environment:
88
sdk: ^3.2.3

0 commit comments

Comments
 (0)