Repository navigation
Expand file tree
/
Copy pathproject.yml
More file actions
1106 lines (1093 loc) · 55.2 KB
/
Copy pathproject.yml
File metadata and controls
1106 lines (1093 loc) · 55.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
name: Swiftly
options:
bundleIdPrefix: de.paulherter
# German is the source language; English comes from the catalog. Both ship
# with the app.
developmentLanguage: de
deploymentTarget:
iOS: "18.0"
tvOS: "18.0"
macOS: "15.0"
createIntermediateGroups: true
generateEmptyDirectories: false
packages:
JellyfinKit:
path: Packages/JellyfinKit
# The third playback engine (FFmpeg demuxes, the system decodes). A wrapper package,
# because AetherEngine's optional parts are package traits and XcodeGen cannot set them.
SwiftlyAether:
path: Packages/SwiftlyAether
# The Rust core (home page behind the `rustKern` switch). The binary framework inside is
# git-ignored: `Werkzeuge/rust-kern.sh` builds it, and must run before `xcodegen generate`.
SwiftlyCore:
path: Packages/SwiftlyCore
settings:
base:
SWIFT_VERSION: "6.0"
# Makes Xcode extract strings from Swift code into the catalog.
SWIFT_EMIT_LOC_STRINGS: "YES"
# Must match the version in App Store Connect, otherwise the build cannot be
# attached there. Do not attach another build to an already released
# version; that does not work cleanly.
MARKETING_VERSION: "1.1.1"
# Must be incremented on EVERY upload: Apple does not accept the same build
# number twice per version (error 90189).
#
# The counter applies per version, so it restarts at 1 for a new version.
# Before resetting it, check the highest build number already uploaded for
# that version on all platforms in App Store Connect.
CURRENT_PROJECT_VERSION: "54"
# Same identifier as in the free-account days: Apple converted the personal
# team into the paid one instead of creating a second one.
DEVELOPMENT_TEAM: 63L6TSM2Y9
CODE_SIGN_STYLE: Automatic
SWIFT_STRICT_CONCURRENCY: complete
fileGroups:
- Sources/Shared/Localizable.xcstrings
- Sources/Shared/InfoPlist.xcstrings
# Local StoreKit testing; in the project for the scheme picker, in no target.
# How to use it: StoreKit/README.md.
- StoreKit
targets:
Swiftly-iOS:
type: application
platform: iOS
sources:
- path: Sources/Shared
excludes:
# The launch animation is gone on Apple, Android and the Rust desktop; only the old Swift Linux and Windows apps still read this file.
- Assets/startanimation.json
- path: Sources/iOS
# **Licenses come from one source**: `LICENSES/` (components.json and the
# full texts) is copied into the bundle unchanged; `Lizenzbestand` reads
# it.
- path: LICENSES
type: folder
dependencies:
- package: JellyfinKit
- package: SwiftlyAether
- package: SwiftlyCore
info:
path: Sources/iOS/Info.plist
properties:
# **The fallback language, not the source language.**
#
# German stays the key in the catalog. A device set to neither German
# nor English (Dutch, Russian, Chinese) gets exactly this value: Apple's
# last fallback level is CFBundleDevelopmentRegion (QA1828). With `de`
# here, much of the world saw a German app.
#
# Not via `options.developmentLanguage`: that is the project's source
# language and stays German.
# **Without this key iOS caps the app at 60 Hz**, even on a device that
# can do 120. Apple made this opt-in on purpose to save battery; for a
# video app it is the difference between smooth and juddery.
#
# Why it matters: 24p does not fit 60 Hz. 60 / 23.976 = 2.503, so each
# frame is held for two or three refreshes alternately (the classic 3:2
# cadence), most visible in pans. At 120 Hz it is 5.005, which works out
# almost exactly.
#
# Measured: VLC delivered every frame on time (none dropped or late,
# hardware decoder, log silent) and the judder was still there. It
# arises at display time, beyond anything VLC sees.
#
# iPad Pro does not need the key, according to Apple.
CADisableMinimumFrameDurationOnPhone: true
CFBundleDevelopmentRegion: en
CFBundleDisplayName: Swiftly
CFBundleShortVersionString: $(MARKETING_VERSION)
# Without a color, white flashes briefly before the launch animation.
# `StartBackground` is generated from `surface.base`, never edit it by hand.
UILaunchScreen:
UIColorName: StartBackground
# All four are required: without UIRequiresFullScreen an app with "1,2"
# counts as multitasking-capable, and Apple then requires the full set.
# Without PortraitUpsideDown the upload check fails, not only the
# review.
#
# This is only the outer frame. What applies is decided at runtime by
# `Orientierung`: on iPhone it stays portrait, the player may rotate. On
# iPad the frame applies unchanged, since a multitasking-capable app
# must not force rotation.
# The app's typeface (Inter, variable): `Font.app` uses it.
UIAppFonts:
- InterVariable.ttf
UISupportedInterfaceOrientations:
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
# Required for Picture-in-Picture: without 'audio' as background mode
# iOS ends playback as soon as the window gets small.
UIBackgroundModes:
- audio
NSAppTransportSecurity:
# **Only this one key, on purpose.**
#
# Adding `NSAllowsLocalNetworking` next to it is wrong: **since iOS
# 10, `NSAllowsArbitraryLoads` is ignored as soon as
# `NSAllowsLocalNetworking`, `NSAllowsArbitraryLoadsInWebContent` or
# `...ForMedia` is present.** The keys do not complement each other;
# the second disables the first.
#
# This blocked users reaching Jellyfin over Tailscale
# (`http://100.x.x.x:8096`): Tailscale uses 100.64.0.0/10, the CGNAT
# range, which ATS does **not** count as local network (RFC1918,
# `.local` and `localhost` are). The same block hit plain-http
# dynamic-DNS hostnames.
#
# A client for self-hosted servers cannot know the address at build
# time, so `NSExceptionDomains` do not help. Swiftly steers towards
# https in code instead: an address without scheme gets `https://`
# prepended unless it looks like a home network
# (`AppModelURLNormalizer`, IP literals included). It falls back to
# http only if https fails at the connection level, never on an error
# response.
NSAllowsArbitraryLoads: true
# **Required since iOS 14; without it the error is hard to interpret.**
#
# The system asks for permission before an app talks to devices on the
# local network, even for a direct IP, not only `.local`. If the user
# denies, URLSession reports "The Internet connection appears to be
# offline" although the network is fine. This sentence is shown in the
# prompt itself and is the only chance to explain why the app wants it.
#
# **English as default, German from `InfoPlist.xcstrings`.** A
# hard-coded plist value is not translated; it appears as written. Since
# `CFBundleDevelopmentRegion` is `en`, this sentence must be English
# too.
NSLocalNetworkUsageDescription: Swiftly looks for your Jellyfin server
on your home network. Without this, the app cannot reach a server at
an address like 192.168.1.5.
# Otherwise App Store Connect asks about export compliance on every
# upload. The app does no encryption itself, only HTTPS through system
# APIs, which is exempt.
ITSAppUsesNonExemptEncryption: false
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
# **Tips restore the supporter status from the purchase history.** The tips
# are consumables, and without this key `Transaction.all` leaves finished
# consumables out, so a reinstall or a new device would forget the supporter.
# Available from iOS 18, tvOS 18 and macOS 15, our minimum versions.
SKIncludeConsumableInAppPurchaseHistory: true
settings:
base:
# The Rust core (`Packages/SwiftlyCore`) is built for arm64 only. A generic build must not ask
# for x86_64; Intel simulators are gone. Open for the Mac before release: add an x86_64 slice.
"EXCLUDED_ARCHS[sdk=iphonesimulator*]": x86_64
PRODUCT_BUNDLE_IDENTIFIER: de.paulherter.swiftly
# iPhone and iPad. The former reasons to exclude iPad are resolved:
# PortraitUpsideDown is in the orientations above, and views read their
# width instead of hard-wiring three columns (`Stil.spalten(fuer:)`).
#
# Deliberately **without** UIRequiresFullScreen: the app should run in
# split screen. The price is the orientation requirement above.
TARGETED_DEVICE_FAMILY: "1,2"
# A single 1024 image without separate dark and tinted variants; iOS
# derives those from it. Enough for submission; separate variants would
# be an improvement, not a requirement.
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
# **Six supporter icons** next to the regular one (`SupporterIcon`). Only
# icons named here are compiled as alternates; the names are strings the
# code passes to `setAlternateIconName`.
#
# `AppIcon-NeonNight` and `AppIcon-Halloween` belong to the looks of the same
# name (`Look.iconName`); the look switches them, not the icon picker.
ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES: "AppIcon-Heart AppIcon-Aurora AppIcon-Gold AppIcon-Light AppIcon-Night AppIcon-Coffee AppIcon-NeonNight AppIcon-Halloween AppIcon-LookSunset AppIcon-LookAurora AppIcon-LookIce AppIcon-LookEmber AppIcon-LookGold AppIcon-LookEmerald"
# Without entitlements the keychain refuses writes (-34018) and the
# login would be lost on every launch.
CODE_SIGN_ENTITLEMENTS: Sources/iOS/Swiftly.entitlements
Swiftly-tvOS:
type: application
platform: tvOS
# Deliberately **not** all of `Sources/Shared`: it contains swipe gestures,
# the bottom nav bar, tap areas and keyboard types that do not exist on
# tvOS. Only what is independent of distance and input method is shared:
# state holders, keychain, brands, routes, colors. Each platform has its own
# views.
sources:
# **One manifest for all platforms.**
#
# It used to live in `Sources/iOS` and was only picked up there because
# the whole directory is collected. tvOS and macOS pick files from
# `Shared` individually and so had none; Apple sends the ITMS-91053 notice
# for that. The entries are identical on all three, so they exist once.
- path: Sources/Shared/PrivacyInfo.xcprivacy
buildPhase: resources
- path: Sources/Shared/AppModel.swift
- path: Sources/Shared/AppModel+Servers.swift
- path: Sources/Shared/WatchersText.swift
- path: Sources/Shared/SettingsSyncRun.swift
- path: Sources/Shared/InsecureServerAlert.swift
- path: Sources/Shared/UnreadableAccounts.swift
# **Only the management, not the views.** Downloads exist only on iPhone
# and iPad, but `AppModel` holds them and `AppModel` is shared. The class
# sits idle here: `downloadsAn` is off, so neither the network watcher nor
# the background session ever starts.
- path: Sources/Shared/DownloadManager.swift
- path: Sources/Shared/CoreDownloadOrder.swift
- path: Sources/Shared/LoginModel.swift
- path: Sources/Shared/PlayRequest.swift
- path: Sources/Shared/Colors.swift
# The generated design tokens (layout set `tv`): Apple TV reads its values from here, not from literals.
- path: Sources/Shared/Tokens.generated.swift
- path: Sources/Shared/AppFont.swift
- path: Sources/Shared/AppIcon.swift
# Inter and our icons, the same files as on iPhone: the TV uses the same kit.
- path: Sources/iOS/Fonts/InterVariable.ttf
buildPhase: resources
- path: Sources/iOS/Icons.xcassets
- path: Sources/iOS/IconMap.swift
# The active look: `Theme.accent` reads from it.
- path: Sources/Shared/LookStore.swift
# The gift's flow (What's New, the offer, picking it up, the looks panel's state) is
# shared; its views are guarded `#if !os(tvOS)` and Apple TV draws its own
# (`Sources/tvOS/TVLooks.swift`).
- path: Sources/Shared/LookGiftSheet.swift
- path: Sources/Shared/Motion.swift
# The player menus: data, session and the conversion of the core's pages; Apple TV draws them in `Sources/tvOS/TVPlayerMenus.swift`.
- path: Sources/Shared/MenuSpec.swift
- path: Sources/Shared/PlayerMenuSession.swift
- path: Sources/Shared/EpisodesLoader.swift
- path: Sources/Shared/PlayerMenuWords+Text.swift
# Name, sentence and mark of each server kind, and the state of the Plex/Emby sign-in;
# the views on top are per platform.
- path: Sources/Shared/ServerKindLook.swift
- path: Sources/Shared/SignInModels.swift
- path: Sources/Shared/TestPublicHosts.swift
- path: Sources/Shared/GridJump.swift
# The flow around a purchase (looks panel, sheet, thank-you page) and SupportChoice.
- path: Sources/Shared/SupportFlow.swift
- path: Sources/Shared/Keychain.swift
- path: Sources/Shared/Marks.swift
- path: Sources/Shared/Routes.swift
- path: Sources/Shared/PersonRoute+Seerr.swift
- path: Sources/Shared/TitleAction.swift
- path: Sources/Shared/TitleMark.swift
# Container, codec, subtitles in the file excerpt - same info everywhere.
# Which bitrates, skip lengths and languages are offered.
# Row title, badge, loader, profile glyph - building blocks without
# platform dimensions. They used to exist three times; the target now
# passes the dimensions as a parameter, see `Lader.far` in Style.swift.
- path: Sources/Shared/Components.swift
# **The image cache `Profilzeichen` depends on.** It remembers what was
# already fetched and answers synchronously - only so a known profile
# image appears in the first pass instead of after a gradient flash. tvOS
# keeps its own `Bild` building block for tiles.
- path: Sources/Shared/NetworkImage.swift
- path: Sources/Shared/Picture.swift
- path: Sources/Shared/InTravel.swift
# VLC's counters and the tech badge above them - shared by all platforms
# since the badge exists everywhere.
- path: Sources/Shared/PlayValues.swift
# The next-episode card at the end of an episode: frame, ring, gradient;
# each platform draws the card itself.
- path: Sources/Shared/EpisodeCardParts.swift
# Plan and file start of the next episode in the last minutes (rules in
# `Vorpuffer` in the package) - iPhone and TV.
- path: Sources/Shared/EpisodePreparation.swift
# Account switch as animation - flight, stage, staggered rows; iPhone and
# TV.
- path: Sources/Shared/AccountTransition.swift
- path: Sources/Shared/AccountSwitchStageUIKit.swift
# Spring and "out of the point" - the selection grows from the badge.
- path: Sources/Shared/Transitions.swift
# The menu behind a long press on any tile - on TV without preview and
# without "Download".
- path: Sources/Shared/TileMenu.swift
- path: Sources/Shared/TechBadge.swift
- path: Sources/Shared/QuickConnectModel.swift
- path: Sources/Shared/PlaybackHub.swift
# Offline self-test (`-offlinelauf`), only active in Debug builds.
- path: Sources/Shared/OfflineRun.swift
# The running-app matrix (DEBUG only), driven by `Werkzeuge/live-lauf.py tv` in the tvOS simulator.
- path: Sources/Shared/LiveRun.swift
- path: Sources/Shared/PasswordProof.swift
- path: Sources/Shared/DiscordIndicator.swift
- path: Sources/Shared/HomePageModel.swift
- path: Sources/Shared/AppCore.swift
- path: Sources/Shared/AccountsHost.swift
- path: Sources/Shared/ServerAdminHost.swift
- path: Sources/Shared/ServerSearchHost.swift
- path: Sources/Shared/ShuffleRunCore.swift
- path: Sources/Shared/LoadSelectionState.swift
- path: Sources/Shared/PlexSignInRun.swift
- path: Sources/Shared/CoreErrorText.swift
- path: Sources/Shared/SeerrCoreBridge.swift
- path: Sources/Shared/SeerrBridge+Library.swift
- path: Sources/Shared/WhatsNewPage.swift
- path: Sources/Shared/SettingsRowsFeed.swift
- path: Sources/Shared/RustHome.swift
- path: Sources/Shared/DetailCore.swift
- path: Sources/Shared/TroublePage.swift
- path: Sources/Shared/SeriesCore.swift
# Seerr - the integration itself; views stay platform-specific.
- path: Sources/Shared/SeerrModel.swift
- path: Sources/Shared/SeerrMark.swift
- path: Sources/Shared/SeerrBridge+Search.swift
- path: Sources/Shared/SeerrBridge+Title.swift
- path: Sources/Shared/SeerrEpisodes.swift
- path: Sources/Shared/SeerrSeasonAdmin.swift
- path: Sources/Shared/RequestDetailView.swift
- path: Sources/Shared/DesktopArrivalStack.swift
- path: Sources/Shared/SeerrBridge+Home.swift
- path: Sources/Shared/ArrivalMotion.swift
- path: Sources/Shared/SeerrTile.swift
- path: Sources/Shared/SeerrBridge+Admin.swift
- path: Sources/Shared/SeerrSetupFlow.swift
# The version string for the profile page - one computation, three views.
- path: Sources/Shared/Version.swift
# "Support Swiftly": StoreKit, watch time and when to ask; views per platform.
- path: Sources/Shared/SupportModel.swift
- path: Sources/Shared/LibraryModel.swift
- path: Sources/Shared/WatchlistModel.swift
# **The series store existed a second time here.** The shared file was
# extracted from this version, but tvOS kept its copy, which lacked what
# extraction added: the question which account the content belongs to.
# After an account switch, foreign checkmarks and progress bars showed up.
- path: Sources/Shared/SeriesCache.swift
- path: Sources/Shared/SVGPath.swift
# Both platforms share the playback machinery: the same `mkv_trusted`
# trick, the same stall detection. Picture-in-Picture in it is excluded
# with `#if os(iOS)`.
# Carries the platform's view class. VLCPlayer depends on it since there
# is also an AppKit arm.
- path: Sources/Shared/BaseView.swift
- path: Sources/Shared/HoldPill.swift
- path: Sources/Shared/VLCPlayer.swift
- path: Sources/Shared/VLCPlayerView+Engine.swift
- path: Sources/Shared/SubtitleOverlay.swift
- path: Sources/Shared/SubtitleScript.swift
- path: Sources/Shared/AetherPlayerEngine.swift
- path: Sources/Shared/PlaybackBackend.swift
- path: Sources/Shared/StartTracks.swift
- path: Sources/Shared/ReportRoute.swift
- path: Sources/Shared/CoreAetherPort.swift
- path: Sources/Shared/CorePlaybackBackend.swift
- path: Sources/Shared/VersionKeeping.swift
- path: Sources/Shared/PlanFromCore.swift
- path: Sources/Shared/HardwareAV1.swift
- path: Sources/Shared/PlayExtras.swift
- path: Sources/Shared/DelayCarry.swift
- path: Sources/Shared/AppModel+Engine.swift
# The subtitle look page: the preview picture and the words every platform shares.
- path: Sources/Shared/SubtitlePreview.swift
- path: Sources/Shared/NetworkProbe.swift
# Preview images while scrubbing: fetching and caching of the trickplay
# sheets, shared with iPhone and Mac.
- path: Sources/Shared/TrickplayImages.swift
# The timeline in pieces, one per chapter - same mask as on iPhone and
# Mac.
- path: Sources/Shared/ChapterMask.swift
# The chapter list's rows (text, tile, sizes) - one source for iPhone, Mac and TV.
- path: Sources/Shared/ChapterList.swift
# Handover between devices: polling interval and state.
- path: Sources/Shared/TakeoverModel.swift
# "Continue watching here" as a card: stage above everything and the exit
# of the handing-over device; timeline in the package (`Uebergabekarte`).
- path: Sources/Shared/HandoffStage.swift
# Watch together: the group mirror and the bridge to the player. The flow
# itself is in the package (`SyncPlaySitzung`).
- path: Sources/Shared/SharedModel.swift
- path: Sources/Shared/Localizable.xcstrings
# Only for the local-network prompt: English is in Info.plist, German
# comes from here.
- path: Sources/Shared/InfoPlist.xcstrings
- path: Sources/Shared/ShelfPreview.swift
- path: Sources/Shared/Assets
excludes:
- startanimation.json
- path: Sources/Shared/Licenses.swift
# The tones of a backdrop image - TV tints its detail pages with them,
# iPhone the background below.
- path: Sources/Shared/ImageTone.swift
- path: Sources/tvOS
# **Licenses come from one source**: `LICENSES/` (components.json and the
# full texts) is copied into the bundle unchanged; `Lizenzbestand` reads
# it.
- path: LICENSES
type: folder
dependencies:
- package: JellyfinKit
- package: SwiftlyAether
- package: SwiftlyCore
# The Top Shelf is a separate target and is embedded.
- target: Swiftly-TopShelf
info:
path: Sources/tvOS/Info.plist
properties:
# The launch colour is generated from `surface.base`: the first frame
# must be the app's ground, not the system default.
UILaunchScreen:
UIColorName: StartBackground
# **The fallback language, not the source language.**
#
# German stays the key in the catalog. A device set to neither German
# nor English (Dutch, Russian, Chinese) gets exactly this value: Apple's
# last fallback level is CFBundleDevelopmentRegion (QA1828). With `de`
# here, much of the world saw a German app.
#
# Not via `options.developmentLanguage`: that is the project's source
# language and stays German.
CFBundleDevelopmentRegion: en
CFBundleDisplayName: Swiftly
# The app's typeface (Inter, variable): `Font.app` uses it.
UIAppFonts:
- InterVariable.ttf
CFBundleShortVersionString: $(MARKETING_VERSION)
# **Without this the app falls back to 1 while the Top Shelf is at 2.**
# Xcode warns at build time and App Store Connect rejects the upload: an
# extension's build number must match its app's.
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
# Same reason as on iOS: the app does no encryption itself, it uses
# HTTPS through system APIs.
ITSAppUsesNonExemptEncryption: false
# **Tips restore the supporter status from the purchase history.** The tips
# are consumables, and without this key `Transaction.all` leaves finished
# consumables out, so a reinstall or a new device would forget the supporter.
# Available from iOS 18, tvOS 18 and macOS 15, our minimum versions.
SKIncludeConsumableInAppPurchaseHistory: true
# Belongs **here**, not in Info.plist: that file is generated by
# XcodeGen from these entries and overwritten on every run. A hand edit
# lasts only until the next `xcodegen generate`, and the Top Shelf would
# lead nowhere.
CFBundleURLTypes:
- CFBundleURLName: de.paulherter.swiftly
CFBundleURLSchemes:
- swiftly
UIBackgroundModes:
- audio
NSAppTransportSecurity:
# **Only this one key, on purpose.**
#
# Adding `NSAllowsLocalNetworking` next to it is wrong: **since iOS
# 10, `NSAllowsArbitraryLoads` is ignored as soon as
# `NSAllowsLocalNetworking`, `NSAllowsArbitraryLoadsInWebContent` or
# `...ForMedia` is present.** The keys do not complement each other;
# the second disables the first.
#
# This blocked users reaching Jellyfin over Tailscale
# (`http://100.x.x.x:8096`): Tailscale uses 100.64.0.0/10, the CGNAT
# range, which ATS does **not** count as local network (RFC1918,
# `.local` and `localhost` are). The same block hit plain-http
# dynamic-DNS hostnames.
#
# A client for self-hosted servers cannot know the address at build
# time, so `NSExceptionDomains` do not help. Swiftly steers towards
# https in code instead: an address without scheme gets `https://`
# prepended unless it looks like a home network
# (`AppModelURLNormalizer`, IP literals included). It falls back to
# http only if https fails at the connection level, never on an error
# response.
NSAllowsArbitraryLoads: true
# **Required since iOS 14; without it the error is hard to interpret.**
#
# The system asks for permission before an app talks to devices on the
# local network, even for a direct IP, not only `.local`. If the user
# denies, URLSession reports "The Internet connection appears to be
# offline" although the network is fine. This sentence is shown in the
# prompt itself and is the only chance to explain why the app wants it.
#
# **English as default, German from `InfoPlist.xcstrings`.** A
# hard-coded plist value is not translated; it appears as written. Since
# `CFBundleDevelopmentRegion` is `en`, this sentence must be English
# too.
NSLocalNetworkUsageDescription: Swiftly looks for your Jellyfin server
on your home network. Without this, the app cannot reach a server at
an address like 192.168.1.5.
settings:
base:
# The Rust core (`Packages/SwiftlyCore`) is built for arm64 only. A generic build must not ask
# for x86_64; Intel simulators are gone. Open for the Mac before release: add an x86_64 slice.
"EXCLUDED_ARCHS[sdk=appletvsimulator*]": x86_64
MARKETING_VERSION: "1.1.1"
PRODUCT_BUNDLE_IDENTIFIER: de.paulherter.swiftly
# Same reason as on iOS: without the access group the keychain refuses
# writes (-34018) and the login would be lost on every launch.
CODE_SIGN_ENTITLEMENTS: Sources/tvOS/Swiftly.entitlements
# tvOS requires a **layered** icon, not a flat image: base tone at the
# back, wordmark in front, with the parallax computed by the system in
# between. Generated from the same source the app uses to draw its
# wordmark.
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
# **Six supporter icons**, each a layered image stack like the regular one, next to the regular one (`SupporterIcon`). Only
# icons named here are compiled as alternates; the names are strings the
# code passes to `setAlternateIconName`.
# tvOS has no icon switching, and App Store Connect rejects alternate icons without
# a 1280x768 App Store layer (error 90471), so none are declared here.
ASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMES: ""
# The row above the app icon on the Apple TV home screen.
#
# Separate process, separate entitlements: it only reads the list the app puts
# into the shared folder. No JellyfinKit, no VLCKit, no server request - it is
# invoked on every focus on the icon and must show something within fractions
# of a second.
Swiftly-TopShelf:
type: app-extension
platform: tvOS
sources:
- path: Sources/Shared/ShelfPreview.swift
- path: Sources/TopShelf
info:
path: Sources/TopShelf/Info.plist
properties:
# **The fallback language, not the source language.**
#
# German stays the key in the catalog. A device set to neither German
# nor English (Dutch, Russian, Chinese) gets exactly this value: Apple's
# last fallback level is CFBundleDevelopmentRegion (QA1828). With `de`
# here, much of the world saw a German app.
#
# Not via `options.developmentLanguage`: that is the project's source
# language and stays German.
CFBundleDevelopmentRegion: en
CFBundleDisplayName: Swiftly Top Shelf
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
# **Needed here too, although the extension fetches nothing itself.**
#
# It only hands the system image URLs (`setImageURL`); loading happens
# outside. If the images are on a server reachable only over http, ATS
# decides as well, and an empty shelf would be an error nobody links to
# a missing plist key. Setting it costs nothing.
NSAppTransportSecurity:
# See app target: the second key would disable the first.
NSAllowsArbitraryLoads: true
# **Without this App Store Connect rejects the upload** (error 90502):
# an extension with a 64-bit slice must name `arm64` itself. The app
# target does not need it, as Xcode sets the key on its own. For
# `app-extension` it does not, and the problem only shows on upload:
# build, archive and export all pass.
UIRequiredDeviceCapabilities:
- arm64
NSExtension:
NSExtensionPointIdentifier: com.apple.tv-top-shelf
NSExtensionPrincipalClass: $(PRODUCT_MODULE_NAME).ShelfProvider
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: de.paulherter.swiftly.topshelf
MARKETING_VERSION: "1.1.1"
CODE_SIGN_ENTITLEMENTS: Sources/TopShelf/TopShelf.entitlements
# **Comparison app for the Rust UI .** A separate app next to the real one, never a
# replacement: a thin UIKit host (Metal layer, display link, touches, text bridge) around the shared Rust UI. The
# static library comes from `cargo run -p xtask -- apple-ui` (Werkzeuge/rust-kern.sh --ui); build it before this target.
SwiftlyRust-iOS:
type: application
platform: iOS
sources:
- path: Sources/RustUI
excludes:
- Info-tvOS.plist
info:
path: Sources/RustUI/Info-iOS.plist
properties:
CFBundleDevelopmentRegion: en
CFBundleDisplayName: Swiftly Rust
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
UILaunchScreen:
UIColorName: StartBackground
# Without this key iOS caps the app at 60 Hz on iPhone (see the real app).
CADisableMinimumFrameDurationOnPhone: true
UISupportedInterfaceOrientations:
- UIInterfaceOrientationPortrait
"UISupportedInterfaceOrientations~ipad":
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
ITSAppUsesNonExemptEncryption: false
NSAppTransportSecurity:
NSAllowsArbitraryLoads: true
NSLocalNetworkUsageDescription: Swiftly Rust looks for your Jellyfin server on your home network.
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: de.paulherter.swiftly.rustui
PRODUCT_NAME: Swiftly Rust
TARGETED_DEVICE_FAMILY: "1,2"
SWIFT_OBJC_BRIDGING_HEADER: Sources/RustUI/SwiftlyRust.h
"EXCLUDED_ARCHS[sdk=iphonesimulator*]": x86_64
"OTHER_LDFLAGS[sdk=iphoneos*]": $(inherited) -lc++ -lresolv -framework Metal -framework QuartzCore -framework CoreFoundation -framework Security -framework SystemConfiguration $(SRCROOT)/target/aarch64-apple-ios/release/libswiftly_ios.a
"OTHER_LDFLAGS[sdk=iphonesimulator*]": $(inherited) -lc++ -lresolv -framework Metal -framework QuartzCore -framework CoreFoundation -framework Security -framework SystemConfiguration $(SRCROOT)/target/aarch64-apple-ios-sim/release/libswiftly_ios.a
SwiftlyRust-tvOS:
type: application
platform: tvOS
sources:
- path: Sources/RustUI
excludes:
- Info-iOS.plist
info:
path: Sources/RustUI/Info-tvOS.plist
properties:
UILaunchScreen:
UIColorName: StartBackground
CFBundleDevelopmentRegion: en
CFBundleDisplayName: Swiftly Rust
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
ITSAppUsesNonExemptEncryption: false
NSAppTransportSecurity:
NSAllowsArbitraryLoads: true
NSLocalNetworkUsageDescription: Swiftly Rust looks for your Jellyfin server on your home network.
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: de.paulherter.swiftly.rustui
PRODUCT_NAME: Swiftly Rust
SWIFT_OBJC_BRIDGING_HEADER: Sources/RustUI/SwiftlyRust.h
"EXCLUDED_ARCHS[sdk=appletvsimulator*]": x86_64
"OTHER_LDFLAGS[sdk=appletvos*]": $(inherited) -lc++ -lresolv -framework Metal -framework QuartzCore -framework CoreFoundation -framework Security -framework SystemConfiguration $(SRCROOT)/target/aarch64-apple-tvos/release/libswiftly_ios.a
"OTHER_LDFLAGS[sdk=appletvsimulator*]": $(inherited) -lc++ -lresolv -framework Metal -framework QuartzCore -framework CoreFoundation -framework Security -framework SystemConfiguration $(SRCROOT)/target/aarch64-apple-tvos-sim/release/libswiftly_ios.a
# The Mac version.
#
# As with TV, **not** all of `Sources/Shared`: it contains swipe gestures, the
# bottom bar, tap areas and keyboard types that do not exist on the Mac, and
# `Style.swift` carries the iPhone dimensions, replaced here by
# `Sources/macOS/Style.swift`. Shared is what is independent of input method
# and window size.
Swiftly-macOS:
type: application
platform: macOS
sources:
- path: Sources/Shared/PrivacyInfo.xcprivacy
buildPhase: resources
- path: Sources/Shared/AppModel.swift
- path: Sources/Shared/AppModel+Servers.swift
- path: Sources/Shared/WatchersText.swift
- path: Sources/Shared/SettingsSyncRun.swift
- path: Sources/Shared/UnreadableAccounts.swift
- path: Sources/Shared/SleepRemainingLabel.swift
- path: Sources/Shared/InsecureServerAlert.swift
- path: Sources/Shared/UnreadableAccounts.swift
# **Only the management, not the views.** Downloads exist only on iPhone
# and iPad, but `AppModel` holds them and `AppModel` is shared. The class
# sits idle here: `downloadsAn` is off, so neither the network watcher nor
# the background session ever starts.
- path: Sources/Shared/DownloadManager.swift
- path: Sources/Shared/DownloadOrphanRows.swift
- path: Sources/Shared/CoreDownloadOrder.swift
- path: Sources/Shared/LoginModel.swift
- path: Sources/Shared/PlayRequest.swift
# The home page loads identically for all platforms, and has to, or they
# drift apart: the Mac version had rebuilt it and lost
# `naechsteFolge(ohne:)`, so started titles appeared twice on the page.
- path: Sources/Shared/HomePageModel.swift
- path: Sources/Shared/AppCore.swift
- path: Sources/Shared/AccountsHost.swift
- path: Sources/Shared/ServerAdminHost.swift
- path: Sources/Shared/ServerSearchHost.swift
- path: Sources/Shared/ShuffleRunCore.swift
- path: Sources/Shared/LoadSelectionState.swift
- path: Sources/Shared/PlexSignInRun.swift
- path: Sources/Shared/CoreErrorText.swift
- path: Sources/Shared/SeerrCoreBridge.swift
- path: Sources/Shared/SeerrBridge+Library.swift
- path: Sources/Shared/WhatsNewPage.swift
- path: Sources/Shared/SettingsRowsFeed.swift
- path: Sources/Shared/RustHome.swift
- path: Sources/Shared/RustDetail.swift
- path: Sources/Shared/DetailCore.swift
- path: Sources/Shared/TroublePage.swift
- path: Sources/Shared/SeriesCore.swift
# Seerr - the integration itself; views stay platform-specific.
- path: Sources/Shared/SeerrModel.swift
- path: Sources/Shared/SeerrMark.swift
- path: Sources/Shared/SeerrBridge+Search.swift
- path: Sources/Shared/SeerrBridge+Title.swift
- path: Sources/Shared/SeerrEpisodes.swift
- path: Sources/Shared/SeerrSeasonAdmin.swift
- path: Sources/Shared/ArrivalMotion.swift
- path: Sources/Shared/SeerrBridge+Home.swift
- path: Sources/Shared/DesktopArrivalStack.swift
- path: Sources/Shared/SeerrBridge+Admin.swift
- path: Sources/Shared/ProgressBar.swift
- path: Sources/Shared/SeerrTile.swift
- path: Sources/Shared/SeerrSetupFlow.swift
# "Problem melden" / "Vom Server löschen": the core's entries and the two sheets, shared with iPhone.
- path: Sources/Shared/SeerrTitleMenu.swift
- path: Sources/Shared/ReportIssueSheet.swift
- path: Sources/Shared/DeclineSheet.swift
- path: Sources/Shared/RequestDetailView.swift
- path: Sources/Shared/DeleteFlowSheet.swift
# The version string for the profile page - one computation, three views.
- path: Sources/Shared/Version.swift
# "Support Swiftly": StoreKit, watch time and when to ask; views per platform.
- path: Sources/Shared/SupportModel.swift
# Series, seasons and episodes in memory - shared once instead of built
# twice, with its own account check.
- path: Sources/Shared/SeriesCache.swift
# Trickplay preview images while scrubbing - used to live under
# Sources/iOS although the code was already platform-neutral (only
# CoreGraphics/ImageIO).
- path: Sources/Shared/TrickplayImages.swift
# The timeline in pieces, one per chapter - as on iPhone and TV.
- path: Sources/Shared/ChapterMask.swift
# The chapter list's rows (text, tile, sizes) - one source for iPhone, Mac and TV.
- path: Sources/Shared/ChapterList.swift
# Image loader with its own cache - decodes off the main thread.
- path: Sources/Shared/PlayValues.swift
- path: Sources/Shared/TechBadge.swift
- path: Sources/Shared/NetworkImage.swift
- path: Sources/Shared/Picture.swift
- path: Sources/Shared/InTravel.swift
- path: Sources/Shared/LibraryModel.swift
- path: Sources/Shared/WatchlistModel.swift
- path: Sources/Shared/Colors.swift
# The generated design tokens (Desktop set): colours, radii, type, motion of the Mac read from here.
- path: Sources/Shared/Tokens.generated.swift
- path: Sources/Shared/AppFont.swift
- path: Sources/Shared/AppIcon.swift
# Inter and our icons, the same files as on iPhone: the Mac uses the same kit.
- path: Sources/iOS/Fonts/InterVariable.ttf
buildPhase: resources
- path: Sources/iOS/Icons.xcassets
- path: Sources/iOS/IconMap.swift
# The active look: `Theme.accent` reads from it.
- path: Sources/Shared/LookStore.swift
# The Halloween gift, the looks sheet and "What's new": one sheet from below, the
# same as on iPhone; the seasonal details for the profile's look card.
- path: Sources/Shared/LookGiftSheet.swift
- path: Sources/Shared/WhatsNewSheet.swift
# The supporter views: the same files as on iPhone.
- path: Sources/Shared/SupportFlow.swift
- path: Sources/Shared/SupportGrowSheet.swift
- path: Sources/Shared/SupportProfileParts.swift
- path: Sources/Shared/PlayButton.swift
- path: Sources/Shared/LookAccentDots.swift
- path: Sources/Shared/Motion.swift
# The player's menu box and rows, the core-driven menu session and the glass of the top bar: the same files as iPhone.
- path: Sources/Shared/MenuBox.swift
- path: Sources/Shared/MenuRows.swift
- path: Sources/Shared/MenuSpec.swift
- path: Sources/Shared/PlayerMenuSession.swift
- path: Sources/Shared/EpisodesBox.swift
- path: Sources/Shared/EpisodesLoader.swift
- path: Sources/Shared/PlayerMenuLayer.swift
- path: Sources/Shared/PlayerMenuWords+Text.swift
- path: Sources/Shared/PlayerGlass.swift
- path: Sources/Shared/HoldPill.swift
# Name, sentence and mark of each server kind, and the state of the Plex/Emby sign-in;
# the views on top are per platform.
- path: Sources/Shared/ServerKindLook.swift
- path: Sources/Shared/SignInModels.swift
- path: Sources/Shared/TestPublicHosts.swift
# The breathing mark, code boxes, account circle and sign-in window of the Plex and
# Emby pages; the Mac draws them with its own views.
- path: Sources/Shared/SignInParts.swift
- path: Sources/Shared/GridJump.swift
- path: Sources/Shared/AlphabetRail.swift
- path: Sources/Shared/SeasonDecor.swift
# Building blocks without platform dimensions - row title, badge, loader,
# profile glyph. They used to exist three times.
- path: Sources/Shared/Components.swift
- path: Sources/Shared/Keychain.swift
- path: Sources/Shared/Marks.swift
- path: Sources/Shared/Routes.swift
- path: Sources/Shared/PersonRoute+Seerr.swift
- path: Sources/Shared/SVGPath.swift
# What the More sheet offers - the content is identical on all platforms,
# only the presentation is specific.
- path: Sources/Shared/TitleAction.swift
- path: Sources/Shared/TitleMark.swift
# Only the watch-state entry of the More panel (`Titelhandlung.sehstand`);
# the menu itself is excluded there, the Mac has its own in
# Sources/macOS/TileMenuMac.swift.
- path: Sources/Shared/TileMenu.swift
# Derived info on a title - resume point, context line.
# Container, codec, subtitles in the file excerpt - same info everywhere.
# Which bitrates, skip lengths and languages are offered.
# Now Playing and the keyboard media keys. The AVAudioSession part is
# under `#if !os(macOS)` - macOS mixes and routes audio itself.
- path: Sources/Shared/PlaybackHub.swift
- path: Sources/Shared/DiscordIndicator.swift
# Base type alias for UIView or NSView. Without it the player would exist
# twice.
- path: Sources/Shared/BaseView.swift
# All platforms share the playback machinery: the same `mkv_trusted`
# trick, the same stall detection. Picture-in-Picture in it is excluded
# with `#if os(iOS)`; on the Mac it does not work anyway.
- path: Sources/Shared/LiveRun.swift
- path: Sources/Shared/PasswordProof.swift
- path: Sources/Shared/VLCPlayer.swift
- path: Sources/Shared/VLCPlayerView+Engine.swift
- path: Sources/Shared/SubtitleOverlay.swift
- path: Sources/Shared/SubtitleScript.swift
- path: Sources/Shared/AetherPlayerEngine.swift
- path: Sources/Shared/PlaybackBackend.swift
- path: Sources/Shared/StartTracks.swift
- path: Sources/Shared/ReportRoute.swift
- path: Sources/Shared/CoreAetherPort.swift
- path: Sources/Shared/CorePlaybackBackend.swift
- path: Sources/Shared/VersionKeeping.swift
- path: Sources/Shared/PlanFromCore.swift
- path: Sources/Shared/HardwareAV1.swift
- path: Sources/Shared/PlayExtras.swift
- path: Sources/Shared/DelayCarry.swift
- path: Sources/Shared/AppModel+Engine.swift
# The subtitle look page: the preview picture and the words every platform shares.
- path: Sources/Shared/SubtitlePreview.swift
- path: Sources/Shared/NetworkProbe.swift
# "Share log" in the profile - the file; shared via the Mac share menu
# (ProfilView).
- path: Sources/Shared/LogShare.swift
# Handover between devices: polling interval and state.
- path: Sources/Shared/TakeoverModel.swift
# "Continue watching here" as a card: stage above everything and the exit
# of the handing-over device; timeline in the package (`Uebergabekarte`).
- path: Sources/Shared/HandoffStage.swift
# Watch together: the group mirror and the bridge to the player. The flow
# itself is in the package (`SyncPlaySitzung`).
- path: Sources/Shared/SharedModel.swift
# The code route when adding another account: fetch a code, poll every two
# seconds, valid for five minutes.
- path: Sources/Shared/QuickConnectModel.swift
- path: Sources/Shared/Localizable.xcstrings
# Only for the local-network prompt: English is in Info.plist, German
# comes from here.
- path: Sources/Shared/InfoPlist.xcstrings
- path: Sources/Shared/Assets
excludes:
- startanimation.json
# The next-episode card: frame, ring, gradient - the card itself is drawn
# by `Sources/macOS/EpisodeCardsView.swift`. Plus the preparation of
# the next episode in the last minutes.
- path: Sources/Shared/EpisodeCardParts.swift
- path: Sources/Shared/EpisodePreparation.swift
# The color of the header image below movie and series pages - same
# computation as TV and iPhone, same fade as iPhone.
- path: Sources/Shared/ImageTone.swift
- path: Sources/Shared/ImageMood.swift
# Account switch and the card from the badge: flow and curve are shared,
# the stage is in `Sources/macOS/AccountSwitchStage.swift`.
- path: Sources/Shared/AccountTransition.swift
- path: Sources/Shared/Licenses.swift
- path: Sources/Shared/Transitions.swift
- path: Sources/macOS
# **Licenses come from one source**: `LICENSES/` (components.json and the
# full texts) is copied into the bundle unchanged; `Lizenzbestand` reads
# it.
- path: LICENSES
type: folder
dependencies:
- package: JellyfinKit
- package: SwiftlyAether
- package: SwiftlyCore
info:
path: Sources/macOS/Info.plist
properties:
# **The fallback language, not the source language.**
#
# German stays the key in the catalog. A device set to neither German
# nor English (Dutch, Russian, Chinese) gets exactly this value: Apple's
# last fallback level is CFBundleDevelopmentRegion (QA1828). With `de`
# here, much of the world saw a German app.
#
# Not via `options.developmentLanguage`: that is the project's source
# language and stays German.
CFBundleDevelopmentRegion: en
# **Without this the store rejects the upload** (error 90242): a Mac app
# must carry its category in Info.plist, not only in the store listing.
# iOS and tvOS do not require it, so it only shows on the first Mac
# upload.
LSApplicationCategoryType: public.app-category.entertainment
# **Mac build numbers must be strictly ascending across all versions.**
#
# iOS and tvOS only require an increase per version, but for the Mac the
# check is per app record, and the upload is rejected:
#
# CFBundleVersion [1] must contain a higher version than that of the previously uploaded version [2] (90061)
#
# So the next Mac build must be higher than the highest ever uploaded
# for the Mac.
#
# The number is a **build setting** (`CURRENT_PROJECT_VERSION`), not a
# literal key here: this block becomes the Info.plist, where a literal
# would be ignored in favor of the project value.
CFBundleDisplayName: Swiftly
# **The bundle name is "Swiftly", not "Swiftly-macOS".**
#
# Apple rejected a build over this (guideline 5.2.5): the displayed name
# contained a term for an Apple product. On the Mac `CFBundleName`
# appears in the menu bar and under the icon in Finder; without this
# line it falls back to the target name. `CFBundleDisplayName` alone is
# not enough, as the Mac does not read it everywhere.
CFBundleName: Swiftly
# **The icon additionally as a complete `.icns`.**
#
# The `AppIcon.icns` Xcode generates from the catalog contains only the
# 16 and 128 sizes; 32, 256, 512 and 1024 are missing, and the Dock
# needs the large ones. The one next to it is built with `iconutil` from
# the same ten images and is complete.
CFBundleIconFile: Swiftly
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
# No light theme - the design is built for dark, and without this macOS
# draws the window buttons light.
NSRequiresAquaSystemAppearance: false
# Inter is registered from the bundle's Resources folder (macOS has no UIAppFonts).
ATSApplicationFontsPath: .
NSAppTransportSecurity:
# **Only this one key, on purpose.**
#
# Adding `NSAllowsLocalNetworking` next to it is wrong: **since iOS
# 10, `NSAllowsArbitraryLoads` is ignored as soon as
# `NSAllowsLocalNetworking`, `NSAllowsArbitraryLoadsInWebContent` or
# `...ForMedia` is present.** The keys do not complement each other;
# the second disables the first.
#
# This blocked users reaching Jellyfin over Tailscale
# (`http://100.x.x.x:8096`): Tailscale uses 100.64.0.0/10, the CGNAT
# range, which ATS does **not** count as local network (RFC1918,
# `.local` and `localhost` are). The same block hit plain-http
# dynamic-DNS hostnames.
#
# A client for self-hosted servers cannot know the address at build
# time, so `NSExceptionDomains` do not help. Swiftly steers towards
# https in code instead: an address without scheme gets `https://`
# prepended unless it looks like a home network
# (`AppModelURLNormalizer`, IP literals included). It falls back to
# http only if https fails at the connection level, never on an error
# response.
NSAllowsArbitraryLoads: true
# **Required since iOS 14; without it the error is hard to interpret.**
#
# The system asks for permission before an app talks to devices on the
# local network, even for a direct IP, not only `.local`. If the user
# denies, URLSession reports "The Internet connection appears to be
# offline" although the network is fine. This sentence is shown in the
# prompt itself and is the only chance to explain why the app wants it.
#
# **English as default, German from `InfoPlist.xcstrings`.** A
# hard-coded plist value is not translated; it appears as written. Since
# `CFBundleDevelopmentRegion` is `en`, this sentence must be English
# too.
NSLocalNetworkUsageDescription: Swiftly looks for your Jellyfin server
on your home network. Without this, the app cannot reach a server at
an address like 192.168.1.5.
ITSAppUsesNonExemptEncryption: false
# **Tips restore the supporter status from the purchase history.** The tips
# are consumables, and without this key `Transaction.all` leaves finished
# consumables out, so a reinstall or a new device would forget the supporter.
# Available from iOS 18, tvOS 18 and macOS 15, our minimum versions.
SKIncludeConsumableInAppPurchaseHistory: true
settings:
base:
# **The Mac links `SwiftlyCore` too.** LibDovi (inside AetherEngine) and the core each carry a copy
# of Rust's std and both define `_rust_eh_personality` ("duplicate symbol"). `cargo xtask apple`
# renames that one definition in the core's macOS library (`hide_eh_personality` in xtask), so the
# linker keeps LibDovi's copy. Do not put an unpatched macOS slice into the xcframework.
# **No separate Mac build number.** All three platforms share the global
# counter; two places for the same number are one too many. It must stay
# higher than any build already uploaded for the Mac.
# So that the file itself is also called "Swiftly.app" and not after the
# build target - see `CFBundleName`.
PRODUCT_NAME: Swiftly
# The core's macOS library is fat (arm64 + x86_64, `cargo xtask apple` joins them with lipo), so the Mac
# builds universal; no ARCHS override.
PRODUCT_BUNDLE_IDENTIFIER: de.paulherter.swiftly
# Same reason as on iOS and tvOS: without the access group the keychain
# refuses writes (-34018) and the login would be lost on every launch.
CODE_SIGN_ENTITLEMENTS: Sources/macOS/Swiftly.entitlements
# The icon is **not** edge-to-edge: macOS expects padding (824 of 1024),
# otherwise it looks larger than its neighbors in the Dock. iOS is the
# opposite, hence a separate asset.