X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=app%2Fbuild.gradle;h=49dfb20efca438c270ecca10075c1e61cd633e25;hb=f04505b3a75a030de282ff394e8e11d2e93ace17;hp=b4546ae7bdd81b6e843051ad92fd87431d7232d6;hpb=bceaa4c3f8bbfddb7f4cab257b759d0d0136284c;p=rtmpclient.git diff --git a/app/build.gradle b/app/build.gradle index b4546ae..49dfb20 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -4,11 +4,14 @@ android { compileSdkVersion 27 defaultConfig { applicationId "ai.suanzi.rtmpclient" - minSdkVersion 21 - targetSdkVersion 21 - versionCode 1 - versionName "1.0" + minSdkVersion 17 + targetSdkVersion 17 + 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,11 +27,20 @@ android { } } +def getGitVersion() { + return 'git rev-parse --short HEAD'.execute().text.trim() +} + dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:27.1.1' implementation 'com.android.support.constraint:constraint-layout:1.1.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' + implementation files('libs/log4j-1.2.17.jar') + implementation files('libs/android-logging-log4j-1.0.3.jar') + 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' }