Skip to content

Instantly share code, notes, and snippets.

View GuilhE's full-sized avatar

Guilherme Delgado GuilhE

View GitHub Profile
@GuilhE
GuilhE / deploy.gradle
Last active January 21, 2020 10:59
Library module - Gradle settings for bintray (using dcendents.android-maven)
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'
group = publishedGroupId // Maven Group ID for the artifact
version = libraryVersion
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
bintray {
@GuilhE
GuilhE / build.gradle
Last active March 3, 2018 13:54
Library module - Gradle settings
apply plugin: 'com.android.library'
android {
...
}
dependencies {
...
}
@GuilhE
GuilhE / build.gradle
Last active January 21, 2020 11:01
Project gradle settings (using dcendents.android-maven)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.61'
repositories {
google()
jcenter()
}
dependencies {
@GuilhE
GuilhE / gradle.properties
Last active December 12, 2018 16:05
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
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
@GuilhE
GuilhE / local.properties
Last active December 12, 2018 16:10
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.
ndk.dir=
@GuilhE
GuilhE / EndlessRecyclerOnScrollListener.java
Last active December 12, 2018 17:08
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="https://gist.github.com/GuilhE/cb2284d65d9ac9f1fd07bd5723b55924">EndlessRecyclerOnScrollListener</a>
*/
@SuppressWarnings({"unused", "WeakerAccess"})
@GuilhE
GuilhE / travis.yml
Last active May 3, 2020 17:15
Travis CI for testing with emulator and update jacocoTestReport to codecov
language: android
dist: trusty
notifications:
email: false
jdk:
- oraclejdk8
env:
@GuilhE
GuilhE / travis.yml
Created October 31, 2018 17:53
Travis CI configurations for testing without emulator
language: android
dist: trusty
notifications:
email: false
jdk:
- oraclejdk8
env:
@GuilhE
GuilhE / .gitattributes
Created February 1, 2019 13:49
GitAttributes to use with git-lfs
# 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
GuilhE / EndlessRecyclerOnScrollListener.kt
Last active March 21, 2020 21:30
Helper listener class to implement pagination
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
@Suppress("unused")
abstract class EndlessRecyclerOnScrollListener(
manager: LinearLayoutManager
) : RecyclerView.OnScrollListener() {
private var layoutManager: LinearLayoutManager = manager