2018-05-14 15:20:36 +00:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
|
|
|
buildscript {
|
2018-05-29 17:16:32 +00:00
|
|
|
ext.kotlin_version = '1.2.41'
|
2018-05-30 20:38:45 +00:00
|
|
|
|
|
|
|
ext.library = [
|
2018-07-31 16:58:43 +00:00
|
|
|
version: '0.11.0'
|
2018-05-30 20:38:45 +00:00
|
|
|
]
|
|
|
|
|
2018-06-01 19:44:31 +00:00
|
|
|
ext.build = [
|
2018-07-18 22:05:44 +00:00
|
|
|
compileSdkVersion: 27,
|
|
|
|
targetSdkVersion: 27,
|
|
|
|
minSdkVersion: 21, // So that we can publish for aarch64.
|
2018-06-01 19:44:31 +00:00
|
|
|
]
|
|
|
|
|
2018-05-14 15:20:36 +00:00
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
google()
|
2018-07-18 22:05:44 +00:00
|
|
|
maven {
|
|
|
|
url "https://plugins.gradle.org/m2/"
|
|
|
|
}
|
2018-05-14 15:20:36 +00:00
|
|
|
}
|
2018-07-18 22:05:44 +00:00
|
|
|
|
2018-05-14 15:20:36 +00:00
|
|
|
dependencies {
|
2018-07-18 22:05:44 +00:00
|
|
|
classpath 'com.android.tools.build:gradle:3.1.3'
|
2018-05-14 15:20:36 +00:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
|
2018-05-30 20:38:45 +00:00
|
|
|
// Publish.
|
|
|
|
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
|
|
|
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
|
|
|
|
|
2018-08-02 21:23:37 +00:00
|
|
|
classpath 'gradle.plugin.org.mozilla.rust-android-gradle:plugin:0.2.0'
|
2018-07-27 00:22:53 +00:00
|
|
|
|
|
|
|
// Yes, this is unusual. We want to access some host-specific
|
|
|
|
// computation at build time.
|
|
|
|
classpath 'net.java.dev.jna:jna:4.5.2'
|
2018-08-02 21:23:37 +00:00
|
|
|
|
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
|
|
// in the individual module build.gradle files
|
2018-05-14 15:20:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
google()
|
2018-07-18 22:05:44 +00:00
|
|
|
jcenter()
|
2018-05-14 15:20:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task clean(type: Delete) {
|
|
|
|
delete rootProject.buildDir
|
|
|
|
}
|
2018-07-18 22:05:44 +00:00
|
|
|
|
|
|
|
task printModules {
|
|
|
|
doLast {
|
|
|
|
subprojects.each { p ->
|
|
|
|
println "module: " + p.path
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|