Skip to content

Commit

Permalink
[interactive_media_ads] Add SPM support (flutter#6756)
Browse files Browse the repository at this point in the history
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
stuartmorgan authored May 21, 2024
1 parent 1b1b5e3 commit ef756da
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/interactive_media_ads/CHANGELOG.md
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.
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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
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")
]
)
]
)
2 changes: 1 addition & 1 deletion packages/interactive_media_ads/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: interactive_media_ads
description: A Flutter plugin for using the Interactive Media Ads SDKs on Android and iOS.
repository: https://github.com/flutter/packages/tree/main/packages/interactive_media_ads
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+interactive_media_ads%22
version: 0.0.1
version: 0.0.1+1

environment:
sdk: ^3.2.3
Expand Down

0 comments on commit ef756da

Please sign in to comment.