Add a core-util-jvm module.

This is basically a location where we can put common utils that can also
be imported by libsignal-service (which is java-only, no android
dependency).
This commit is contained in:
Greyson Parrelli
2023-10-04 22:21:20 -04:00
committed by Nicholas Tinsley
parent 6be1413d7d
commit 7d5786ea93
115 changed files with 323 additions and 591 deletions
@@ -11,11 +11,11 @@ class ResponseFieldLoggerTest {
@Before
fun setUp() {
Log.initialize(object : Logger() {
override fun v(tag: String?, message: String?, t: Throwable?, keepLonger: Boolean) = Unit
override fun d(tag: String?, message: String?, t: Throwable?, keepLonger: Boolean) = Unit
override fun i(tag: String?, message: String?, t: Throwable?, keepLonger: Boolean) = Unit
override fun w(tag: String?, message: String?, t: Throwable?, keepLonger: Boolean) = println(message)
override fun e(tag: String?, message: String?, t: Throwable?, keepLonger: Boolean) = Unit
override fun v(tag: String, message: String?, t: Throwable?, keepLonger: Boolean) = Unit
override fun d(tag: String, message: String?, t: Throwable?, keepLonger: Boolean) = Unit
override fun i(tag: String, message: String?, t: Throwable?, keepLonger: Boolean) = Unit
override fun w(tag: String, message: String?, t: Throwable?, keepLonger: Boolean) = println(message)
override fun e(tag: String, message: String?, t: Throwable?, keepLonger: Boolean) = Unit
override fun flush() = Unit
})
}