Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Halil Ozercan halilozercan

🎯
Focusing
Block or report user

Report or block halilozercan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@halilozercan
halilozercan / BuilderPattern.kt
Last active Jan 23, 2019
Builder pattern in Kotlin
View BuilderPattern.kt
abstract class BaseBuilder<T> {
abstract fun buildInternal(): T
}
fun <T, R: BaseBuilder<T>> R.build(block: R.() -> Unit): T {
block.invoke(this)
return this.buildInternal()
}
@halilozercan
halilozercan / jacoco.gradle
Created Nov 21, 2018 — forked from almozavr/jacoco.gradle
Gradle Jacoco config for Android (3.x plugin) with kotlin and custom excludes support
View jacoco.gradle
apply plugin: "jacoco"
jacoco {
toolVersion = deps.test.jacocoVersion
}
tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
}
You can’t perform that action at this time.