1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-2314 App | Tech | Propagate spaceId as required field for components — Part 1 (#1020)

This commit is contained in:
Evgenii Kozlov 2024-03-25 16:16:25 +01:00 committed by GitHub
parent d17d18470a
commit 3eaf3a961f
Signed by: github
GPG key ID: B5690EEEBB952194
144 changed files with 1693 additions and 919 deletions

View file

@ -6,6 +6,7 @@ import com.anytypeio.anytype.test_utils.MockDataFactory
fun StubObject(
id: String = MockDataFactory.randomUuid(),
space: Id = MockDataFactory.randomUuid(),
uniqueKey: String? = MockDataFactory.randomUuid(),
name: String = MockDataFactory.randomString(),
objectType: String = MockDataFactory.randomString(),
@ -22,6 +23,7 @@ fun StubObject(
): ObjectWrapper.Basic = ObjectWrapper.Basic(
map = mapOf(
Relations.ID to id,
Relations.SPACE_ID to space,
Relations.NAME to name,
Relations.TYPE to objectType,
Relations.LAYOUT to layout,