2
0

Disable ADHOC and tester functionality / bypasses.

This commit is contained in:
Maarten Billemont 2017-04-18 20:30:06 -04:00
parent d704f451a3
commit c99252809d
5 changed files with 3 additions and 19 deletions

View File

@ -4005,7 +4005,6 @@
GCC_NO_COMMON_BLOCKS = YES; GCC_NO_COMMON_BLOCKS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREPROCESSOR_DEFINITIONS = ( GCC_PREPROCESSOR_DEFINITIONS = (
"ADHOC=1",
"$(inherited)", "$(inherited)",
"NDEBUG=1", "NDEBUG=1",
"NS_BLOCK_ASSERTIONS=1", "NS_BLOCK_ASSERTIONS=1",
@ -4273,7 +4272,6 @@
GCC_NO_COMMON_BLOCKS = YES; GCC_NO_COMMON_BLOCKS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREPROCESSOR_DEFINITIONS = ( GCC_PREPROCESSOR_DEFINITIONS = (
"ADHOC=1",
"$(inherited)", "$(inherited)",
"NDEBUG=1", "NDEBUG=1",
"NS_BLOCK_ASSERTIONS=1", "NS_BLOCK_ASSERTIONS=1",

View File

@ -2568,7 +2568,6 @@
GCC_NO_COMMON_BLOCKS = YES; GCC_NO_COMMON_BLOCKS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREPROCESSOR_DEFINITIONS = ( GCC_PREPROCESSOR_DEFINITIONS = (
"ADHOC=1",
"$(inherited)", "$(inherited)",
"NDEBUG=1", "NDEBUG=1",
"NS_BLOCK_ASSERTIONS=1", "NS_BLOCK_ASSERTIONS=1",
@ -2838,7 +2837,6 @@
GCC_NO_COMMON_BLOCKS = YES; GCC_NO_COMMON_BLOCKS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREPROCESSOR_DEFINITIONS = ( GCC_PREPROCESSOR_DEFINITIONS = (
"ADHOC=1",
"$(inherited)", "$(inherited)",
"NDEBUG=1", "NDEBUG=1",
"NS_BLOCK_ASSERTIONS=1", "NS_BLOCK_ASSERTIONS=1",

View File

@ -75,7 +75,7 @@ PearlAssociatedObjectProperty( NSMutableArray*, ProductObservers, productObserve
// Consumable product. // Consumable product.
return NO; return NO;
#if ADHOC || DEBUG #if DEBUG
// All features are unlocked for beta / debug / mac versions. // All features are unlocked for beta / debug / mac versions.
return YES; return YES;
#else #else

View File

@ -72,7 +72,7 @@ static OSStatus MPHotKeyHander(EventHandlerCallRef nextHandler, EventRef theEven
NSString *crashlyticsAPIKey = [self crashlyticsAPIKey]; NSString *crashlyticsAPIKey = [self crashlyticsAPIKey];
if ([crashlyticsAPIKey length]) { if ([crashlyticsAPIKey length]) {
inf(@"Initializing Crashlytics"); inf(@"Initializing Crashlytics");
#if defined (DEBUG) || defined (ADHOC) #if DEBUG
[Crashlytics sharedInstance].debugMode = YES; [Crashlytics sharedInstance].debugMode = YES;
#endif #endif
[[Crashlytics sharedInstance] setUserIdentifier:[PearlKeyChain deviceIdentifier]]; [[Crashlytics sharedInstance] setUserIdentifier:[PearlKeyChain deviceIdentifier]];

View File

@ -52,7 +52,7 @@
NSString *crashlyticsAPIKey = [self crashlyticsAPIKey]; NSString *crashlyticsAPIKey = [self crashlyticsAPIKey];
if ([crashlyticsAPIKey length]) { if ([crashlyticsAPIKey length]) {
inf( @"Initializing Crashlytics" ); inf( @"Initializing Crashlytics" );
#if defined (DEBUG) || defined (ADHOC) #if DEBUG
[Crashlytics sharedInstance].debugMode = YES; [Crashlytics sharedInstance].debugMode = YES;
#endif #endif
[[Crashlytics sharedInstance] setUserIdentifier:[PearlKeyChain deviceIdentifier]]; [[Crashlytics sharedInstance] setUserIdentifier:[PearlKeyChain deviceIdentifier]];
@ -88,18 +88,6 @@
PearlAddNotificationObserver( NSUserDefaultsDidChangeNotification, nil, nil, ^(id self, NSNotification *note) { PearlAddNotificationObserver( NSUserDefaultsDidChangeNotification, nil, nil, ^(id self, NSNotification *note) {
[[NSNotificationCenter defaultCenter] postNotificationName:MPCheckConfigNotification object:nil]; [[NSNotificationCenter defaultCenter] postNotificationName:MPCheckConfigNotification object:nil];
} ); } );
#ifdef ADHOC
[PearlAlert showAlertWithTitle:@"Welcome, tester!" message:
@"Thank you for taking the time to test Master Password.\n\n"
@"Please provide any feedback, however minor it may seem, via the Feedback action item accessible from the top right.\n\n"
@"Contact me directly at:\n"
@"lhunath@lyndir.com\n"
@"Or report detailed issues at:\n"
@"https://youtrack.lyndir.com\n"
viewStyle:UIAlertViewStyleDefault initAlert:nil tappedButtonBlock:nil
cancelTitle:nil otherTitles:[PearlStrings get].commonButtonOkay, nil];
#endif
} }
@catch (id exception) { @catch (id exception) {
err( @"During Config Test: %@", exception ); err( @"During Config Test: %@", exception );