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

106 lines
3.9 KiB
Groovy
Raw Normal View History

2014-07-03 07:48:39 +02:00
apply plugin: 'com.android.application'
android {
2014-10-22 09:36:41 +02:00
compileSdkVersion 21
2014-12-11 07:38:40 +01:00
buildToolsVersion '21.1.2'
2014-07-03 07:48:39 +02:00
defaultConfig {
applicationId "org.mariotaku.twidere"
minSdkVersion 14
2014-10-22 09:36:41 +02:00
targetSdkVersion 21
versionCode 98
2014-10-22 09:36:41 +02:00
versionName "0.3.0-dev"
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
}
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-07-06 01:49:12 +02:00
signingConfigs {
debug {
File signingPropFile = project.rootProject.file('signing.properties')
if (signingPropFile.exists()) {
Properties signingProp = new Properties()
signingProp.load(signingPropFile.newDataInputStream())
storeFile file(signingProp.get("twidere.debug.storeFile"))
storePassword signingProp.get("twidere.debug.storePassword")
keyAlias signingProp.get("twidere.debug.keyAlias")
keyPassword signingProp.get("twidere.debug.keyPassword")
}
}
release {
File signingPropFile = project.rootProject.file('signing.properties')
if (signingPropFile.exists()) {
Properties signingProp = new Properties()
signingProp.load(signingPropFile.newDataInputStream())
storeFile file(signingProp.get("twidere.release.storeFile"))
storePassword signingProp.get("twidere.release.storePassword")
keyAlias signingProp.get("twidere.release.keyAlias")
keyPassword signingProp.get("twidere.release.keyPassword")
}
}
}
2014-07-03 07:48:39 +02:00
buildTypes {
2014-07-06 01:49:12 +02:00
debug {
File signingPropFile = project.rootProject.file('signing.properties')
if (signingPropFile.exists()) {
signingConfig signingConfigs.debug
}
2014-07-06 01:49:12 +02:00
}
2014-07-03 07:48:39 +02:00
release {
File signingPropFile = project.rootProject.file('signing.properties')
if (signingPropFile.exists()) {
signingConfig signingConfigs.release
}
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2014-07-03 07:48:39 +02:00
}
}
2014-07-06 01:49:12 +02:00
lintOptions {
abortOnError false
}
productFlavors {
google {
versionName = android.defaultConfig.versionName + '-google'
}
fdroid {
versionName = android.defaultConfig.versionName + '-fdroid'
}
}
2014-07-03 07:48:39 +02:00
}
dependencies {
// wearApp project(':twidere.wear')
2014-12-11 07:38:40 +01:00
compile 'com.android.support:support-v13:21.0.3'
compile 'com.android.support:cardview-v7:21.0.3'
compile 'com.android.support:recyclerview-v7:21.0.3'
compile 'com.android.support:palette-v7:21.0.3'
compile 'com.sothree.slidinguppanel:library:2.0.4'
compile 'it.sephiroth.android.library.imagezoom:imagezoom:2.1.1'
compile 'com.twitter:twitter-text:1.10.2'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
compile 'org.apache.httpcomponents:httpclient-android:4.3.5'
compile 'org.apache.httpcomponents:httpmime:4.3.5'
2014-07-03 07:48:39 +02:00
compile 'com.google.android.apps.dashclock:dashclock-api:2.0.0'
compile 'com.squareup:otto:1.3.5'
2014-12-11 07:38:40 +01:00
googleCompile 'com.google.android.gms:play-services:6.5.87'
fdroidCompile 'org.osmdroid:osmdroid-android:4.2'
fdroidCompile 'org.slf4j:slf4j-simple:1.6.1'
2014-07-03 09:58:09 +02:00
compile project(':SlidingMenu')
compile project(':DragSortListView')
compile project(':MenuComponent')
compile project(':MessageBubbleView')
compile project(':twidere.nyan')
2014-07-03 07:48:39 +02:00
compile fileTree(dir: 'libs', include: ['*.jar'])
}