Skip to content

Commit

Permalink
Add CocoaPods podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaunt committed May 14, 2024
1 parent 2e144a1 commit 90453f1
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,28 @@ on:
jobs:
swift-code-checks:
name: Code Tests
runs-on: macos-12
runs-on: macos-14

steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: brew install swiftlint

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

- name: Select Xcode 15.3
run: sudo xcode-select -s /Applications/Xcode_15.3.app

- name: Build
run: xcodebuild -scheme UID2GMAPlugin -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 14"
run: xcodebuild -scheme UID2GMAPlugin -destination "generic/platform=iOS"

- name: Run unit tests
run: xcodebuild test -scheme UID2GMAPluginTests -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 14"
run: xcodebuild test -scheme UID2GMAPluginTests -sdk iphonesimulator17.4 -destination "OS=17.4,name=iPhone 15"

- name: Lint pod spec
run: pod lib lint --verbose

vulnerability-scan:
name: Vulnerability Scan
Expand Down
32 changes: 32 additions & 0 deletions UID2GMAPlugin.podspec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "UID2GMAPlugin",
"summary": "A plugin for integrating UID2 and Google GMA into iOS applications.",
"homepage": "https://unifiedid.com/",
"license": "Apache License, Version 2.0",
"version": "0.3.0",
"authors": {
"David Snabel-Caunt": "[email protected]"
},
"source": {
"git": "https://github.com/IABTechLab/uid2-ios-plugin-google-gma.git",
"tag": "v0.3.0"
},
"platforms": {
"ios": "13.0"
},
"swift_versions": [
"5"
],
"frameworks": "Foundation",
"resource_bundles": {
"UID2": ["Sources/UID2GMAPlugin/PrivacyInfo.xcprivacy"]
},
"source_files": [
"Sources/UID2GMAPlugin/**/*"
],
"dependencies": {
"UID2": [
"~> 1.2.0"
]
}
}

0 comments on commit 90453f1

Please sign in to comment.