Skip to content

Commit d982ec1

Browse files
authored
Add CocoaPods podspec (#13)
1 parent 9180b0a commit d982ec1

File tree

3 files changed

+53
-4
lines changed

3 files changed

+53
-4
lines changed

.github/workflows/test-pull-request.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,28 @@ on:
1010
jobs:
1111
swift-code-checks:
1212
name: Code Tests
13-
runs-on: macos-12
13+
runs-on: macos-14
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
17+
18+
- name: Install dependencies
19+
run: brew install swiftlint
1720

1821
- name: Lint code
1922
run: swiftlint lint --config .swiftlint.yml --reporter github-actions-logging
2023

24+
- name: Select Xcode 15.3
25+
run: sudo xcode-select -s /Applications/Xcode_15.3.app
26+
2127
- name: Build
22-
run: xcodebuild -scheme UID2IMAPlugin -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 14"
28+
run: xcodebuild -scheme UID2IMAPlugin -destination "generic/platform=iOS"
2329

2430
- name: Run unit tests
25-
run: xcodebuild test -scheme UID2IMAPluginTests -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 14"
31+
run: xcodebuild test -scheme UID2IMAPluginTests -sdk iphonesimulator17.4 -destination "OS=17.4,name=iPhone 15"
32+
33+
- name: Lint pod spec
34+
run: pod lib lint --verbose
2635

2736
vulnerability-scan:
2837
name: Vulnerability Scan

RELEASE_PROCESS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ Version Numbering follows [Semantic Versioning](https://semver.org) standards.
1515
*https://github.com/IABTechLab/uid2-ios-plugin-google-ima/blob/ac286e2c9241c04c001ff7a42a4cbb1dfc2c80b9/Package.swift#L18
1616
* Update / Confirm `adapterVersion()` in `UID2IMASecureSignalsAdapter.swift` is set to expected version
1717
* https://github.com/IABTechLab/uid2-ios-plugin-google-ima/blob/ac286e2c9241c04c001ff7a42a4cbb1dfc2c80b9/Sources/UID2IMAPlugin/UID2IMASecureSignalsAdapter.swift#L24-L30
18+
* Update / Confirm `version` and `source.tag` in `UID2IMAPlugin.podspec.json` are set to expected version
19+
* https://github.com/IABTechLab/uid2-ios-plugin-google-ima/blob/main/UID2IMAPlugin.podspec.jsonL6-L12
1820
* Add and / or Edit any ADRs that support this release
1921
2. Merge Release PR into `main`
2022
3. Use GitHub Releases to Publish the release
2123
* https://github.com/IABTechLab/uid2-ios-plugin-google-gma/releases/new
2224
* Create tag on `main` for the commit created by merge of the Release PR
2325
* Document any Release Notes
26+
4. Publish CocoaPod to trunk
27+
* `pod trunk push UID2IMAPlugin.podspec.json`
2428
4. Create a Next Release PR
2529
* Set `adapterVersion()` in `UID2IMASecureSignalsAdapter.swift` to the expected next (likely minor) release version of the SDK.
2630
5. Merge Next Release PR **BEFORE ANY CODE FOR NEXT RELEASE IS MERGED**

UID2IMAPlugin.podspec.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "UID2IMAPlugin",
3+
"summary": "A plugin for integrating UID2 and Google IMA into iOS applications.",
4+
"homepage": "https://unifiedid.com/",
5+
"license": "Apache License, Version 2.0",
6+
"version": "0.3.0",
7+
"authors": {
8+
"David Snabel-Caunt": "[email protected]"
9+
},
10+
"source": {
11+
"git": "https://github.com/IABTechLab/uid2-ios-plugin-google-ima.git",
12+
"tag": "v0.3.0"
13+
},
14+
"platforms": {
15+
"ios": "13.0"
16+
},
17+
"swift_versions": [
18+
"5"
19+
],
20+
"frameworks": "Foundation",
21+
"static_framework": true,
22+
"resource_bundles": {
23+
"UID2": ["Sources/UID2IMAPlugin/PrivacyInfo.xcprivacy"]
24+
},
25+
"source_files": [
26+
"Sources/UID2IMAPlugin/**/*"
27+
],
28+
"dependencies": {
29+
"GoogleAds-IMA-iOS-SDK": [
30+
"~> 3.18"
31+
],
32+
"UID2": [
33+
"~> 1.2"
34+
]
35+
}
36+
}

0 commit comments

Comments
 (0)