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

[iOS] fix customEnvironment crash #2015

Merged
merged 1 commit into from
Jan 8, 2019
Merged
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
5 changes: 1 addition & 4 deletions ios/sdk/WeexSDK/Sources/Utility/WXLog.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,8 @@ + (instancetype)sharedInstance

+ (void)setLogLevel:(WXLogLevel)level
{
if (((WXLog*)[self sharedInstance])->_logLevel != level) {
((WXLog*)[self sharedInstance])->_logLevel = level;
((WXLog*)[self sharedInstance])->_logLevel = level;

[[WXSDKManager bridgeMgr] resetEnvironment];
}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
Class propertyClass = NSClassFromString(@"WXTracingViewControllerManager");
Expand Down
1 change: 0 additions & 1 deletion ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ + (NSDictionary *)getEnvironment
@"deviceWidth":@(deviceWidth * scale),
@"deviceHeight":@(deviceHeight * scale),
@"scale":@(scale),
@"logLevel":[WXLog logLevelString] ?: @"error",
@"layoutDirection": [self getEnvLayoutDirection] == WXLayoutDirectionRTL ? @"rtl" : @"ltr"
}];

Expand Down