From 5cfc77696922b22ad14db2c0649427161d273f1d Mon Sep 17 00:00:00 2001 From: AKosylo Date: Fri, 17 Nov 2023 13:27:37 +0100 Subject: [PATCH] update to the latest version --- .../Native/Ipf/InstrumentProfile+Ext.swift | 52 +++++++++---------- .../Native/Ipf/InstrumentProfileMapper.swift | 4 +- build.gradle | 2 +- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/DXFeedFramework/Native/Ipf/InstrumentProfile+Ext.swift b/DXFeedFramework/Native/Ipf/InstrumentProfile+Ext.swift index f178bc8eb..f3663cb4f 100644 --- a/DXFeedFramework/Native/Ipf/InstrumentProfile+Ext.swift +++ b/DXFeedFramework/Native/Ipf/InstrumentProfile+Ext.swift @@ -18,14 +18,14 @@ extension InstrumentProfile { type = String(pointee: native.type) symbol = String(pointee: native.symbol) descriptionStr = String(pointee: native.description) - localSymbol = String(pointee: native.localSymbol) - localDescription = String(pointee: native.localDescription) + localSymbol = String(pointee: native.local_symbol) + localDescription = String(pointee: native.local_description) country = String(pointee: native.country) opol = String(pointee: native.opol) - exchangeData = String(pointee: native.exchangeData) + exchangeData = String(pointee: native.exchange_data) exchanges = String(pointee: native.exchanges) currency = String(pointee: native.currency) - baseCurrency = String(pointee: native.baseCurrency) + baseCurrency = String(pointee: native.base_currency) cfi = String(pointee: native.cfi) isin = String(pointee: native.isin) sedol = String(pointee: native.sedol) @@ -36,24 +36,24 @@ extension InstrumentProfile { product = String(pointee: native.product) underlying = String(pointee: native.underlying) spc = native.spc - additionalUnderlyings = String(pointee: native.additionalUnderlyings) + additionalUnderlyings = String(pointee: native.additional_underlyings) mmy = String(pointee: native.mmy) expiration = native.expiration - lastTrade = native.lastTrade + lastTrade = native.last_trade strike = native.strike - optionType = String(pointee: native.optionType) - expirationStyle = String(pointee: native.expirationStyle) - settlementStyle = String(pointee: native.settlementStyle) - priceIncrements = String(pointee: native.priceIncrements) - tradingHours = String(pointee: native.tradingHours) + optionType = String(pointee: native.option_type) + expirationStyle = String(pointee: native.expiration_style) + settlementStyle = String(pointee: native.settlement_style) + priceIncrements = String(pointee: native.price_increments) + tradingHours = String(pointee: native.trading_hours) var customFields = [String: String]() - let count = native.customFields.pointee.size + let count = native.custom_fields.pointee.size for index in 0...allocate(capacity: 1) list.pointee.size = 0 list.pointee.elements = nil - pointer.pointee.customFields = list + pointer.pointee.custom_fields = list } } diff --git a/DXFeedFramework/Native/Ipf/InstrumentProfileMapper.swift b/DXFeedFramework/Native/Ipf/InstrumentProfileMapper.swift index 43cd64b73..cd7901e74 100644 --- a/DXFeedFramework/Native/Ipf/InstrumentProfileMapper.swift +++ b/DXFeedFramework/Native/Ipf/InstrumentProfileMapper.swift @@ -23,8 +23,8 @@ class InstrumentProfileMapper { } func releaseNative(native: UnsafeMutablePointer) { - native.pointee.customFields.deinitialize(count: 1) - native.pointee.customFields.deallocate() + native.pointee.custom_fields.deinitialize(count: 1) + native.pointee.custom_fields.deallocate() native.deinitialize(count: 1) native.deallocate() } diff --git a/build.gradle b/build.gradle index 021bb7a2d..5cb983cde 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ repositories { } } -def native_version = '1.1.2' +def native_version = '1.1.3' def name = 'graal-native-sdk' dependencies { implementation(group: 'com.dxfeed', name: "${name}", version: "${native_version}", classifier: 'aarch64-osx', ext: 'zip')