2015-01-04 16:12:10 +01:00
|
|
|
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()
|
2015-11-05 11:55:03 +01:00
|
|
|
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-05-14 05:21:25 +02:00
|
|
|
classpath 'com.android.tools.build:gradle:2.3.2'
|
2015-10-05 12:00:07 +02:00
|
|
|
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
|
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()
|
2015-11-05 11:55:03 +01:00
|
|
|
maven { url 'https://jitpack.io' }
|
2014-11-21 04:00:46 +01:00
|
|
|
}
|
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 {
|
2017-02-28 14:30:18 +01:00
|
|
|
ext {
|
2017-03-04 06:02:41 +01:00
|
|
|
libVersions = [
|
2017-05-08 14:47:28 +02:00
|
|
|
Kotlin : '1.1.2-3',
|
2017-04-25 05:36:37 +02:00
|
|
|
SupportLib : '25.3.1',
|
2017-04-27 07:32:32 +02:00
|
|
|
MariotakuCommons : '0.9.15',
|
2017-04-25 05:36:37 +02:00
|
|
|
RestFu : '0.9.54',
|
2017-04-28 15:44:45 +02:00
|
|
|
ObjectCursor : '0.9.20',
|
2017-04-29 16:32:02 +02:00
|
|
|
PlayServices : '10.2.4',
|
2017-04-25 05:36:37 +02:00
|
|
|
MapsUtils : '0.4.4',
|
2017-05-05 09:10:42 +02:00
|
|
|
Crashlyrics : '2.6.8',
|
2017-04-25 05:36:37 +02:00
|
|
|
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',
|
|
|
|
PickNCrop : '0.9.27',
|
|
|
|
AndroidGIFDrawable : '1.2.6',
|
|
|
|
KPreferences : '0.9.7',
|
|
|
|
Kovenant : '3.3.0',
|
|
|
|
ParcelablePlease : '1.0.2',
|
2017-05-12 12:12:28 +02:00
|
|
|
Chameleon : '0.9.18',
|
2017-04-25 05:36:37 +02:00
|
|
|
UniqR : '0.9.1',
|
|
|
|
SQLiteQB : '0.9.15',
|
|
|
|
Glide : '3.7.0',
|
|
|
|
GlideOkHttp3 : '1.4.0',
|
|
|
|
GlideTransformations : '2.0.1',
|
|
|
|
AndroidImageCropper : '2.4.0',
|
|
|
|
ExportablePreferences: '0.9.6',
|
2017-05-08 14:47:28 +02:00
|
|
|
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-02-28 14:30:18 +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
|
2017-04-29 16:32:02 +02:00
|
|
|
buildToolsVersion '25.0.3'
|
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'))
|
2014-11-21 04:00:46 +01:00
|
|
|
}
|