Skip to content

Commit

Permalink
making itunes owner email optional (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
leogdion authored Dec 5, 2022
1 parent dc3e6b6 commit 3777765
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/syndikit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
cache-name: cache-spm
with:
path: .build
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Package.resoved') }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Package.resolved') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
Expand Down Expand Up @@ -106,12 +106,13 @@ jobs:
cache-name: cache-spm
with:
path: .build
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Package.resoved') }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Package.resolved') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Cache mint
if: ${{ github.event_name == 'pull_request' && github.base_ref == 'main' && matrix.xcode == '/Applications/Xcode_14.1.app' }}
id: cache-mint
uses: actions/cache@v3
env:
Expand All @@ -123,16 +124,15 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
if: startsWith(matrix.xcode,'/Applications/Xcode_14')
- name: Set Xcode Name
run: echo "XCODE_NAME=$(basename -- ${{ matrix.xcode }} | sed 's/\.[^.]*$//' | cut -d'_' -f2)" >> $GITHUB_ENV
- name: Setup Xcode
run: sudo xcode-select -s ${{ matrix.xcode }}/Contents/Developer
- name: Install mint
if: ${{ github.event_name == 'pull_request' && github.base_ref == 'main' && matrix.xcode == '/Applications/Xcode_14.1.app' }}
run: |
brew update
brew install mint
if: startsWith(matrix.xcode,'/Applications/Xcode_14')
- name: Build
run: swift build
- name: Run Swift Package tests
Expand All @@ -149,17 +149,17 @@ jobs:
run: rm -rf .build
- name: Lint
run: ./scripts/lint.sh
if: startsWith(matrix.xcode,'/Applications/Xcode_14')
if: ${{ github.event_name == 'pull_request' && github.base_ref == 'main' && matrix.xcode == '/Applications/Xcode_14.1.app' }}
- name: Dump PIF
if: startsWith(matrix.xcode,'/Applications/Xcode_14')
run: |
swift package dump-pif > /dev/null
MAX_ATTEMPT=3
ATTEMPT=0
while [ -z $SUCCESS ] && [ "$ATTEMPT" -le "$MAX_ATTEMPT" ]; do
xcodebuild clean -scheme FloxBxUI -destination 'generic/platform=iOS' | grep -q "CLEAN SUCCEEDED" && SUCCESS=true
xcodebuild clean -scheme SyndiKit -destination 'generic/platform=iOS' | grep -q "CLEAN SUCCEEDED" && SUCCESS=true
ATTEMPT=$(($ATTEMPT+1))
done
if: matrix.xcode == '/Applications/Xcode_14.1.app'
- name: Run iOS target tests
run: xcodebuild test -scheme SyndiKit -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 13,OS=${{ matrix.iOSVersion }}' -enableCodeCoverage YES build test
- uses: sersoft-gmbh/swift-coverage-action@v2
Expand All @@ -185,14 +185,12 @@ jobs:
needs: [build-macos, build-ubuntu]
env:
PACKAGE_NAME: SyndiKit
runs-on: macos-11
runs-on: macos-12
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v2
- name: Setup Netlify
run: brew install netlify-cli
- name: Setup Xcode
run: sudo xcode-select -s /Applications/Xcode_13.0.app/Contents/Developer
- name: Resolve Package Dependencies
run: xcodebuild -resolvePackageDependencies -scheme ${{ env.PACKAGE_NAME }} -derivedDataPath DerivedData
- name: Build DocC Documentation
Expand Down
1 change: 0 additions & 1 deletion Data/XML/empowerapps-show.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
<itunes:keywords>technology, apple, business, iPhone, Mac, osx, macOS, iPad, Apple Watch</itunes:keywords>
<itunes:owner>
<itunes:name>Leo Dion, Principal CEO and Swift Developer at BrightDigit </itunes:name>
<itunes:email>[email protected]</itunes:email>
</itunes:owner>
<itunes:complete>No</itunes:complete>
<itunes:explicit>No</itunes:explicit>
Expand Down
2 changes: 1 addition & 1 deletion Sources/SyndiKit/Formats/Media/iTunes/iTunesOwner.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// swiftlint:disable:next type_name
public struct iTunesOwner: Codable {
public let name: String
public let email: String
public let email: String?

enum CodingKeys: String, CodingKey {
case name = "itunes:name"
Expand Down

0 comments on commit 3777765

Please sign in to comment.