Skip to content
This repository has been archived by the owner on Oct 9, 2021. It is now read-only.

Commit

Permalink
Release SealTalk Demo version 4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RongRobot committed Aug 20, 2020
1 parent 32e3f4d commit d824566
Show file tree
Hide file tree
Showing 12 changed files with 97 additions and 29 deletions.
1 change: 1 addition & 0 deletions ios-sealtalk/PodShell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ sed -i '' -e '/path = RongCloudTests;/d' ${Project}
sed -i '' -e "/\/\* ShellScript \*\/ = {/,/};/d" ${Project}

# 2. 删除敏感信息
sed -i "" -e 's?^#define DORAEMON_APPID.*$?#define DORAEMON_APPID @\"\"?' RCloudMessage/AppDelegate.m
sed -i "" -e 's?^#define BUGLY_APPID.*$?#define BUGLY_APPID @\"\"?' RCloudMessage/AppDelegate.m
sed -i "" -e 's?^#define RONGCLOUD_STATUS_SERVER.*$?#define RONGCLOUD_STATUS_SERVER @\"\"?' RCloudMessage/AppDelegate.m

Expand Down
18 changes: 12 additions & 6 deletions ios-sealtalk/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ target 'SealTalk' do
pod 'SDWebImage', '5.0.6'
pod 'Bugly', '2.5.0'
pod 'WechatOpenSDK', '1.8.4'
pod 'RongCloudIM/IMLib', '4.0.1'
pod 'RongCloudIM/IMKit', '4.0.1'
pod 'RongCloudIM/RongSticker', '4.0.1'
pod 'RongCloudIM/Sight', '4.0.1'
pod 'RongCloudRTC/RongCallLib', '4.0.1'
pod 'RongCloudRTC/RongCallKit', '4.0.1'

pod 'DoraemonKit/Core', '~> 3.0.2', :configurations => ['Debug'] 必选
pod 'DoraemonKit/WithGPS', '~> 3.0.2', :configurations => ['Debug'] 模拟定位
pod 'DoraemonKit/WithLoad', '~> 3.0.2', :configurations => ['Debug'] Load耗时检测
pod 'DoraemonKit/WithMLeaksFinder', '~> 3.0.2', :configurations => ['Debug'] 查找内存泄漏

pod 'RongCloudIM/IMLib', '4.0.2'
pod 'RongCloudIM/IMKit', '4.0.2'
pod 'RongCloudIM/RongSticker', '4.0.2'
pod 'RongCloudIM/Sight', '4.0.2'
pod 'RongCloudRTC/RongCallLib', '4.0.2'
pod 'RongCloudRTC/RongCallKit', '4.0.2'
end
32 changes: 18 additions & 14 deletions ios-sealtalk/RCloudMessage.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3082,6 +3082,8 @@
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-SealTalk/Pods-SealTalk-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/AFNetworking/AFNetworking.framework",
"${BUILT_PRODUCTS_DIR}/DoraemonKit/DoraemonKit.framework",
"${PODS_ROOT}/DoraemonKit/iOS/DoraemonKit/Framework/DoraemonLoadAnalyze.framework",
"${BUILT_PRODUCTS_DIR}/FMDB/FMDB.framework",
"${BUILT_PRODUCTS_DIR}/GCDWebServer/GCDWebServer.framework",
"${BUILT_PRODUCTS_DIR}/MBProgressHUD/MBProgressHUD.framework",
Expand All @@ -3093,6 +3095,8 @@
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AFNetworking.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DoraemonKit.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/DoraemonLoadAnalyze.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FMDB.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GCDWebServer.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MBProgressHUD.framework",
Expand Down Expand Up @@ -3549,7 +3553,7 @@
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = cn.rongcloud.im.shareextension;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = $SHARE_PROFILE;
PROVISIONING_PROFILE = "$SHARE_PROFILE";
SKIP_INSTALL = YES;
};
name = AutoDebug;
Expand Down Expand Up @@ -3595,7 +3599,7 @@
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = cn.rongcloud.im.shareextension;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = $SHARE_PROFILE;
PROVISIONING_PROFILE = "$SHARE_PROFILE";
SKIP_INSTALL = YES;
};
name = AutoRelease;
Expand Down Expand Up @@ -3640,7 +3644,7 @@
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "";
PROVISIONING_PROFILE = $APP_PROFILE;
PROVISIONING_PROFILE = "$APP_PROFILE";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALID_ARCHS = "armv7 armv7s arm64";
Expand Down Expand Up @@ -3698,7 +3702,7 @@
OTHER_LIBTOOLFLAGS = "$(OTHER_LDFLAGS)";
PRODUCT_BUNDLE_IDENTIFIER = cn.rongcloud.im;
PRODUCT_NAME = SealTalk;
PROVISIONING_PROFILE = $APP_PROFILE;
PROVISIONING_PROFILE = "$APP_PROFILE";
VALID_ARCHS = "armv7 armv7s arm64";
};
name = AutoDebug;
Expand Down Expand Up @@ -3732,7 +3736,7 @@
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = cn.rongcloud.im.wkextension;
PRODUCT_NAME = "${TARGET_NAME}";
PROVISIONING_PROFILE = $WATCHKIT_EXTENSION_PROFILE;
PROVISIONING_PROFILE = "$WATCHKIT_EXTENSION_PROFILE";
SKIP_INSTALL = YES;
};
name = AutoDebug;
Expand All @@ -3752,13 +3756,13 @@
"DEBUG=1",
"$(inherited)",
);
IBSC_MODULE = "___Demo_WatchKit_Extension";
IBSC_MODULE = ___Demo_WatchKit_Extension;
INFOPLIST_FILE = "融云 Demo WatchKit App/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.2;
OTHER_CFLAGS = "-fembed-bitcode";
PRODUCT_BUNDLE_IDENTIFIER = cn.rongcloud.im.watchkitapp;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = $WATCHKIT_APP_PROFILE;
PROVISIONING_PROFILE = "$WATCHKIT_APP_PROFILE";
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = 4;
"TARGETED_DEVICE_FAMILY[sdk=iphonesimulator*]" = "1,4";
Expand Down Expand Up @@ -3799,7 +3803,7 @@
MTL_ENABLE_DEBUG_INFO = NO;
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "";
PROVISIONING_PROFILE = $APP_PROFILE;
PROVISIONING_PROFILE = "$APP_PROFILE";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
Expand Down Expand Up @@ -3858,7 +3862,7 @@
OTHER_LIBTOOLFLAGS = "$(OTHER_LDFLAGS)";
PRODUCT_BUNDLE_IDENTIFIER = cn.rongcloud.im;
PRODUCT_NAME = SealTalk;
PROVISIONING_PROFILE = $APP_PROFILE;
PROVISIONING_PROFILE = "$APP_PROFILE";
VALID_ARCHS = "armv7 armv7s arm64";
};
name = AutoRelease;
Expand Down Expand Up @@ -3889,7 +3893,7 @@
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = cn.rongcloud.im.wkextension;
PRODUCT_NAME = "${TARGET_NAME}";
PROVISIONING_PROFILE = $WATCHKIT_EXTENSION_PROFILE;
PROVISIONING_PROFILE = "$WATCHKIT_EXTENSION_PROFILE";
SKIP_INSTALL = YES;
};
name = AutoRelease;
Expand All @@ -3906,13 +3910,13 @@
DEVELOPMENT_TEAM = 9CVMN4UZK4;
ENABLE_BITCODE = NO;
GCC_NO_COMMON_BLOCKS = YES;
IBSC_MODULE = "___Demo_WatchKit_Extension";
IBSC_MODULE = ___Demo_WatchKit_Extension;
INFOPLIST_FILE = "融云 Demo WatchKit App/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.2;
OTHER_CFLAGS = "-fembed-bitcode";
PRODUCT_BUNDLE_IDENTIFIER = cn.rongcloud.im.watchkitapp;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = $WATCHKIT_APP_PROFILE;
PROVISIONING_PROFILE = "$WATCHKIT_APP_PROFILE";
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = 4;
"TARGETED_DEVICE_FAMILY[sdk=iphonesimulator*]" = "1,4";
Expand Down Expand Up @@ -3999,7 +4003,7 @@
"DEBUG=1",
"$(inherited)",
);
IBSC_MODULE = "___Demo_WatchKit_Extension";
IBSC_MODULE = ___Demo_WatchKit_Extension;
INFOPLIST_FILE = "融云 Demo WatchKit App/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.2;
OTHER_CFLAGS = "-fembed-bitcode";
Expand All @@ -4024,7 +4028,7 @@
DEVELOPMENT_TEAM = 9CVMN4UZK4;
ENABLE_BITCODE = NO;
GCC_NO_COMMON_BLOCKS = YES;
IBSC_MODULE = "___Demo_WatchKit_Extension";
IBSC_MODULE = ___Demo_WatchKit_Extension;
INFOPLIST_FILE = "融云 Demo WatchKit App/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 8.2;
OTHER_CFLAGS = "-fembed-bitcode";
Expand Down
13 changes: 13 additions & 0 deletions ios-sealtalk/RCloudMessage/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
#import "RCDPokeManager.h"
#import "RCDClearMessage.h"

#ifdef DEBUG
#import <DoraemonKit/DoraemonManager.h>
#endif

#define DORAEMON_APPID @""
#define BUGLY_APPID @""
#define LOG_EXPIRE_TIME -7 * 24 * 60 * 60

Expand All @@ -54,6 +59,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
[self configRongIM];
[self configWeChatShare];
[self loginAndEnterMainPage];
[self configDoraemon];

return YES;
}

Expand Down Expand Up @@ -115,6 +122,12 @@ - (void)configWeChatShare {
[RCDWeChatManager registerApp:WECHAT_APPID];
}

- (void)configDoraemon {
#ifdef DEBUG
[[DoraemonManager shareInstance] installWithPid:DORAEMON_APPID];
#endif
}

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {

return [[RCDWeChatManager sharedManager] handleOpenURL:url];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

static NSString *debugChatRoomCellIdentifier = @"RCDDebugChatRoomCellIdentifier";

@interface RCDDebugChatroomViewController () <UITableViewDelegate, UITableViewDataSource>
@interface RCDDebugChatroomViewController () <UITableViewDelegate, UITableViewDataSource, RCChatRoomKVStatusChangeDelegate>

@property (nonatomic, strong) UITableView *tableView;
@property (nonatomic, strong) NSMutableArray *dataArray;
Expand Down Expand Up @@ -275,6 +275,47 @@ - (void)didReceiveMessageNotification:(NSNotification *)notification {
}
}

#pragma mark - RCChatRoomKVStatusChangeDelegate
- (void)chatRoomKVDidSync:(NSString *)roomId {
NSLog(@"chatRoomKVDidSync --- roomId:%@", roomId);
NSString *targetString = [NSString stringWithFormat:@"chatRoomKVDidSync:%@", roomId];
[self addStringToDataSource:targetString];
}

- (void)chatRoomKVDidUpdate:(NSString *)roomId entry:(NSDictionary<NSString *,NSString *> *)entry {
NSLog(@"chatRoomKVDidUpdate --- roomId:%@,entry:%@", roomId, entry);
NSString *jsonString = @"";
NSError *error = nil;
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:entry
options:NSJSONWritingPrettyPrinted
error:&error];
if (error) {
jsonString = [entry description];
}
jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
NSString *targetString =
[NSString stringWithFormat:@"chatRoomKVDidUpdate:共 %lu 个,\n roomId:%@,entry:%@",
(unsigned long)entry.count, roomId, jsonString];
[self addStringToDataSource:targetString];
}

- (void)chatRoomKVDidRemove:(NSString *)roomId entry:(NSDictionary<NSString *,NSString *> *)entry {
NSLog(@"chatRoomKVDidRemove --- roomId:%@,entry:%@", roomId, entry);
NSString *jsonString = @"";
NSError *error = nil;
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:entry
options:NSJSONWritingPrettyPrinted
error:&error];
if (error) {
jsonString = [entry description];
}
jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
NSString *targetString =
[NSString stringWithFormat:@"chatRoomKVDidRemove:共 %lu 个,\n roomId:%@,entry:%@",
(unsigned long)entry.count, roomId, jsonString];
[self addStringToDataSource:targetString];
}

#pragma mark - Private Method
- (void)setupData {

Expand All @@ -284,6 +325,8 @@ - (void)setupData {
object:nil];

[self addStringToDataSource:[NSString stringWithFormat:@"加入聊天室:%@", self.roomId]];

[[RCIMClient sharedRCIMClient] setRCChatRoomKVStatusChangeDelegate:self];
}

- (void)setupNav {
Expand Down
2 changes: 1 addition & 1 deletion ios-sealtalk/RCloudMessage/Sections/Login/RCDCountry.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ @implementation RCDCountry
- (instancetype)initWithDict:(NSDictionary *)dict {
self = [super init];
if (self) {
self.phoneCode = [dict objectForKey:@"region"];
self.phoneCode = [dict objectForKey:@"region"]?:@"86";
NSDictionary *locale = [dict objectForKey:@"locale"];
self.locale = locale;
}
Expand Down
6 changes: 3 additions & 3 deletions ios-sealtalk/RCloudMessage/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>4.0.1 Dev</string>
<string>4.0.2 Dev</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down Expand Up @@ -52,7 +52,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>202007201755</string>
<string>202008191835</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>weixin</string>
Expand All @@ -77,7 +77,7 @@
<key>NSPhotoLibraryUsageDescription</key>
<string>访问相册</string>
<key>SealTalk Version</key>
<string>4.0.1</string>
<string>4.0.2</string>
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
Expand Down
1 change: 1 addition & 0 deletions ios-sealtalk/RCloudMessage/Utils/HTTP/RCDHTTPUtility.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ + (void)requestWithHTTPMethod:(HTTPMethod)method
parameters:(NSDictionary *)parameters
response:(void (^)(RCDHTTPResult *))responseBlock {
AFHTTPSessionManager *manager = [RCDHTTPUtility sharedHTTPManager];
URLString = [URLString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSString *url = [BASE_URL stringByAppendingPathComponent:URLString];

switch (method) {
Expand Down
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions ios-sealtalk/融云 Demo WatchKit App/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>4.0.1 Dev</string>
<string>4.0.2 Dev</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>202007201755</string>
<string>202008191835</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
Expand Down
4 changes: 2 additions & 2 deletions ios-sealtalk/融云 Demo WatchKit Extension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>4.0.1 Dev</string>
<string>4.0.2 Dev</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>202007201755</string>
<string>202008191835</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
Expand Down

0 comments on commit d824566

Please sign in to comment.