-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pointer_interceptor] Add Swift Package Manager support (#6790)
Adds support for Swift Package Manager on iOS. Fixes flutter/flutter#146914
- Loading branch information
1 parent
df6dd24
commit ce3d2f1
Showing
9 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
packages/pointer_interceptor/pointer_interceptor_ios/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -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 |
28 changes: 28 additions & 0 deletions
28
...ges/pointer_interceptor/pointer_interceptor_ios/ios/pointer_interceptor_ios/Package.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
] | ||
) | ||
] | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters