This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file contains the fastlane.tools configuration | |
# You can find the documentation at https://docs.fastlane.tools | |
# | |
# For a list of all available actions, check out | |
# | |
# https://docs.fastlane.tools/actions | |
# | |
# For a list of all available plugins, check out | |
# | |
# https://docs.fastlane.tools/plugins/available-plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autoCorrect: true | |
failFast: false | |
| |
test-pattern: # Configure exclusions for test sources | |
active: true | |
patterns: # Test file regexes | |
- '.*/test/.*' | |
- '.*Test.kt' | |
- '.*Spec.kt' | |
exclude-rule-sets: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2017 Halcyon Mobile | |
* http://www.halcyonmobile.com | |
* All rights reserved. | |
*/ | |
import android.arch.lifecycle.LifecycleOwner | |
import android.arch.lifecycle.MutableLiveData | |
import android.arch.lifecycle.Observer | |
import android.support.annotation.MainThread |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2017 Halcyon Mobile | |
* http://www.halcyonmobile.com | |
* All rights reserved. | |
*/ | |
import android.databinding.DataBindingUtil | |
import android.databinding.OnRebindCallback | |
import android.databinding.ViewDataBinding | |
import android.support.annotation.CallSuper | |
import android.support.annotation.LayoutRes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// with just a simple extension function for the Data Binding ObservableField | |
inline fun <R> ObservableField<R>.observe(crossinline callback: (R) -> Unit) { | |
this.addOnPropertyChangedCallback(object : Observable.OnPropertyChangedCallback() { | |
override fun onPropertyChanged(p0: Observable?, p1: Int) { | |
callback(get()) | |
} | |
}) | |
} | |
... |