Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix publishToMavenLocal #381

Merged
merged 2 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
)
Loading