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

132 lines
4.8 KiB
Groovy
Raw Normal View History

2014-07-03 07:48:39 +02:00
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
maven { url 'https://plugins.gradle.org/m2/' }
2017-08-13 18:29:20 +02:00
maven { url 'https://maven.google.com' }
2014-07-03 07:48:39 +02:00
}
dependencies {
2017-09-02 12:16:19 +02:00
classpath 'com.android.tools.build:gradle:3.0.0-beta4'
2014-07-03 07:48:39 +02:00
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
ext {
projectGroupId = 'org.mariotaku.twidere'
2017-09-03 10:11:37 +02:00
projectVersionCode = 386
projectVersionName = '3.6.26'
}
2014-07-03 07:48:39 +02:00
repositories {
2016-04-27 12:51:06 +02:00
mavenLocal()
2014-07-03 07:48:39 +02:00
jcenter()
2017-06-18 12:17:42 +02:00
maven { url 'https://maven.google.com' }
maven { url 'https://jitpack.io' }
}
2015-03-11 15:15:32 +01:00
2015-11-22 15:55:29 +01:00
}
subprojects {
2016-12-07 10:50:44 +01:00
buildscript {
ext {
kotlinVersion = '1.1.4-3'
2017-06-20 03:42:36 +02:00
pluginVersions = [
AndroidSvgDrawable: '3.0.0',
Fabric : '1.22.1',
PlayPublisher : '1.1.5',
PlayServices : '3.1.0',
]
2017-03-04 06:02:41 +01:00
libVersions = [
Kotlin : "${kotlinVersion}",
2017-08-13 18:29:20 +02:00
SupportLib : '26.0.1',
SupportTest : '1.0.0',
2017-08-22 09:39:47 +02:00
MariotakuCommons : '0.9.17',
RestFu : '0.9.57',
2017-04-28 15:44:45 +02:00
ObjectCursor : '0.9.20',
PlayServices : '11.2.0',
2017-08-13 18:29:20 +02:00
MapsUtils : '0.5',
2017-05-05 09:10:42 +02:00
Crashlyrics : '2.6.8',
2017-07-05 08:52:32 +02:00
DropboxCoreSdk : '3.0.3',
2017-04-25 05:36:37 +02:00
GoogleDriveApi : 'v3-rev61-1.22.0',
Exoplayer : 'r2.2.0',
Toro : '2.1.0',
LoganSquare : '1.3.7',
IABv3 : '1.0.38',
Mime4J : '0.7.2',
OkHttp : '3.8.1',
Stetho : '1.5.0',
2017-04-25 05:36:37 +02:00
OSMDroid : '5.6.4',
LeakCanary : '1.5.1',
2017-04-25 05:36:37 +02:00
TwitterText : '1.14.3',
MediaViewerLibrary : '0.9.23',
MultiValueSwitch : '0.9.8',
PickNCrop : '0.9.27',
AndroidGIFDrawable : '1.2.6',
KPreferences : '0.9.7',
Kovenant : '3.3.0',
ParcelablePlease : '1.0.2',
Chameleon : '0.9.20',
2017-07-16 08:09:23 +02:00
UniqR : '0.9.4',
2017-04-25 05:36:37 +02:00
SQLiteQB : '0.9.15',
Glide : '3.7.0',
GlideOkHttp3 : '1.4.0',
2017-08-13 18:29:20 +02:00
GlideTransformations : '2.0.2',
AndroidImageCropper : '2.4.6',
2017-04-25 05:36:37 +02:00
ExportablePreferences: '0.9.6',
ACRA : '4.9.2',
2017-05-14 16:02:42 +02:00
AbstractTask : '0.9.5',
2017-03-04 06:02:41 +01:00
]
}
2017-01-21 08:14:26 +01:00
2016-12-07 10:50:44 +01:00
}
2015-11-22 16:38:11 +01:00
afterEvaluate { project ->
2015-11-25 13:14:18 +01:00
2015-11-22 16:38:11 +01:00
if (project.hasProperty('android')) {
android {
2017-06-19 06:11:28 +02:00
compileSdkVersion 26
2017-08-28 12:27:09 +02:00
buildToolsVersion '26.0.1'
2015-11-22 15:55:29 +01:00
2015-11-22 16:38:11 +01:00
lintOptions {
abortOnError false
lintConfig rootProject.file('lint.xml')
}
2015-11-22 15:55:29 +01:00
2015-11-22 16:38:11 +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'
}
2015-11-22 15:55:29 +01:00
2015-11-25 14:21:12 +01:00
if (android.hasProperty('buildTypes') && project.plugins.hasPlugin('com.android.application')) {
android.buildTypes.each { buildType ->
2017-03-01 07:32:55 +01:00
def file = rootProject.file('private/signing.properties')
2015-11-25 14:42:34 +01:00
if (file.exists()) {
2015-11-30 06:32:05 +01:00
def cfg = signingConfigs.maybeCreate(buildType.name)
2015-11-25 14:42:34 +01:00
loadSigningConfig(cfg, file)
buildType.signingConfig = cfg
}
2015-11-25 14:21:12 +01:00
}
}
2015-11-22 15:55:29 +01:00
}
}
2015-11-22 16:38:11 +01:00
2015-11-22 15:55:29 +01:00
}
2015-11-22 16:38:11 +01:00
2015-11-22 16:29:00 +01:00
}
2015-11-30 06:32:05 +01:00
def loadSigningConfig(def cfg, def file) {
2015-11-25 13:14:18 +01:00
Properties signingProp = new Properties()
2015-12-01 02:39:08 +01:00
signingProp.load(file.newInputStream())
2017-01-19 14:05:33 +01:00
cfg.setStoreFile(rootProject.file(signingProp.get('storeFile')))
2015-11-25 13:14:18 +01:00
cfg.setStorePassword((String) signingProp.get('storePassword'))
cfg.setKeyAlias((String) signingProp.get('keyAlias'))
cfg.setKeyPassword((String) signingProp.get('keyPassword'))
}