object MySingelton
interface Animal {
val id : Int
lipo -create -output Kuei.framework KueiDevice.framework/KueiDevice KueiSim.framework/KueiSim |
/* | |
This source file is part of the Swift.org open source project | |
Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors | |
Licensed under Apache License v2.0 with Runtime Library Exception | |
See http://swift.org/LICENSE.txt for license information | |
See http://swift.org/CONTRIBUTORS.txt for Swift project authors | |
*/ | |
/// An ordered set is an ordered collection of instances of `Element` in which | |
/// uniqueness of the objects is guaranteed. |
rm -rf ~/Library/Caches/Cocoapods /tmp/Cocoapods |
import android.view.View | |
import androidx.databinding.DataBindingUtil | |
import androidx.databinding.ViewDataBinding | |
import androidx.fragment.app.Fragment | |
import androidx.fragment.app.FragmentActivity | |
import androidx.fragment.app.testing.FragmentScenario | |
import androidx.test.core.app.ActivityScenario | |
import androidx.test.espresso.IdlingResource | |
import java.util.* |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.ExperimentalCoroutinesApi | |
import kotlinx.coroutines.test.TestCoroutineDispatcher | |
import kotlinx.coroutines.test.TestCoroutineScope | |
import kotlinx.coroutines.test.resetMain | |
import kotlinx.coroutines.test.setMain | |
import org.junit.rules.TestWatcher | |
import org.junit.runner.Description | |
/* JUnit rule: https://junit.org/junit4/javadoc/4.12/org/junit/Rule.html */ |
import androidx.annotation.VisibleForTesting | |
import androidx.lifecycle.LiveData | |
import androidx.lifecycle.Observer | |
import java.util.concurrent.CountDownLatch | |
import java.util.concurrent.TimeUnit | |
import java.util.concurrent.TimeoutException | |
// version 1 | |
@VisibleForTesting(otherwise = VisibleForTesting.NONE) | |
fun <T> LiveData<T>.getOrAwaitValue( |
private fun ObjectAnimator.disableViewDuringAnimation(view: View) { | |
addListener(object : AnimatorListenerAdapter() { | |
override fun onAnimationStart(animation: Animator?) { | |
view.isEnabled = false | |
} | |
override fun onAnimationEnd(animation: Animator?) { | |
view.isEnabled = true | |
} | |
}) |