Skip to content

Commit

Permalink
Consume the new Maven Proto (#35)
Browse files Browse the repository at this point in the history
* add api client with grpc kotlin

* clean up the gradles

* a little too delete happy

* colon not period

* Ignore flaky test on dev network
  • Loading branch information
nplasterer authored Feb 23, 2023
1 parent c7e9f9d commit 6435c6b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 21 deletions.
4 changes: 0 additions & 4 deletions github.properties.example

This file was deleted.

2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ dependencies {
implementation 'io.grpc:grpc-protobuf:1.51.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
implementation 'org.web3j:crypto:5.0.0'
implementation 'org.xmtp.proto:kotlin:3.12.3'
implementation 'org.xmtp:proto-kotlin:3.13.4'

testImplementation 'app.cash.turbine:turbine:0.12.1'
testImplementation 'junit:junit:4.13.2'
Expand Down
2 changes: 2 additions & 0 deletions library/src/test/java/org/xmtp/android/library/MessageTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package org.xmtp.android.library
import com.google.protobuf.kotlin.toByteString
import com.google.protobuf.kotlin.toByteStringUtf8
import org.junit.Assert.assertEquals
import org.junit.Ignore
import org.junit.Test
import org.web3j.crypto.Hash
import org.web3j.utils.Numeric
Expand Down Expand Up @@ -138,6 +139,7 @@ class MessageTest {
}

@Test
@Ignore("Dev network flaky should be moved to local")
fun testCanReadZipCompressedMessages() {
val ints = arrayOf(
60, 45, 240, 192, 223, 2, 14, 166,
Expand Down
16 changes: 0 additions & 16 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,6 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
def user = System.getenv("GPR_USER")
def token = System.getenv("GPR_TOKEN")
if (token == null || token.allWhitespace) {
def githubProperties = new Properties()
githubProperties.load(new FileInputStream(file("github.properties" ?: "gradle.properties")))
user = githubProperties.getProperty("gpr.user")
token = githubProperties.getProperty("gpr.key")
}

maven {
url = uri("https://maven.pkg.github.com/xmtp/proto")
credentials {
username = user
password = token
}
}
}
}
rootProject.name = "xmtp-android"
Expand Down

0 comments on commit 6435c6b

Please sign in to comment.