I hereby claim:
- I am nilzor on github.
- I am frodenilsen (https://keybase.io/frodenilsen) on keybase.
- I have a public key ASAl5OwmAffcKHYFXAub-yC-Z2TP1v9XlbbFy70Qtt55eAo
To claim this, I am signing this object:
| tasks.register("exportFullDependencyGraphAsPlantUml") { | |
| group = "reporting" | |
| description = "Generates a full transitive dependency graph as PlantUML" | |
| doLast { | |
| val configName = "${variant}RuntimeClasspath" | |
| val configList = configurations.toList() | |
| val config = configurations.findByName(configName) | |
| ?: configurations.findByName("qaDebugRuntimeClasspath") // <- Modify this per project | |
| ?: throw GradleException("Configuration '$configName' not found in project ${project.name}") | |
| val output = File("$buildDir/reports/local-project-dependencies-$variant.puml") |
| object GeneralBindingAdapters { | |
| /** | |
| * To allow binding image resource Int in addition to Drawable. | |
| * Saves you from depending on Resouces in the ViewModel, | |
| */ | |
| @JvmStatic | |
| @BindingAdapter("android:src") | |
| fun setImageResource(imageView: ImageView, resource: Int) { | |
| imageView.setImageResource(resource) |
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| jcenter() | |
| } | |
| } | |
| plugins { | |
| id 'org.jetbrains.kotlin.jvm' version '1.5.10' | |
| id 'org.jetbrains.intellij' version '1.0' |
| @BindingConversion | |
| @JvmStatic | |
| fun konverto1(action: (() -> Unit)?) : View.OnClickListener? { | |
| return View.OnClickListener { action?.invoke() } | |
| } |
| /** | |
| * Overrides the HTTP Header Content-Type for POST, PATCH and PUT calls to the given [contentType] | |
| */ | |
| class ContentTypeInterceptor(private val contentType: String) : Interceptor { | |
| override fun intercept(chain: Interceptor.Chain): Response { | |
| val request = chain.request() | |
| val chainBuilder = request.newBuilder() | |
| request.body()?.let { | |
| val newBody = ForwardingRequestbody(it, contentType) | |
| when (request.method()) { |
| package no.ruter.sales.utils | |
| import org.hamcrest.MatcherAssert.assertThat | |
| import org.hamcrest.core.IsInstanceOf | |
| import org.junit.Test | |
| import toothpick.Scope | |
| import toothpick.Toothpick | |
| import toothpick.config.Module | |
| import toothpick.ktp.binding.bind | |
| import toothpick.ktp.binding.module |
| import com.myapp.shared.databinding.FragmentSaleProductBindingImpl; | |
| ^ | |
| symbol: class FragmentSaleProductBindingImpl | |
| ^ | |
| warning Binding adapter AK(android.widget.ImageView, com.myapp.shared.model.viewmodel.overview.ConnectivityState) already exists for connectivityState! Overriding com.myapp.shared.bindingadapters.ValidatorBindingAdapter.Companion#setIdleCardImage with com.myapp.shared.bindingadapters.ValidatorBindingAdapter#setIdleCardImage | |
| warning Binding adapter AK(android.widget.ImageView, com.myapp.shared.model.viewmodel.overview.ConnectivityState) already exists for connectivityState! Overriding com.myapp.shared.bindingadapters.ValidatorBindingAdapter.Companion#setIdleCardImage with com.myapp.shared.bindingadapters.ValidatorBindingAdapter#setIdleCardImage | |
| warning Binding adapter AK(android.widget.TextView, com.myapp.shared.model.viewmodel.overview.ConnectivityState) already exists for connectivityState! Overriding com.myapp.shared.bindingadapters.ValidatorBin |
| fun <R, A, B> withNoNulls(p1: A?, p2: B?, function: (p1: A, p2: B) -> R): R? = p1?.let { p2?.let { function.invoke(p1, p2) } } | |
| fun <R, A, B, C> withNoNulls(p1: A?, p2: B?, p3: C?, function: (p1: A, p2: B, p3: C) -> R): R? = p1?.let { p2?.let { p3?.let { function.invoke(p1, p2, p3) } } } |
I hereby claim:
To claim this, I am signing this object: