Skip to content

Commit

Permalink
Merge pull request #1194 from TortugaPower/controlcenter-widget
Browse files Browse the repository at this point in the history
Add launch-button widget for control center and lock screen
  • Loading branch information
GianniCarlo authored Oct 2, 2024
2 parents 80dc100 + 805ddd9 commit 8d6af63
Show file tree
Hide file tree
Showing 6 changed files with 190 additions and 29 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ on:
jobs:
build:
# https://github.com/actions/runner-images/tree/main/images/macos
runs-on: macos-14
runs-on: macos-15

steps:
- uses: actions/checkout@v4
# We only use Xcode 15.4
# We only use Xcode 16.0
- name: Remove unused applications
run: |
df -hI /dev/disk3s1s1
Expand All @@ -26,8 +26,8 @@ jobs:
- name: Create Debug.xcconfig
run: cp ./BuildConfiguration/Debug.template.xcconfig ./BuildConfiguration/Debug.xcconfig
- name: Set Xcode version
run: sudo xcode-select -s "/Applications/Xcode_15.4.app/Contents/Developer"
run: sudo xcode-select -s "/Applications/Xcode_16.app/Contents/Developer"
- name: Resolve dependencies
run: xcodebuild -resolvePackageDependencies
- name: Build and Run tests
run: xcodebuild -scheme BookPlayer test -testPlan Unit\ Tests -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.5'
run: xcodebuild -scheme BookPlayer test -testPlan Unit\ Tests -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.0'
6 changes: 6 additions & 0 deletions BookPlayer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@
639720832CAB0C380045A4DB /* LastPlayedView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 639720822CAB0C380045A4DB /* LastPlayedView.swift */; };
639720852CABB0D00045A4DB /* RecentBooksProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 639720842CABB0D00045A4DB /* RecentBooksProvider.swift */; };
6397208A2CAC5C870045A4DB /* LastPlayedModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 639720892CAC5C870045A4DB /* LastPlayedModel.swift */; };
6397208C2CAC95040045A4DB /* LaunchAppControlWidgetView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6397208B2CAC95040045A4DB /* LaunchAppControlWidgetView.swift */; };
6397208D2CAC95040045A4DB /* LaunchAppControlWidgetView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6397208B2CAC95040045A4DB /* LaunchAppControlWidgetView.swift */; };
6399F94D2AA03C6C00A5C8EA /* BPSKANManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6399F94C2AA03C6C00A5C8EA /* BPSKANManager.swift */; };
639AC9892AD9F1D50053AFC6 /* BPDownloadURLSession.swift in Sources */ = {isa = PBXBuildFile; fileRef = 639AC9882AD9F1D50053AFC6 /* BPDownloadURLSession.swift */; };
639AC98A2AD9F1D50053AFC6 /* BPDownloadURLSession.swift in Sources */ = {isa = PBXBuildFile; fileRef = 639AC9882AD9F1D50053AFC6 /* BPDownloadURLSession.swift */; };
Expand Down Expand Up @@ -1170,6 +1172,7 @@
639720822CAB0C380045A4DB /* LastPlayedView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LastPlayedView.swift; sourceTree = "<group>"; };
639720842CABB0D00045A4DB /* RecentBooksProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RecentBooksProvider.swift; sourceTree = "<group>"; };
639720892CAC5C870045A4DB /* LastPlayedModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LastPlayedModel.swift; sourceTree = "<group>"; };
6397208B2CAC95040045A4DB /* LaunchAppControlWidgetView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LaunchAppControlWidgetView.swift; sourceTree = "<group>"; };
6399F94C2AA03C6C00A5C8EA /* BPSKANManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BPSKANManager.swift; sourceTree = "<group>"; };
639AC9882AD9F1D50053AFC6 /* BPDownloadURLSession.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BPDownloadURLSession.swift; sourceTree = "<group>"; };
639E12C52B85AACF00C875F7 /* SyncTasksObject.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SyncTasksObject.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2302,6 +2305,7 @@
children = (
634E67432AFB2DF500595BAC /* BookStartPlaybackIntent.swift */,
6309F1252B0CF1C1002B86A4 /* BookPlaybackToggleIntent.swift */,
6397208B2CAC95040045A4DB /* LaunchAppControlWidgetView.swift */,
4106413E258725F1008EB8D0 /* TimeListened */,
637DAB092AEB3E0D006DC2D1 /* WidgetEntries.swift */,
418445C2258AE11E0072DD13 /* WidgetUtils.swift */,
Expand Down Expand Up @@ -3465,6 +3469,7 @@
410641282579AA2F008EB8D0 /* TimeListenedWidgetView.swift in Sources */,
6309F1272B0CF658002B86A4 /* BookPlaybackToggleIntent.swift in Sources */,
630826032AF5225F002ACE0D /* CircularView.swift in Sources */,
6397208C2CAC95040045A4DB /* LaunchAppControlWidgetView.swift in Sources */,
630826042AF522EA002ACE0D /* SharedWidgetEntry.swift in Sources */,
41064152258726D2008EB8D0 /* TimeListenedMediumView.swift in Sources */,
41C3396A25E04112003ED2B0 /* MappingModel_v2_to_v3.xcmappingmodel in Sources */,
Expand Down Expand Up @@ -3640,6 +3645,7 @@
9F5F13682978D9E100F061A0 /* ProfileSyncTasksStatusView.swift in Sources */,
41AD3DA7221C850F00DC41E1 /* IconCellView.swift in Sources */,
9FF710B92A213084006490E0 /* QueuedSyncTaskRowView.swift in Sources */,
6397208D2CAC95040045A4DB /* LaunchAppControlWidgetView.swift in Sources */,
9FAB93742A53117C005B92B2 /* CompleteAccountView.swift in Sources */,
6304CF6A2B4C2AE800055285 /* SettingsAutoplayView.swift in Sources */,
4158388326EBD76A00F4A12B /* LibraryListCoordinator.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"info" : {
"author" : "xcode",
"version" : 1
},
"symbols" : [
{
"filename" : "bookplayer.icon.svg",
"idiom" : "universal"
}
]
}
Loading

0 comments on commit 8d6af63

Please sign in to comment.