This file contains hidden or 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
val classLoader = URLClassLoader( | |
arrayOf(クラスファイル群パス), | |
ClassLoader.getSystemClassLoader() | |
) | |
val clazz = classLoader.loadClass("クラス名") | |
println("clazz.annotations.size: " + clazz.declaredAnnotations.size + " ") |
This file contains hidden or 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
fun <T> Maybe<T>.toSingleOptional(): Single<Optional<T>> = RxJavaPlugins.onAssembly(MaybeToSingleOptional<T>(this)) |
This file contains hidden or 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
import android.app.Activity | |
import androidx.fragment.app.Fragment | |
import dagger.android.DispatchingAndroidInjector | |
import javax.inject.Inject | |
class AppInjector : HasDispatchingFragmentInjector { | |
@Inject | |
lateinit var supportFragmentInjector: DispatchingAndroidInjector<Fragment> |
OlderNewer