mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Move sync package to org.isoron.uhabits.core
This commit is contained in:
@@ -28,6 +28,7 @@ import io.ktor.client.request.*
|
||||
import io.ktor.http.*
|
||||
import junit.framework.Assert.*
|
||||
import kotlinx.coroutines.*
|
||||
import org.isoron.uhabits.core.sync.*
|
||||
import org.junit.*
|
||||
|
||||
@MediumTest
|
||||
|
||||
@@ -26,6 +26,7 @@ import io.ktor.client.features.*
|
||||
import io.ktor.client.features.json.*
|
||||
import io.ktor.client.request.*
|
||||
import kotlinx.coroutines.*
|
||||
import org.isoron.uhabits.core.sync.*
|
||||
|
||||
class RemoteSyncServer(
|
||||
private val baseURL: String,
|
||||
|
||||
@@ -27,6 +27,7 @@ import org.isoron.androidbase.*
|
||||
import org.isoron.uhabits.core.*
|
||||
import org.isoron.uhabits.core.commands.*
|
||||
import org.isoron.uhabits.core.preferences.*
|
||||
import org.isoron.uhabits.core.sync.*
|
||||
import org.isoron.uhabits.core.tasks.*
|
||||
import org.isoron.uhabits.tasks.*
|
||||
import org.isoron.uhabits.utils.*
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.isoron.uhabits.sync
|
||||
package org.isoron.uhabits.core.sync
|
||||
|
||||
interface AbstractSyncServer {
|
||||
/**
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
@file:Suppress("UnstableApiUsage")
|
||||
|
||||
package org.isoron.uhabits.sync
|
||||
package org.isoron.uhabits.core.sync
|
||||
|
||||
import com.google.common.io.*
|
||||
import kotlinx.coroutines.*
|
||||
@@ -17,7 +17,7 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.isoron.uhabits.sync
|
||||
package org.isoron.uhabits.core.sync
|
||||
|
||||
data class SyncData(
|
||||
val version: Long,
|
||||
@@ -17,7 +17,7 @@
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.isoron.uhabits.sync
|
||||
package org.isoron.uhabits.core.sync
|
||||
|
||||
open class SyncException: RuntimeException()
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
package org.isoron.uhabits.core.ui.screens.sync
|
||||
|
||||
import org.isoron.uhabits.core.preferences.*
|
||||
import org.isoron.uhabits.sync.*
|
||||
import org.isoron.uhabits.core.sync.*
|
||||
|
||||
class SyncBehavior(
|
||||
val screen: Screen,
|
||||
|
||||
@@ -20,7 +20,6 @@ package org.isoron.uhabits.core.sync
|
||||
|
||||
import kotlinx.coroutines.*
|
||||
import org.hamcrest.Matchers.*
|
||||
import org.isoron.uhabits.sync.*
|
||||
import org.junit.*
|
||||
import org.junit.Assert.*
|
||||
import java.io.*
|
||||
|
||||
Reference in New Issue
Block a user