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
package com.nomensvyat.di | |
import timber.log.Timber | |
import kotlin.reflect.KClass | |
/** | |
* Class for managing Dagger components | |
* */ | |
object ComponentManager { | |
private val map: MutableMap<Class<out Any>, Any> = mutableMapOf() |
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 subprocess | |
import sys | |
def isInList(listToCheck, c_value): | |
for value in listToCheck: | |
if value in c_value.lower(): | |
return True | |
return False |
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
public class RxSocketListener<T> implements Ack, Emitter.Listener { | |
private final Type type; | |
private final Gson gson; | |
@NonNull | |
private LinkedList<T> resultBuffer = new LinkedList<>(); | |
@NonNull | |
private PublishSubject<T> subject = PublishSubject.create(); | |
public RxSocketListener(Type type, Gson gson) { | |
this.type = type; |
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
//Provide different MessageShowers for different qualifiers | |
@PerActivity | |
@Provides | |
MessageShower provideMessageShower(@ActivityContext Context context, | |
PreferencesManager preferencesManager) { | |
return new ToastMessageShower(context, preferencesManager); | |
} | |
@Named("login") |
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.support.annotation.NonNull; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import java.util.List; | |
public final class NonEmptyRecyclerViewAdapterWrapper | |
extends RecyclerView.Adapter<RecyclerView.ViewHolder> { |
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
task askForPasswords << { | |
def storePass | |
def keyAlias | |
def keyPass | |
def keystorePropertiesFile = new File("../keystore/keystore.properties") | |
println keystorePropertiesFile.absolutePath | |
if (keystorePropertiesFile.exists()) { | |
println "Loading keystore passwords from property file..." |