I hereby claim:
- I am ianfield90 on github.
- I am ianfield90 (https://keybase.io/ianfield90) on keybase.
- I have a public key ASCxauT5cVUq8rRvNjE3xAecc_y-oi0sHX-bk93hGo4RfQo
To claim this, I am signing this object:
name: PR Protection | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check_source_is_develop: | |
runs-on: ubuntu-latest |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
...> | |
<!-- | |
Super important for getting tests to run on Android 30/R | |
Without this you will see | |
java.lang.RuntimeException: Exception thrown in onCreate() of ComponentInfo{com.example.lib.test/androidx.test.runner.AndroidJUnitRunner}: java.lang.RuntimeException: Cannot connect to androidx.test.orchestrator.OrchestratorService | |
E/AndroidJUnitRunner: An unhandled exception was thrown by the app. | |
E/InstrumentationResultPrinter: Failed to mark test No Tests as finished after process crash |
fun <T, S, U> partial1(t: T, f: (T, S) -> U): (S) -> U { | |
return { s -> f(t, s) } | |
} | |
val greeter: (String, String) -> String = { greeting, name -> "$greeting, $name" } | |
val helloer = partial1("Hello", greeter) | |
fun main() { | |
println(helloer("Ian")) | |
} |
/** | |
* Helper functions that are workarounds to kotlin Runtime Exceptions when using kotlin. | |
*/ | |
import org.mockito.ArgumentCaptor | |
import org.mockito.Mockito | |
/** | |
* Returns Mockito.eq() as nullable type to avoid java.lang.IllegalStateException when | |
* null is returned. |
I hereby claim:
To claim this, I am signing this object:
@Override | |
public Observable<Void> onRefreshAction() { | |
return Observable.fromEmitter(emitter -> { | |
swipeRefreshLayout.setOnRefreshListener(() -> emitter.onNext(null)); | |
emitter.setCancellation(() -> swipeRefreshLayout.setOnRefreshListener(null)); | |
}, Emitter.BackpressureMode.ERROR).startWith((Void) null).map(ignored -> null); | |
} | |
addToUnsubscribe(view.onRefreshAction() |
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android |
export PS1="\[\n\033[49;31;1m\]--- \[\033[49;33;1m\]\u@\h\[\033[49;37;1m\] \w\[\033[49;31;1m\] \$(parse_git_branch) ---\n\[\033[49;32;1m\]\!\[\033[49;31;1m\] \$ \[\033[0m\]" |
@Singleton @Component(modules = AppModule.class) public interface AppComponent { | |
void inject(MainActivity activity); | |
} |