Skip to content

Instantly share code, notes, and snippets.

# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
@danySam
danySam / app.build.gradle
Last active July 2, 2019 15:21
Gradle Files
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
def cmdVersion = 'git rev-list --all --count'
def cmdTag = 'git describe --tags'
def gitVersion = cmdVersion.execute().text.trim().toInteger()
def gitTag = cmdTag.execute().text.trim().toString()
def _versionName = gitTag + "_" + gitVersion
set number
set relativenumber
set cursorline
:hi CursorLine cterm=NONE ctermbg=red ctermfg=white guibg=green guifg=white
:hi CursorColumn cterm=NONE ctermbg=red ctermfg=white guibg=black guifg=white
:nnoremap <Leader>c :set cursorline! cursorcolumn!<CR>
:set so=999
:set hlsearch
:set incsearch
:hi incsearch term=reverse cterm=reverse gui=reverse
@danySam
danySam / ConnectionManager.java
Created February 21, 2019 22:52
Retrofit Connection Manager Boilerplate
package com.newecon.qounter.connection;
import ?.API;
import java.io.IOException;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;