2015-05-04 23:53:52 +08:00
|
|
|
import fr.avianey.androidsvgdrawable.gradle.SvgDrawableTask
|
|
|
|
|
2015-01-30 22:27:22 +08:00
|
|
|
import java.text.SimpleDateFormat
|
|
|
|
|
2014-07-03 13:48:39 +08:00
|
|
|
apply plugin: 'com.android.application'
|
2015-04-27 00:39:49 +08:00
|
|
|
apply plugin: 'com.neenbedankt.android-apt'
|
2015-05-04 23:53:52 +08:00
|
|
|
apply plugin: "androidsvgdrawable"
|
2015-03-11 22:15:32 +08:00
|
|
|
apply from: rootProject.file('global.gradle')
|
2015-01-11 17:28:45 +08:00
|
|
|
apply from: rootProject.file('signing.gradle')
|
2014-07-03 13:48:39 +08:00
|
|
|
|
|
|
|
android {
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.mariotaku.twidere"
|
2015-01-24 00:09:03 +08:00
|
|
|
minSdkVersion 14
|
2015-08-20 10:19:02 +08:00
|
|
|
targetSdkVersion 23
|
2015-09-01 22:42:48 +08:00
|
|
|
versionCode 120
|
2015-01-30 22:27:22 +08:00
|
|
|
versionName "0.3.0"
|
2015-01-18 02:58:29 +08:00
|
|
|
multiDexEnabled true
|
2014-07-03 13:48:39 +08:00
|
|
|
}
|
2014-07-27 20:58:15 +08:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
|
|
}
|
2014-10-26 21:38:48 +08:00
|
|
|
productFlavors {
|
2014-11-03 23:44:32 +08:00
|
|
|
google {
|
|
|
|
}
|
|
|
|
fdroid {
|
2015-01-30 22:27:22 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
2015-03-28 00:50:18 +08:00
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm")
|
2015-01-30 22:27:22 +08:00
|
|
|
versionNameSuffix String.format(" (dev %s)", format.format(new Date()))
|
2014-11-03 23:44:32 +08:00
|
|
|
}
|
2015-03-29 15:36:51 +08:00
|
|
|
release {
|
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd")
|
|
|
|
versionNameSuffix String.format(" (dev %s)", format.format(new Date()))
|
|
|
|
}
|
2014-10-26 21:38:48 +08:00
|
|
|
}
|
2015-03-29 19:06:55 +08:00
|
|
|
sourceSets {
|
|
|
|
main {
|
2015-05-04 23:53:52 +08:00
|
|
|
res.srcDirs = [project.file("src/$name/res"), project.file("src/$name/res-localized"),
|
|
|
|
project.file("src/$name/res-svg2png")]
|
2015-03-29 19:06:55 +08:00
|
|
|
}
|
|
|
|
}
|
2014-07-03 13:48:39 +08:00
|
|
|
}
|
|
|
|
|
2015-01-04 23:12:10 +08:00
|
|
|
repositories {
|
2015-05-26 19:19:03 +08:00
|
|
|
maven { url 'http://repo.commonsware.com.s3.amazonaws.com' }
|
2015-01-04 23:12:10 +08:00
|
|
|
}
|
|
|
|
|
2015-05-04 14:23:47 +08:00
|
|
|
configurations {
|
|
|
|
all*.exclude group: 'org.yaml', module: 'snakeyaml'
|
2015-02-17 13:49:23 +08:00
|
|
|
}
|
|
|
|
|
2014-07-03 13:48:39 +08:00
|
|
|
dependencies {
|
2014-11-16 21:27:42 +08:00
|
|
|
// wearApp project(':twidere.wear')
|
2015-05-26 19:19:03 +08:00
|
|
|
apt 'com.bluelinelabs:logansquare-compiler:1.1.0'
|
2015-06-18 21:30:46 +08:00
|
|
|
apt 'com.hannesdorfmann.parcelableplease:processor:1.0.1'
|
2015-01-11 17:28:45 +08:00
|
|
|
compile 'com.android.support:multidex:1.0.1'
|
2015-08-20 10:19:02 +08:00
|
|
|
compile 'com.android.support:support-v13:23.0.0'
|
|
|
|
compile 'com.android.support:appcompat-v7:23.0.0'
|
|
|
|
compile 'com.android.support:cardview-v7:23.0.0'
|
|
|
|
compile 'com.android.support:recyclerview-v7:23.0.0'
|
2015-05-26 19:19:03 +08:00
|
|
|
compile 'com.twitter:twitter-text:1.12.1'
|
2015-06-07 22:37:41 +08:00
|
|
|
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
|
2015-08-16 17:34:49 +08:00
|
|
|
compile 'com.squareup:otto:1.3.8'
|
2015-03-08 23:44:47 +08:00
|
|
|
compile 'dnsjava:dnsjava:2.1.7'
|
2015-01-04 23:12:10 +08:00
|
|
|
compile 'com.commonsware.cwac:merge:1.1.1'
|
2015-07-17 22:30:41 +08:00
|
|
|
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.1.4'
|
|
|
|
compile 'com.rengwuxian.materialedittext:library:2.1.4'
|
2015-03-31 00:32:50 +08:00
|
|
|
compile 'com.pnikosis:materialish-progress:1.5'
|
2015-09-01 18:44:45 +08:00
|
|
|
compile 'com.squareup.okhttp:okhttp:2.5.0'
|
2015-05-26 19:19:03 +08:00
|
|
|
compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.7'
|
2015-04-29 00:54:42 +08:00
|
|
|
compile 'com.github.johnpersano:supertoasts:1.3.4.1@aar'
|
2015-05-05 13:46:29 +08:00
|
|
|
compile 'com.github.mariotaku:MessageBubbleView:1.2'
|
2015-03-23 01:06:25 +08:00
|
|
|
compile 'com.github.mariotaku:DragSortListView:0.6.1'
|
2015-05-20 16:22:19 +08:00
|
|
|
compile 'com.github.uucky:ColorPicker-Android:0.9.7@aar'
|
2015-06-29 03:32:51 +08:00
|
|
|
compile 'com.github.boxme:asyncmanager:1.0.0'
|
2015-08-16 17:34:49 +08:00
|
|
|
compile 'com.sprylab.android.texturevideoview:texturevideoview:1.0.1'
|
|
|
|
compile 'com.squareup:pollexor:2.0.3'
|
2015-08-13 11:27:53 +08:00
|
|
|
compile 'com.squareup:tape:1.2.3'
|
2015-04-08 18:39:25 +08:00
|
|
|
compile 'org.apache.commons:commons-lang3:3.4'
|
2015-05-26 19:19:03 +08:00
|
|
|
compile 'com.bluelinelabs:logansquare:1.1.0'
|
2015-05-11 18:54:41 +08:00
|
|
|
compile 'ch.acra:acra:4.6.2'
|
2015-05-20 01:54:56 +08:00
|
|
|
compile 'org.jraf:android-switch-backport:2.0.1'
|
2015-08-16 17:34:49 +08:00
|
|
|
compile 'com.fasterxml.jackson.jr:jackson-jr-objects:2.6.1'
|
2015-07-17 22:30:41 +08:00
|
|
|
compile 'com.makeramen:roundedimageview:2.1.1'
|
2015-06-16 19:28:45 +08:00
|
|
|
compile 'com.soundcloud.android:android-crop:1.0.0@aar'
|
2015-06-18 21:30:46 +08:00
|
|
|
compile 'com.hannesdorfmann.parcelableplease:annotation:1.0.1'
|
2015-07-06 17:36:18 +08:00
|
|
|
compile 'com.github.mariotaku:PickNCrop:44b09cbc69'
|
2015-08-16 17:34:49 +08:00
|
|
|
compile 'com.diogobernardino:williamchart:2.0.1'
|
2015-08-20 10:19:02 +08:00
|
|
|
googleCompile 'com.google.android.gms:play-services-maps:7.8.0'
|
2015-08-16 17:34:49 +08:00
|
|
|
googleCompile 'com.google.maps.android:android-maps-utils:0.4'
|
2015-01-14 16:47:51 +08:00
|
|
|
fdroidCompile 'org.osmdroid:osmdroid-android:4.3'
|
2015-03-31 00:32:50 +08:00
|
|
|
fdroidCompile 'org.slf4j:slf4j-simple:1.7.12'
|
2015-05-28 00:31:48 +08:00
|
|
|
debugCompile 'com.facebook.stetho:stetho:1.1.1'
|
|
|
|
debugCompile 'com.facebook.stetho:stetho-okhttp:1.1.1'
|
2015-01-11 17:28:45 +08:00
|
|
|
compile project(':twidere.component.common')
|
2015-01-06 23:46:07 +08:00
|
|
|
compile project(':twidere.component.nyan')
|
2015-01-01 18:38:34 +08:00
|
|
|
compile fileTree(dir: 'libs/main', include: ['*.jar'])
|
2015-03-29 02:30:51 +08:00
|
|
|
// googleCompile fileTree(dir: 'libs/google', include: ['*.jar'])
|
2015-05-04 23:53:52 +08:00
|
|
|
}
|
|
|
|
|
2015-06-24 23:13:03 +08:00
|
|
|
task svgToDrawable(type: SvgDrawableTask) {
|
2015-05-04 23:53:52 +08:00
|
|
|
// specify where to pick SVG from
|
2015-06-24 23:13:03 +08:00
|
|
|
from = file('src/main/svg/drawable')
|
2015-05-04 23:53:52 +08: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 23:13:03 +08:00
|
|
|
ninePatchConfig = file('src/main/svg/drawable/9patch.json')
|
2015-05-04 23:53:52 +08:00
|
|
|
// output format of the generated resources
|
|
|
|
outputFormat = 'PNG'
|
2015-06-24 23:13:03 +08:00
|
|
|
|
|
|
|
outputType = 'drawable'
|
2015-03-09 19:56:36 +08:00
|
|
|
}
|