-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix publishToMavenLocal - need to create expect/actual for kotlin-inj…
…ect component creation methods for every final platform. (See kotlin-inject KMP examples.)
- Loading branch information
1 parent
f4faed4
commit e2850fa
Showing
5 changed files
with
124 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
28
src/iosSimulatorArm64Main/kotlin/di/AbacusComponent.ios.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
28
src/jsMain/kotlin/exchange.dydx.abacus/di/AbacusComponent.js.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |