X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=app%2Fbuild.gradle;h=7d9f5565dc4f179ac7afe3512bdcc914d368a015;hb=a2555d7a8d228c91da9f8014ca4a09dbd0d050ae;hp=618570c4948ae492f6144128e3bb65f9079ce3f7;hpb=390f2fc2d835c37fb5c078fea795ae28cffc088e;p=rtmpclient.git diff --git a/app/build.gradle b/app/build.gradle index 618570c..7d9f556 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -6,9 +6,12 @@ android { applicationId "ai.suanzi.rtmpclient" minSdkVersion 17 targetSdkVersion 17 - versionCode 1 - versionName "1.0" + versionCode 32 + versionName "v0.3.2" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + buildConfigField "String", "GIT_REVISION", "\"${getGitVersion()}\"" + buildConfigField "String", "COMPANY", "\"suanzi.ai\"" + sourceSets.main { jni.srcDirs = [] @@ -24,6 +27,10 @@ android { } } +def getGitVersion() { + return 'git rev-parse --short HEAD'.execute().text.trim() +} + dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:27.1.1' @@ -36,4 +43,5 @@ dependencies { implementation files('libs/android-mail-1.5.5.jar') implementation files('libs/android-activation-1.5.5.jar') implementation 'com.android.support:design:27.1.1' + implementation group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '4.3.5.1' }