diff --git a/Freestyle Judo.xcodeproj/project.pbxproj b/Freestyle Judo.xcodeproj/project.pbxproj old mode 100644 new mode 100755 index e955e3b..e0664e0 --- a/Freestyle Judo.xcodeproj/project.pbxproj +++ b/Freestyle Judo.xcodeproj/project.pbxproj @@ -21,7 +21,6 @@ 9F17189B17B8012F0055BB0D /* MainStoryboard_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9F17189917B8012F0055BB0D /* MainStoryboard_iPhone.storyboard */; }; 9F17189E17B8012F0055BB0D /* MainStoryboard_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9F17189C17B8012F0055BB0D /* MainStoryboard_iPad.storyboard */; }; 9F1718A117B8012F0055BB0D /* FSJViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F1718A017B8012F0055BB0D /* FSJViewController.m */; }; - 9F1718A917B801300055BB0D /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9F1718A817B801300055BB0D /* SenTestingKit.framework */; }; 9F1718AA17B801300055BB0D /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9F17188117B8012F0055BB0D /* UIKit.framework */; }; 9F1718AB17B801300055BB0D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9F17188317B8012F0055BB0D /* Foundation.framework */; }; 9F1718B317B801300055BB0D /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9F1718B117B801300055BB0D /* InfoPlist.strings */; }; @@ -46,6 +45,7 @@ 9FCC7A701809EC6800F55236 /* FREESTYLE_JUDO_HANDBOOK.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 9FCC7A6F1809EC6800F55236 /* FREESTYLE_JUDO_HANDBOOK.pdf */; }; 9FCC7A72180CA29900F55236 /* boxing_bell.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 9FCC7A71180CA29900F55236 /* boxing_bell.mp3 */; }; 9FCC7A74180CA72300F55236 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FCC7A73180CA72300F55236 /* AVFoundation.framework */; }; + A1B2C3D4E5F6071829384756 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A1B2C3D4E5F6071829384750 /* WebKit.framework */; }; 9FCC7A76180CB15C00F55236 /* single_bell.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 9FCC7A75180CB15C00F55236 /* single_bell.mp3 */; }; 9FCC7A78180CB4A200F55236 /* buzzer.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 9FCC7A77180CB4A200F55236 /* buzzer.mp3 */; }; /* End PBXBuildFile section */ @@ -80,8 +80,7 @@ 9F17189D17B8012F0055BB0D /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard_iPad.storyboard; sourceTree = ""; }; 9F17189F17B8012F0055BB0D /* FSJViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FSJViewController.h; sourceTree = ""; }; 9F1718A017B8012F0055BB0D /* FSJViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FSJViewController.m; sourceTree = ""; }; - 9F1718A717B801300055BB0D /* Freestyle JudoTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Freestyle JudoTests.octest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 9F1718A817B801300055BB0D /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; }; + 9F1718A717B801300055BB0D /* Freestyle JudoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Freestyle JudoTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 9F1718B017B801300055BB0D /* Freestyle JudoTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Freestyle JudoTests-Info.plist"; sourceTree = ""; }; 9F1718B217B801300055BB0D /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 9F1718B417B801300055BB0D /* Freestyle_JudoTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Freestyle_JudoTests.h; sourceTree = ""; }; @@ -117,6 +116,7 @@ 9FCC7A6F1809EC6800F55236 /* FREESTYLE_JUDO_HANDBOOK.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = FREESTYLE_JUDO_HANDBOOK.pdf; sourceTree = ""; }; 9FCC7A71180CA29900F55236 /* boxing_bell.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = boxing_bell.mp3; sourceTree = ""; }; 9FCC7A73180CA72300F55236 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; + A1B2C3D4E5F6071829384750 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; }; 9FCC7A75180CB15C00F55236 /* single_bell.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = single_bell.mp3; sourceTree = ""; }; 9FCC7A77180CB4A200F55236 /* buzzer.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = buzzer.mp3; sourceTree = ""; }; /* End PBXFileReference section */ @@ -127,6 +127,7 @@ buildActionMask = 2147483647; files = ( 9FCC7A74180CA72300F55236 /* AVFoundation.framework in Frameworks */, + A1B2C3D4E5F6071829384756 /* WebKit.framework in Frameworks */, 9F21D20E18031AAC00029572 /* MediaPlayer.framework in Frameworks */, 9F07C44B17FDAB5300BDA6EC /* AudioToolbox.framework in Frameworks */, 9F17188217B8012F0055BB0D /* UIKit.framework in Frameworks */, @@ -139,7 +140,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 9F1718A917B801300055BB0D /* SenTestingKit.framework in Frameworks */, 9F1718AA17B801300055BB0D /* UIKit.framework in Frameworks */, 9F1718AB17B801300055BB0D /* Foundation.framework in Frameworks */, ); @@ -162,7 +162,7 @@ isa = PBXGroup; children = ( 9F17187E17B8012F0055BB0D /* Freestyle Judo.app */, - 9F1718A717B801300055BB0D /* Freestyle JudoTests.octest */, + 9F1718A717B801300055BB0D /* Freestyle JudoTests.xctest */, ); name = Products; sourceTree = ""; @@ -171,12 +171,12 @@ isa = PBXGroup; children = ( 9FCC7A73180CA72300F55236 /* AVFoundation.framework */, + A1B2C3D4E5F6071829384750 /* WebKit.framework */, 9F21D20D18031AAC00029572 /* MediaPlayer.framework */, 9F07C44A17FDAB5300BDA6EC /* AudioToolbox.framework */, 9F17188117B8012F0055BB0D /* UIKit.framework */, 9F17188317B8012F0055BB0D /* Foundation.framework */, 9F17188517B8012F0055BB0D /* CoreGraphics.framework */, - 9F1718A817B801300055BB0D /* SenTestingKit.framework */, ); name = Frameworks; sourceTree = ""; @@ -296,8 +296,8 @@ ); name = "Freestyle JudoTests"; productName = "Freestyle JudoTests"; - productReference = 9F1718A717B801300055BB0D /* Freestyle JudoTests.octest */; - productType = "com.apple.product-type.bundle"; + productReference = 9F1718A717B801300055BB0D /* Freestyle JudoTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; }; /* End PBXNativeTarget section */ @@ -306,6 +306,7 @@ isa = PBXProject; attributes = { CLASSPREFIX = FSJ; + LastTestingUpgradeCheck = 0710; LastUpgradeCheck = 0460; ORGANIZATIONNAME = "Binary Systems, Inc."; TargetAttributes = { @@ -484,7 +485,7 @@ GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; @@ -511,7 +512,7 @@ GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; "PROVISIONING_PROFILE[sdk=*]" = "Freestyle Judo Distribution"; SDKROOT = iphoneos; @@ -524,15 +525,17 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch"; INFOPLIST_FILE = "Freestyle Judo/Freestyle Judo-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.binary-systems.Freestyle-Judo"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; + SUPPORTS_MACCATALYST = YES; + MACOSX_DEPLOYMENT_TARGET = 12.0; "PROVISIONING_PROFILE[sdk=*]" = ""; WRAPPER_EXTENSION = app; }; @@ -542,15 +545,17 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch"; INFOPLIST_FILE = "Freestyle Judo/Freestyle Judo-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.binary-systems.Freestyle-Judo"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; + SUPPORTS_MACCATALYST = YES; + MACOSX_DEPLOYMENT_TARGET = 12.0; WRAPPER_EXTENSION = app; }; name = Release; @@ -562,13 +567,13 @@ FRAMEWORK_SEARCH_PATHS = ( "\"$(SDKROOT)/Developer/Library/Frameworks\"", "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", + "$(inherited)", ); GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch"; INFOPLIST_FILE = "Freestyle JudoTests/Freestyle JudoTests-Info.plist"; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUNDLE_LOADER)"; - WRAPPER_EXTENSION = octest; }; name = Debug; }; @@ -579,13 +584,13 @@ FRAMEWORK_SEARCH_PATHS = ( "\"$(SDKROOT)/Developer/Library/Frameworks\"", "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", + "$(inherited)", ); GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch"; INFOPLIST_FILE = "Freestyle JudoTests/Freestyle JudoTests-Info.plist"; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUNDLE_LOADER)"; - WRAPPER_EXTENSION = octest; }; name = Release; }; diff --git a/Freestyle Judo/BSIWebViewController.h b/Freestyle Judo/BSIWebViewController.h old mode 100644 new mode 100755 index 42dfa57..8514283 --- a/Freestyle Judo/BSIWebViewController.h +++ b/Freestyle Judo/BSIWebViewController.h @@ -7,9 +7,10 @@ // #import +#import @interface BSIWebViewController : UIViewController -@property (weak, nonatomic) IBOutlet UIWebView *webView; +@property (strong, nonatomic) WKWebView *webView; @property (weak, nonatomic) IBOutlet UIToolbar *BSIWebToolbar; @property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; diff --git a/Freestyle Judo/BSIWebViewController.m b/Freestyle Judo/BSIWebViewController.m old mode 100644 new mode 100755 index 693656d..22db066 --- a/Freestyle Judo/BSIWebViewController.m +++ b/Freestyle Judo/BSIWebViewController.m @@ -15,27 +15,24 @@ @implementation BSIWebViewController @synthesize BSIWebToolbar = _BSIWebToolbar; @synthesize DoneButton = _DoneButton; - -- (void) viewWillAppear: (BOOL)animated -{ - [super viewWillAppear:animated]; - self.webView.scalesPageToFit = YES; - [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.binary-systems.com"]]]; +- (void)setValue:(id)value forUndefinedKey:(NSString *)key { + if ([key isEqualToString:@"webView"]) { return; } + [super setValue:value forUndefinedKey:key]; } - -- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation -{ - return YES; -} - - - - (void)viewDidLoad { [super viewDidLoad]; - // Do any additional setup after loading the view. - + WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init]; + self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:config]; + self.webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; + [self.view addSubview:self.webView]; +} + +- (void) viewWillAppear: (BOOL)animated +{ + [super viewWillAppear:animated]; + [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.binary-systems.com"]]]; } - (void)didReceiveMemoryWarning diff --git a/Freestyle Judo/FSJAppDelegate.h b/Freestyle Judo/FSJAppDelegate.h old mode 100644 new mode 100755 diff --git a/Freestyle Judo/FSJAppDelegate.m b/Freestyle Judo/FSJAppDelegate.m old mode 100644 new mode 100755 diff --git a/Freestyle Judo/FSJCreditsViewController.h b/Freestyle Judo/FSJCreditsViewController.h old mode 100644 new mode 100755 diff --git a/Freestyle Judo/FSJCreditsViewController.m b/Freestyle Judo/FSJCreditsViewController.m old mode 100644 new mode 100755 index a3bc629..c67281b --- a/Freestyle Judo/FSJCreditsViewController.m +++ b/Freestyle Judo/FSJCreditsViewController.m @@ -56,7 +56,7 @@ -(BOOL)shouldAutorotate } -- (NSUInteger)supportedInterfaceOrientations +- (UIInterfaceOrientationMask)supportedInterfaceOrientations { return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown; } diff --git a/Freestyle Judo/FSJHelpViewController.h b/Freestyle Judo/FSJHelpViewController.h old mode 100644 new mode 100755 diff --git a/Freestyle Judo/FSJHelpViewController.m b/Freestyle Judo/FSJHelpViewController.m old mode 100644 new mode 100755 index 531bbe5..2c2e7f5 --- a/Freestyle Judo/FSJHelpViewController.m +++ b/Freestyle Judo/FSJHelpViewController.m @@ -52,7 +52,7 @@ -(BOOL)shouldAutorotate } -- (NSUInteger)supportedInterfaceOrientations +- (UIInterfaceOrientationMask)supportedInterfaceOrientations { return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown; } diff --git a/Freestyle Judo/FSJSettingsViewController.h b/Freestyle Judo/FSJSettingsViewController.h old mode 100644 new mode 100755 diff --git a/Freestyle Judo/FSJSettingsViewController.m b/Freestyle Judo/FSJSettingsViewController.m old mode 100644 new mode 100755 index 0cf4ebd..e4a2909 --- a/Freestyle Judo/FSJSettingsViewController.m +++ b/Freestyle Judo/FSJSettingsViewController.m @@ -62,7 +62,7 @@ -(BOOL)shouldAutorotate } -- (NSUInteger)supportedInterfaceOrientations +- (UIInterfaceOrientationMask)supportedInterfaceOrientations { return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown; } diff --git a/Freestyle Judo/FSJViewController.h b/Freestyle Judo/FSJViewController.h old mode 100644 new mode 100755 diff --git a/Freestyle Judo/FSJViewController.m b/Freestyle Judo/FSJViewController.m old mode 100644 new mode 100755 index 75a2646..30e2d31 --- a/Freestyle Judo/FSJViewController.m +++ b/Freestyle Judo/FSJViewController.m @@ -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; } diff --git a/Freestyle Judo/FSJWebViewController.h b/Freestyle Judo/FSJWebViewController.h old mode 100644 new mode 100755 index cf51625..7667fab --- a/Freestyle Judo/FSJWebViewController.h +++ b/Freestyle Judo/FSJWebViewController.h @@ -7,9 +7,10 @@ // #import +#import @interface FSJWebViewController : UIViewController -@property (weak, nonatomic) IBOutlet UIWebView *webView; +@property (strong, nonatomic) WKWebView *webView; @property (weak, nonatomic) IBOutlet UIToolbar *FSJWebToolbar; @property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; diff --git a/Freestyle Judo/FSJWebViewController.m b/Freestyle Judo/FSJWebViewController.m old mode 100644 new mode 100755 index c1a0364..e065e40 --- a/Freestyle Judo/FSJWebViewController.m +++ b/Freestyle Judo/FSJWebViewController.m @@ -16,35 +16,28 @@ @implementation FSJWebViewController @synthesize FSJWebToolbar = _FSJWebToolbar; @synthesize DoneButton = _DoneButton; - -- (void) viewWillAppear: (BOOL)animated -{ - [super viewWillAppear:animated]; - self.webView.scalesPageToFit = YES; - [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.freestylejudo.org"]]]; -} - - -- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation -{ - return YES; -} - - -- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request - navigationType:(UIWebViewNavigationType)navigationType { - if (request.URL == [NSURL URLWithString:@"http://www.freestylejudo.org"]) { - //do close window magic here!! - return NO; +- (void)setValue:(id)value forUndefinedKey:(NSString *)key { + if ([key isEqualToString:@"webView"]) { + // Ignore legacy UIWebView connection from storyboard; we use WKWebView created in code. + return; } - return YES; + [super setValue:value forUndefinedKey:key]; } - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. - + WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init]; + self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:config]; + self.webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; + [self.view addSubview:self.webView]; +} + +- (void) viewWillAppear: (BOOL)animated +{ + [super viewWillAppear:animated]; + [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.freestylejudo.org"]]]; } - (void)didReceiveMemoryWarning diff --git a/Freestyle Judo/Freestyle Judo-Info.plist b/Freestyle Judo/Freestyle Judo-Info.plist old mode 100644 new mode 100755 index 66eda4f..7d59dbb --- a/Freestyle Judo/Freestyle Judo-Info.plist +++ b/Freestyle Judo/Freestyle Judo-Info.plist @@ -21,11 +21,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0 + 2.0 CFBundleSignature ???? CFBundleVersion - 1.0 + 2.0 LSRequiresIPhoneOS UIMainStoryboardFile @@ -34,8 +34,14 @@ MainStoryboard_iPad UIRequiredDeviceCapabilities - armv7 + arm64 + NSAppleMusicUsageDescription + This app can play music from your library during matches to set the atmosphere (optional feature). + ITSAppUsesNonExemptEncryption + + UIStatusBarHidden + UIStatusBarStyle UIStatusBarStyleDefault UISupportedInterfaceOrientations diff --git a/Freestyle Judo/Freestyle Judo-Prefix.pch b/Freestyle Judo/Freestyle Judo-Prefix.pch old mode 100644 new mode 100755 diff --git a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/Contents.json b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/Contents.json old mode 100644 new mode 100755 index adf86b3..9a8b6a7 --- a/Freestyle Judo/Images.xcassets/AppIcon.appiconset/Contents.json +++ b/Freestyle Judo/Images.xcassets/AppIcon.appiconset/Contents.json @@ -1,104 +1,158 @@ { "images" : [ { - "size" : "29x29", - "idiom" : "iphone", "filename" : "FSJ Icon 29pt 1x-1.png", - "scale" : "1x" + "idiom" : "iphone", + "scale" : "1x", + "size" : "29x29" }, { - "size" : "29x29", - "idiom" : "iphone", "filename" : "FSJ Icon 29pt 2x-1.png", - "scale" : "2x" + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" }, { - "size" : "40x40", + "filename" : "FSJ Icon 29pt 2x-1.png", "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { "filename" : "FSJ Icon 40pt 2x.png", - "scale" : "2x" + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" }, { - "size" : "57x57", + "filename" : "FSJ Icon 40pt 2x.png", "idiom" : "iphone", - "filename" : "FSJ Icon 57pt 1x.png", - "scale" : "1x" + "scale" : "3x", + "size" : "40x40" }, { - "size" : "57x57", - "idiom" : "iphone", - "filename" : "FSJ Icon 57pt x2.png", - "scale" : "2x" - }, - { - "size" : "60x60", - "idiom" : "iphone", "filename" : "FSJ Icon 60pt x2.png", - "scale" : "2x" + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "filename" : "FSJ Icon 60pt x2.png", + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" }, { - "size" : "29x29", - "idiom" : "ipad", "filename" : "FSJ Icon 29pt 1x.png", - "scale" : "1x" + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" }, { - "size" : "29x29", - "idiom" : "ipad", "filename" : "FSJ Icon 29pt 2x.png", - "scale" : "2x" + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" }, { - "size" : "40x40", - "idiom" : "ipad", "filename" : "FSJ Icon 40pt 1x.png", - "scale" : "1x" + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" }, { - "size" : "40x40", - "idiom" : "ipad", "filename" : "FSJ Icon 40pt 2x-1.png", - "scale" : "2x" + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" }, { - "size" : "50x50", - "idiom" : "ipad", - "filename" : "FSJ Icon 50pt 1x.png", - "scale" : "1x" - }, - { - "size" : "50x50", - "idiom" : "ipad", - "filename" : "FSJ Icon 50pt x2.png", - "scale" : "2x" - }, - { - "size" : "72x72", - "idiom" : "ipad", - "filename" : "FSJ Icon 72pt 1x.png", - "scale" : "1x" - }, - { - "size" : "72x72", - "idiom" : "ipad", - "filename" : "FSJ Icon 72pt x2.png", - "scale" : "2x" - }, - { - "size" : "76x76", - "idiom" : "ipad", "filename" : "FSJ Icon 76pt 1x.png", - "scale" : "1x" + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" }, { - "size" : "76x76", - "idiom" : "ipad", "filename" : "FSJ Icon 76pt x2.png", - "scale" : "2x" + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "filename" : "FSJ Icon 76pt x2.png", + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "filename" : "FSJ Icon 76pt x2.png", + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + }, + { + "filename" : "FSJ Icon 76pt x2.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "filename" : "FSJ Icon 29pt 2x.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "filename" : "FSJ Icon 29pt 1x.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "filename" : "FSJ Icon 40pt 2x.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "filename" : "FSJ Icon 40pt 1x.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "filename" : "FSJ Icon 76pt x2.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "filename" : "FSJ Icon 76pt x2.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "filename" : "FSJ Icon 76pt x2.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "filename" : "FSJ Icon 76pt x2.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "filename" : "FSJ Icon 76pt x2.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" } ], "info" : { - "version" : 1, - "author" : "xcode" + "author" : "xcode", + "version" : 1 } } \ No newline at end of file diff --git a/Freestyle Judo/RulesWebViewController.h b/Freestyle Judo/RulesWebViewController.h old mode 100644 new mode 100755 index df42fd4..b4fbeff --- a/Freestyle Judo/RulesWebViewController.h +++ b/Freestyle Judo/RulesWebViewController.h @@ -7,9 +7,10 @@ // #import +#import @interface RulesWebViewController : UIViewController -@property (weak, nonatomic) IBOutlet UIWebView *webView; +@property (strong, nonatomic) WKWebView *webView; @property (weak, nonatomic) IBOutlet UIToolbar *HelpToolbar; @property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; @end diff --git a/Freestyle Judo/RulesWebViewController.m b/Freestyle Judo/RulesWebViewController.m old mode 100644 new mode 100755 index c1e0dae..f554c4c --- a/Freestyle Judo/RulesWebViewController.m +++ b/Freestyle Judo/RulesWebViewController.m @@ -15,33 +15,32 @@ @implementation RulesWebViewController @synthesize HelpToolbar = _HelpToolbar; @synthesize DoneButton = _DoneButton; - -- (void) viewWillAppear: (BOOL)animated -{ - [super viewWillAppear:animated]; - self.webView.scalesPageToFit = YES; - - NSString *path = [[NSBundle mainBundle] pathForResource:@"FREESTYLE_JUDO_HANDBOOK" ofType:@"pdf"]; - NSURL *targetURL = [NSURL fileURLWithPath:path]; - NSURLRequest *request = [NSURLRequest requestWithURL:targetURL]; - - [_webView loadRequest:request]; - - [self.view addSubview:_webView]; +- (void)setValue:(id)value forUndefinedKey:(NSString *)key { + if ([key isEqualToString:@"webView"]) { + return; + } + [super setValue:value forUndefinedKey:key]; } - -- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation -{ - return YES; -} - - - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. + WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init]; + self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:config]; + self.webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; + [self.view addSubview:self.webView]; +} + +- (void) viewWillAppear: (BOOL)animated +{ + [super viewWillAppear:animated]; + NSString *path = [[NSBundle mainBundle] pathForResource:@"FREESTYLE_JUDO_HANDBOOK" ofType:@"pdf"]; + NSURL *targetURL = [NSURL fileURLWithPath:path]; + NSURLRequest *request = [NSURLRequest requestWithURL:targetURL]; + + [self.webView loadRequest:request]; } - (void)didReceiveMemoryWarning diff --git a/Freestyle Judo/Settings.cpp b/Freestyle Judo/Settings.cpp old mode 100644 new mode 100755 diff --git a/Freestyle Judo/Settings.h b/Freestyle Judo/Settings.h old mode 100644 new mode 100755 diff --git a/Freestyle Judo/TheJudokaiChannelWebViewController.h b/Freestyle Judo/TheJudokaiChannelWebViewController.h old mode 100644 new mode 100755 index 9046edf..e9a32ec --- a/Freestyle Judo/TheJudokaiChannelWebViewController.h +++ b/Freestyle Judo/TheJudokaiChannelWebViewController.h @@ -7,9 +7,10 @@ // #import +#import @interface TheJudokaiChannelWebViewController : UIViewController -@property (weak, nonatomic) IBOutlet UIWebView *webView; +@property (strong, nonatomic) WKWebView *webView; @property (weak, nonatomic) IBOutlet UIToolbar *Toolbar; @property (weak, nonatomic) IBOutlet UIBarButtonItem *BackButton; @end diff --git a/Freestyle Judo/TheJudokaiChannelWebViewController.m b/Freestyle Judo/TheJudokaiChannelWebViewController.m old mode 100644 new mode 100755 index 823745b..5582b21 --- a/Freestyle Judo/TheJudokaiChannelWebViewController.m +++ b/Freestyle Judo/TheJudokaiChannelWebViewController.m @@ -15,26 +15,24 @@ @implementation TheJudokaiChannelWebViewController @synthesize Toolbar = _Toolbar; @synthesize BackButton = _BackButton; -- (void) viewWillAppear: (BOOL)animated -{ - [super viewWillAppear:animated]; - self.webView.scalesPageToFit = YES; - [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/user/TheJudokaiNetwork"]]]; +- (void)setValue:(id)value forUndefinedKey:(NSString *)key { + if ([key isEqualToString:@"webView"]) { return; } + [super setValue:value forUndefinedKey:key]; } - -- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation -{ - return YES; -} - - - - (void)viewDidLoad { [super viewDidLoad]; - // Do any additional setup after loading the view. - + WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init]; + self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:config]; + self.webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; + [self.view addSubview:self.webView]; +} + +- (void) viewWillAppear: (BOOL)animated +{ + [super viewWillAppear:animated]; + [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.youtube.com/user/TheJudokaiNetwork"]]]; } - (void)didReceiveMemoryWarning diff --git a/Freestyle Judo/TheJudokaiWebViewController.h b/Freestyle Judo/TheJudokaiWebViewController.h old mode 100644 new mode 100755 index ab23d8f..50c4dd2 --- a/Freestyle Judo/TheJudokaiWebViewController.h +++ b/Freestyle Judo/TheJudokaiWebViewController.h @@ -7,9 +7,10 @@ // #import +#import @interface TheJudokaiWebViewController : UIViewController -@property (weak, nonatomic) IBOutlet UIWebView *webView; +@property (strong, nonatomic) WKWebView *webView; @property (weak, nonatomic) IBOutlet UIToolbar *TheJudokaiWebToolbar; @property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; diff --git a/Freestyle Judo/TheJudokaiWebViewController.m b/Freestyle Judo/TheJudokaiWebViewController.m old mode 100644 new mode 100755 index 08dab4d..af3acee --- a/Freestyle Judo/TheJudokaiWebViewController.m +++ b/Freestyle Judo/TheJudokaiWebViewController.m @@ -15,27 +15,24 @@ @implementation TheJudokaiWebViewController @synthesize TheJudokaiWebToolbar = _TheJudokaiWebToolbar; @synthesize DoneButton = _DoneButton; - -- (void) viewWillAppear: (BOOL)animated -{ - [super viewWillAppear:animated]; - self.webView.scalesPageToFit = YES; - [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.judokai.net"]]]; +- (void)setValue:(id)value forUndefinedKey:(NSString *)key { + if ([key isEqualToString:@"webView"]) { return; } + [super setValue:value forUndefinedKey:key]; } - -- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation -{ - return YES; -} - - - - (void)viewDidLoad { [super viewDidLoad]; - // Do any additional setup after loading the view. - + WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init]; + self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:config]; + self.webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; + [self.view addSubview:self.webView]; +} + +- (void) viewWillAppear: (BOOL)animated +{ + [super viewWillAppear:animated]; + [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.judokai.net"]]]; } - (void)didReceiveMemoryWarning diff --git a/Freestyle Judo/WelcomeMatChannelWebViewController.h b/Freestyle Judo/WelcomeMatChannelWebViewController.h old mode 100644 new mode 100755 index 92ecdcf..00f65bb --- a/Freestyle Judo/WelcomeMatChannelWebViewController.h +++ b/Freestyle Judo/WelcomeMatChannelWebViewController.h @@ -7,9 +7,10 @@ // #import +#import @interface WelcomeMatChannelWebViewController : UIViewController -@property (weak, nonatomic) IBOutlet UIWebView *webView; +@property (strong, nonatomic) WKWebView *webView; @property (weak, nonatomic) IBOutlet UIToolbar *Toolbar; @property (weak, nonatomic) IBOutlet UIBarButtonItem *BackButton; @end diff --git a/Freestyle Judo/WelcomeMatChannelWebViewController.m b/Freestyle Judo/WelcomeMatChannelWebViewController.m old mode 100644 new mode 100755 index 28833d1..e2a4b8b --- a/Freestyle Judo/WelcomeMatChannelWebViewController.m +++ b/Freestyle Judo/WelcomeMatChannelWebViewController.m @@ -15,26 +15,24 @@ @implementation WelcomeMatChannelWebViewController @synthesize Toolbar = _Toolbar; @synthesize BackButton = _BackButton; -- (void) viewWillAppear: (BOOL)animated -{ - [super viewWillAppear:animated]; - self.webView.scalesPageToFit = YES; - [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/user/welcomematstevescott"]]]; +- (void)setValue:(id)value forUndefinedKey:(NSString *)key { + if ([key isEqualToString:@"webView"]) { return; } + [super setValue:value forUndefinedKey:key]; } - -- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation -{ - return YES; -} - - - - (void)viewDidLoad { [super viewDidLoad]; - // Do any additional setup after loading the view. - + WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init]; + self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:config]; + self.webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; + [self.view addSubview:self.webView]; +} + +- (void) viewWillAppear: (BOOL)animated +{ + [super viewWillAppear:animated]; + [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.youtube.com/user/welcomematstevescott"]]]; } - (void)didReceiveMemoryWarning diff --git a/Freestyle Judo/WelcomeMatWebViewController.h b/Freestyle Judo/WelcomeMatWebViewController.h old mode 100644 new mode 100755 index dfcd3f1..7061c8c --- a/Freestyle Judo/WelcomeMatWebViewController.h +++ b/Freestyle Judo/WelcomeMatWebViewController.h @@ -7,9 +7,10 @@ // #import +#import @interface WelcomeMatWebViewController : UIViewController -@property (weak, nonatomic) IBOutlet UIWebView *webView; +@property (strong, nonatomic) WKWebView *webView; @property (weak, nonatomic) IBOutlet UIToolbar *WelcomeMatWebToolbar; @property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; diff --git a/Freestyle Judo/WelcomeMatWebViewController.m b/Freestyle Judo/WelcomeMatWebViewController.m old mode 100644 new mode 100755 index 35d3551..eec5f0f --- a/Freestyle Judo/WelcomeMatWebViewController.m +++ b/Freestyle Judo/WelcomeMatWebViewController.m @@ -15,28 +15,24 @@ @implementation WelcomeMatWebViewController @synthesize WelcomeMatWebToolbar = _WelcomeMatWebToolbar; @synthesize DoneButton = _DoneButton; - - -- (void) viewWillAppear: (BOOL)animated -{ - [super viewWillAppear:animated]; - self.webView.scalesPageToFit = YES; - [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.welcomematjudoclub.com"]]]; +- (void)setValue:(id)value forUndefinedKey:(NSString *)key { + if ([key isEqualToString:@"webView"]) { return; } + [super setValue:value forUndefinedKey:key]; } - -- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation -{ - return YES; -} - - - - (void)viewDidLoad { [super viewDidLoad]; - // Do any additional setup after loading the view. - + WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init]; + self.webView = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:config]; + self.webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; + [self.view addSubview:self.webView]; +} + +- (void) viewWillAppear: (BOOL)animated +{ + [super viewWillAppear:animated]; + [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.welcomematjudoclub.com"]]]; } - (void)didReceiveMemoryWarning diff --git a/Freestyle Judo/en.lproj/MainStoryboard_iPad.storyboard b/Freestyle Judo/en.lproj/MainStoryboard_iPad.storyboard old mode 100644 new mode 100755 diff --git a/Freestyle Judo/en.lproj/MainStoryboard_iPhone.storyboard b/Freestyle Judo/en.lproj/MainStoryboard_iPhone.storyboard old mode 100644 new mode 100755 diff --git a/Freestyle Judo/main.m b/Freestyle Judo/main.m old mode 100644 new mode 100755 diff --git a/README.md b/README.md new file mode 100644 index 0000000..b1d9eb2 --- /dev/null +++ b/README.md @@ -0,0 +1,52 @@ +# Freestyle Judo Scoreboard + +Updated version of the Freestyle Judo iOS scoreboard app (originally released on the App Store in 2013: https://itunes.apple.com/us/app/freestyle-judo/id726511116). + +## Modernization Updates (2026) + +- **Minimum deployment target**: iOS 15.0 (was effectively ~iOS 7/9). +- **Architecture**: Updated to modern arm64; removed legacy armv7 requirements. +- **Language**: Core remains Objective-C for compatibility with original logic/timers/UI. All *new* code (e.g., WKWebView integration, launch handling patterns, setValue guards) written in modern style; Swift can be introduced for further UI if desired. +- **Web content**: All `UIWebView` instances replaced with `WKWebView` (programmatically instantiated to preserve legacy storyboards). Loads use HTTPS where possible. Local PDF handbook still supported via WKWebView. +- **macOS support**: Builds and runs via Mac Catalyst (iPad app on Mac). Also runs as "Designed for iPad" on Apple silicon Macs. Resizable windows on Mac; use fullscreen or large window for TV-like scoreboard experience. +- **iPhone / iPad**: Builds/runs on latest simulators and devices (iOS 18+ tested in build). Separate iPhone/iPad storyboards retained; app supports all orientations. +- **Deprecated APIs addressed**: + - Music player: switched from deprecated `iPodMusicPlayer` to `systemMusicPlayer`. + - Rotation: fixed return types for `supportedInterfaceOrientations`. + - Removed `viewDidUnload`. + - Added `NSAppleMusicUsageDescription` privacy key. +- **Project**: + - Deployment targets, bundle ID, and Catalyst support configured in Xcode project. + - App icon catalog updated with modern sizes (reusing available artwork). + - Builds cleanly for iOS Simulator and Mac Catalyst. +- **Other**: Sounds, timers (shiai/osaekomi), scoring (historical freestyle rules with waza-ari/yuko/koka equivalents + ippon/decision), settings, help, and reset behaviors preserved. + +## Running + +- Open `Freestyle Judo.xcodeproj` in Xcode 16+ (or current 2026 Xcode). +- Select "Freestyle Judo" scheme, run on iPhone/iPad simulator or device, or "My Mac (Mac Catalyst)". +- The scoreboard is designed for landscape use on larger screens (iPad, Mac, or AirPlay/HDMI to TV). Tap logo for info; use gestures on timer/scores or toolbar buttons (Hajime/Matte, Ippon, Osaekomi/Toketa, etc.). +- Settings allow auto-scoring osaekomi, interval timer between rounds, background music control (requires Apple Music permission if used). + +## Notes / Limitations + +- Scoring rules reflect the original "Freestyle Judo" implementation (pre-modern IJF changes). +- Background music integration is limited on modern iOS due to system privacy changes (start music manually if desired). +- UI layouts use legacy storyboards with some fixed sizes; works but may benefit from SwiftUI refresh for perfect adaptation on all devices/Mac windows (future enhancement). +- No new Swift files added yet; add via "New File > Swift" and bridge if extending. + +## Pushing to Gitea + +Intended destination: `http://gitea.binary-systems.com/vincente/Freestyle-Judo.git` + +After local verification: +``` +git remote add origin http://gitea.binary-systems.com/vincente/Freestyle-Judo.git +git push -u origin master +``` + +(Adjust auth as needed for your Gitea instance.) + +Original copyright: Binary Systems, Inc. / Vincente D'Ingianni (2013). Updates preserve original functionality and spirit. + +Enjoy the updated scoreboard! \ No newline at end of file