I have three build types: debug, dogfood, and release.
In app's build.gradle
I define which build types are "debuggable".
I also have a library Gradle module as a dependency.
Inside library's build.gradle
I define the same three build types.
apply plugin: 'com.android.application' | |
def supportLibVer = "25.0.1" | |
def googleServicesLibVer = "9.8.0" | |
def daggerLibVersion = "2.2" | |
android { | |
compileSdkVersion 25 | |
buildToolsVersion "25.0.1" | |
defaultConfig { |
// Given this module: | |
@Module | |
class DripCoffeeModule { | |
@Provides static Heater provideHeater() { | |
return new ElectricHeater(); | |
} | |
} | |
// Which of these options do you prefer? |
package com.onbeep.obiwan.frameworks; | |
import io.reactivex.Observable; | |
public class Temp { | |
/** | |
* Question 1: should an event be a class or enum? | |
* <p> | |
* I don't have a good answer. Discussion going on here: |
echo "Finding random file..." | |
# get all files in root dir | |
files=$(find . -type f) | |
# iterate over file list and filter out some things | |
saved_index=0 | |
all_file_count=0 | |
while read -r line; do | |
all_file_count=$(($all_file_count+1)); |
package com.example.app.tests; | |
import android.support.test.espresso.IdlingResource; | |
import android.support.test.espresso.ViewFinder; | |
import android.support.test.espresso.ViewInteraction; | |
import android.util.Log; | |
import android.view.View; | |
import java.lang.reflect.Field; |
@Override | |
public Single<User2> updatePhone(String phoneNumber) { | |
String userId = user.getId(); | |
// even though server allows a user to have multiple phone numbers; product requirements are that user can have | |
// only 0 or 1 phone number. So start off by removing ALL existing phone numbers, and then adding new one. | |
// This is how iOS does it. | |
// things to note: | |
// * we can only remove phones one-by-one; there is no batch web request |
package com.example; | |
import android.annotation.SuppressLint; | |
import android.os.Handler; | |
import android.os.Looper; | |
import android.util.Log; | |
import io.reactivex.Emitter; | |
import io.reactivex.Observable; | |
import io.reactivex.ObservableOnSubscribe; |
import android.util.Log; | |
import java.util.List; | |
import okhttp3.Interceptor; | |
import okhttp3.OkHttpClient; | |
import okhttp3.logging.HttpLoggingInterceptor; | |
public class Test { |
package com.example; | |
import java.util.ArrayList; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Objects; | |
import java.util.Set; | |
public class Temp { |