86 lines
2.2 KiB
Groovy
86 lines
2.2 KiB
Groovy
buildscript {
|
|
ext.kotlin_version = '1.7.20'
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
jcenter {
|
|
content {
|
|
includeVersion 'org.jetbrains.trove4j', 'trove4j', '20160824'
|
|
}
|
|
}
|
|
maven {
|
|
url "https://plugins.gradle.org/m2/"
|
|
content {
|
|
includeModule 'org.jlleitschuh.gradle', 'ktlint-gradle'
|
|
}
|
|
}
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools:r8:3.3.75'
|
|
classpath 'com.android.tools.build:gradle:7.2.2'
|
|
classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.5.2'
|
|
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.17'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.2.1"
|
|
classpath 'app.cash.exhaustive:exhaustive-gradle:0.1.1'
|
|
}
|
|
}
|
|
|
|
ext {
|
|
BUILD_TOOL_VERSION = '32.0.0'
|
|
// MOLLY: Edit Dockerfile to download the same SDK packages
|
|
COMPILE_SDK = 33
|
|
TARGET_SDK = 31
|
|
MINIMUM_SDK = 23
|
|
|
|
JAVA_VERSION = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
wrapper {
|
|
distributionType = Wrapper.DistributionType.ALL
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
mavenLocal()
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
ext.lib_signal_service_version_number = "2.15.3"
|
|
ext.lib_signal_service_group_info = "org.whispersystems"
|
|
ext.lib_signal_client_version = "0.1.0"
|
|
|
|
if (JavaVersion.current().isJava8Compatible()) {
|
|
allprojects {
|
|
tasks.withType(Javadoc) {
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.withType(AbstractArchiveTask).configureEach {
|
|
preserveFileTimestamps = false
|
|
reproducibleFileOrder = true
|
|
}
|
|
}
|
|
|
|
task qa {
|
|
group 'Verification'
|
|
description 'Quality Assurance. Run before pushing.'
|
|
dependsOn = [
|
|
':libsignal-service:test',
|
|
':libsignal-service:ktlintCheck',
|
|
':app:testProdGmsWebsiteReleaseUnitTest',
|
|
':app:lintProdGmsWebsiteRelease',
|
|
':app:ktlintCheck',
|
|
':app:assembleProdFossWebsiteRelease',
|
|
]
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
}
|