diff --git a/Crashlytics/Crashlytics.framework/Versions/A/Crashlytics b/Crashlytics/Crashlytics.framework/Versions/A/Crashlytics index 73274b61..8ab5c6fd 100644 Binary files a/Crashlytics/Crashlytics.framework/Versions/A/Crashlytics and b/Crashlytics/Crashlytics.framework/Versions/A/Crashlytics differ diff --git a/Crashlytics/Crashlytics.framework/Versions/A/Headers/Crashlytics.h b/Crashlytics/Crashlytics.framework/Versions/A/Headers/Crashlytics.h index 77c345d5..2cf1bbe7 100644 --- a/Crashlytics/Crashlytics.framework/Versions/A/Headers/Crashlytics.h +++ b/Crashlytics/Crashlytics.framework/Versions/A/Headers/Crashlytics.h @@ -26,9 +26,9 @@ * **/ #ifdef DEBUG - #define CLS_LOG(__FORMAT__, ...) CLSNSLog((@"%s line %d $ " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); + #define CLS_LOG(__FORMAT__, ...) CLSNSLog((@"%s line %d $ " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) #else - #define CLS_LOG(__FORMAT__, ...) CLSLog((@"%s line %d $ " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); + #define CLS_LOG(__FORMAT__, ...) CLSLog((@"%s line %d $ " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) #endif /** @@ -37,15 +37,15 @@ * and will only be visible in your Crashlytics dashboard. * **/ -void CLSLog(NSString *format, ...); +OBJC_EXTERN void CLSLog(NSString *format, ...); /** * * Add logging that will be sent with your crash data. This logging will show up in the system.log - * and your Crashlytics dashboard. It is not reccomended for Release builds. + * and your Crashlytics dashboard. It is not recommended for Release builds. * **/ -void CLSNSLog(NSString *format, ...); +OBJC_EXTERN void CLSNSLog(NSString *format, ...); @protocol CrashlyticsDelegate; diff --git a/Crashlytics/Crashlytics.framework/Versions/A/Resources/Info.plist b/Crashlytics/Crashlytics.framework/Versions/A/Resources/Info.plist index 587f3704..33687451 100644 --- a/Crashlytics/Crashlytics.framework/Versions/A/Resources/Info.plist +++ b/Crashlytics/Crashlytics.framework/Versions/A/Resources/Info.plist @@ -17,7 +17,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.1.5 + 1.1.7 CFBundleSignature ???? CFBundleSupportedPlatforms @@ -25,7 +25,7 @@ iPhoneOS CFBundleVersion - 0101.05.00 + 0101.07.00 CrashlyticsAPIKey 0d10c90776f5ef5acd01ddbeaca9a6cba4814560 DTCompiler diff --git a/MasterPassword/MPAppDelegate_Shared.m b/MasterPassword/MPAppDelegate_Shared.m index e1e27e77..65a87819 100644 --- a/MasterPassword/MPAppDelegate_Shared.m +++ b/MasterPassword/MPAppDelegate_Shared.m @@ -7,12 +7,16 @@ // #import "MPAppDelegate_Shared.h" +#import "MPAppDelegate_Store.h" + +@interface MPAppDelegate_Shared () + +@property (strong) NSManagedObjectID *activeUserID; + +@end @implementation MPAppDelegate_Shared -@synthesize key; -@synthesize activeUser; - + (MPAppDelegate_Shared *)get { #if TARGET_OS_IPHONE @@ -41,4 +45,14 @@ #endif } +- (MPUserEntity *)activeUser { + + return (MPUserEntity *)[self.managedObjectContextIfReady objectWithID:self.activeUserID]; +} + +- (void)setActiveUser:(MPUserEntity *)activeUser { + + self.activeUserID = activeUser.objectID; +} + @end diff --git a/MasterPassword/MPEntities.m b/MasterPassword/MPEntities.m index 03eb7ecf..1a39ba71 100644 --- a/MasterPassword/MPEntities.m +++ b/MasterPassword/MPEntities.m @@ -185,6 +185,7 @@ if (!key) return; + assert([key.keyID isEqualToData:self.user.keyID]); [self setContent:content usingKey:key]; } @@ -209,7 +210,7 @@ - (void)setContent:(id)content usingKey:(MPKey *)key { assert(self.type & MPElementTypeClassStored); - assert([key.keyID isEqualToData:self.user.keyID]); + assert(key); NSData *encryptedContent = [[content description] encryptWithSymmetricKey:[key subKeyOfLength:PearlCryptKeySize].keyData padding:YES];