signingConfig signingConfigs.release
}
}
+
+ applicationVariants.all { variant ->
+ variant.outputs.all {
+ outputFileName = "RtmpClient-${variant.versionName}-${variant.name}.apk"
+ }
+ }
}
def getGitVersion() {
private static final String VERSION_INFO_URL = "http://downloads.suanzi.ai/RtmpClient/update.json";
+ /* the content of update.json as below
+ peng@[~/web/RtmpClient]>> cat update.json
+ {
+ "url":"http://downloads.suanzi.ai/RtmpClient/RtmpClient-v0.3.3-release.apk",
+ "versionCode":33,
+ "updateMessage":"1. Fix bug<br/>2. Update<br/>3. test"
+ }
+ */
+
public CheckVersionInfoTask(Context context){
this.mContext = context;
}