Skip to content

Commit edbaefe

Browse files
authored
BUG: Fix empty person external link IDs (#221)
* BUG: Fix empty person external link IDs * Update to Xcode 16.2
1 parent 5b99bf4 commit edbaefe

18 files changed

+60
-11
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717
cancel-in-progress: true
1818

1919
env:
20-
DEVELOPER_DIR: /Applications/Xcode_16.1.app/Contents/Developer
20+
DEVELOPER_DIR: /Applications/Xcode_16.2.app/Contents/Developer
2121

2222
jobs:
2323
build-test:
@@ -68,13 +68,13 @@ jobs:
6868
matrix:
6969
include:
7070
- name: iOS
71-
destination: platform=iOS Simulator,name=iPhone 16,OS=18.0
71+
destination: platform=iOS Simulator,name=iPhone 16,OS=18.2
7272
- name: watchOS
73-
destination: platform=watchOS Simulator,name=Apple Watch Series 10 (46mm),OS=11.0
73+
destination: platform=watchOS Simulator,name=Apple Watch Series 10 (46mm),OS=11.2
7474
- name: tvOS
75-
destination: platform=tvOS Simulator,name=Apple TV 4K (3rd generation),OS=18.0
75+
destination: platform=tvOS Simulator,name=Apple TV 4K (3rd generation),OS=18.2
7676
- name: visionOS
77-
destination: platform=visionOS Simulator,name=Apple Vision Pro,OS=2.0
77+
destination: platform=visionOS Simulator,name=Apple Vision Pro,OS=2.2
7878
steps:
7979
- name: Checkout
8080
uses: actions/checkout@v4

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ concurrency:
1717
cancel-in-progress: true
1818

1919
env:
20-
DEVELOPER_DIR: /Applications/Xcode_16.1.app/Contents/Developer
20+
DEVELOPER_DIR: /Applications/Xcode_16.2.app/Contents/Developer
2121

2222
jobs:
2323
analyze:

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
build:
2727
name: Build
2828
runs-on: ubuntu-latest
29-
container: swift:6.0-jammy
29+
container: swift:6.0.2-jammy
3030
steps:
3131
- name: Checkout
3232
uses: actions/checkout@v4

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020
cancel-in-progress: true
2121

2222
env:
23-
DEVELOPER_DIR: /Applications/Xcode_16.1.app/Contents/Developer
23+
DEVELOPER_DIR: /Applications/Xcode_16.2.app/Contents/Developer
2424

2525
jobs:
2626
integration-test:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency:
1818
cancel-in-progress: true
1919

2020
env:
21-
DEVELOPER_DIR: /Applications/Xcode_16.1.app/Contents/Developer
21+
DEVELOPER_DIR: /Applications/Xcode_16.2.app/Contents/Developer
2222

2323
jobs:
2424
swiftFormat:

Sources/TMDb/Domain/Models/FacebookLink.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public struct FacebookLink: ExternalLink {
4444
public init?(facebookID: String?) {
4545
guard
4646
let facebookID,
47+
!facebookID.isEmpty,
4748
let url = Self.facebookURL(for: facebookID)
4849
else {
4950
return nil

Sources/TMDb/Domain/Models/IMDbLink.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public struct IMDbLink: ExternalLink {
6464
public init?(imdbNameID: String?) {
6565
guard
6666
let imdbNameID,
67+
!imdbNameID.isEmpty,
6768
let url = Self.imdbURL(forName: imdbNameID)
6869
else {
6970
return nil

Sources/TMDb/Domain/Models/InstagramLink.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public struct InstagramLink: ExternalLink {
4444
public init?(instagramID: String?) {
4545
guard
4646
let instagramID,
47+
!instagramID.isEmpty,
4748
let url = Self.instagramURL(for: instagramID)
4849
else {
4950
return nil

Sources/TMDb/Domain/Models/TikTokLink.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public struct TikTokLink: ExternalLink {
4444
public init?(tikTokID: String?) {
4545
guard
4646
let tikTokID,
47+
!tikTokID.isEmpty,
4748
let url = Self.tikTokURL(for: tikTokID)
4849
else {
4950
return nil

Sources/TMDb/Domain/Models/TwitterLink.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public struct TwitterLink: ExternalLink {
4444
public init?(twitterID: String?) {
4545
guard
4646
let twitterID,
47+
!twitterID.isEmpty,
4748
let url = Self.twitterURL(for: twitterID)
4849
else {
4950
return nil

0 commit comments

Comments
 (0)