Skip to content

Commit

Permalink
Inverse dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
yev-kanivets committed Nov 14, 2021
1 parent 4dd9f5f commit 2d85fc6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package io.xorum.initorder.android
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
import io.xorum.initorder.orderB
import io.xorum.initorder.orderA

class MainActivity : AppCompatActivity() {

Expand All @@ -12,6 +12,6 @@ class MainActivity : AppCompatActivity() {
setContentView(R.layout.activity_main)

val tv: TextView = findViewById(R.id.text_view)
tv.text = orderB.name
tv.text = orderA.name
}
}
Binary file not shown.
2 changes: 1 addition & 1 deletion init_order/iosApp/iosApp/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import shared
struct ContentView: View {

var body: some View {
Text(OrderBKt.orderB.name)
Text(OrderAKt.orderA.name)
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package io.xorum.initorder

val orderA = Order(name = "A", dependency = null)
val orderA = Order(name = "A", dependency = orderB)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package io.xorum.initorder

val orderB = Order(name = "B", dependency = orderA)
val orderB = Order(name = "B", dependency = null)

0 comments on commit 2d85fc6

Please sign in to comment.