2015-05-04 23:53:52 +08:00
|
|
|
import fr.avianey.androidsvgdrawable.gradle.SvgDrawableTask
|
|
|
|
|
2014-07-03 13:48:39 +08:00
|
|
|
apply plugin: 'com.android.application'
|
2016-01-07 12:17:03 +08:00
|
|
|
apply plugin: 'io.fabric'
|
2015-04-27 00:39:49 +08:00
|
|
|
apply plugin: 'com.neenbedankt.android-apt'
|
2015-11-21 15:26:10 +08:00
|
|
|
apply plugin: 'androidsvgdrawable'
|
2014-07-03 13:48:39 +08:00
|
|
|
|
2016-01-07 12:17:03 +08:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
maven { url 'https://maven.fabric.io/public' }
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2016-03-12 14:46:47 +08:00
|
|
|
classpath 'io.fabric.tools:gradle:1.21.5'
|
2016-01-07 12:17:03 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-03 13:48:39 +08:00
|
|
|
android {
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.mariotaku.twidere"
|
2016-03-17 11:58:41 +08:00
|
|
|
minSdkVersion 14
|
2015-08-20 10:19:02 +08:00
|
|
|
targetSdkVersion 23
|
2016-03-25 22:41:56 +08:00
|
|
|
versionCode 172
|
|
|
|
versionName "3.1.1"
|
2015-01-18 02:58:29 +08:00
|
|
|
multiDexEnabled true
|
2015-11-25 08:47:30 +08:00
|
|
|
|
2016-03-05 23:16:17 +08:00
|
|
|
generatedDensities = []
|
|
|
|
|
2016-02-10 00:48:15 +08:00
|
|
|
buildConfigField 'boolean', 'LEAK_CANARY_ENABLED', 'Boolean.parseBoolean("false")'
|
2016-03-04 11:54:27 +08:00
|
|
|
buildConfigField 'boolean', 'SHOW_CUSTOM_TOKEN_DIALOG', 'Boolean.parseBoolean("false")'
|
2016-01-01 18:57:18 +08:00
|
|
|
|
2016-01-29 12:13:38 +08:00
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
2014-07-03 13:48:39 +08:00
|
|
|
}
|
2016-03-05 23:16:17 +08:00
|
|
|
aaptOptions {
|
|
|
|
additionalParameters "--no-version-vectors"
|
|
|
|
}
|
2014-07-27 20:58:15 +08:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
|
|
}
|
2016-03-05 23:16:17 +08:00
|
|
|
|
2014-10-26 21:38:48 +08:00
|
|
|
productFlavors {
|
2016-01-07 12:17:03 +08:00
|
|
|
google {}
|
|
|
|
fdroid {}
|
2015-01-30 22:27:22 +08:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
2015-12-29 20:25:16 +08:00
|
|
|
resValue("bool", "debug", "true")
|
2014-11-03 23:44:32 +08:00
|
|
|
}
|
2015-03-29 15:36:51 +08:00
|
|
|
release {
|
2015-11-22 22:55:29 +08:00
|
|
|
minifyEnabled false
|
2016-02-07 22:09:45 +08:00
|
|
|
shrinkResources false
|
2015-11-22 22:55:29 +08:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2015-12-29 20:25:16 +08:00
|
|
|
resValue("bool", "debug", "false")
|
2015-03-29 15:36:51 +08:00
|
|
|
}
|
2014-10-26 21:38:48 +08:00
|
|
|
}
|
2015-03-29 19:06:55 +08:00
|
|
|
sourceSets {
|
|
|
|
main {
|
2016-02-21 18:43:05 +08:00
|
|
|
res.srcDirs += project.files("src/$name/res-localized")
|
2016-02-21 00:44:35 +08:00
|
|
|
res.srcDirs += project.files("src/$name/res-svg2png")
|
2015-03-29 19:06:55 +08:00
|
|
|
}
|
|
|
|
}
|
2016-01-24 12:31:52 +08:00
|
|
|
testOptions {
|
|
|
|
unitTests.returnDefaultValues = true
|
|
|
|
}
|
2014-07-03 13:48:39 +08:00
|
|
|
}
|
|
|
|
|
2015-01-04 23:12:10 +08:00
|
|
|
repositories {
|
2015-10-07 00:45:39 +08:00
|
|
|
maven { url 'https://s3.amazonaws.com/repo.commonsware.com' }
|
2015-12-29 15:26:52 +08:00
|
|
|
maven { url 'https://maven.fabric.io/public' }
|
2015-12-20 19:54:05 +08:00
|
|
|
flatDir { dirs "$projectDir/lib" }
|
2015-01-04 23:12:10 +08:00
|
|
|
}
|
|
|
|
|
2014-07-03 13:48:39 +08:00
|
|
|
dependencies {
|
2014-11-16 21:27:42 +08:00
|
|
|
// wearApp project(':twidere.wear')
|
2016-03-11 20:28:46 +08:00
|
|
|
apt 'com.bluelinelabs:logansquare-compiler:1.3.7'
|
|
|
|
androidTestApt 'com.bluelinelabs:logansquare-compiler:1.3.7'
|
2016-01-04 11:32:48 +08:00
|
|
|
apt 'com.hannesdorfmann.parcelableplease:processor:1.0.2'
|
2016-03-12 14:46:47 +08:00
|
|
|
apt 'com.google.dagger:dagger-compiler:2.1'
|
2016-03-07 09:00:28 +08:00
|
|
|
apt "com.github.mariotaku.ObjectCursor:processor:0.9.6"
|
2016-02-13 15:26:23 +08:00
|
|
|
|
2016-03-19 00:04:03 +08:00
|
|
|
compile('com.github.mariotaku:app-theme-engine:1efc6237e1@aar') {
|
2016-03-18 12:00:40 +08:00
|
|
|
transitive = true
|
|
|
|
}
|
2016-03-19 00:04:03 +08:00
|
|
|
compile('com.github.mariotaku.material-dialogs:commons:bf2f2c5c57@aar') {
|
2016-03-18 12:00:40 +08:00
|
|
|
transitive = true
|
|
|
|
}
|
2016-03-20 13:38:49 +08:00
|
|
|
|
2016-03-18 12:00:40 +08:00
|
|
|
|
|
|
|
compile project(':twidere.component.common')
|
|
|
|
compile project(':twidere.component.nyan')
|
|
|
|
|
|
|
|
googleCompile 'com.google.android.gms:play-services-maps:8.4.0'
|
|
|
|
googleCompile 'com.google.maps.android:android-maps-utils:0.4.3'
|
|
|
|
googleCompile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') { transitive = true }
|
|
|
|
googleCompile ':YouTubeAndroidPlayerApi:1.2.2@jar'
|
|
|
|
|
|
|
|
fdroidCompile 'org.osmdroid:osmdroid-android:5.1'
|
|
|
|
|
|
|
|
debugCompile 'com.facebook.stetho:stetho:1.3.1'
|
|
|
|
debugCompile 'com.facebook.stetho:stetho-okhttp3:1.3.1'
|
|
|
|
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta1'
|
|
|
|
|
|
|
|
provided 'javax.annotation:jsr250-api:1.0'
|
|
|
|
|
|
|
|
testCompile 'junit:junit:4.12'
|
|
|
|
|
|
|
|
androidTestCompile 'com.android.support:support-annotations:23.2.1'
|
|
|
|
androidTestCompile 'com.android.support.test:runner:0.5'
|
|
|
|
androidTestCompile 'com.android.support.test:rules:0.5'
|
|
|
|
|
2015-01-11 17:28:45 +08:00
|
|
|
compile 'com.android.support:multidex:1.0.1'
|
2016-03-11 20:28:46 +08:00
|
|
|
compile 'com.android.support:support-v13:23.2.1'
|
|
|
|
compile 'com.android.support:appcompat-v7:23.2.1'
|
|
|
|
compile 'com.android.support:cardview-v7:23.2.1'
|
|
|
|
compile 'com.android.support:recyclerview-v7:23.2.1'
|
2016-03-13 00:13:43 +08:00
|
|
|
compile 'com.android.support:preference-v7:23.2.1'
|
|
|
|
compile 'com.android.support:preference-v14:23.2.1'
|
2015-11-30 13:32:05 +08:00
|
|
|
compile 'com.twitter:twitter-text:1.13.0'
|
|
|
|
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
|
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-10-26 16:10:37 +08:00
|
|
|
compile 'com.commonsware.cwac:layouts:0.4.2'
|
2015-07-17 22:30:41 +08:00
|
|
|
compile 'com.rengwuxian.materialedittext:library:2.1.4'
|
2015-10-05 18:00:07 +08:00
|
|
|
compile 'com.pnikosis:materialish-progress: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'
|
2016-03-20 13:38:49 +08:00
|
|
|
compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.14@aar'
|
2016-02-07 22:09:45 +08:00
|
|
|
compile 'com.sprylab.android.texturevideoview:texturevideoview:1.1.1'
|
2015-10-05 18:00:07 +08:00
|
|
|
compile 'com.squareup:pollexor:2.0.4'
|
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-10-05 19:09:54 +08:00
|
|
|
compile 'commons-primitives:commons-primitives:1.0'
|
2016-03-11 20:28:46 +08:00
|
|
|
compile 'com.bluelinelabs:logansquare:1.3.7'
|
2015-10-05 18:00:07 +08:00
|
|
|
compile 'com.soundcloud.android:android-crop:1.0.1@aar'
|
2016-01-04 11:32:48 +08:00
|
|
|
compile 'com.hannesdorfmann.parcelableplease:annotation:1.0.2'
|
2016-02-07 22:09:45 +08:00
|
|
|
compile 'com.github.mariotaku:PickNCrop:0.9.3'
|
2016-03-12 12:21:08 +08:00
|
|
|
compile 'com.github.mariotaku.RestFu:okhttp3:0.9.25'
|
2016-03-12 14:46:47 +08:00
|
|
|
compile 'com.squareup.okhttp3:okhttp:3.2.0'
|
2015-09-02 15:03:17 +08:00
|
|
|
compile 'com.lnikkila:extendedtouchview:0.1.0'
|
2016-03-12 14:46:47 +08:00
|
|
|
compile 'com.google.dagger:dagger:2.1'
|
2015-11-04 20:40:13 +08:00
|
|
|
compile 'org.attoparser:attoparser:1.4.0.RELEASE'
|
2016-03-11 20:28:46 +08:00
|
|
|
compile 'com.github.mariotaku.MediaViewerLibrary:base:0.9.13'
|
|
|
|
compile 'com.github.mariotaku.MediaViewerLibrary:subsample-image-view:0.9.13'
|
2016-03-08 01:44:36 +08:00
|
|
|
compile 'com.github.mariotaku.SQLiteQB:library:0.9.6'
|
2016-03-07 09:00:28 +08:00
|
|
|
compile 'com.github.mariotaku.ObjectCursor:core:0.9.6'
|
2016-03-25 20:19:43 +08:00
|
|
|
compile 'com.github.mariotaku:MultiValueSwitch:0.9.3'
|
2016-03-24 21:50:13 +08:00
|
|
|
compile 'com.github.mariotaku:AbstractTask:0.9'
|
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-11-30 13:32:05 +08:00
|
|
|
from = files('src/main/svg/drawable')
|
2015-05-04 23:53:52 +08:00
|
|
|
// specify the android res folder
|
|
|
|
to = file('src/main/res-svg2png')
|
|
|
|
// override files only if necessary
|
2015-11-30 13:32:05 +08:00
|
|
|
overwriteMode = 'ifModified'
|
2015-05-04 23:53:52 +08:00
|
|
|
// 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'
|
2016-01-03 18:24:10 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
task svgToMipmap(type: SvgDrawableTask) {
|
|
|
|
// specify where to pick SVG from
|
|
|
|
from = files('src/main/svg/mipmap')
|
|
|
|
// specify the android res folder
|
|
|
|
to = file('src/main/res-svg2png')
|
|
|
|
// override files only if necessary
|
|
|
|
overwriteMode = 'ifModified'
|
|
|
|
// let generate PNG for the following densities only
|
|
|
|
targetedDensities = ['hdpi', 'mdpi', 'xhdpi', 'xxhdpi', 'xxxhdpi']
|
|
|
|
// output format of the generated resources
|
|
|
|
outputFormat = 'PNG'
|
|
|
|
|
|
|
|
outputType = 'mipmap'
|
2015-03-09 19:56:36 +08:00
|
|
|
}
|