Skip to content

Commit f51c2e0

Browse files
author
Blatzar
committed
Probably fix logging
1 parent d04f202 commit f51c2e0

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

CloudstreamApi/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ publishing {
1717
maven(MavenPublication) {
1818
groupId 'com.lagradost'
1919
artifactId 'cloudstream-api'
20-
version '0.1.4'
20+
version '0.1.5'
2121
from components.java
2222
}
2323
}
Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
package android.util
22

3-
object Log {
4-
fun d(tag: String, message: String) {
5-
println("DEBUG $tag: $message")
6-
}
3+
class Log {
4+
companion object {
5+
@JvmStatic
6+
fun d(tag: String, message: String) {
7+
println("DEBUG $tag: $message")
8+
}
79

8-
fun i(tag: String, message: String) {
9-
println("INFO $tag: $message")
10-
}
10+
@JvmStatic
11+
fun i(tag: String, message: String) {
12+
println("INFO $tag: $message")
13+
}
14+
15+
@JvmStatic
16+
fun v(tag: String, message: String) {
17+
println("VERBOSE $tag: $message")
18+
}
1119

12-
fun v(tag: String, message: String) {
13-
println("VERBOSE $tag: $message")
20+
@JvmStatic
21+
fun w(tag: String, message: String) {
22+
println("WARNING $tag: $message")
23+
}
1424
}
1525
}

CloudstreamApi/src/main/java/com/lagradost/cloudstreamtest/ProviderTester.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ open class ProviderTester(private val provider: MainAPI) {
8080
val item = mainPage.first().items.first().list.first()
8181
println("\n\nTesting Search: -------------------")
8282

83-
val searchResponses = testSearch(item.name)
83+
val searchResponses = testSearch(query ?: item.name)
8484
assert(searchResponses.isNotEmpty())
8585

8686
item

0 commit comments

Comments
 (0)