X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=app%2Fbuild.gradle;h=c265a5a0c51ac1ba32966bef308e3a569605b230;hb=refs%2Fheads%2Fdev;hp=b4546ae7bdd81b6e843051ad92fd87431d7232d6;hpb=bceaa4c3f8bbfddb7f4cab257b759d0d0136284c;p=rtmpclient.git diff --git a/app/build.gradle b/app/build.gradle index b4546ae..c265a5a 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 33 + versionName "v0.3.3" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + buildConfigField "String", "GIT_REVISION", "\"${getGitVersion()}\"" + buildConfigField "String", "COMPANY", "\"suanzi.ai\"" + sourceSets.main { jni.srcDirs = [] @@ -16,19 +19,47 @@ android { } } + signingConfigs { + release { + storeFile file("../keystore/rtmpclient.jks") + storePassword '123456' + keyAlias 'rtmpclient' + keyPassword '123456' + } + } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + signingConfig signingConfigs.release + } + debug { + signingConfig signingConfigs.release } } + + applicationVariants.all { variant -> + variant.outputs.all { + outputFileName = "RtmpClient-${variant.versionName}-${variant.name}.apk" + } + } +} + +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' + implementation 'org.apache.httpcomponents:httpclient-android:4.3.5.1' }