Skip to content

Commit dc199fe

Browse files
feat: remove no location product
1 parent ab7f0ef commit dc199fe

File tree

10 files changed

+25
-448
lines changed

10 files changed

+25
-448
lines changed

.github/workflows/build-and-lint.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@ jobs:
4242
-destination "generic/platform=iOS" \
4343
clean build | xcpretty
4444
45-
- name: Build SDK NoLocation
46-
run: |
47-
set -o pipefail
48-
xcodebuild -resolvePackageDependencies \
49-
-project "mParticle-Apple-Media-SDK.xcodeproj" \
50-
-scheme "mParticle-Apple-Media-SDK-NoLocation" \
51-
-destination "generic/platform=iOS" \
52-
clean build | xcpretty
53-
5445
run-analyzer:
5546
runs-on: macOS-15
5647
steps:

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
matrix:
3030
platform: [iOS]
31-
scheme: [mParticle-Apple-Media-SDK, mParticle-Apple-Media-SDK-NoLocation]
31+
scheme: [mParticle-Apple-Media-SDK]
3232
include:
3333
- platform: iOS
3434
device: iPhone 16 Pro

Package.swift

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,30 @@
1-
// swift-tools-version:5.3
1+
// swift-tools-version:5.5
22

33
import PackageDescription
44

55
let package = Package(
66
name: "mParticle-Apple-Media-SDK",
7-
platforms: [ .iOS(.v12), .tvOS(.v12) ],
7+
platforms: [.iOS(.v15), .tvOS(.v15)],
88
products: [
99
.library(
1010
name: "mParticle-Apple-Media-SDK",
11-
targets: ["mParticle-Apple-Media-SDK"]),
12-
.library(
13-
name: "mParticle-Apple-Media-SDK-NoLocation",
14-
targets: ["mParticle-Apple-Media-SDK-NoLocation"]),
11+
targets: ["mParticle-Apple-Media-SDK"])
1512
],
1613
dependencies: [
17-
.package(name: "mParticle-Apple-SDK",
18-
url: "https://github.com/mParticle/mparticle-apple-sdk",
19-
.upToNextMajor(from: "8.37.0")),
14+
.package(url: "https://github.com/mParticle/mparticle-apple-sdk",
15+
branch: "workstation/9.0-Release")
2016
],
2117
targets: [
2218
.target(
2319
name: "mParticle-Apple-Media-SDK",
2420
dependencies: [
25-
.product(
26-
name: "mParticle-Apple-SDK",
27-
package: "mParticle-Apple-SDK"
28-
)
21+
.product(name: "mParticle-Apple-SDK",
22+
package: "mparticle-apple-sdk")
2923
],
3024
path: "mParticle-Apple-Media-SDK",
3125
exclude: ["Info.plist"],
3226
resources: [.process("PrivacyInfo.xcprivacy")],
3327
publicHeadersPath: "."
34-
),
35-
.target(
36-
name: "mParticle-Apple-Media-SDK-NoLocation",
37-
dependencies: [
38-
.product(
39-
name: "mParticle-Apple-SDK-NoLocation",
40-
package: "mParticle-Apple-SDK"
41-
),
42-
],
43-
path: "mParticle-Apple-Media-SDK-NoLocation",
44-
exclude: ["Info.plist"],
45-
resources: [.process("PrivacyInfo.xcprivacy")],
46-
publicHeadersPath: ".",
47-
cSettings: [.define("MP_NO_LOCATION")]
4828
)
4929
]
5030
)

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,16 @@ To integrate the Media SDK using CocoaPods, specify it in your Podfile:
2727
```ruby
2828
target '<Your Target>' do
2929
pod 'mParticle-Apple-Media-SDK', '~> 1.0'
30-
31-
# If you'd like to use a version of the Media SDK that doesn't include any location tracking
32-
# nor links the CoreLocation framework, use this pod instead:
33-
# pod 'mParticle-Apple-Media-SDK/mParticleMediaNoLocation', '~> 1.0'
3430
end
3531
```
36-
Configuring your `Podfile` with the statement above will include only the _Core_ mParticle Media SDK.
3732

3833
#### Swift Package Manager
3934

4035
To integrate the SDK using Swift Package Manager, open your Xcode project and click on your project in the file list on the left, click on your Project name in the middle of the window, click on the "Package Dependencies" tab, and click the "+" button underneath the Packages list.
4136

42-
Enter the repository URL `https://github.com/mParticle/mparticle-apple-media-sdk` in the search box on the top right, choose `mparticle-apple-media-sdk` from the list of pacakges, and change "Dependency Rule" to "Up to Next Major Version". Then click the "Add Package" button on the bottom right.
43-
44-
Then choose either the "Package Product" called `mParticle-Apple-Media-SDK`, or if you'd like to use a version of the SDK that doesn't include any location tracking nor links the CoreLocation framework choose `mParticle-Apple-Media-SDK-NoLocation`.
37+
Enter the repository URL `https://github.com/mParticle/mparticle-apple-media-sdk` in the search box on the top right, choose `mparticle-apple-media-sdk` from the list of packages, and change "Dependency Rule" to "Up to Next Major Version". Then click the "Add Package" button on the bottom right.
4538

46-
**IMPORTANT:** If you choose the `mParticle-Apple-Media-SDK-NoLocation` package product, you will need to import the SDK using `import mParticle_Apple_Media_SDK_NoLocation` instead of `import mParticle_Apple_Media_SDK` as shown in the rest of the documentation and this README.
39+
Select the `mParticle-Apple-Media-SDK` package product and click "Add Package".
4740

4841
## Include and Initialize the SDK
4942

mParticle-Apple-Media-SDK-NoLocation

Lines changed: 0 additions & 1 deletion
This file was deleted.

mParticle-Apple-Media-SDK-Shared/MPMediaSDK.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import UIKit
2-
#if canImport(mParticle_Apple_Media_SDK_NoLocation)
3-
import mParticle_Apple_SDK_NoLocation
4-
#else
52
import mParticle_Apple_SDK
6-
#endif
73

84
let MediaAttributeKeysMediaSessionId = "media_session_id"
95

mParticle-Apple-Media-SDK.podspec

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,13 @@ Pod::Spec.new do |s|
1515

1616
s.swift_version = '5.0'
1717

18-
s.ios.deployment_target = "12.0"
19-
s.tvos.deployment_target = "12.0"
20-
21-
s.default_subspecs = "mParticleMedia"
22-
23-
# ---- mParticleMedia ----
24-
s.subspec 'mParticleMedia' do |ss|
25-
ss.source_files = [
26-
'mParticle-Apple-Media-SDK-Shared/**/*.{h,m,mm,swift}'
27-
]
28-
29-
ss.dependency 'mParticle-Apple-SDK/mParticle', '~> 8.37'
30-
end
18+
s.ios.deployment_target = "15.0"
19+
s.tvos.deployment_target = "15.0"
3120

32-
# ---- NoLocation ----
33-
s.subspec 'mParticleMediaNoLocation' do |ss|
34-
ss.pod_target_xcconfig = {
35-
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) MP_NO_LOCATION=1',
36-
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => '$(inherited) MP_NO_LOCATION'
37-
}
21+
s.source_files = [
22+
'mParticle-Apple-Media-SDK-Shared/**/*.{h,m,mm,swift}'
23+
]
24+
25+
s.dependency 'mParticle-Apple-SDK', '~> 9.0'
3826

39-
ss.source_files = [
40-
'mParticle-Apple-Media-SDK-Shared/**/*.{h,m,mm,swift}'
41-
]
42-
43-
ss.dependency 'mParticle-Apple-SDK/mParticleNoLocation', '~> 8.37'
44-
end
45-
4627
end

0 commit comments

Comments
 (0)