Skip to content

Instantly share code, notes, and snippets.

GuilhE / build.gradle
Last active Mar 3, 2018
Library module - Gradle settings
View build.gradle
apply plugin: ''
android {
dependencies {
GuilhE / travis.yml
Created Oct 31, 2018
Travis CI configurations for testing without emulator
View travis.yml
language: android
dist: trusty
email: false
- oraclejdk8
GuilhE /
Last active Dec 12, 2018
Library module - Gradle properties
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# Specifies the JVM arguments used for the daemon process.
GuilhE /
Last active Dec 12, 2018
bintray configurations (note: don't push this to your repo!)
## This file is automatically generated by Android Studio.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
# This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
GuilhE /
Last active Dec 12, 2018
Helper listener class to implement pagination
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
* @author gdelgado
* @see <a href="">EndlessRecyclerOnScrollListener</a>
@SuppressWarnings({"unused", "WeakerAccess"})
GuilhE / .gitattributes
Created Feb 1, 2019
GitAttributes to use with git-lfs
View .gitattributes
# Collapse Unity-generated files on GitHub
*.asset linguist-generated
*.mat linguist-generated
*.meta linguist-generated
*.prefab linguist-generated
*.unity linguist-generated
# 3D models
*.3dm filter=lfs diff=lfs merge=lfs -text
*.3ds filter=lfs diff=lfs merge=lfs -text
GuilhE / deploy.gradle
Last active Jan 21, 2020
Library module - Gradle settings for bintray (using
View deploy.gradle
apply plugin: 'com.jfrog.bintray'
apply plugin: ''
group = publishedGroupId // Maven Group ID for the artifact
version = libraryVersion
Properties properties = new Properties()
bintray {
GuilhE / build.gradle
Last active Jan 21, 2020
Project gradle settings (using
View build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.61'
repositories {
dependencies {
GuilhE / OperatorExtensionsTest.kt
Last active Feb 19, 2020
OperatorExtensions tests with MockK
View OperatorExtensionsTest.kt
import io.mockk.clearAllMocks
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.delay
import kotlinx.coroutines.test.TestCoroutineDispatcher
import kotlinx.coroutines.test.resetMain
import kotlinx.coroutines.test.runBlockingTest
import kotlinx.coroutines.test.setMain
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.*
GuilhE / RxExtensions.kt
Created Mar 4, 2020
Helper compose functions for RxKotlin
View RxExtensions.kt
import android.annotation.SuppressLint
import com.blissapplications.kotlin.core.common.threads.ReactivexThreadSchedulerProvider
import io.reactivex.Completable
import io.reactivex.Single
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable
* Examples of usage of this extensions functions: