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
//add classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0' to buildscript.dependencies | |
apply plugin: 'com.jfrog.bintray' | |
bintray { | |
user = BINTRAY_USER | |
key = BINTRAY_KEY | |
configurations = ['archives'] | |
publish = true | |
override = false |
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
apply plugin: 'maven' | |
apply plugin: 'signing' | |
version = VERSION_NAME | |
group = GROUP | |
def isReleaseBuild() { | |
return VERSION_NAME.contains("SNAPSHOT") == false | |
} |
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
import android.os.Bundle; | |
import android.text.TextUtils; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import com.google.gson.stream.JsonReader; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; |
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
/** | |
* <p>Author:MrIcefox | |
* <p>Email:extremetsa@gmail.com | |
* <p>Description: | |
* <p>Date:2017/5/22 | |
*/ | |
public class TimeoutWatcher { | |
private static TimeoutWatcher head; |