Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions EX2Kit/Categories/Foundation/EX2FoundationCategories.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@
#import "NSData+Gzip.h"
#import "NSMutableDictionary+Safe.h"
#import "NSURL+QueryParameterDictionary.h"
#import "NSData+Hash.h"
#import "NSNumber+CleanString.h"
#import "NSNull+CleanString.h"
#import "NSObject+UserInfo.h"
#import "NSOrderedSet+Safe.h"
#import "NSMutableOrderedSet+Safe.h"
#import "NSOrderedSet+FirstObject.h"
#import "NSURL+SkipBackupAttribute.h"
#import "NSFileHandle+Hash.h"
#import "NSArray+CleanString.h"

#endif
16 changes: 0 additions & 16 deletions EX2Kit/Categories/Foundation/NSData+Hash.h

This file was deleted.

48 changes: 0 additions & 48 deletions EX2Kit/Categories/Foundation/NSData+Hash.m

This file was deleted.

16 changes: 0 additions & 16 deletions EX2Kit/Categories/Foundation/NSFileHandle+Hash.h

This file was deleted.

108 changes: 0 additions & 108 deletions EX2Kit/Categories/Foundation/NSFileHandle+Hash.m

This file was deleted.

3 changes: 3 additions & 0 deletions EX2Kit/Categories/Foundation/NSString/NSString+md5.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ + (NSString *) md5:(NSString *)str ignoreEmpty:(BOOL)ignoreEmpty
{
const char *cStr = [str UTF8String];
unsigned char result[16];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CC_MD5( cStr, (CC_LONG)strlen(cStr), result );
#pragma clang diagnostic pop
return [NSString stringWithFormat:
@"%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X",
result[0], result[1], result[2], result[3],
Expand Down
1 change: 0 additions & 1 deletion EX2Kit/Categories/UIKit/UIDevice+Software.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@
- (NSString *)systemBuild;
- (NSString *)completeVersionString;
- (BOOL)isJailbroken;
- (BOOL)isOnPhoneCall;

@end
21 changes: 0 additions & 21 deletions EX2Kit/Categories/UIKit/UIDevice+Software.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
#import "UIDevice+Software.h"
#import <sys/sysctl.h>

#ifdef TVOS
#else
#import <CoreTelephony/CTCallCenter.h>
#import <CoreTelephony/CTCall.h>
#endif

@implementation UIDevice (Software)

- (NSString *)systemBuild
Expand Down Expand Up @@ -62,19 +56,4 @@ - (BOOL)isJailbroken
#endif
}

- (BOOL)isOnPhoneCall
{
#ifdef TVOS
return NO;
#else
CTCallCenter *callCenter = [[CTCallCenter alloc] init];
for (CTCall *call in callCenter.currentCalls)
{
if (call.callState != CTCallStateDisconnected)
return YES;
}
return NO;
#endif
}

@end
7 changes: 0 additions & 7 deletions EX2Kit/Categories/UIKit/UIView+Tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@

@property (nonatomic, readonly) UIViewController *viewController;

#ifdef TVOS
#else
- (CGSize)realSizeDidRotate;
- (CGSize)realSizeDidRotate:(UIDeviceOrientation)currentOrientation;
+ (UIInterfaceOrientation)interfaceOrientationFromDeviceOrientation:(UIDeviceOrientation)deviceOrientation;
#endif

- (void)addLeftShadowWithWidth:(CGFloat)shadowWidth alpha:(CGFloat)shadowAlpha;
- (void)addLeftShadow;
- (void)removeLeftShadow;
Expand Down
36 changes: 0 additions & 36 deletions EX2Kit/Categories/UIKit/UIView+Tools.m
Original file line number Diff line number Diff line change
Expand Up @@ -346,42 +346,6 @@ - (UIViewController *)viewController;
}
}

#ifdef TVOS
#else
+ (UIInterfaceOrientation)interfaceOrientationFromDeviceOrientation:(UIDeviceOrientation)deviceOrientation
{
switch (deviceOrientation)
{
case UIDeviceOrientationLandscapeLeft:
return UIInterfaceOrientationLandscapeRight;
case UIDeviceOrientationLandscapeRight:
return UIInterfaceOrientationLandscapeLeft;
default:
return UIInterfaceOrientationPortrait;
}
}

- (CGSize)realSizeDidRotate:(UIDeviceOrientation)currentOrientation
{
UIInterfaceOrientation orientation = (int)currentOrientation == -1 ? [[UIApplication sharedApplication] statusBarOrientation] : [self.class interfaceOrientationFromDeviceOrientation:currentOrientation];
CGSize size = self.frame.size;
if ((UIInterfaceOrientationIsLandscape(orientation) && size.width < size.height) ||
(UIInterfaceOrientationIsPortrait(orientation) && size.width > size.height))
{
// flip width and height
CGFloat f = size.width;
size.width = size.height;
size.height = f;
}
return size;
}

- (CGSize)realSizeDidRotate
{
return [self realSizeDidRotate:-1];
}
#endif

// Convert the view for use in Arabic/Hebrew layout
- (void)convertToRTL
{
Expand Down
1 change: 0 additions & 1 deletion EX2Kit/Components/EX2Components.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#import "EX2ActionBlock.h"

#ifdef IOS
#import "EX2NetworkIndicator.h"
#import "EX2Reachability.h"
#endif

Expand Down
17 changes: 0 additions & 17 deletions EX2Kit/Components/EX2NetworkIndicator.h

This file was deleted.

47 changes: 0 additions & 47 deletions EX2Kit/Components/EX2NetworkIndicator.m

This file was deleted.

Loading