This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
144 additions
and
17 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// | ||
// GYInitializeOptions.m | ||
// Glassfy | ||
// | ||
// Created by Luca Garbolino on 23/03/23. | ||
// | ||
|
||
#import "GYInitializeOptions.h" | ||
|
||
@interface GYInitializeOptions() | ||
@property(nonatomic, readwrite, strong) NSString *apiKey; | ||
@end | ||
|
||
@implementation GYInitializeOptions | ||
|
||
|
||
+ (instancetype)initializeOptionsWithAPIKey:(NSString *)apiKey | ||
{ | ||
return [[self alloc] initWithAPIKey:apiKey]; | ||
} | ||
|
||
- (GYInitializeOptions *)watcherMode:(BOOL)enable | ||
{ | ||
self.watcherMode = enable; | ||
return self; | ||
} | ||
|
||
- (GYInitializeOptions *)crossPlatformSdkFramework:(NSString *)framework | ||
{ | ||
self.crossPlatformSdkFramework = framework; | ||
return self; | ||
} | ||
|
||
- (GYInitializeOptions *)crossPlatformSdkVersion:(NSString *)version | ||
{ | ||
self.crossPlatformSdkVersion = version; | ||
return self; | ||
} | ||
|
||
|
||
#pragma mark - private | ||
|
||
- (instancetype)initWithAPIKey:(NSString *)apiKey | ||
{ | ||
self = [super init]; | ||
if (self) { | ||
_apiKey = apiKey; | ||
} | ||
return self; | ||
} | ||
|
||
@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
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
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,32 @@ | ||
// | ||
// GYInitializeOptions.h | ||
// Glassfy | ||
// | ||
// Created by Luca Garbolino on 23/03/23. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
NS_SWIFT_NAME(Glassfy.InitializeOptions) | ||
@interface GYInitializeOptions : NSObject | ||
|
||
@property(nonatomic, assign) BOOL watcherMode; | ||
@property(nonatomic, readonly, strong) NSString *apiKey; | ||
@property(nonatomic, strong, nullable) NSString *crossPlatformSdkFramework; | ||
@property(nonatomic, strong, nullable) NSString *crossPlatformSdkVersion; | ||
|
||
+ (instancetype)initializeOptionsWithAPIKey:(NSString *)apiKey; | ||
|
||
- (GYInitializeOptions *)watcherMode:(BOOL)mode; | ||
|
||
- (GYInitializeOptions *)crossPlatformSdkFramework:(NSString *_Nullable)framework; | ||
- (GYInitializeOptions *)crossPlatformSdkVersion:(NSString *_Nullable)version; | ||
|
||
- (instancetype)init NS_UNAVAILABLE; | ||
+ (instancetype)new NS_UNAVAILABLE; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_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