Skip to content

Commit

Permalink
Audio can now play in the background on watchOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Snesnopic committed May 26, 2024
1 parent 3711834 commit 22331d9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Morser.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
9DAE65502C00E8CE00663324 /* WatchCommunicationManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WatchCommunicationManager.swift; sourceTree = "<group>"; };
9DD162FC2C0397A3006A410D /* EncodeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EncodeView.swift; sourceTree = "<group>"; };
9DD163042C03A512006A410D /* QuickTranslateView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QuickTranslateView.swift; sourceTree = "<group>"; };
9DD163062C03A89C006A410D /* MorserWatch-Watch-App-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = "MorserWatch-Watch-App-Info.plist"; sourceTree = SOURCE_ROOT; };
9DD425092BE3C5BF009EE623 /* BeepPlayer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BeepPlayer.swift; sourceTree = "<group>"; };
9DED8FBB2BF793B9008D0B29 /* .swiftlint.yml */ = {isa = PBXFileReference; lastKnownFileType = text.yaml; path = .swiftlint.yml; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -176,6 +177,7 @@
9DAE653B2C00E68900663324 /* MorserWatch Watch App */ = {
isa = PBXGroup;
children = (
9DD163062C03A89C006A410D /* MorserWatch-Watch-App-Info.plist */,
9DAE653C2C00E68900663324 /* MorserWatchApp.swift */,
9DAE65502C00E8CE00663324 /* WatchCommunicationManager.swift */,
9DD163012C039B19006A410D /* Views */,
Expand Down Expand Up @@ -626,6 +628,7 @@
DEVELOPMENT_TEAM = 3FRYF657J2;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "MorserWatch-Watch-App-Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = MorserWatch;
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_WKCompanionAppBundleIdentifier = com.snesnopic.Morser;
Expand Down Expand Up @@ -656,6 +659,7 @@
DEVELOPMENT_TEAM = 3FRYF657J2;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "MorserWatch-Watch-App-Info.plist";
INFOPLIST_KEY_CFBundleDisplayName = MorserWatch;
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
INFOPLIST_KEY_WKCompanionAppBundleIdentifier = com.snesnopic.Morser;
Expand Down
12 changes: 12 additions & 0 deletions MorserWatch-Watch-App-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
<key>WKBackgroundModes</key>
<array/>
</dict>
</plist>

0 comments on commit 22331d9

Please sign in to comment.