diff --git a/.gitignore b/.gitignore index 3ba3c3bfe..7bd4ec67c 100644 --- a/.gitignore +++ b/.gitignore @@ -19,5 +19,4 @@ .externalNativeBuild ktlint .idea/*.xml -signing.properties -network.properties +signing.properties \ No newline at end of file diff --git a/core-models/src/main/java/com/anytypeio/anytype/core_models/NetworkMode.kt b/core-models/src/main/java/com/anytypeio/anytype/core_models/NetworkMode.kt index dc5b83b5c..16f858bf4 100644 --- a/core-models/src/main/java/com/anytypeio/anytype/core_models/NetworkMode.kt +++ b/core-models/src/main/java/com/anytypeio/anytype/core_models/NetworkMode.kt @@ -9,3 +9,7 @@ data class NetworkModeConfig( val userFilePath: String? = null, val storedFilePath: String? = null ) + +object NetworkModeConst { + const val NODE_STAGING_ID = "N9DU6hLkTAbvcpji3TCKPPd3UQWKGyzUxGmgJEyvhByqAjfD" +} diff --git a/presentation/build.gradle b/presentation/build.gradle index 0ca750226..dfe0b5754 100644 --- a/presentation/build.gradle +++ b/presentation/build.gradle @@ -18,7 +18,6 @@ android { buildConfigField "boolean", "USE_SIMPLE_TABLES_IN_EDITOR_EDDITING", "true" buildConfigField "boolean", "ENABLE_WIDGETS", "false" buildConfigField "boolean", "ENABLE_VIEWS_MENU", "true" - buildConfigField("String", "STAGING_NETWORK_ID", networkConfigProps.getProperty('staging_network_id', 'null')) } compileOptions { sourceCompatibility JavaVersion.VERSION_17 diff --git a/presentation/src/main/java/com/anytypeio/anytype/presentation/sync/SyncStatusView.kt b/presentation/src/main/java/com/anytypeio/anytype/presentation/sync/SyncStatusView.kt index 521ba4746..d7021f513 100644 --- a/presentation/src/main/java/com/anytypeio/anytype/presentation/sync/SyncStatusView.kt +++ b/presentation/src/main/java/com/anytypeio/anytype/presentation/sync/SyncStatusView.kt @@ -3,7 +3,7 @@ package com.anytypeio.anytype.presentation.sync import com.anytypeio.anytype.core_models.Id import com.anytypeio.anytype.core_models.NetworkMode import com.anytypeio.anytype.core_models.SyncStatus -import com.anytypeio.anytype.presentation.BuildConfig +import com.anytypeio.anytype.core_models.NetworkModeConst.NODE_STAGING_ID sealed class SyncStatusView { object Unknown : SyncStatusView() @@ -48,7 +48,7 @@ fun NetworkMode.syncedStatusToView(networkId: String?): SyncStatusView { } } NetworkMode.CUSTOM -> { - return if (networkId == BuildConfig.STAGING_NETWORK_ID) { + return if (networkId == NODE_STAGING_ID) { SyncStatusView.Synced.StagingNetwork } else { SyncStatusView.Synced.SelfHostedNetwork