This file contains hidden or 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
#! /usr/bin/env bash | |
PWD=$(pwd) | |
while [[ ! -f $PWD/gradlew && ! $PWD == '/' ]]; do | |
PWD=$(dirname $PWD) | |
done | |
if [ -f $PWD/gradlew ]; then | |
echo Using $PWD/gradlew |
This file contains hidden or 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
package org.taosha.android.widget; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.view.ViewConfiguration; | |
/** | |
* Created by San on 8/31/15. | |
*/ |
This file contains hidden or 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
apply plugin: 'maven-publish' | |
afterEvaluate { | |
android.libraryVariants.each { variant -> | |
if (variant.buildType.name == "release") { | |
publishing.publications.create variant.flavorName, MavenPublication, { | |
groupId "$group" | |
version "$version" | |
artifactId "$project.name-$variant.flavorName" | |
artifact variant.outputs.outputFile.get(0) |
This file contains hidden or 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
[alias] | |
co = checkout | |
ci = commit | |
st = status | |
br = branch | |
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | |
type = cat-file -t | |
dump = cat-file -p |