-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[video_player_avfoundation] Adds Swift Package Manager compatibility (#…
…6675) Makes `video_player_avfoundation` available as a Swift Package to Flutter. Also, remains compatible with CocoaPods. Fixes flutter/flutter#146921. Redo of #6634.
- Loading branch information
Showing
27 changed files
with
174 additions
and
17 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 2.6.0 | ||
|
||
* Adds Swift Package Manager compatibility. | ||
|
||
## 2.5.7 | ||
|
||
* Adds frame availability checks on iOS. | ||
|
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 |
---|---|---|
|
@@ -14,14 +14,14 @@ Downloaded by pub (not CocoaPods). | |
s.author = { 'Flutter Dev Team' => '[email protected]' } | ||
s.source = { :http => 'https://github.com/flutter/packages/tree/main/packages/video_player/video_player_avfoundation' } | ||
s.documentation_url = 'https://pub.dev/packages/video_player' | ||
s.source_files = 'Classes/*' | ||
s.ios.source_files = 'Classes/ios/*' | ||
s.osx.source_files = 'Classes/macos/*' | ||
s.public_header_files = 'Classes/**/*.h' | ||
s.source_files = 'video_player_avfoundation/Sources/video_player_avfoundation/**/*.{h,m}' | ||
s.ios.source_files = 'video_player_avfoundation/Sources/video_player_avfoundation_ios/*' | ||
s.osx.source_files = 'video_player_avfoundation/Sources/video_player_avfoundation_macos/*' | ||
s.public_header_files = 'video_player_avfoundation/Sources/video_player_avfoundation/include/**/*.h' | ||
s.ios.dependency 'Flutter' | ||
s.osx.dependency 'FlutterMacOS' | ||
s.ios.deployment_target = '12.0' | ||
s.osx.deployment_target = '10.14' | ||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } | ||
s.resource_bundles = {'video_player_avfoundation_privacy' => ['Resources/PrivacyInfo.xcprivacy']} | ||
s.resource_bundles = {'video_player_avfoundation_privacy' => ['video_player_avfoundation/Sources/video_player_avfoundation/Resources/PrivacyInfo.xcprivacy']} | ||
end |
46 changes: 46 additions & 0 deletions
46
...ges/video_player/video_player_avfoundation/darwin/video_player_avfoundation/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,46 @@ | ||
// swift-tools-version: 5.9 | ||
|
||
// 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: "video_player_avfoundation", | ||
platforms: [ | ||
.iOS("12.0"), | ||
.macOS("10.14"), | ||
], | ||
products: [ | ||
.library(name: "video-player-avfoundation", targets: ["video_player_avfoundation"]) | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.target( | ||
name: "video_player_avfoundation", | ||
dependencies: [ | ||
.target(name: "video_player_avfoundation_ios", condition: .when(platforms: [.iOS])), | ||
.target(name: "video_player_avfoundation_macos", condition: .when(platforms: [.macOS])), | ||
], | ||
resources: [ | ||
.process("Resources") | ||
], | ||
cSettings: [ | ||
.headerSearchPath("include/video_player_avfoundation") | ||
] | ||
), | ||
.target( | ||
name: "video_player_avfoundation_ios", | ||
cSettings: [ | ||
.headerSearchPath("../video_player_avfoundation/include/video_player_avfoundation") | ||
] | ||
), | ||
.target( | ||
name: "video_player_avfoundation_macos", | ||
cSettings: [ | ||
.headerSearchPath("../video_player_avfoundation/include/video_player_avfoundation") | ||
] | ||
), | ||
] | ||
) |
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
File renamed without changes.
File renamed without changes.
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
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
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
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
13 changes: 13 additions & 0 deletions
13
...on/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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,13 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "ocmock", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/erikdoe/ocmock", | ||
"state" : { | ||
"revision" : "ef21a2ece3ee092f8ed175417718bdd9b8eb7c9a" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
13 changes: 13 additions & 0 deletions
13
..._player_avfoundation/example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved
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,13 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "ocmock", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/erikdoe/ocmock", | ||
"state" : { | ||
"revision" : "ef21a2ece3ee092f8ed175417718bdd9b8eb7c9a" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
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
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
13 changes: 13 additions & 0 deletions
13
.../example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
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,13 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "ocmock", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/erikdoe/ocmock", | ||
"state" : { | ||
"revision" : "ef21a2ece3ee092f8ed175417718bdd9b8eb7c9a" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
13 changes: 13 additions & 0 deletions
13
...layer_avfoundation/example/macos/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved
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,13 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "ocmock", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/erikdoe/ocmock", | ||
"state" : { | ||
"revision" : "ef21a2ece3ee092f8ed175417718bdd9b8eb7c9a" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
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
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
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