-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38162e8
commit 370e09c
Showing
5 changed files
with
56 additions
and
0 deletions.
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
11 changes: 11 additions & 0 deletions
11
tests/android/app/src/main/java/br/com/stone/ton/kmp/plugins/Cards.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,11 @@ | ||
package br.com.stone.ton.kmp.plugins | ||
|
||
import br.com.stone.ton.StoneCo | ||
import co.stone.banking.cards.common.CardsPlugin | ||
import co.stone.multiplatform.core.featurePlugin.MultiplatformFeature | ||
|
||
internal fun installCards() { | ||
MultiplatformFeature.install( | ||
CardsPlugin() | ||
) | ||
} |
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,19 @@ | ||
// | ||
|
||
import KotlinShared | ||
import FeatureCards | ||
|
||
class CardsKmpFeature { | ||
|
||
func get() -> KotlinCoordinator? { | ||
guard let featurePlugin: CardsPlugin = MultiplatformFeature.plugin(Cards.self) else { return nil } | ||
let coordinator = featurePlugin.platform.entrypoint(KotlinUnit.shared) | ||
return coordinator | ||
} | ||
|
||
func install() { | ||
MultiplatformFeature.shared.install( | ||
CardsPlugin() | ||
) | ||
} | ||
} |
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,2 @@ | ||
featureName: 'FeatureMassa' | ||
featurePluginName: 'FeatureMassPlugin' |
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,22 @@ | ||
#!/usr/bin/expect | ||
|
||
spawn rm -rf android/ | ||
spawn rm -rf ios/ | ||
interact | ||
|
||
spawn yo rn-caos:kmp | ||
|
||
expect "Qual o nome de sua feature?" | ||
send "Dda" | ||
|
||
expect "Qual o nome do Plugin de sua feature?" | ||
send "DdaPlugin" | ||
|
||
expect eof | ||
|
||
spawn rm -rf android/ | ||
spawn rm -rf ios/ | ||
|
||
spawn yo rn-caos ./login.yml | ||
|
||
expect eof |