forked from iBurnApp/iBurn-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
13 changed files
with
337 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,6 @@ | |
|
||
@property (strong, nonatomic) UIWindow *window; | ||
|
||
- (void)showTabBarAnimated:(BOOL)animated; | ||
|
||
@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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// BRCEmbargo.h | ||
// iBurn | ||
// | ||
// Created by David Chiles on 8/7/14. | ||
// Copyright (c) 2014 Burning Man Earth. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface BRCEmbargo : NSObject | ||
|
||
|
||
+ (BOOL)isEmbargoPasscodeString:(NSString *)passcode; | ||
|
||
/**Checks if the password has been entered or before gates open */ | ||
+ (BOOL)allowEmbargoedData; | ||
|
||
@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,31 @@ | ||
// | ||
// BRCEmbargo.m | ||
// iBurn | ||
// | ||
// Created by David Chiles on 8/7/14. | ||
// Copyright (c) 2014 Burning Man Earth. All rights reserved. | ||
// | ||
|
||
#import "BRCEmbargo.h" | ||
#import "NSUserDefaults+iBurn.h" | ||
#import "BRCSecrets.h" | ||
#import "BRCEventObject.h" | ||
|
||
@implementation BRCEmbargo | ||
|
||
+ (BOOL)isEmbargoPasscodeString:(NSString *)passcode | ||
{ | ||
return [passcode isEqualToString:kBRCEmbargoPasscode]; | ||
} | ||
|
||
+ (BOOL)allowEmbargoedData | ||
{ | ||
//Data is not embargoed after start of festival or if the passcode has been entered | ||
if ([[NSUserDefaults standardUserDefaults] enteredEmbargoPasscode] || [[BRCEventObject festivalStartDate] timeIntervalSinceNow] < 0) { | ||
return YES; | ||
} | ||
return NO; | ||
} | ||
|
||
|
||
@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,13 @@ | ||
// | ||
// BRCEmbargoPasscodeViewController.h | ||
// iBurn | ||
// | ||
// Created by David Chiles on 8/7/14. | ||
// Copyright (c) 2014 Burning Man Earth. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface BRCEmbargoPasscodeViewController : UIViewController | ||
|
||
@end |
Oops, something went wrong.