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

Commit

Permalink
Move uikit type report to proper position so that apmInstance will no…
Browse files Browse the repository at this point in the history
…t ignore it. (#2741)
  • Loading branch information
wqyfavor authored and lucky-chen committed Jul 22, 2019
1 parent 9768a92 commit e93bd91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ - (instancetype)initWithRenderType:(NSString*)renderType
_performance = [[WXPerformance alloc] init];
_apmInstance = [[WXApmForInstance alloc] init];

[_apmInstance setProperty:KEY_PAGE_PROPERTIES_UIKIT_TYPE withValue:_renderType?: WEEX_RENDER_TYPE_PLATFORM];

_defaultDataRender = NO;

_useBackupJsThread = NO;
Expand Down Expand Up @@ -391,6 +389,8 @@ - (void)_renderWithData:(NSData *)contents
//some case , with out render (url)
[self.apmInstance startRecord:self.instanceId];
self.apmInstance.isStartRender = YES;

[_apmInstance setProperty:KEY_PAGE_PROPERTIES_UIKIT_TYPE withValue:_renderType?: WEEX_RENDER_TYPE_PLATFORM];
if (self.dataRender) {
[self.apmInstance setProperty:KEY_PAGE_PROPERTIES_RENDER_TYPE withValue:@"eagle"];
}
Expand Down Expand Up @@ -477,6 +477,8 @@ - (void)_renderWithMainBundleString:(NSString *)mainBundleString
[self _checkPageName];
[self.apmInstance startRecord:self.instanceId];
self.apmInstance.isStartRender = YES;

[_apmInstance setProperty:KEY_PAGE_PROPERTIES_UIKIT_TYPE withValue:_renderType?: WEEX_RENDER_TYPE_PLATFORM];
if (self.dataRender) {
[self.apmInstance setProperty:KEY_PAGE_PROPERTIES_RENDER_TYPE withValue:@"eagle"];
}
Expand Down

0 comments on commit e93bd91

Please sign in to comment.