Skip to content

Commit

Permalink
removed encode module
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieTap committed Jan 10, 2023
1 parent 8b346ee commit 2ce83e7
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 40 deletions.
4 changes: 4 additions & 0 deletions concurrent-map/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ plugins {
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotlinter)
alias(libs.plugins.kotlin.atomic.fu)
id("maven-publish")
}
group = "com.tap.synk"
version = libs.versions.version.name.get()


kotlin {
targets {
Expand Down
1 change: 0 additions & 1 deletion delight-metastore/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ kotlin {
val commonMain by getting {
dependencies {
implementation(projects.runtime)
implementation(projects.encode)
implementation(projects.concurrentMap)
implementation(libs.murmurhash)
implementation(libs.androidx.collections.kmp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package com.tap.delight.metastore

import com.tap.delight.metastore.cache.MemCache
import com.tap.delight.metastore.hash.Hasher
import com.tap.synk.encode.decodeToHashmap
import com.tap.synk.encode.encodeToString
import com.tap.synk.meta.store.MetaStore
import com.tap.synk.serialize.decodeToHashmap
import com.tap.synk.serialize.encodeToString

class DelightfulMetastore internal constructor(
private val database: DelightfulDatabase,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.squareup.sqldelight.sqlite.driver.JdbcSqliteDriver
import com.tap.delight.metastore.cache.DelightfulMemCache
import com.tap.delight.metastore.hash.Hasher
import com.tap.delight.metastore.schema.delightfulSchemaInitializer
import com.tap.synk.encode.encodeToString
import com.tap.synk.serialize.encodeToString
import kotlin.test.BeforeTest
import kotlin.test.Test
import kotlin.test.assertEquals
Expand Down
24 changes: 0 additions & 24 deletions encode/build.gradle.kts

This file was deleted.

6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[versions]

application-id = "com.tap.contacts"
application-namespace = "com.tap.contacts"
application-id = "com.tap.synk"
application-namespace = "com.tap.synk"
compile-sdk = "32"
target-sdk = "32"
min-sdk = "24"
version-name = "0.13"
version-name = "0.14"

android-build-tools-plugin = "7.2.0"

Expand Down
1 change: 0 additions & 1 deletion runtime/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ kotlin {
val commonMain by getting {
dependencies {
implementation(projects.concurrentMap)
implementation(projects.encode)
implementation(libs.kotlin.reflection)
implementation(libs.kotlinx.atomic.fu)
implementation(libs.kotlinx.datetime)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package com.tap.synk.meta.store

import com.tap.synk.CMap
import com.tap.synk.encode.decodeToHashmap
import com.tap.synk.encode.encodeToString
import com.tap.synk.serialize.decodeToHashmap
import com.tap.synk.serialize.encodeToString


internal class InMemoryMetaStore(
private val store: CMap<String, String> = CMap()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.tap.synk.encode
package com.tap.synk.serialize

fun Map<String, String>.encodeToString(): String {
return entries.foldIndexed("") { idx, acc, entry ->
Expand Down
4 changes: 2 additions & 2 deletions runtime/src/commonTest/kotlin/com/tap/synk/InboundTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package com.tap.synk

import com.tap.hlc.HybridLogicalClock
import com.tap.hlc.Timestamp
import com.tap.synk.encode.decodeToHashmap
import com.tap.synk.encode.encodeToString
import com.tap.synk.meta.Meta
import com.tap.synk.relay.Message
import com.tap.synk.serialize.decodeToHashmap
import com.tap.synk.serialize.encodeToString
import com.tap.synk.utils.setupSynk
import com.tap.synk.utils.storageConfig
import kotlinx.datetime.Clock
Expand Down
4 changes: 2 additions & 2 deletions runtime/src/commonTest/kotlin/com/tap/synk/OutboundTest.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.tap.synk

import com.tap.hlc.HybridLogicalClock
import com.tap.synk.encode.decodeToHashmap
import com.tap.synk.encode.encodeToString
import com.tap.synk.meta.Meta
import com.tap.synk.relay.Message
import com.tap.synk.serialize.decodeToHashmap
import com.tap.synk.serialize.encodeToString
import com.tap.synk.utils.setupSynk
import com.tap.synk.utils.storageConfig
import kotlin.test.Test
Expand Down
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ dependencyResolutionManagement {
//}

include(":concurrent-map")
include(":encode")
include(":runtime")
include(":delight-metastore")

Expand Down

0 comments on commit 2ce83e7

Please sign in to comment.