forked from flutter/flutter
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[interactive_media_ads] Add SPM support (flutter#6756)
Restructures the placeholder iOS implementation to follow the Swift Package Manager layout, and enables SPM support. Also marks the plugin as unpublished since it's not ready for incremental changes to be published yet. Fixes flutter#146906
- Loading branch information
1 parent
1b1b5e3
commit ef756da
Showing
6 changed files
with
35 additions
and
3 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 @@ | ||
## 0.0.1+1 | ||
|
||
* Adds Swift Package Manager support. | ||
|
||
## 0.0.1 | ||
|
||
* Adds platform interface for Android and 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,7 +14,7 @@ Downloaded by pub (not CocoaPods). | |
s.license = { :type => 'BSD', :file => '../LICENSE' } | ||
s.author = { 'Flutter Dev Team' => '[email protected]' } | ||
s.source = { :http => 'https://github.com/flutter/packages/tree/main/packages/interactive_media_ads/interactive_media_ads' } | ||
s.source_files = 'Classes/**/*' | ||
s.source_files = 'interactive_media_ads/Sources/interactive_media_ads/**/*.swift' | ||
s.dependency 'Flutter' | ||
s.platform = :ios, '12.0' | ||
|
||
|
@@ -25,5 +25,5 @@ Downloaded by pub (not CocoaPods). | |
'LD_RUNPATH_SEARCH_PATHS' => '/usr/lib/swift', | ||
} | ||
s.swift_version = '5.0' | ||
s.resource_bundles = {'interactive_media_ads_privacy' => ['Resources/PrivacyInfo.xcprivacy']} | ||
s.resource_bundles = {'interactive_media_ads_privacy' => ['interactive_media_ads/Sources/interactive_media_ads/Resources/PrivacyInfo.xcprivacy']} | ||
end |
28 changes: 28 additions & 0 deletions
28
packages/interactive_media_ads/ios/interactive_media_ads/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: "interactive_media_ads", | ||
platforms: [ | ||
.iOS("12.0") | ||
], | ||
products: [ | ||
.library(name: "interactive-media-ads", targets: ["interactive_media_ads"]) | ||
], | ||
dependencies: [], | ||
targets: [ | ||
.target( | ||
name: "interactive_media_ads", | ||
dependencies: [], | ||
resources: [ | ||
.process("Resources") | ||
] | ||
) | ||
] | ||
) |
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