Skip to content

Commit

Permalink
update graal version
Browse files Browse the repository at this point in the history
  • Loading branch information
kosyloa committed Mar 26, 2024
1 parent 53106ac commit e65f256
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 28 deletions.
55 changes: 28 additions & 27 deletions DXFeedFrameworkTests/DXOtcMarketOrderTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ final class DXOtcMarketOrderTest: XCTestCase {
}

func testOtcPublishing() throws {
throw XCTSkip("skip. otc not ready")

let SYMBOL1 = "AAPL_TEST1"
let SYMBOL2 = "AAPL_TEST2"
let order1 = OtcMarketsOrder(SYMBOL1)
Expand Down Expand Up @@ -77,31 +75,34 @@ final class DXOtcMarketOrderTest: XCTestCase {
let testEventListenr = AnonymousClass { anonymCl in
anonymCl.callback = { events in
if events.count > 0 {
let event = events.first!.otcMarketsOrder
if event.eventSymbol == SYMBOL1 {
XCTAssertEqual(event.marketMaker, "MM1")
XCTAssertEqual(event.price, 10)
XCTAssertEqual(event.quoteAccessPayment, -30)
XCTAssertEqual(event.isOpen, true)
XCTAssertEqual(event.isUnsolicited, true)
XCTAssertEqual(event.otcMarketsPriceType, .actual)
XCTAssertEqual(event.isSaturated, true)
XCTAssertEqual(event.isAutoExecution, true)
XCTAssertEqual(event.isNmsConditional, true)
XCTAssertEqual(event.otcMarketsFlags, order1.otcMarketsFlags)
receivedEvent1Exp.fulfill()
} else if event.eventSymbol == SYMBOL2 {
XCTAssertEqual(event.marketMaker, "MM2")
XCTAssertEqual(event.price, 10)
XCTAssertEqual(event.quoteAccessPayment, -30)
XCTAssertEqual(event.isOpen, true)
XCTAssertEqual(event.isUnsolicited, true)
XCTAssertEqual(event.otcMarketsPriceType, .actual)
XCTAssertEqual(event.isSaturated, true)
XCTAssertEqual(event.isAutoExecution, false)
XCTAssertEqual(event.isNmsConditional, false)
XCTAssertEqual(event.otcMarketsFlags, order2.otcMarketsFlags)
receivedEvent1Exp.fulfill()
events.forEach { event in
XCTAssertEqual(event.type, .otcMarketsOrder)
var event = event.otcMarketsOrder
if event.eventSymbol == SYMBOL1 {
XCTAssertEqual(event.marketMaker, "MM1")
XCTAssertEqual(event.price, 10)
XCTAssertEqual(event.quoteAccessPayment, -30)
XCTAssertEqual(event.isOpen, true)
XCTAssertEqual(event.isUnsolicited, true)
XCTAssertEqual(event.otcMarketsPriceType, .actual)
XCTAssertEqual(event.isSaturated, true)
XCTAssertEqual(event.isAutoExecution, true)
XCTAssertEqual(event.isNmsConditional, true)
XCTAssertEqual(event.otcMarketsFlags, order1.otcMarketsFlags)
receivedEvent1Exp.fulfill()
} else if event.eventSymbol == SYMBOL2 {
XCTAssertEqual(event.marketMaker, "MM2")
XCTAssertEqual(event.price, 10)
XCTAssertEqual(event.quoteAccessPayment, -30)
XCTAssertEqual(event.isOpen, true)
XCTAssertEqual(event.isUnsolicited, true)
XCTAssertEqual(event.otcMarketsPriceType, .wanted)
XCTAssertEqual(event.isSaturated, true)
XCTAssertEqual(event.isAutoExecution, false)
XCTAssertEqual(event.isNmsConditional, false)
XCTAssertEqual(event.otcMarketsFlags, order2.otcMarketsFlags)
receivedEvent1Exp.fulfill()
}
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repositories {
}
}

def native_version = '1.1.8'
def native_version = '1.1.10'
def name = 'graal-native-sdk'
dependencies {
implementation(group: 'com.dxfeed', name: "${name}", version: "${native_version}", classifier: 'aarch64-osx', ext: 'zip')
Expand All @@ -29,6 +29,8 @@ task fetchDependencies(type: Copy) {
from sourceSets.main.runtimeClasspath
into 'downloads'

new File('graal_builds').deleteDir()

doLast {
println "fetch dep:"
ext.frameworkName = { zipFileName ->
Expand Down

0 comments on commit e65f256

Please sign in to comment.