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:
2026-06-11 13:59:30 -05:00
parent 03921e94d7
commit 2401e381d5
34 changed files with 319 additions and 223 deletions
+21 -16
View File
@@ -21,7 +21,6 @@
9F17189B17B8012F0055BB0D /* MainStoryboard_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9F17189917B8012F0055BB0D /* MainStoryboard_iPhone.storyboard */; }; 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 */; }; 9F17189E17B8012F0055BB0D /* MainStoryboard_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9F17189C17B8012F0055BB0D /* MainStoryboard_iPad.storyboard */; };
9F1718A117B8012F0055BB0D /* FSJViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F1718A017B8012F0055BB0D /* FSJViewController.m */; }; 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 */; }; 9F1718AA17B801300055BB0D /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9F17188117B8012F0055BB0D /* UIKit.framework */; };
9F1718AB17B801300055BB0D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9F17188317B8012F0055BB0D /* Foundation.framework */; }; 9F1718AB17B801300055BB0D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9F17188317B8012F0055BB0D /* Foundation.framework */; };
9F1718B317B801300055BB0D /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9F1718B117B801300055BB0D /* InfoPlist.strings */; }; 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 */; }; 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 */; }; 9FCC7A72180CA29900F55236 /* boxing_bell.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 9FCC7A71180CA29900F55236 /* boxing_bell.mp3 */; };
9FCC7A74180CA72300F55236 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9FCC7A73180CA72300F55236 /* AVFoundation.framework */; }; 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 */; }; 9FCC7A76180CB15C00F55236 /* single_bell.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 9FCC7A75180CB15C00F55236 /* single_bell.mp3 */; };
9FCC7A78180CB4A200F55236 /* buzzer.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 9FCC7A77180CB4A200F55236 /* buzzer.mp3 */; }; 9FCC7A78180CB4A200F55236 /* buzzer.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 9FCC7A77180CB4A200F55236 /* buzzer.mp3 */; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */
@@ -80,8 +80,7 @@
9F17189D17B8012F0055BB0D /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard_iPad.storyboard; sourceTree = "<group>"; }; 9F17189D17B8012F0055BB0D /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard_iPad.storyboard; sourceTree = "<group>"; };
9F17189F17B8012F0055BB0D /* FSJViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FSJViewController.h; sourceTree = "<group>"; }; 9F17189F17B8012F0055BB0D /* FSJViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FSJViewController.h; sourceTree = "<group>"; };
9F1718A017B8012F0055BB0D /* FSJViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FSJViewController.m; sourceTree = "<group>"; }; 9F1718A017B8012F0055BB0D /* FSJViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FSJViewController.m; sourceTree = "<group>"; };
9F1718A717B801300055BB0D /* Freestyle JudoTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Freestyle JudoTests.octest"; sourceTree = BUILT_PRODUCTS_DIR; }; 9F1718A717B801300055BB0D /* Freestyle JudoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Freestyle JudoTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
9F1718A817B801300055BB0D /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
9F1718B017B801300055BB0D /* Freestyle JudoTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Freestyle JudoTests-Info.plist"; sourceTree = "<group>"; }; 9F1718B017B801300055BB0D /* Freestyle JudoTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Freestyle JudoTests-Info.plist"; sourceTree = "<group>"; };
9F1718B217B801300055BB0D /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; 9F1718B217B801300055BB0D /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
9F1718B417B801300055BB0D /* Freestyle_JudoTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Freestyle_JudoTests.h; sourceTree = "<group>"; }; 9F1718B417B801300055BB0D /* Freestyle_JudoTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Freestyle_JudoTests.h; sourceTree = "<group>"; };
@@ -117,6 +116,7 @@
9FCC7A6F1809EC6800F55236 /* FREESTYLE_JUDO_HANDBOOK.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = FREESTYLE_JUDO_HANDBOOK.pdf; sourceTree = "<group>"; }; 9FCC7A6F1809EC6800F55236 /* FREESTYLE_JUDO_HANDBOOK.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; path = FREESTYLE_JUDO_HANDBOOK.pdf; sourceTree = "<group>"; };
9FCC7A71180CA29900F55236 /* boxing_bell.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = boxing_bell.mp3; sourceTree = "<group>"; }; 9FCC7A71180CA29900F55236 /* boxing_bell.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = boxing_bell.mp3; sourceTree = "<group>"; };
9FCC7A73180CA72300F55236 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; }; 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 = "<group>"; }; 9FCC7A75180CB15C00F55236 /* single_bell.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = single_bell.mp3; sourceTree = "<group>"; };
9FCC7A77180CB4A200F55236 /* buzzer.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = buzzer.mp3; sourceTree = "<group>"; }; 9FCC7A77180CB4A200F55236 /* buzzer.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = buzzer.mp3; sourceTree = "<group>"; };
/* End PBXFileReference section */ /* End PBXFileReference section */
@@ -127,6 +127,7 @@
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
9FCC7A74180CA72300F55236 /* AVFoundation.framework in Frameworks */, 9FCC7A74180CA72300F55236 /* AVFoundation.framework in Frameworks */,
A1B2C3D4E5F6071829384756 /* WebKit.framework in Frameworks */,
9F21D20E18031AAC00029572 /* MediaPlayer.framework in Frameworks */, 9F21D20E18031AAC00029572 /* MediaPlayer.framework in Frameworks */,
9F07C44B17FDAB5300BDA6EC /* AudioToolbox.framework in Frameworks */, 9F07C44B17FDAB5300BDA6EC /* AudioToolbox.framework in Frameworks */,
9F17188217B8012F0055BB0D /* UIKit.framework in Frameworks */, 9F17188217B8012F0055BB0D /* UIKit.framework in Frameworks */,
@@ -139,7 +140,6 @@
isa = PBXFrameworksBuildPhase; isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
9F1718A917B801300055BB0D /* SenTestingKit.framework in Frameworks */,
9F1718AA17B801300055BB0D /* UIKit.framework in Frameworks */, 9F1718AA17B801300055BB0D /* UIKit.framework in Frameworks */,
9F1718AB17B801300055BB0D /* Foundation.framework in Frameworks */, 9F1718AB17B801300055BB0D /* Foundation.framework in Frameworks */,
); );
@@ -162,7 +162,7 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
9F17187E17B8012F0055BB0D /* Freestyle Judo.app */, 9F17187E17B8012F0055BB0D /* Freestyle Judo.app */,
9F1718A717B801300055BB0D /* Freestyle JudoTests.octest */, 9F1718A717B801300055BB0D /* Freestyle JudoTests.xctest */,
); );
name = Products; name = Products;
sourceTree = "<group>"; sourceTree = "<group>";
@@ -171,12 +171,12 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
9FCC7A73180CA72300F55236 /* AVFoundation.framework */, 9FCC7A73180CA72300F55236 /* AVFoundation.framework */,
A1B2C3D4E5F6071829384750 /* WebKit.framework */,
9F21D20D18031AAC00029572 /* MediaPlayer.framework */, 9F21D20D18031AAC00029572 /* MediaPlayer.framework */,
9F07C44A17FDAB5300BDA6EC /* AudioToolbox.framework */, 9F07C44A17FDAB5300BDA6EC /* AudioToolbox.framework */,
9F17188117B8012F0055BB0D /* UIKit.framework */, 9F17188117B8012F0055BB0D /* UIKit.framework */,
9F17188317B8012F0055BB0D /* Foundation.framework */, 9F17188317B8012F0055BB0D /* Foundation.framework */,
9F17188517B8012F0055BB0D /* CoreGraphics.framework */, 9F17188517B8012F0055BB0D /* CoreGraphics.framework */,
9F1718A817B801300055BB0D /* SenTestingKit.framework */,
); );
name = Frameworks; name = Frameworks;
sourceTree = "<group>"; sourceTree = "<group>";
@@ -296,8 +296,8 @@
); );
name = "Freestyle JudoTests"; name = "Freestyle JudoTests";
productName = "Freestyle JudoTests"; productName = "Freestyle JudoTests";
productReference = 9F1718A717B801300055BB0D /* Freestyle JudoTests.octest */; productReference = 9F1718A717B801300055BB0D /* Freestyle JudoTests.xctest */;
productType = "com.apple.product-type.bundle"; productType = "com.apple.product-type.bundle.unit-test";
}; };
/* End PBXNativeTarget section */ /* End PBXNativeTarget section */
@@ -306,6 +306,7 @@
isa = PBXProject; isa = PBXProject;
attributes = { attributes = {
CLASSPREFIX = FSJ; CLASSPREFIX = FSJ;
LastTestingUpgradeCheck = 0710;
LastUpgradeCheck = 0460; LastUpgradeCheck = 0460;
ORGANIZATIONNAME = "Binary Systems, Inc."; ORGANIZATIONNAME = "Binary Systems, Inc.";
TargetAttributes = { TargetAttributes = {
@@ -484,7 +485,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.0; IPHONEOS_DEPLOYMENT_TARGET = 15.0;
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos; SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2"; TARGETED_DEVICE_FAMILY = "1,2";
@@ -511,7 +512,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.0; IPHONEOS_DEPLOYMENT_TARGET = 15.0;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
"PROVISIONING_PROFILE[sdk=*]" = "Freestyle Judo Distribution"; "PROVISIONING_PROFILE[sdk=*]" = "Freestyle Judo Distribution";
SDKROOT = iphoneos; SDKROOT = iphoneos;
@@ -524,15 +525,17 @@
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch"; GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch";
INFOPLIST_FILE = "Freestyle Judo/Freestyle Judo-Info.plist"; 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)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = ""; PROVISIONING_PROFILE = "";
SUPPORTS_MACCATALYST = YES;
MACOSX_DEPLOYMENT_TARGET = 12.0;
"PROVISIONING_PROFILE[sdk=*]" = ""; "PROVISIONING_PROFILE[sdk=*]" = "";
WRAPPER_EXTENSION = app; WRAPPER_EXTENSION = app;
}; };
@@ -542,15 +545,17 @@
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch"; GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch";
INFOPLIST_FILE = "Freestyle Judo/Freestyle Judo-Info.plist"; 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)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = ""; PROVISIONING_PROFILE = "";
SUPPORTS_MACCATALYST = YES;
MACOSX_DEPLOYMENT_TARGET = 12.0;
WRAPPER_EXTENSION = app; WRAPPER_EXTENSION = app;
}; };
name = Release; name = Release;
@@ -562,13 +567,13 @@
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
"\"$(SDKROOT)/Developer/Library/Frameworks\"", "\"$(SDKROOT)/Developer/Library/Frameworks\"",
"\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"",
"$(inherited)",
); );
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch"; GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch";
INFOPLIST_FILE = "Freestyle JudoTests/Freestyle JudoTests-Info.plist"; INFOPLIST_FILE = "Freestyle JudoTests/Freestyle JudoTests-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUNDLE_LOADER)"; TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = octest;
}; };
name = Debug; name = Debug;
}; };
@@ -579,13 +584,13 @@
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
"\"$(SDKROOT)/Developer/Library/Frameworks\"", "\"$(SDKROOT)/Developer/Library/Frameworks\"",
"\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"",
"$(inherited)",
); );
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch"; GCC_PREFIX_HEADER = "Freestyle Judo/Freestyle Judo-Prefix.pch";
INFOPLIST_FILE = "Freestyle JudoTests/Freestyle JudoTests-Info.plist"; INFOPLIST_FILE = "Freestyle JudoTests/Freestyle JudoTests-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUNDLE_LOADER)"; TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = octest;
}; };
name = Release; name = Release;
}; };
+2 -1
View File
@@ -7,9 +7,10 @@
// //
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
@interface BSIWebViewController : UIViewController @interface BSIWebViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIWebView *webView; @property (strong, nonatomic) WKWebView *webView;
@property (weak, nonatomic) IBOutlet UIToolbar *BSIWebToolbar; @property (weak, nonatomic) IBOutlet UIToolbar *BSIWebToolbar;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; @property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton;
+12 -15
View File
@@ -15,27 +15,24 @@ @implementation BSIWebViewController
@synthesize BSIWebToolbar = _BSIWebToolbar; @synthesize BSIWebToolbar = _BSIWebToolbar;
@synthesize DoneButton = _DoneButton; @synthesize DoneButton = _DoneButton;
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
- (void) viewWillAppear: (BOOL)animated if ([key isEqualToString:@"webView"]) { return; }
{ [super setValue:value forUndefinedKey:key];
[super viewWillAppear:animated];
self.webView.scalesPageToFit = YES;
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.binary-systems.com"]]];
} }
- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation
{
return YES;
}
- (void)viewDidLoad - (void)viewDidLoad
{ {
[super 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 - (void)didReceiveMemoryWarning
Regular → Executable
View File
Regular → Executable
View File
View File
+1 -1
View File
@@ -56,7 +56,7 @@ -(BOOL)shouldAutorotate
} }
- (NSUInteger)supportedInterfaceOrientations - (UIInterfaceOrientationMask)supportedInterfaceOrientations
{ {
return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown; return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
} }
View File
+1 -1
View File
@@ -52,7 +52,7 @@ -(BOOL)shouldAutorotate
} }
- (NSUInteger)supportedInterfaceOrientations - (UIInterfaceOrientationMask)supportedInterfaceOrientations
{ {
return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown; return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
} }
View File
+1 -1
View File
@@ -62,7 +62,7 @@ -(BOOL)shouldAutorotate
} }
- (NSUInteger)supportedInterfaceOrientations - (UIInterfaceOrientationMask)supportedInterfaceOrientations
{ {
return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown; return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
} }
View File
+3 -9
View File
@@ -207,10 +207,10 @@ - (void)viewDidLoad
_MusicPlayer = [MPMusicPlayerController iPodMusicPlayer]; _MusicPlayer = [MPMusicPlayerController systemMusicPlayer];
if (_MusicPlayer.playbackState == MPMusicPlaybackStatePlaying) if (_MusicPlayer && _MusicPlayer.playbackState == MPMusicPlaybackStatePlaying)
{ {
[_MusicPlayer pause]; [_MusicPlayer pause];
} }
@@ -271,12 +271,6 @@ - (void) audioPlayerDidFinishPlaying: (AVAudioPlayer *) player
- (void)viewDidUnload
{
}
- (BOOL) shouldAutorotate - (BOOL) shouldAutorotate
{ {
return YES; return YES;
@@ -284,7 +278,7 @@ - (BOOL) shouldAutorotate
- (NSUInteger)supportedInterfaceOrientations - (UIInterfaceOrientationMask)supportedInterfaceOrientations
{ {
return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight; return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight;
} }
+2 -1
View File
@@ -7,9 +7,10 @@
// //
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
@interface FSJWebViewController : UIViewController @interface FSJWebViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIWebView *webView; @property (strong, nonatomic) WKWebView *webView;
@property (weak, nonatomic) IBOutlet UIToolbar *FSJWebToolbar; @property (weak, nonatomic) IBOutlet UIToolbar *FSJWebToolbar;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; @property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton;
+14 -21
View File
@@ -16,35 +16,28 @@ @implementation FSJWebViewController
@synthesize FSJWebToolbar = _FSJWebToolbar; @synthesize FSJWebToolbar = _FSJWebToolbar;
@synthesize DoneButton = _DoneButton; @synthesize DoneButton = _DoneButton;
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
- (void) viewWillAppear: (BOOL)animated if ([key isEqualToString:@"webView"]) {
{ // Ignore legacy UIWebView connection from storyboard; we use WKWebView created in code.
[super viewWillAppear:animated]; return;
self.webView.scalesPageToFit = YES;
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.freestylejudo.org"]]];
} }
[super setValue:value forUndefinedKey:key];
- (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;
}
return YES;
} }
- (void)viewDidLoad - (void)viewDidLoad
{ {
[super viewDidLoad]; [super viewDidLoad];
// Do any additional setup after loading the view. // 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 - (void)didReceiveMemoryWarning
+9 -3
View File
@@ -21,11 +21,11 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0</string> <string>2.0</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.0</string> <string>2.0</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>UIMainStoryboardFile</key> <key>UIMainStoryboardFile</key>
@@ -34,8 +34,14 @@
<string>MainStoryboard_iPad</string> <string>MainStoryboard_iPad</string>
<key>UIRequiredDeviceCapabilities</key> <key>UIRequiredDeviceCapabilities</key>
<array> <array>
<string>armv7</string> <string>arm64</string>
</array> </array>
<key>NSAppleMusicUsageDescription</key>
<string>This app can play music from your library during matches to set the atmosphere (optional feature).</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>UIStatusBarHidden</key>
<false/>
<key>UIStatusBarStyle</key> <key>UIStatusBarStyle</key>
<string>UIStatusBarStyleDefault</string> <string>UIStatusBarStyleDefault</string>
<key>UISupportedInterfaceOrientations</key> <key>UISupportedInterfaceOrientations</key>
View File
+118 -64
View File
@@ -1,104 +1,158 @@
{ {
"images" : [ "images" : [
{ {
"size" : "29x29",
"idiom" : "iphone",
"filename" : "FSJ Icon 29pt 1x-1.png", "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", "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", "idiom" : "iphone",
"scale" : "3x",
"size" : "29x29"
},
{
"filename" : "FSJ Icon 40pt 2x.png", "filename" : "FSJ Icon 40pt 2x.png",
"scale" : "2x" "idiom" : "iphone",
"scale" : "2x",
"size" : "40x40"
}, },
{ {
"size" : "57x57", "filename" : "FSJ Icon 40pt 2x.png",
"idiom" : "iphone", "idiom" : "iphone",
"filename" : "FSJ Icon 57pt 1x.png", "scale" : "3x",
"scale" : "1x" "size" : "40x40"
}, },
{ {
"size" : "57x57",
"idiom" : "iphone",
"filename" : "FSJ Icon 57pt x2.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "FSJ Icon 60pt x2.png", "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", "filename" : "FSJ Icon 29pt 1x.png",
"scale" : "1x" "idiom" : "ipad",
"scale" : "1x",
"size" : "29x29"
}, },
{ {
"size" : "29x29",
"idiom" : "ipad",
"filename" : "FSJ Icon 29pt 2x.png", "filename" : "FSJ Icon 29pt 2x.png",
"scale" : "2x" "idiom" : "ipad",
"scale" : "2x",
"size" : "29x29"
}, },
{ {
"size" : "40x40",
"idiom" : "ipad",
"filename" : "FSJ Icon 40pt 1x.png", "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", "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", "filename" : "FSJ Icon 76pt 1x.png",
"scale" : "1x" "idiom" : "ipad",
"scale" : "1x",
"size" : "76x76"
}, },
{ {
"size" : "76x76",
"idiom" : "ipad",
"filename" : "FSJ Icon 76pt x2.png", "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" : { "info" : {
"version" : 1, "author" : "xcode",
"author" : "xcode" "version" : 1
} }
} }
+2 -1
View File
@@ -7,9 +7,10 @@
// //
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
@interface RulesWebViewController : UIViewController @interface RulesWebViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIWebView *webView; @property (strong, nonatomic) WKWebView *webView;
@property (weak, nonatomic) IBOutlet UIToolbar *HelpToolbar; @property (weak, nonatomic) IBOutlet UIToolbar *HelpToolbar;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; @property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton;
@end @end
+18 -19
View File
@@ -15,33 +15,32 @@ @implementation RulesWebViewController
@synthesize HelpToolbar = _HelpToolbar; @synthesize HelpToolbar = _HelpToolbar;
@synthesize DoneButton = _DoneButton; @synthesize DoneButton = _DoneButton;
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
- (void) viewWillAppear: (BOOL)animated if ([key isEqualToString:@"webView"]) {
{ return;
[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];
} }
[super setValue:value forUndefinedKey:key];
- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation
{
return YES;
} }
- (void)viewDidLoad - (void)viewDidLoad
{ {
[super viewDidLoad]; [super viewDidLoad];
// Do any additional setup after loading the view. // 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 - (void)didReceiveMemoryWarning
Regular → Executable
View File
Regular → Executable
View File
+2 -1
View File
@@ -7,9 +7,10 @@
// //
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
@interface TheJudokaiChannelWebViewController : UIViewController @interface TheJudokaiChannelWebViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIWebView *webView; @property (strong, nonatomic) WKWebView *webView;
@property (weak, nonatomic) IBOutlet UIToolbar *Toolbar; @property (weak, nonatomic) IBOutlet UIToolbar *Toolbar;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *BackButton; @property (weak, nonatomic) IBOutlet UIBarButtonItem *BackButton;
@end @end
+12 -14
View File
@@ -15,26 +15,24 @@ @implementation TheJudokaiChannelWebViewController
@synthesize Toolbar = _Toolbar; @synthesize Toolbar = _Toolbar;
@synthesize BackButton = _BackButton; @synthesize BackButton = _BackButton;
- (void) viewWillAppear: (BOOL)animated - (void)setValue:(id)value forUndefinedKey:(NSString *)key {
{ if ([key isEqualToString:@"webView"]) { return; }
[super viewWillAppear:animated]; [super setValue:value forUndefinedKey:key];
self.webView.scalesPageToFit = YES;
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/user/TheJudokaiNetwork"]]];
} }
- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation
{
return YES;
}
- (void)viewDidLoad - (void)viewDidLoad
{ {
[super 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 - (void)didReceiveMemoryWarning
+2 -1
View File
@@ -7,9 +7,10 @@
// //
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
@interface TheJudokaiWebViewController : UIViewController @interface TheJudokaiWebViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIWebView *webView; @property (strong, nonatomic) WKWebView *webView;
@property (weak, nonatomic) IBOutlet UIToolbar *TheJudokaiWebToolbar; @property (weak, nonatomic) IBOutlet UIToolbar *TheJudokaiWebToolbar;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; @property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton;
+12 -15
View File
@@ -15,27 +15,24 @@ @implementation TheJudokaiWebViewController
@synthesize TheJudokaiWebToolbar = _TheJudokaiWebToolbar; @synthesize TheJudokaiWebToolbar = _TheJudokaiWebToolbar;
@synthesize DoneButton = _DoneButton; @synthesize DoneButton = _DoneButton;
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
- (void) viewWillAppear: (BOOL)animated if ([key isEqualToString:@"webView"]) { return; }
{ [super setValue:value forUndefinedKey:key];
[super viewWillAppear:animated];
self.webView.scalesPageToFit = YES;
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.judokai.net"]]];
} }
- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation
{
return YES;
}
- (void)viewDidLoad - (void)viewDidLoad
{ {
[super 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 - (void)didReceiveMemoryWarning
+2 -1
View File
@@ -7,9 +7,10 @@
// //
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
@interface WelcomeMatChannelWebViewController : UIViewController @interface WelcomeMatChannelWebViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIWebView *webView; @property (strong, nonatomic) WKWebView *webView;
@property (weak, nonatomic) IBOutlet UIToolbar *Toolbar; @property (weak, nonatomic) IBOutlet UIToolbar *Toolbar;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *BackButton; @property (weak, nonatomic) IBOutlet UIBarButtonItem *BackButton;
@end @end
+12 -14
View File
@@ -15,26 +15,24 @@ @implementation WelcomeMatChannelWebViewController
@synthesize Toolbar = _Toolbar; @synthesize Toolbar = _Toolbar;
@synthesize BackButton = _BackButton; @synthesize BackButton = _BackButton;
- (void) viewWillAppear: (BOOL)animated - (void)setValue:(id)value forUndefinedKey:(NSString *)key {
{ if ([key isEqualToString:@"webView"]) { return; }
[super viewWillAppear:animated]; [super setValue:value forUndefinedKey:key];
self.webView.scalesPageToFit = YES;
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/user/welcomematstevescott"]]];
} }
- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation
{
return YES;
}
- (void)viewDidLoad - (void)viewDidLoad
{ {
[super 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 - (void)didReceiveMemoryWarning
+2 -1
View File
@@ -7,9 +7,10 @@
// //
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>
@interface WelcomeMatWebViewController : UIViewController @interface WelcomeMatWebViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIWebView *webView; @property (strong, nonatomic) WKWebView *webView;
@property (weak, nonatomic) IBOutlet UIToolbar *WelcomeMatWebToolbar; @property (weak, nonatomic) IBOutlet UIToolbar *WelcomeMatWebToolbar;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton; @property (weak, nonatomic) IBOutlet UIBarButtonItem *DoneButton;
+12 -16
View File
@@ -15,28 +15,24 @@ @implementation WelcomeMatWebViewController
@synthesize WelcomeMatWebToolbar = _WelcomeMatWebToolbar; @synthesize WelcomeMatWebToolbar = _WelcomeMatWebToolbar;
@synthesize DoneButton = _DoneButton; @synthesize DoneButton = _DoneButton;
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
if ([key isEqualToString:@"webView"]) { return; }
- (void) viewWillAppear: (BOOL)animated [super setValue:value forUndefinedKey:key];
{
[super viewWillAppear:animated];
self.webView.scalesPageToFit = YES;
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.welcomematjudoclub.com"]]];
} }
- (BOOL) shouldAutorotateTOInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation
{
return YES;
}
- (void)viewDidLoad - (void)viewDidLoad
{ {
[super 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 - (void)didReceiveMemoryWarning
View File
View File
Regular → Executable
View File
+52
View File
@@ -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!