diff options
author | Kenny Root <kenny@the-b.org> | 2014-10-02 23:32:58 +0100 |
---|---|---|
committer | Kenny Root <kenny@the-b.org> | 2014-10-03 00:58:14 +0100 |
commit | db72cbc25b8a7336a2306b8ea19159cc27e388e9 (patch) | |
tree | bffd68bbf00cd8c966c9eca719f00d0f0ce26309 /app/build.gradle | |
parent | 3781b14d4eaf7000f85b527cdcfcee17886b3f68 (diff) | |
download | connectbot-db72cbc25b8a7336a2306b8ea19159cc27e388e9.tar.gz connectbot-db72cbc25b8a7336a2306b8ea19159cc27e388e9.tar.bz2 connectbot-db72cbc25b8a7336a2306b8ea19159cc27e388e9.zip |
Revert "Add BuildConfig stuff instead of msg_version"
This reverts commit d2eb6b37b3910f404f229625a39a11954fac681d.
Diffstat (limited to 'app/build.gradle')
-rw-r--r-- | app/build.gradle | 33 |
1 files changed, 6 insertions, 27 deletions
diff --git a/app/build.gradle b/app/build.gradle index c4f73db..e55ca40 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,35 +1,20 @@ -import java.text.SimpleDateFormat -import org.ajoberstar.grgit.Grgit - apply plugin: 'android-sdk-manager' apply plugin: 'com.android.application' -apply plugin: 'org.ajoberstar.release-opinion' apply from: '../config/quality.gradle' -release { - grgit = Grgit.open(project.file('..')) -} - android { compileSdkVersion 20 buildToolsVersion "20.0.0" defaultConfig { applicationId "org.connectbot" - minSdkVersion 4 targetSdkVersion 15 - - versionCode 365 - versionName "${project.version.toString()}" - compileOptions { sourceCompatibility JavaVersion.VERSION_1_5 targetCompatibility JavaVersion.VERSION_1_5 } - buildConfigField "String", "BUILD_TIME", "\"${buildTime()}\"" - ndk { moduleName "com_google_ase_Exec" ldLibs "log" @@ -45,7 +30,7 @@ android { } signingConfigs { - releaseSigning + release } buildTypes { @@ -54,7 +39,7 @@ android { proguardFiles 'proguard.cfg' if (project.hasProperty('keystorePassword')) { - signingConfig signingConfigs.releaseSigning + signingConfig signingConfigs.release } } @@ -64,15 +49,9 @@ android { } } -def buildTime() { - def df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'"); - df.setTimeZone(TimeZone.getTimeZone("UTC")); - return df.format(new Date()); -} - if (project.hasProperty('keystorePassword')) { - android.signingConfigs.releaseSigning.storeFile file(keystoreFile) - android.signingConfigs.releaseSigning.storePassword keystorePassword - android.signingConfigs.releaseSigning.keyAlias keystoreAlias - android.signingConfigs.releaseSigning.keyPassword keystorePassword + android.signingConfigs.release.storeFile file(keystoreFile) + android.signingConfigs.release.storePassword keystorePassword + android.signingConfigs.release.keyAlias keystoreAlias + android.signingConfigs.release.keyPassword keystorePassword } |