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
#!/usr/bin/env bash | |
# https://github.com/travis-ci/travis-ci/issues/8549 | |
# Getting current framework version | |
ASSERTIONS_VERSION=$(egrep -o "assertionsSdkVersion.*=.*" assertions-sdk.gradle | egrep -o "'(.*)'" | tr -d "\'") | |
echo "Running SDK publishing script for $ASSERTIONS_VERSION version." | |
### Check if it is snapshot build | |
if [[ $ASSERTIONS_VERSION == *"SNAPSHOT"* ]]; then | |
echo "[SKIP] $ASSERTIONS_VERSION is development build and should not be published." |
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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
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
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion | |
#PS1 section\ | |
tgreen='\[$(tput setaf 2)\]' | |
tpurp='\[$(tput setaf 4)\]' | |
twhite='\[$(tput setaf 7)\]' | |
export PS1="${tgreen}\u@\h${twhite}:${tpurp}\w${twhite}$ " |
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
package com.gfycat.common.recycler; | |
import android.support.v7.widget.RecyclerView; | |
import android.support.v7.widget.RecyclerView.ViewHolder; | |
import android.view.ViewGroup; | |
import com.gfycat.common.utils.Assertions; | |
import com.gfycat.common.utils.Logging; | |
import java.util.Iterator; |
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
ext { | |
/** | |
* Gets the version name from the latest Git tag | |
*/ | |
getGitVersionName = { -> | |
def stdout = new ByteArrayOutputStream() | |
exec { | |
commandLine 'git', 'describe', '--tags', '--dirty' | |
standardOutput = stdout | |
} |
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
/** | |
* Here you may define you PC local way to obtain passwords. | |
*/ | |
ext { | |
def localPropertiesFile = project.rootProject.file('local.properties'); | |
Properties localProperties = new Properties() | |
if (localPropertiesFile.exists()) { | |
localProperties.load(localPropertiesFile.newDataInputStream()) | |
} |
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
/** | |
* Will generate versionCode from versionName that follows Semantic Versioning | |
*/ | |
ext { | |
/** | |
* Application version is located version variable. | |
* And should follow next policy: | |
* X1.X2.X3-type-flavor, where X - any digits and type is optional alphabetical suffix. | |
* X1 - major version | |
* X2 - minor version |