-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2.1.4 update AVOSCloud and AVOSCloudIM SDK to 11.0.0
- Loading branch information
1 parent
af780fe
commit c3d3698
Showing
13 changed files
with
133 additions
and
126 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
#else | ||
#import "LCChatKit.h" | ||
#endif | ||
|
||
@interface LCCKUtil : NSObject | ||
|
||
+ (BOOL)isIPhoneX; | ||
|
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,17 @@ | ||
// | ||
// LCCKCommonUtils.h | ||
// AVOSCloud | ||
// | ||
// Created by chenyilong on 14/6/2018. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
@class AVFile; | ||
|
||
@interface LCCKCommonUtils : NSObject | ||
|
||
+ (NSString *)getPathFromFile:(AVFile *)file; | ||
|
||
+ (BOOL)isCacheDataAvailableForFile:(AVFile *)file; | ||
|
||
@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,29 @@ | ||
// | ||
// LCCKCommonUtils.m | ||
// AVOSCloud | ||
// | ||
// Created by chenyilong on 14/6/2018. | ||
// | ||
|
||
#import "LCCKCommonUtils.h" | ||
#import <AVOSCloud/AVOSCloud.h> | ||
|
||
@implementation LCCKCommonUtils | ||
|
||
+ (NSString *)getPathFromFile:(AVFile *)file { | ||
NSString *localPath = [file persistentCachePath]; | ||
return localPath; | ||
} | ||
|
||
+ (BOOL)isCacheDataAvailableForFile:(AVFile *)file { | ||
NSString *objectId = file.objectId; | ||
NSString *localPath = [self getPathFromFile:file]; | ||
localPath = (localPath.length > 0) ? localPath :@""; | ||
BOOL fileExistsAtPath = ([[NSFileManager defaultManager] fileExistsAtPath:localPath]); | ||
if (objectId.length > 0 && fileExistsAtPath) { | ||
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
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
Oops, something went wrong.