-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING: Removed the first argument of
olympus_run()
. Suite name i…
…s now defined through the option `olympus_suite_options_suite_name`.
- Loading branch information
Showing
32 changed files
with
461 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#import <Foundation/Foundation.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
@interface Olympus : NSObject | ||
{ | ||
} | ||
- (void)_olympus_ios_finish_loop; | ||
- (NSString *)_olympus_ios_get_init_confirmation; | ||
- (NSString *)_olympus_ios_get_intent; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#import "Olympus.h" | ||
#import "OlympusDelegate.h" | ||
@implementation Olympus | ||
- (void)_olympus_ios_finish_loop { | ||
|
||
NSLog(@"_olympus_ios_finish_loop"); | ||
UIApplication *app = [UIApplication sharedApplication]; | ||
[app openURL:[NSURL URLWithString:@"firebase-game-loop-complete://"] | ||
options:@{} | ||
completionHandler:^(BOOL success) {}]; | ||
} | ||
|
||
- (NSString*) _olympus_ios_get_init_confirmation | ||
{ | ||
NSString *value = @"initialized"; | ||
return value; | ||
} | ||
|
||
|
||
- (NSString*) _olympus_ios_get_intent | ||
{ | ||
NSString *value = [OlympusDelegate get_intent]; | ||
return value; | ||
} | ||
@end |
7 changes: 7 additions & 0 deletions
7
src/extensions/_olympus_extension/iOSSource/OlympusDelegate.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#import "iPad_RunnerAppDelegate.h" | ||
|
||
@interface OlympusDelegate : iPad_RunnerAppDelegate | ||
+ (NSString *)get_intent; | ||
|
||
|
||
@end |
38 changes: 38 additions & 0 deletions
38
src/extensions/_olympus_extension/iOSSource/OlympusDelegate.mm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#import "OlympusDelegate.h" | ||
@implementation OlympusDelegate | ||
|
||
NSString *intent = @"uninitialized"; | ||
|
||
- (BOOL)application:(UIApplication *)app | ||
openURL:(NSURL *)url | ||
options:(NSDictionary *)options{ | ||
NSString *message = @"Hello, world!"; | ||
NSLog(@"%@", message); | ||
if ([url.scheme isEqualToString:(@"firebase-game-loop")]) { | ||
NSLog(@"launching in firebase"); | ||
intent = [url.scheme copy]; | ||
} | ||
else{ | ||
NSLog(@"launching in normal mode"); | ||
intent = @"normal-launch"; | ||
} | ||
} | ||
|
||
|
||
- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions | ||
{ | ||
|
||
|
||
// Check if any superclasses implement this method and call it | ||
if([[self superclass] instancesRespondToSelector:@selector(application:willFinishLaunchingWithOptions:)]) | ||
return [super application:application willFinishLaunchingWithOptions:launchOptions]; | ||
else | ||
return TRUE; | ||
} | ||
|
||
+ (NSString*) get_intent | ||
{ | ||
return intent; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.