Skip to content

Commit

Permalink
Remove J-Server code
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Nov 26, 2024
1 parent 36b3a8d commit 0da7094
Show file tree
Hide file tree
Showing 47 changed files with 1 addition and 2,749 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Synchronization options:

* Google Drive: Easy to use if all devices use the same account.
* [K-Server](https://github.com/d4rken/octi-sync-server-kotlin): End-To-End encrypted server that doesn't require a Google account.
* [J-Server](https://github.com/jakobmoellerdev/octi-sync-server): End-To-End encrypted server if you don't want to use Google Drive (deprecated).

Hungry for details? [Check the wiki](https://github.com/d4rken-org/octi/wiki). Still have
questions? [Join us on discord](https://discord.gg/s7V4C6zuVy)!
Expand Down Expand Up @@ -56,7 +55,7 @@ If you like the app, consider:

## Thanks

* Huge thanks to [@jakmoe](https://github.com/jakmoe) for writing Octi's open source sync
* Huge thanks to [@jakmoe](https://github.com/jakmoe) for writing Octi's first open source sync
server [J-Server](https://github.com/jakob-moeller-cloud/octi-sync-server)

## Screenshots
Expand Down
1 change: 0 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ dependencies {
testImplementation(project(":app-common-test"))
implementation(project(":sync-core"))
implementation(project(":syncs-gdrive"))
implementation(project(":syncs-jserver"))
implementation(project(":syncs-kserver"))
implementation(project(":module-core"))
implementation(project(":modules-meta"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import eu.darken.octi.common.lists.modular.ModularAdapter
import eu.darken.octi.common.lists.modular.mods.DataBinderMod
import eu.darken.octi.common.lists.modular.mods.TypedVHCreatorMod
import eu.darken.octi.syncs.gdrive.ui.add.AddGDriveVH
import eu.darken.octi.syncs.jserver.ui.add.AddJServerDataVH
import eu.darken.octi.syncs.kserver.ui.add.AddKServerDataVH
import javax.inject.Inject

Expand All @@ -28,7 +27,6 @@ class SyncAddAdapter @Inject constructor() :
init {
modules.add(DataBinderMod(data))
modules.add(TypedVHCreatorMod({ data[it] is AddGDriveVH.Item }) { AddGDriveVH(it) })
modules.add(TypedVHCreatorMod({ data[it] is AddJServerDataVH.Item }) { AddJServerDataVH(it) })
modules.add(TypedVHCreatorMod({ data[it] is AddKServerDataVH.Item }) { AddKServerDataVH(it) })
}

Expand Down
3 changes: 0 additions & 3 deletions app/src/main/java/eu/darken/octi/sync/ui/add/SyncAddVM.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ class SyncAddVM @Inject constructor(
AddGDriveVH.Item {
SyncAddFragmentDirections.actionSyncAddFragmentToGDriveAddFragment().navigate()
}.run { items.add(this) }
// AddJServerDataVH.Item {
// SyncAddFragmentDirections.actionSyncAddFragmentToAddJServerFragment().navigate()
// }.run { items.add(this) }
AddKServerDataVH.Item {
SyncAddFragmentDirections.actionSyncAddFragmentToAddKServerFragment().navigate()
}.run { items.add(this) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import eu.darken.octi.common.lists.modular.ModularAdapter
import eu.darken.octi.common.lists.modular.mods.DataBinderMod
import eu.darken.octi.common.lists.modular.mods.TypedVHCreatorMod
import eu.darken.octi.syncs.gdrive.ui.GDriveStateVH
import eu.darken.octi.syncs.jserver.ui.JServerStateVH
import eu.darken.octi.syncs.kserver.ui.KServerStateVH
import javax.inject.Inject

Expand All @@ -28,7 +27,6 @@ class SyncListAdapter @Inject constructor() :
init {
modules.add(DataBinderMod(data))
modules.add(TypedVHCreatorMod({ data[it] is GDriveStateVH.Item }) { GDriveStateVH(it) })
modules.add(TypedVHCreatorMod({ data[it] is JServerStateVH.Item }) { JServerStateVH(it) })
modules.add(TypedVHCreatorMod({ data[it] is KServerStateVH.Item }) { KServerStateVH(it) })
}

Expand Down
13 changes: 0 additions & 13 deletions app/src/main/java/eu/darken/octi/sync/ui/list/SyncListVM.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import eu.darken.octi.sync.core.SyncManager
import eu.darken.octi.sync.core.SyncSettings
import eu.darken.octi.syncs.gdrive.core.GDriveAppDataConnector
import eu.darken.octi.syncs.gdrive.ui.GDriveStateVH
import eu.darken.octi.syncs.jserver.core.JServerConnector
import eu.darken.octi.syncs.jserver.ui.JServerStateVH
import eu.darken.octi.syncs.kserver.core.KServerConnector
import eu.darken.octi.syncs.kserver.ui.KServerStateVH
import kotlinx.coroutines.flow.combine
Expand Down Expand Up @@ -62,17 +60,6 @@ class SyncListVM @Inject constructor(
}
)

is JServerConnector -> JServerStateVH.Item(
credentials = connector.credentials,
ourState = state,
otherStates = (connectors - connector).map { it.state.first() },
onManage = {
SyncListFragmentDirections.actionSyncListFragmentToJServerActionsFragment(
connector.identifier
).navigate()
}
)

is KServerConnector -> KServerStateVH.Item(
credentials = connector.credentials,
ourState = state,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 0da7094

Please sign in to comment.