Modernize Freestyle Judo for latest iOS 15+/iPadOS/macOS via Catalyst (2026 update)
- Raise deployment target to iOS 15.0; enable Mac Catalyst support - Replace all UIWebView with WKWebView (programmatic creation for compat with legacy storyboards) - Fix deprecated APIs (MPMusicPlayer iPod->system, rotation method signatures, remove viewDidUnload) - Update project settings, bundle ID, AppIcon catalog, add privacy description for music - Add README with update notes and usage - Preserve original Objective-C logic, timers, scoring, sounds, and UI behavior - App builds and launches on iOS 18 simulators + Mac Catalyst
This commit is contained in:
Regular → Executable
+3
-9
@@ -207,10 +207,10 @@ - (void)viewDidLoad
|
||||
|
||||
|
||||
|
||||
_MusicPlayer = [MPMusicPlayerController iPodMusicPlayer];
|
||||
_MusicPlayer = [MPMusicPlayerController systemMusicPlayer];
|
||||
|
||||
|
||||
if (_MusicPlayer.playbackState == MPMusicPlaybackStatePlaying)
|
||||
if (_MusicPlayer && _MusicPlayer.playbackState == MPMusicPlaybackStatePlaying)
|
||||
{
|
||||
[_MusicPlayer pause];
|
||||
}
|
||||
@@ -271,12 +271,6 @@ - (void) audioPlayerDidFinishPlaying: (AVAudioPlayer *) player
|
||||
|
||||
|
||||
|
||||
- (void)viewDidUnload
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
- (BOOL) shouldAutorotate
|
||||
{
|
||||
return YES;
|
||||
@@ -284,7 +278,7 @@ - (BOOL) shouldAutorotate
|
||||
|
||||
|
||||
|
||||
- (NSUInteger)supportedInterfaceOrientations
|
||||
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
|
||||
{
|
||||
return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user