File tree Expand file tree Collapse file tree 7 files changed +7
-8
lines changed
core-android/src/main/java/com/squareup/workflow1/ui/container
main/java/com/squareup/workflow1/ui
test/java/com/squareup/workflow1/ui Expand file tree Collapse file tree 7 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ android.useAndroidX=true
8
8
systemProp.org.gradle.internal.publish.checksums.insecure =true
9
9
10
10
GROUP =com.squareup.workflow1
11
- VERSION_NAME =1.8.0-uiUpdate02 -SNAPSHOT
11
+ VERSION_NAME =1.8.0-uiUpdate03 -SNAPSHOT
12
12
13
13
POM_DESCRIPTION =Square Workflow
14
14
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ import com.squareup.workflow1.ui.canShow
28
28
import com.squareup.workflow1.ui.compatible
29
29
import com.squareup.workflow1.ui.container.BackStackConfig.First
30
30
import com.squareup.workflow1.ui.container.BackStackConfig.Other
31
- import com.squareup.workflow1.ui.container.ViewStateCache.Saved
32
31
import com.squareup.workflow1.ui.show
33
32
import com.squareup.workflow1.ui.startShowing
34
33
import com.squareup.workflow1.ui.toViewFactory
@@ -201,7 +200,7 @@ public open class BackStackContainer @JvmOverloads constructor(
201
200
}
202
201
203
202
public constructor (source: Parcel ) : super (source) {
204
- this . savedViewState = source.readParcelable(ViewStateCache .Saved ::class .java.classLoader)!!
203
+ savedViewState = source.readParcelable(ViewStateCache .Saved ::class .java.classLoader)!!
205
204
}
206
205
207
206
public val savedViewState: ViewStateCache .Saved
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public class AsScreen<W : Any>(
19
19
}
20
20
21
21
override val compatibilityKey: String
22
- get() = Compatible .keyFor(rendering)
22
+ get() = Compatible .keyFor(rendering, " AsScreen " )
23
23
}
24
24
25
25
/* *
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public data class Named<W : Any>(
15
15
require(name.isNotBlank()) { " name must not be blank." }
16
16
}
17
17
18
- override val compatibilityKey: String = Compatible .keyFor(wrapped, name)
18
+ override val compatibilityKey: String = Compatible .keyFor(wrapped, " Named( $ name) " )
19
19
20
20
override fun toString (): String {
21
21
return " ${super .toString()} : $compatibilityKey "
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public data class NamedScreen<W : Screen>(
16
16
require(name.isNotBlank()) { " name must not be blank." }
17
17
}
18
18
19
- override val compatibilityKey: String = Compatible .keyFor(wrapped, name)
19
+ override val compatibilityKey: String = Compatible .keyFor(wrapped, " NamedScreen( $ name) " )
20
20
21
21
override fun toString (): String {
22
22
return " ${super .toString()} : $compatibilityKey "
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ internal class NamedScreenTest {
58
58
59
59
@Test fun `recursive keys are legible` () {
60
60
assertThat(NamedScreen (NamedScreen (Hey , " one" ), " ho" ).compatibilityKey)
61
- .isEqualTo(" com.squareup.workflow1.ui.NamedScreenTest\$ Hey+one+ho " )
61
+ .isEqualTo(" com.squareup.workflow1.ui.NamedScreenTest\$ Hey+NamedScreen( one)+NamedScreen(ho) " )
62
62
}
63
63
64
64
private class Foo (override val compatibilityKey : String ) : Compatible, Screen
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ internal class NamedTest {
58
58
59
59
@Test fun `recursive keys are legible` () {
60
60
assertThat(Named (Named (Hey , " one" ), " ho" ).compatibilityKey)
61
- .isEqualTo(" com.squareup.workflow1.ui.NamedTest\$ Hey+one+ho " )
61
+ .isEqualTo(" com.squareup.workflow1.ui.NamedTest\$ Hey+Named( one)+Named(ho) " )
62
62
}
63
63
64
64
private class Foo (override val compatibilityKey : String ) : Compatible
You can’t perform that action at this time.
0 commit comments