Skip to content

Commit e6205fd

Browse files
author
Pablo Orgaz
committed
Cleanup
1 parent 6bc829d commit e6205fd

File tree

6 files changed

+29
-4
lines changed

6 files changed

+29
-4
lines changed

.idea/codeStyles/Project.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
11
package com.minikorp.demo
22

3-
import androidx.appcompat.app.AppCompatActivity
43
import android.os.Bundle
4+
import androidx.appcompat.app.AppCompatActivity
5+
import com.minikorp.grove.ConsoleLogTree
6+
import com.minikorp.grove.Grove
57

68
class MainActivity : AppCompatActivity() {
79

810
override fun onCreate(savedInstanceState: Bundle?) {
911
super.onCreate(savedInstanceState)
1012
setContentView(R.layout.activity_main)
13+
Grove.plant(ConsoleLogTree())
14+
15+
val exception = IllegalStateException()
16+
17+
Grove.v { "Test Log" }
18+
Grove.d { "Test Log" }
19+
Grove.i { "Test Log" }
20+
Grove.w { "Test Log" }
21+
Grove.e { "Test Log" }
22+
Grove.wtf { "Test Log" }
23+
24+
Grove.v(exception) { "Test Log" }
25+
Grove.d(exception) { "Test Log" }
26+
Grove.i(exception) { "Test Log" }
27+
Grove.w(exception) { "Test Log" }
28+
Grove.e(exception) { "Test Log" }
29+
Grove.wtf(exception) { "Test Log" }
1130
}
1231
}

grove/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ dependencies {
2929

3030
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
3131
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0"
32+
implementation "androidx.core:core:1.0.1"
3233

3334
testImplementation 'junit:junit:4.12'
3435
testImplementation "org.amshove.kluent:kluent:1.44"
@@ -41,4 +42,4 @@ repositories {
4142
}
4243

4344
//Need to be at bottom
44-
apply from: "../jitpack.gradle"
45+
apply from: "../jitpack-android.gradle"

grove/src/test/java/com/minikorp/grove/GroveTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ class GroveTest {
3535
fileLogTree.close()
3636
val writtenText = fileLogTree.file.readText()
3737
writtenText `should contain` testString
38-
writtenText.lines().size `should be equal to` 2
38+
writtenText.lines().filter { it.isNotEmpty() }.size `should be equal to` 2
3939
}
4040
}

jitpack.gradle renamed to jitpack-android.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//Add at bottom of file as apply from: "../jitpack-android.gradle"
2+
13
apply plugin: 'com.github.dcendents.android-maven'
24

35
version = 1.0

0 commit comments

Comments
 (0)