Twidere-App-Android-Twitter.../twidere/build.gradle

129 lines
4.9 KiB
Groovy
Raw Normal View History

2015-05-04 17:53:52 +02:00
import fr.avianey.androidsvgdrawable.gradle.SvgDrawableTask
import java.text.SimpleDateFormat
2014-07-03 07:48:39 +02:00
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
2015-05-04 17:53:52 +02:00
apply plugin: "androidsvgdrawable"
2015-03-11 15:15:32 +01:00
apply from: rootProject.file('global.gradle')
apply from: rootProject.file('signing.gradle')
2014-07-03 07:48:39 +02:00
android {
defaultConfig {
applicationId "org.mariotaku.twidere"
minSdkVersion 14
targetSdkVersion 23
2015-10-30 04:22:49 +01:00
versionCode 131
versionName "0.3.0"
multiDexEnabled true
2014-07-03 07:48:39 +02:00
}
2014-07-27 14:58:15 +02:00
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
productFlavors {
google {
}
fdroid {
}
}
buildTypes {
debug {
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm")
versionNameSuffix String.format(" (dev %s)", format.format(new Date()))
}
2015-03-29 09:36:51 +02:00
release {
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd")
versionNameSuffix String.format(" (dev %s)", format.format(new Date()))
}
}
2015-03-29 13:06:55 +02:00
sourceSets {
main {
2015-05-04 17:53:52 +02:00
res.srcDirs = [project.file("src/$name/res"), project.file("src/$name/res-localized"),
project.file("src/$name/res-svg2png")]
2015-03-29 13:06:55 +02:00
}
}
2014-07-03 07:48:39 +02:00
}
repositories {
maven { url 'https://s3.amazonaws.com/repo.commonsware.com' }
}
2015-05-04 08:23:47 +02:00
configurations {
all*.exclude group: 'org.yaml', module: 'snakeyaml'
}
2014-07-03 07:48:39 +02:00
dependencies {
// wearApp project(':twidere.wear')
apt 'com.bluelinelabs:logansquare-compiler:1.1.0'
apt 'com.hannesdorfmann.parcelableplease:processor:1.0.1'
2015-10-05 12:00:07 +02:00
apt 'com.google.dagger:dagger-compiler:2.0.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:support-v13:23.1.0'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:cardview-v7:23.1.0'
compile 'com.android.support:recyclerview-v7:23.1.0'
compile 'com.twitter:twitter-text:1.12.1'
2015-06-07 16:37:41 +02:00
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
2015-08-16 11:34:49 +02:00
compile 'com.squareup:otto:1.3.8'
compile 'dnsjava:dnsjava:2.1.7'
compile 'com.commonsware.cwac:merge:1.1.1'
compile 'com.commonsware.cwac:layouts:0.4.2'
2015-10-05 12:00:07 +02:00
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.4.0'
2015-07-17 16:30:41 +02:00
compile 'com.rengwuxian.materialedittext:library:2.1.4'
2015-10-05 12:00:07 +02:00
compile 'com.pnikosis:materialish-progress:1.7'
compile 'com.squareup.okhttp:okhttp:2.5.0'
compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.7'
2015-04-28 18:54:42 +02:00
compile 'com.github.johnpersano:supertoasts:1.3.4.1@aar'
compile 'com.github.mariotaku:MessageBubbleView:1.2'
compile 'com.github.mariotaku:DragSortListView:0.6.1'
compile 'com.github.uucky:ColorPicker-Android:0.9.7@aar'
compile 'com.github.boxme:asyncmanager:1.0.0'
2015-08-16 11:34:49 +02:00
compile 'com.sprylab.android.texturevideoview:texturevideoview:1.0.1'
2015-10-05 12:00:07 +02:00
compile 'com.squareup:pollexor:2.0.4'
2015-08-13 05:27:53 +02:00
compile 'com.squareup:tape:1.2.3'
compile 'org.apache.commons:commons-lang3:3.4'
2015-10-05 13:09:54 +02:00
compile 'commons-primitives:commons-primitives:1.0'
compile 'com.bluelinelabs:logansquare:1.1.0'
2015-05-11 12:54:41 +02:00
compile 'ch.acra:acra:4.6.2'
compile 'org.jraf:android-switch-backport:2.0.1'
2015-10-05 12:00:07 +02:00
compile 'com.fasterxml.jackson.jr:jackson-jr-objects:2.6.2'
2015-07-17 16:30:41 +02:00
compile 'com.makeramen:roundedimageview:2.1.1'
2015-10-05 12:00:07 +02:00
compile 'com.soundcloud.android:android-crop:1.0.1@aar'
compile 'com.hannesdorfmann.parcelableplease:annotation:1.0.1'
2015-10-19 11:28:16 +02:00
compile 'com.github.mariotaku:PickNCrop:1dff3ed574'
2015-08-16 11:34:49 +02:00
compile 'com.diogobernardino:williamchart:2.0.1'
2015-09-02 09:03:17 +02:00
compile 'com.lnikkila:extendedtouchview:0.1.0'
2015-10-05 12:00:07 +02:00
compile 'com.google.dagger:dagger:2.0.1'
googleCompile 'com.google.android.gms:play-services-maps:8.1.0'
2015-08-16 11:34:49 +02:00
googleCompile 'com.google.maps.android:android-maps-utils:0.4'
2015-01-14 09:47:51 +01:00
fdroidCompile 'org.osmdroid:osmdroid-android:4.3'
2015-03-30 18:32:50 +02:00
fdroidCompile 'org.slf4j:slf4j-simple:1.7.12'
2015-10-05 12:00:07 +02:00
debugCompile 'com.facebook.stetho:stetho:1.2.0'
debugCompile 'com.facebook.stetho:stetho-okhttp:1.2.0'
compile project(':twidere.component.common')
compile project(':twidere.component.nyan')
2015-01-01 11:38:34 +01:00
compile fileTree(dir: 'libs/main', include: ['*.jar'])
2015-10-05 12:00:07 +02:00
provided 'javax.annotation:jsr250-api:1.0'
// googleCompile fileTree(dir: 'libs/google', include: ['*.jar'])
2015-05-04 17:53:52 +02:00
}
2015-06-24 17:13:03 +02:00
task svgToDrawable(type: SvgDrawableTask) {
2015-05-04 17:53:52 +02:00
// specify where to pick SVG from
2015-06-24 17:13:03 +02:00
from = file('src/main/svg/drawable')
2015-05-04 17:53:52 +02:00
// specify the android res folder
to = file('src/main/res-svg2png')
// create qualified directories if missing
createMissingDirectories = true
// override files only if necessary
overrideMode = 'ifModified'
// let generate PNG for the following densities only
targetedDensities = ['hdpi', 'mdpi', 'xhdpi', 'xxhdpi', 'xxxhdpi']
// relative path of the file specifying nine patch specs
2015-06-24 17:13:03 +02:00
ninePatchConfig = file('src/main/svg/drawable/9patch.json')
2015-05-04 17:53:52 +02:00
// output format of the generated resources
outputFormat = 'PNG'
2015-06-24 17:13:03 +02:00
outputType = 'drawable'
}