Skip to content

Instantly share code, notes, and snippets.

View pphilipp's full-sized avatar
🇺🇦
🇮🇱

Pylyp Buhaievskyi pphilipp

🇺🇦
🇮🇱
  • WoodSpoon
  • Israel
View GitHub Profile
@pphilipp
pphilipp / dagger-multibinding-map.md
Last active September 25, 2021 14:31
@IntoSet @ElementsIntoSet

MainActivity

val processor = DaggerDecoratorComponent.create().processor()
println("${processor.decorate("Hi how are you?", "noo")}")

DI

@Component(modules = [SetModule::class])

MainActivity

client = DaggerClientComponent.create().client()
"🟢 ${client.fetchData()}"

DI

@Component(modules = [ConnectionModule::class])
@pphilipp
pphilipp / gradleConfig.md
Created April 17, 2017 09:48
gradleConfig.md

A strategy to secure your API keys using Gradle

There is short approach for ensure secure storing of api keys and signIng apk data.

Create a keystore.properties file

This file will contains all the private keys. Create it on your project root and write down the API keys on property=value notation.

Remember to use quotation marks when dealing with String values.

Keep keystore.properties privately

Add keystore.properties file to .gitignore file.

@pphilipp
pphilipp / RxJava.md
Created January 3, 2017 20:02 — forked from cesarferreira/RxJava.md
Party tricks with RxJava, RxAndroid & Retrolambda

View Click

Instead of the verbose setOnClickListener:

RxView.clicks(submitButton).subscribe(o -> log("submit button clicked!"));

Filter even numbers

Observable
    .just(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)