2015-01-30 15:27:22 +01:00
|
|
|
import java.text.SimpleDateFormat
|
|
|
|
|
2014-07-03 07:48:39 +02:00
|
|
|
apply plugin: 'com.android.application'
|
2015-03-11 15:15:32 +01:00
|
|
|
apply from: rootProject.file('global.gradle')
|
2015-01-11 10:28:45 +01:00
|
|
|
apply from: rootProject.file('signing.gradle')
|
2014-07-03 07:48:39 +02:00
|
|
|
|
|
|
|
android {
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.mariotaku.twidere"
|
2015-01-23 17:09:03 +01:00
|
|
|
minSdkVersion 14
|
2015-03-11 15:15:32 +01:00
|
|
|
targetSdkVersion 22
|
2015-04-08 19:41:37 +02:00
|
|
|
versionCode 107
|
2015-01-30 15:27:22 +01:00
|
|
|
versionName "0.3.0"
|
2015-01-17 19:58:29 +01:00
|
|
|
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
|
|
|
|
}
|
2014-12-24 05:39:21 +01:00
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/DEPENDENCIES'
|
|
|
|
exclude 'META-INF/LICENSE'
|
|
|
|
exclude 'META-INF/LICENSE.txt'
|
|
|
|
exclude 'META-INF/license.txt'
|
|
|
|
exclude 'META-INF/NOTICE'
|
|
|
|
exclude 'META-INF/NOTICE.txt'
|
|
|
|
exclude 'META-INF/notice.txt'
|
|
|
|
exclude 'META-INF/ASL2.0'
|
|
|
|
}
|
2014-10-26 14:38:48 +01:00
|
|
|
productFlavors {
|
2014-11-03 16:44:32 +01:00
|
|
|
google {
|
|
|
|
}
|
|
|
|
fdroid {
|
2015-01-30 15:27:22 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
2015-03-27 17:50:18 +01:00
|
|
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm")
|
2015-01-30 15:27:22 +01:00
|
|
|
versionNameSuffix String.format(" (dev %s)", format.format(new Date()))
|
2014-11-03 16:44:32 +01:00
|
|
|
}
|
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()))
|
|
|
|
}
|
2014-10-26 14:38:48 +01:00
|
|
|
}
|
2015-03-29 13:06:55 +02:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
res.srcDirs = [project.file("src/$name/res"), project.file("src/$name/res-localized")]
|
|
|
|
}
|
|
|
|
}
|
2014-07-03 07:48:39 +02:00
|
|
|
}
|
|
|
|
|
2015-01-04 16:12:10 +01:00
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
|
|
|
maven { url 'https://repo.commonsware.com.s3.amazonaws.com' }
|
2015-04-07 17:43:03 +02:00
|
|
|
maven { url 'https://github.com/suckgamony/RapidDecoder/raw/master/repository' }
|
2015-03-19 09:34:30 +01:00
|
|
|
maven { url "https://jitpack.io" }
|
2015-01-04 16:12:10 +01:00
|
|
|
}
|
|
|
|
|
2015-02-17 06:49:23 +01:00
|
|
|
configurations.all {
|
|
|
|
exclude group: 'org.yaml', module: 'snakeyaml'
|
|
|
|
}
|
|
|
|
|
2014-07-03 07:48:39 +02:00
|
|
|
dependencies {
|
2014-11-16 14:27:42 +01:00
|
|
|
// wearApp project(':twidere.wear')
|
2015-01-11 10:28:45 +01:00
|
|
|
compile 'com.android.support:multidex:1.0.1'
|
2015-03-12 17:56:32 +01:00
|
|
|
compile 'com.android.support:support-v13:22.0.0'
|
|
|
|
compile 'com.android.support:appcompat-v7:22.0.0'
|
|
|
|
compile 'com.android.support:cardview-v7:22.0.0'
|
|
|
|
compile 'com.android.support:recyclerview-v7:22.0.0'
|
2015-02-17 06:49:23 +01:00
|
|
|
compile 'com.sothree.slidinguppanel:library:3.0.0'
|
|
|
|
compile 'com.twitter:twitter-text:1.11.1'
|
2014-10-26 14:38:48 +01:00
|
|
|
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
|
2015-02-03 06:22:02 +01:00
|
|
|
compile 'com.squareup:otto:1.3.6'
|
2015-03-08 16:44:47 +01:00
|
|
|
compile 'dnsjava:dnsjava:2.1.7'
|
2015-01-04 16:12:10 +01:00
|
|
|
compile 'com.commonsware.cwac:merge:1.1.1'
|
2015-04-07 17:43:03 +02:00
|
|
|
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.1.3'
|
2015-03-30 18:32:50 +02:00
|
|
|
compile 'com.rengwuxian.materialedittext:library:2.0.3'
|
|
|
|
compile 'com.pnikosis:materialish-progress:1.5'
|
2015-03-17 14:48:59 +01:00
|
|
|
compile 'com.squareup.okhttp:okhttp:2.3.0'
|
2015-04-13 18:34:10 +02:00
|
|
|
compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.5'
|
2015-03-22 18:06:25 +01:00
|
|
|
compile 'com.github.mariotaku:MessageBubbleView:1.0'
|
|
|
|
compile 'com.github.mariotaku:DragSortListView:0.6.1'
|
|
|
|
compile 'com.github.mariotaku:SlidingMenu:1.3'
|
2015-03-26 15:26:52 +01:00
|
|
|
compile 'com.github.uucky:ColorPicker-Android:0.9.1'
|
2015-04-07 06:19:40 +02:00
|
|
|
compile 'com.sprylab.android.texturevideoview:texturevideoview:1.0.0'
|
2015-04-07 17:43:03 +02:00
|
|
|
compile 'com.squareup:pollexor:2.0.2'
|
2015-04-08 12:39:25 +02:00
|
|
|
compile 'org.apache.commons:commons-lang3:3.4'
|
2015-03-20 14:57:07 +01:00
|
|
|
googleCompile 'com.google.android.gms:play-services-maps:7.0.0'
|
2015-01-14 09:47:51 +01:00
|
|
|
googleCompile 'com.google.maps.android:android-maps-utils:0.3.4'
|
|
|
|
fdroidCompile 'org.osmdroid:osmdroid-android:4.3'
|
2015-03-30 18:32:50 +02:00
|
|
|
fdroidCompile 'org.slf4j:slf4j-simple:1.7.12'
|
2015-03-31 18:39:14 +02:00
|
|
|
debugCompile 'im.dino:dbinspector:3.1.0@aar'
|
2015-01-11 10:28:45 +01:00
|
|
|
compile project(':twidere.component.common')
|
2015-01-06 16:46:07 +01:00
|
|
|
compile project(':twidere.component.nyan')
|
2015-01-01 11:38:34 +01:00
|
|
|
compile fileTree(dir: 'libs/main', include: ['*.jar'])
|
2015-03-28 19:30:51 +01:00
|
|
|
// googleCompile fileTree(dir: 'libs/google', include: ['*.jar'])
|
2015-03-09 12:56:36 +01:00
|
|
|
}
|