diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 9d601cace..6c0655af9 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -64,6 +64,12 @@ protobuf = "4.35.1" protobuf-plugin = "0.10.0" protovalidate-kt = "0.1.1" +# Generated client SDKs for the two backend contracts. Separate versions on purpose: the +# protos are independent (flipcash2 does not import ocp), so the packages move on their own +# cadence and there is nothing to keep aligned. +ocp-client-protocol = "0.1.0" +flipcash2-client-protocol = "0.1.0" + # The Android port is the ONLY libphonenumber this app depends on, deliberately. Google's # `com.googlecode` artifact used to sit alongside it; the two ship separate copies of the metadata, # so any version skew between them meant they could disagree on whether a number is valid — and the @@ -215,6 +221,8 @@ grpc-protobuf-lite = { module = "io.grpc:grpc-protobuf-lite", version.ref = "grp grpc-stub = { module = "io.grpc:grpc-stub", version.ref = "grpc" } protobuf-kotlin-lite = { module = "com.google.protobuf:protobuf-kotlin-lite", version.ref = "protobuf" } protobuf-validate-runtime = { module = "dev.bmcreations:protovalidate-runtime", version.ref = "protovalidate-kt" } +ocp-client-protocol = { module = "com.flipcash:ocp-client-protocol", version.ref = "ocp-client-protocol" } +flipcash2-client-protocol = { module = "com.flipcash:flipcash2-client-protocol", version.ref = "flipcash2-client-protocol" } # Retrofit retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" } diff --git a/services/flipcash/build.gradle.kts b/services/flipcash/build.gradle.kts index 50199a10c..e8fc17062 100644 --- a/services/flipcash/build.gradle.kts +++ b/services/flipcash/build.gradle.kts @@ -24,7 +24,7 @@ android { } dependencies { - implementation(project(":definitions:flipcash:models")) + implementation(libs.flipcash2.client.protocol) api(project(":libs:network:jwt")) api(project(":services:opencode")) implementation(project(":ui:resources")) diff --git a/services/opencode/build.gradle.kts b/services/opencode/build.gradle.kts index e0eba2380..a7f5334f2 100644 --- a/services/opencode/build.gradle.kts +++ b/services/opencode/build.gradle.kts @@ -27,7 +27,7 @@ android { } dependencies { - implementation(project(":definitions:opencode:models")) + implementation(libs.ocp.client.protocol) api(project(":libs:currency-math")) api(project(":libs:datetime")) api(project(":libs:encryption:base58"))