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

114 lines
4.0 KiB
Groovy
Raw Normal View History

apply plugin: 'com.github.ben-manes.versions'
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/' }
2014-07-03 07:48:39 +02:00
}
dependencies {
2017-03-03 19:19:08 +01:00
classpath 'com.github.ben-manes:gradle-versions-plugin:0.14.0'
2017-03-04 17:01:11 +01:00
classpath 'com.android.tools.build:gradle:2.3.0'
2016-06-21 08:43:11 +02:00
classpath 'com.google.gms:google-services:3.0.0'
2015-10-05 12:00:07 +02:00
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
2015-11-30 06:32:05 +01:00
classpath('fr.avianey.androidsvgdrawable:gradle-plugin:3.0.0') {
2015-05-04 17:53:52 +02:00
// should be excluded to avoid conflict
exclude group: 'xerces'
}
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 {
repositories {
2016-04-27 12:51:06 +02:00
mavenLocal()
2014-07-03 07:48:39 +02:00
jcenter()
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 {
2017-03-04 06:02:41 +01:00
libVersions = [
Kotlin : '1.1.1',
SupportLib : '25.3.0',
MariotakuCommons : '0.9.11',
RestFu : '0.9.43',
ObjectCursor : '0.9.16',
PlayServices : '10.2.1',
MapsUtils : '0.4.4',
Crashlyrics : '2.6.7',
FabricPlugin : '1.22.1',
PlayPublisher : '1.1.5',
DropboxCoreSdk : '2.1.2',
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',
Stetho : '1.4.2',
OSMDroid : '5.6.4',
LeakCanary : '1.5',
TwitterText : '1.14.3',
MediaViewerLibrary: '0.9.23',
MultiValueSwitch : '0.9.8',
2017-03-29 17:15:28 +02:00
PickNCrop : '0.9.22',
AndroidGIFDrawable: '1.2.6',
KPreferences : '0.9.6'
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 {
2016-10-23 14:51:08 +02:00
compileSdkVersion 25
buildToolsVersion '25.0.2'
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-25 13:14:18 +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'))
}