Skip to content

Commit

Permalink
perf: Cache result in getSystemVersion()
Browse files Browse the repository at this point in the history
This caching has been broken with commit 850e5e4
  • Loading branch information
mbektchiev committed May 21, 2019
1 parent c2267a4 commit f0e9253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NativeScript/Metadata/Metadata.mm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static UInt8 getSystemVersion() {
UInt8 majorVersion = (UInt8)[versionTokens[0] intValue];
UInt8 minorVersion = (UInt8)[versionTokens[1] intValue];

return encodeVersion(majorVersion, minorVersion);
return iosVersion = encodeVersion(majorVersion, minorVersion);
}
std::unordered_map<std::string, MembersCollection> getMetasByJSNames(MembersCollection members) {
std::unordered_map<std::string, MembersCollection> result;
Expand Down

0 comments on commit f0e9253

Please sign in to comment.