Skip to content

Commit

Permalink
Merge pull request #579 from zapcannon87/master
Browse files Browse the repository at this point in the history
release: 12.0.1-beta.1
  • Loading branch information
zapcannon87 authored Oct 14, 2019
2 parents 26f06ba + 6a2bf54 commit 2e67cce
Show file tree
Hide file tree
Showing 92 changed files with 22,659 additions and 26,297 deletions.
73 changes: 59 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
# Local Config
script_config.json

# macOS
*.DS_Store

# Xcode
.DS_Store
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
Expand All @@ -12,18 +27,48 @@ build/
!default.mode2v3
*.perspectivev3
!default.perspectivev3
!default.xcworkspace
xcuserdata
*.moved-aside
DerivedData
.idea/
# Pods - for those of you who use CocoaPods
Pods
*.xccheckout
contents.xcworkspacedata

# Xcode code coverage files
*.gcno
*.gcda
## Obj-C/Swift specific
*.hmap

*.xcscmblueprint
## App packaging
*.ipa
*.dSYM.zip
*.dSYM

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
857 changes: 428 additions & 429 deletions AVOS/AVOS.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions AVOS/AVOSCloud/Analytics/AVAnalyticsUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#import <WatchKit/WatchKit.h>
#endif

#if AV_TARGET_OS_IOS
#if TARGET_OS_IOS && !TARGET_OS_SIMULATOR
#import <CoreTelephony/CTTelephonyNetworkInfo.h>
#import <CoreTelephony/CTCarrier.h>
#endif
Expand Down Expand Up @@ -198,7 +198,7 @@ +(NSString *)deviceId
+(NSString *)carrier {
NSString *carrier = nil;

#if AV_TARGET_OS_IOS
#if TARGET_OS_IOS && !TARGET_OS_SIMULATOR
CTTelephonyNetworkInfo *phoneInfo = [[CTTelephonyNetworkInfo alloc] init];
CTCarrier *phoneCarrier = [phoneInfo subscriberCellularProvider];
carrier = [phoneCarrier carrierName];
Expand Down
4 changes: 2 additions & 2 deletions AVOS/AVOSCloud/ThirdParty/LCDB/LCDatabase.m
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ - (BOOL)rekey:(NSString*)key {
}

- (BOOL)rekeyWithData:(NSData *)keyData {
#ifdef SQLITE_HAS_CODEC
#ifdef LC_SQLITE_HAS_CODEC
if (!keyData) {
return NO;
}
Expand All @@ -379,7 +379,7 @@ - (BOOL)setKey:(NSString*)key {
}

- (BOOL)setKeyWithData:(NSData *)keyData {
#ifdef SQLITE_HAS_CODEC
#ifdef LC_SQLITE_HAS_CODEC
if (!keyData) {
return NO;
}
Expand Down
2 changes: 1 addition & 1 deletion AVOS/AVOSCloud/UserAgent.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define SDK_VERSION @"12.0.0"
#define SDK_VERSION @"12.0.1-beta.1"
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ typedef void (^AVIMCommandResultBlock)(AVIMGenericCommand *outCommand, AVIMGener
反序列化时获取Command所属的具体的消息类型对象
@return Command所属的具体的消息类型对象
*/
- (LCIMMessage *)avim_messageCommand;
- (LCGPBMessage *)avim_messageCommand;

/*!
做 conversation 缓存时,为了使 key 能兼容,需要将 AVIMGenericCommand 对象转换为 AVIMConversationOutCommand 对象
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ - (NSArray *)avim_requiredConditions {
return [requiredKeys copy];
}

- (LCIMMessage *)avim_messageCommand {
LCIMMessage *result = nil;
- (LCGPBMessage *)avim_messageCommand {
LCGPBMessage *result = nil;
AVIMCommandType commandType = self.cmd;
switch (commandType) {

Expand Down Expand Up @@ -264,7 +264,7 @@ - (AVIMConversationOutCommand *)avim_conversationForCache {
}

- (NSString *)avim_messageClass {
LCIMMessage *command = [self avim_messageCommand];
LCGPBMessage *command = [self avim_messageCommand];
Class class = [command class];
NSString *avim_messageClass = NSStringFromClass(class);
return avim_messageClass;
Expand Down
Loading

0 comments on commit 2e67cce

Please sign in to comment.