mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-2195 Auth | Tech | Remove legacy (#845)
This commit is contained in:
parent
899d219136
commit
0c85df934a
19 changed files with 1 additions and 227 deletions
|
@ -5,11 +5,9 @@ import com.anytypeio.anytype.test_utils.MockDataFactory
|
|||
fun StubAccountSetup(
|
||||
account : Account = StubAccount(),
|
||||
config: Config = StubConfig(),
|
||||
features: FeaturesConfig = StubFeatureConfig(),
|
||||
status: AccountStatus = AccountStatus.Active
|
||||
) : AccountSetup = AccountSetup(
|
||||
account = account,
|
||||
features = features,
|
||||
status = status,
|
||||
config = config
|
||||
)
|
||||
|
@ -48,16 +46,4 @@ fun StubConfig(
|
|||
analytics = analytics,
|
||||
device = device,
|
||||
network = network
|
||||
)
|
||||
|
||||
fun StubFeatureConfig(
|
||||
enableDataView: Boolean? = MockDataFactory.randomBoolean(),
|
||||
enableDebug: Boolean? = MockDataFactory.randomBoolean(),
|
||||
enableChannelSwitch: Boolean? = MockDataFactory.randomBoolean(),
|
||||
enableSpaces: Boolean? = MockDataFactory.randomBoolean()
|
||||
) : FeaturesConfig = FeaturesConfig(
|
||||
enableDataView = enableDataView,
|
||||
enableDebug = enableDebug,
|
||||
enablePrereleaseChannel = enableChannelSwitch,
|
||||
enableSpaces = enableSpaces
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue