Skip to content

Commit

Permalink
Fix publishToMavenLocal (#381)
Browse files Browse the repository at this point in the history
Co-authored-by: Rui <[email protected]>
  • Loading branch information
prashanDYDX and ruixhuang authored May 24, 2024
1 parent 336478f commit 83d032f
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/commonMain/kotlin/exchange.dydx.abacus/di/AbacusComponent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ object AbacusFactory {
stateNotification: StateNotificationProtocol? = null,
dataNotification: DataNotificationProtocol? = null,
presentationProtocol: PresentationProtocol? = null,
): AbacusComponent = AbacusComponent::class.create(
): AbacusComponent = createAbacusComponent(
deploymentUri,
deployment,
appConfigs,
Expand All @@ -61,3 +61,14 @@ abstract class AbacusComponent(
) {
abstract val stateManager: AsyncAbacusStateManagerV2
}

internal expect fun createAbacusComponent(
deploymentUri: DeploymentUri,
deployment: Deployment,
appConfigs: AppConfigsV2,
ioImplementations: IOImplementations,
uiImplementations: UIImplementations,
stateNotification: StateNotificationProtocol?,
dataNotification: DataNotificationProtocol?,
presentationProtocol: PresentationProtocol?,
): AbacusComponent
28 changes: 28 additions & 0 deletions src/iosArm64Main/kotlin/di/AbacusComponent.ios.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package exchange.dydx.abacus.di

import exchange.dydx.abacus.protocols.DataNotificationProtocol
import exchange.dydx.abacus.protocols.PresentationProtocol
import exchange.dydx.abacus.protocols.StateNotificationProtocol
import exchange.dydx.abacus.state.v2.supervisor.AppConfigsV2
import exchange.dydx.abacus.utils.IOImplementations
import exchange.dydx.abacus.utils.UIImplementations

internal actual fun createAbacusComponent(
deploymentUri: DeploymentUri,
deployment: Deployment,
appConfigs: AppConfigsV2,
ioImplementations: IOImplementations,
uiImplementations: UIImplementations,
stateNotification: StateNotificationProtocol?,
dataNotification: DataNotificationProtocol?,
presentationProtocol: PresentationProtocol?,
): AbacusComponent = AbacusComponent::class.create(
deploymentUri,
deployment,
appConfigs,
ioImplementations,
uiImplementations,
stateNotification,
dataNotification,
presentationProtocol,
)
28 changes: 28 additions & 0 deletions src/iosSimulatorArm64Main/kotlin/di/AbacusComponent.ios.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package exchange.dydx.abacus.di

import exchange.dydx.abacus.protocols.DataNotificationProtocol
import exchange.dydx.abacus.protocols.PresentationProtocol
import exchange.dydx.abacus.protocols.StateNotificationProtocol
import exchange.dydx.abacus.state.v2.supervisor.AppConfigsV2
import exchange.dydx.abacus.utils.IOImplementations
import exchange.dydx.abacus.utils.UIImplementations

internal actual fun createAbacusComponent(
deploymentUri: DeploymentUri,
deployment: Deployment,
appConfigs: AppConfigsV2,
ioImplementations: IOImplementations,
uiImplementations: UIImplementations,
stateNotification: StateNotificationProtocol?,
dataNotification: DataNotificationProtocol?,
presentationProtocol: PresentationProtocol?,
): AbacusComponent = AbacusComponent::class.create(
deploymentUri,
deployment,
appConfigs,
ioImplementations,
uiImplementations,
stateNotification,
dataNotification,
presentationProtocol,
)
28 changes: 28 additions & 0 deletions src/jsMain/kotlin/exchange.dydx.abacus/di/AbacusComponent.js.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package exchange.dydx.abacus.di

import exchange.dydx.abacus.protocols.DataNotificationProtocol
import exchange.dydx.abacus.protocols.PresentationProtocol
import exchange.dydx.abacus.protocols.StateNotificationProtocol
import exchange.dydx.abacus.state.v2.supervisor.AppConfigsV2
import exchange.dydx.abacus.utils.IOImplementations
import exchange.dydx.abacus.utils.UIImplementations

internal actual fun createAbacusComponent(
deploymentUri: DeploymentUri,
deployment: Deployment,
appConfigs: AppConfigsV2,
ioImplementations: IOImplementations,
uiImplementations: UIImplementations,
stateNotification: StateNotificationProtocol?,
dataNotification: DataNotificationProtocol?,
presentationProtocol: PresentationProtocol?,
): AbacusComponent = AbacusComponent::class.create(
deploymentUri,
deployment,
appConfigs,
ioImplementations,
uiImplementations,
stateNotification,
dataNotification,
presentationProtocol,
)
28 changes: 28 additions & 0 deletions src/jvmMain/kotlin/di/AbacusComponent.jvm.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package exchange.dydx.abacus.di

import exchange.dydx.abacus.protocols.DataNotificationProtocol
import exchange.dydx.abacus.protocols.PresentationProtocol
import exchange.dydx.abacus.protocols.StateNotificationProtocol
import exchange.dydx.abacus.state.v2.supervisor.AppConfigsV2
import exchange.dydx.abacus.utils.IOImplementations
import exchange.dydx.abacus.utils.UIImplementations

internal actual fun createAbacusComponent(
deploymentUri: DeploymentUri,
deployment: Deployment,
appConfigs: AppConfigsV2,
ioImplementations: IOImplementations,
uiImplementations: UIImplementations,
stateNotification: StateNotificationProtocol?,
dataNotification: DataNotificationProtocol?,
presentationProtocol: PresentationProtocol?,
): AbacusComponent = AbacusComponent::class.create(
deploymentUri,
deployment,
appConfigs,
ioImplementations,
uiImplementations,
stateNotification,
dataNotification,
presentationProtocol,
)

0 comments on commit 83d032f

Please sign in to comment.