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

Commit

Permalink
[iOS] fix customEnvironment crash
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhan-he committed Jan 8, 2019
1 parent a2943a9 commit f5aec4e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
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

0 comments on commit f5aec4e

Please sign in to comment.