Skip to content

Commit ef756da

Browse files
[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
1 parent 1b1b5e3 commit ef756da

File tree

6 files changed

+35
-3
lines changed

6 files changed

+35
-3
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.1+1
2+
3+
* Adds Swift Package Manager support.
4+
15
## 0.0.1
26

37
* Adds platform interface for Android and iOS.

packages/interactive_media_ads/ios/interactive_media_ads.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Downloaded by pub (not CocoaPods).
1414
s.license = { :type => 'BSD', :file => '../LICENSE' }
1515
s.author = { 'Flutter Dev Team' => '[email protected]' }
1616
s.source = { :http => 'https://github.com/flutter/packages/tree/main/packages/interactive_media_ads/interactive_media_ads' }
17-
s.source_files = 'Classes/**/*'
17+
s.source_files = 'interactive_media_ads/Sources/interactive_media_ads/**/*.swift'
1818
s.dependency 'Flutter'
1919
s.platform = :ios, '12.0'
2020

@@ -25,5 +25,5 @@ Downloaded by pub (not CocoaPods).
2525
'LD_RUNPATH_SEARCH_PATHS' => '/usr/lib/swift',
2626
}
2727
s.swift_version = '5.0'
28-
s.resource_bundles = {'interactive_media_ads_privacy' => ['Resources/PrivacyInfo.xcprivacy']}
28+
s.resource_bundles = {'interactive_media_ads_privacy' => ['interactive_media_ads/Sources/interactive_media_ads/Resources/PrivacyInfo.xcprivacy']}
2929
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: "interactive_media_ads",
12+
platforms: [
13+
.iOS("12.0")
14+
],
15+
products: [
16+
.library(name: "interactive-media-ads", targets: ["interactive_media_ads"])
17+
],
18+
dependencies: [],
19+
targets: [
20+
.target(
21+
name: "interactive_media_ads",
22+
dependencies: [],
23+
resources: [
24+
.process("Resources")
25+
]
26+
)
27+
]
28+
)

packages/interactive_media_ads/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: interactive_media_ads
22
description: A Flutter plugin for using the Interactive Media Ads SDKs on Android and iOS.
33
repository: https://github.com/flutter/packages/tree/main/packages/interactive_media_ads
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+interactive_media_ads%22
5-
version: 0.0.1
5+
version: 0.0.1+1
66

77
environment:
88
sdk: ^3.2.3

0 commit comments

Comments
 (0)