This file contains 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
// Adapted from http://stancalau.ro/java_package-info_generator_gradle/ | |
def generatedPackageInfoDir = "$buildDir/generated/package-info" | |
// Handle Android projects | |
if (project.plugins.hasPlugin("android")) { | |
android.sourceSets.main.java.srcDirs generatedPackageInfoDir | |
} | |
// Handle Java projects | |
if (project.plugins.hasPlugin("java")) { |
This file contains 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
androidTestCompile(extra["junit"]) | |
androidTestCompile(extra["truth"]) | |
androidTestCompile(extra["mockitoKotlin"] as String) { exclude(group = "net.bytebuddy") } // DexMaker has it"s own MockMaker | |
androidTestCompile(extra["mockitoCore"] as String) { exclude(group = "net.bytebuddy") } // DexMaker has it"s own MockMaker | |
androidTestCompile(extra["dexmakerMockito"] as String) { exclude(group = "net.bytebuddy") } // DexMaker has it"s own MockMaker | |
androidTestCompile(extra["runner"]) | |
androidTestCompile(extra["espressoCore"]) | |
androidTestCompile(extra["espressoIntents"]) | |
androidTestCompile(extra["espressoContrib"] as String) { exclude(group = "com.android.support") } | |
androidTestCompile(extra["mockwebserver"]) |
This file contains 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.Nullable; | |
import okhttp3.ResponseBody; | |
import retrofit2.Converter; | |
import retrofit2.Retrofit; | |
import java.io.IOException; | |
import java.lang.annotation.Annotation; | |
import java.lang.reflect.Type; | |
/** | |
* https://github.com/square/retrofit/issues/1554#issuecomment-178633697 |
This file contains 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
/* | |
* Copyright (C) 2012 Square, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains 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
/* | |
* Copyright (C) 2012 Square, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
This file contains 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 java.io.IOException; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.net.ssl.HttpsURLConnection; | |
import retrofit2.Response; | |
import retrofit2.adapter.rxjava.HttpException; | |
public final class ErrorUtils { |
This file contains 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 org.junit.After; | |
import org.junit.Before; | |
import rx.Scheduler; | |
import rx.android.plugins.RxAndroidPlugins; | |
import rx.android.plugins.RxAndroidSchedulersHook; | |
import rx.schedulers.Schedulers; | |
/** | |
* JUnit Tests. | |
* |
This file contains 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 org.junit.After; | |
import org.junit.Before; | |
import rx.Scheduler; | |
import rx.android.plugins.RxAndroidPlugins; | |
import rx.android.plugins.RxAndroidSchedulersHook; | |
import rx.schedulers.Schedulers; | |
/** | |
* JUnit Tests. | |
* |
This file contains 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.content.Context; | |
import android.os.Bundle; | |
import com.google.firebase.analytics.FirebaseAnalytics; | |
import com.google.firebase.crash.FirebaseCrash; | |
import com.orhanobut.logger.Logger; | |
/** | |
* https://developers.google.com/analytics/devguides/collection/android/v4/advanced?hl=es | |
* https://github.com/google/iosched/blob/0a90bf8e6b90e9226f8c15b34eb7b1e4bf6d632e/android/src/main/java/com/google/samples/apps/iosched/util/java | |
* https://github.com/google/iosched/blob/cf1f30b4c752f275518384a9b71404ee501fc473/android/src/main/java/com/google/samples/apps/iosched/ui/BaseActivity.java |
This file contains 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
// A.h | |
class A { | |
public: | |
int var; | |
class Builder; | |
A(Builder* builder); | |
int getVar(); | |
Builder* newBuilder(); | |
}; |