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

DROID-1147 App | Refactoring | Remove or deprecate SmartBlockType (#3104)

This commit is contained in:
Evgenii Kozlov 2023-04-19 17:52:57 +02:00 committed by GitHub
parent f2d0748831
commit eafd87c234
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
110 changed files with 615 additions and 1039 deletions

View file

@ -235,13 +235,12 @@ fun StubBookmark(
fun StubSmartBlock(
id: Id = MockDataFactory.randomString(),
children: List<Id> = emptyList(),
type: SmartBlockType = SmartBlockType.PAGE
children: List<Id> = emptyList()
): Block = Block(
id = id,
children = children,
fields = Block.Fields.empty(),
content = Block.Content.Smart(type = type)
content = Block.Content.Smart
)
fun StubTable(

View file

@ -36,7 +36,6 @@ fun StubObject(
fun StubObjectView(
root: Id,
type: SmartBlockType,
blocks: List<Block> = emptyList(),
details: Map<Id, Struct> = emptyMap(),
relations: List<RelationLink> = emptyList(),
@ -46,7 +45,6 @@ fun StubObjectView(
root = root,
blocks = blocks,
details = details,
type = type,
relations = relations,
objectRestrictions = objectRestrictions,
dataViewRestrictions = dataViewRestrictions

View file

@ -3,7 +3,6 @@ package com.anytypeio.anytype.presentation
import com.anytypeio.anytype.core_models.Block
import com.anytypeio.anytype.core_models.Block.Content.Link
import com.anytypeio.anytype.core_models.Id
import com.anytypeio.anytype.core_models.SmartBlockType
import com.anytypeio.anytype.presentation.MockBlockContentFactory.StubLinkContent
import com.anytypeio.anytype.presentation.MockBlockContentFactory.StubTextContent
import com.anytypeio.anytype.test_utils.MockDataFactory
@ -71,7 +70,7 @@ object MockBlockFactory {
Block(
id = root,
fields = Block.Fields(emptyMap()),
content = Block.Content.Smart(SmartBlockType.PAGE),
content = Block.Content.Smart,
children = listOf(child)
),
Block(