diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index e0fe74c..e6a1b79 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -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 + - uses: actions/checkout@v4 + + - 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 UID2IMAPlugin -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 14" + run: xcodebuild -scheme UID2IMAPlugin -destination "generic/platform=iOS" - name: Run unit tests - run: xcodebuild test -scheme UID2IMAPluginTests -sdk iphonesimulator16.2 -destination "OS=16.2,name=iPhone 14" + run: xcodebuild test -scheme UID2IMAPluginTests -sdk iphonesimulator17.4 -destination "OS=17.4,name=iPhone 15" + + - name: Lint pod spec + run: pod lib lint --verbose vulnerability-scan: name: Vulnerability Scan diff --git a/RELEASE_PROCESS.md b/RELEASE_PROCESS.md index 52511b8..b7586b5 100644 --- a/RELEASE_PROCESS.md +++ b/RELEASE_PROCESS.md @@ -15,12 +15,16 @@ Version Numbering follows [Semantic Versioning](https://semver.org) standards. *https://github.com/IABTechLab/uid2-ios-plugin-google-ima/blob/ac286e2c9241c04c001ff7a42a4cbb1dfc2c80b9/Package.swift#L18 * Update / Confirm `adapterVersion()` in `UID2IMASecureSignalsAdapter.swift` is set to expected version * https://github.com/IABTechLab/uid2-ios-plugin-google-ima/blob/ac286e2c9241c04c001ff7a42a4cbb1dfc2c80b9/Sources/UID2IMAPlugin/UID2IMASecureSignalsAdapter.swift#L24-L30 + * Update / Confirm `version` and `source.tag` in `UID2IMAPlugin.podspec.json` are set to expected version + * https://github.com/IABTechLab/uid2-ios-plugin-google-ima/blob/main/UID2IMAPlugin.podspec.jsonL6-L12 * Add and / or Edit any ADRs that support this release 2. Merge Release PR into `main` 3. Use GitHub Releases to Publish the release * https://github.com/IABTechLab/uid2-ios-plugin-google-gma/releases/new * Create tag on `main` for the commit created by merge of the Release PR * Document any Release Notes +4. Publish CocoaPod to trunk + * `pod trunk push UID2IMAPlugin.podspec.json` 4. Create a Next Release PR * Set `adapterVersion()` in `UID2IMASecureSignalsAdapter.swift` to the expected next (likely minor) release version of the SDK. 5. Merge Next Release PR **BEFORE ANY CODE FOR NEXT RELEASE IS MERGED** diff --git a/UID2IMAPlugin.podspec.json b/UID2IMAPlugin.podspec.json new file mode 100644 index 0000000..0e4db07 --- /dev/null +++ b/UID2IMAPlugin.podspec.json @@ -0,0 +1,36 @@ +{ + "name": "UID2IMAPlugin", + "summary": "A plugin for integrating UID2 and Google IMA into iOS applications.", + "homepage": "https://unifiedid.com/", + "license": "Apache License, Version 2.0", + "version": "0.3.0", + "authors": { + "David Snabel-Caunt": "dave.snabel-caunt@thetradedesk.com" + }, + "source": { + "git": "https://github.com/IABTechLab/uid2-ios-plugin-google-ima.git", + "tag": "v0.3.0" + }, + "platforms": { + "ios": "13.0" + }, + "swift_versions": [ + "5" + ], + "frameworks": "Foundation", + "static_framework": true, + "resource_bundles": { + "UID2": ["Sources/UID2IMAPlugin/PrivacyInfo.xcprivacy"] + }, + "source_files": [ + "Sources/UID2IMAPlugin/**/*" + ], + "dependencies": { + "GoogleAds-IMA-iOS-SDK": [ + "~> 3.18" + ], + "UID2": [ + "~> 1.2" + ] + } +}