lightning-i2p/app/build.gradle

114 lines
3.4 KiB
Groovy
Raw Normal View History

2015-05-02 16:40:40 +00:00
apply plugin: 'com.android.application'
apply plugin: 'com.getkeepsafe.dexcount'
2015-05-02 16:40:40 +00:00
android {
2017-06-09 02:39:16 +00:00
compileSdkVersion project.targetSdkVersion
buildToolsVersion project.buildToolsVersion
2015-05-02 16:40:40 +00:00
defaultConfig {
2017-06-09 02:39:16 +00:00
minSdkVersion project.minSdkVersion
targetSdkVersion project.targetSdkVersion
2018-12-04 05:31:06 +00:00
applicationId "org.purplei2p.lightning"
2017-06-04 23:19:10 +00:00
versionName project.versionName
2018-12-04 05:31:06 +00:00
versionCode project.versionCode
2016-07-31 18:50:03 +00:00
vectorDrawables.useSupportLibrary = true
}
2018-11-19 12:26:02 +00:00
signingConfigs {
r4sas {
storeFile file("store.jks")
storePassword "storepass"
keyAlias "keyalias"
keyPassword "keypass"
}
}
2015-05-02 16:40:40 +00:00
buildTypes {
debug {
minifyEnabled false
shrinkResources false
2015-05-03 11:56:22 +00:00
proguardFiles 'proguard-project.txt'
applicationVariants.all { variant ->
renameAPK(variant, defaultConfig, 'debug')
}
2015-05-02 16:40:40 +00:00
}
release {
2015-05-02 16:40:40 +00:00
minifyEnabled true
2015-05-04 16:07:15 +00:00
shrinkResources true
2018-11-19 12:26:02 +00:00
signingConfig signingConfigs.r4sas
2015-05-03 11:56:22 +00:00
proguardFiles 'proguard-project.txt'
applicationVariants.all { variant ->
renameAPK(variant, defaultConfig, 'release')
}
2015-05-02 16:40:40 +00:00
}
}
2015-05-03 11:56:22 +00:00
lintOptions {
abortOnError true
2015-05-03 11:56:22 +00:00
}
packagingOptions {
exclude '.readme'
}
2015-05-02 16:40:40 +00:00
}
dexcount {
includeClasses = false
includeFieldCount = false
format = "tree"
orderByMethodCount = true
verbose = false
}
2015-05-02 16:40:40 +00:00
dependencies {
2017-06-14 03:11:44 +00:00
testCompile 'junit:junit:4.12'
// support libraries
2017-06-09 03:17:04 +00:00
def supportLibVersion = '25.4.0'
2017-03-19 02:56:30 +00:00
compile "com.android.support:palette-v7:$supportLibVersion"
compile "com.android.support:appcompat-v7:$supportLibVersion"
compile "com.android.support:design:$supportLibVersion"
compile "com.android.support:recyclerview-v7:$supportLibVersion"
compile "com.android.support:support-v4:$supportLibVersion"
// dependency injection
2017-06-02 02:16:45 +00:00
def daggerVersion = '2.11'
2017-03-19 02:56:30 +00:00
compile "com.google.dagger:dagger:$daggerVersion"
2017-04-23 00:46:41 +00:00
annotationProcessor "com.google.dagger:dagger-compiler:$daggerVersion"
2016-05-20 02:52:52 +00:00
provided 'javax.annotation:jsr250-api:1.0'
// view binding
2017-06-03 22:50:36 +00:00
def butterknifeVersion = '8.6.0'
compile "com.jakewharton:butterknife:$butterknifeVersion"
annotationProcessor "com.jakewharton:butterknife-compiler:$butterknifeVersion"
// permissions
compile 'com.anthonycr.grant:permissions:1.1.2'
// tor proxy
2017-03-19 02:56:30 +00:00
def netcipherVersion = '2.0.0-alpha1'
compile "info.guardianproject.netcipher:netcipher:$netcipherVersion"
compile "info.guardianproject.netcipher:netcipher-webkit:$netcipherVersion"
compile 'com.anthonycr.bonsai:bonsai:1.1.0'
2016-07-12 01:51:45 +00:00
compile 'com.anthonycr.progress:animated-progress:1.0'
2016-07-22 03:29:33 +00:00
// memory leak analysis
2017-05-08 04:05:44 +00:00
def leakCanaryVersion = '1.5.1'
2017-03-19 02:56:30 +00:00
debugCompile "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
releaseCompile "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
// Kotlin
2017-05-08 04:05:44 +00:00
}
def renameAPK(variant, defaultConfig, buildType) {
variant.outputs.each { output ->
def formattedDate = new Date().format('yyMMdd')
def file = output.packageApplication.outputFile
def fileName = defaultConfig.applicationId + "_" + defaultConfig.versionCode + "_" + formattedDate + "_" + buildType + ".apk"
output.packageApplication.outputFile = new File(file.parent, fileName)
}
}