2020-12-03 13:19:03 -05:00
|
|
|
buildscript {
|
2022-12-07 15:23:48 -05:00
|
|
|
ext.kotlin_version = '1.7.20'
|
2020-12-03 13:19:03 -05:00
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
|
|
|
jcenter {
|
|
|
|
content {
|
|
|
|
includeVersion 'org.jetbrains.trove4j', 'trove4j', '20160824'
|
|
|
|
includeGroupByRegex "com\\.archinamon.*"
|
|
|
|
}
|
|
|
|
}
|
2021-04-13 17:12:54 -04:00
|
|
|
maven {
|
|
|
|
url "https://plugins.gradle.org/m2/"
|
|
|
|
content {
|
|
|
|
includeGroupByRegex "org\\.jlleitschuh\\.gradle.*"
|
|
|
|
}
|
|
|
|
}
|
2020-12-03 13:19:03 -05:00
|
|
|
}
|
|
|
|
dependencies {
|
2022-09-13 11:16:01 -03:00
|
|
|
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'
|
2021-09-14 09:01:42 -03:00
|
|
|
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.17'
|
2021-04-13 17:12:54 -04:00
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
2022-01-12 12:04:07 -05:00
|
|
|
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.2.1"
|
2021-06-24 13:52:54 -03:00
|
|
|
classpath 'app.cash.exhaustive:exhaustive-gradle:0.1.1'
|
2020-12-03 13:19:03 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ext {
|
2022-09-29 10:55:14 -04:00
|
|
|
BUILD_TOOL_VERSION = '32.0.0'
|
2020-12-03 13:19:03 -05:00
|
|
|
|
2023-01-13 10:53:44 -04:00
|
|
|
COMPILE_SDK = 33
|
2022-10-12 10:03:31 -04:00
|
|
|
TARGET_SDK = 31
|
2023-01-17 11:52:03 -05:00
|
|
|
MINIMUM_SDK = 21
|
2020-12-03 13:19:03 -05:00
|
|
|
|
|
|
|
JAVA_VERSION = JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
2019-11-20 12:33:57 -05:00
|
|
|
wrapper {
|
|
|
|
distributionType = Wrapper.DistributionType.ALL
|
|
|
|
}
|
2019-11-20 13:16:10 -05:00
|
|
|
|
2020-12-03 13:19:03 -05:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
google()
|
2021-08-06 07:09:43 -07:00
|
|
|
mavenCentral()
|
2021-09-22 14:58:21 -04:00
|
|
|
mavenLocal()
|
2020-12-03 13:19:03 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-11-20 13:16:10 -05:00
|
|
|
subprojects {
|
|
|
|
ext.lib_signal_service_version_number = "2.15.3"
|
|
|
|
ext.lib_signal_service_group_info = "org.whispersystems"
|
2020-11-12 14:29:06 -05:00
|
|
|
ext.lib_signal_client_version = "0.1.0"
|
2019-11-20 13:16:10 -05:00
|
|
|
|
|
|
|
if (JavaVersion.current().isJava8Compatible()) {
|
|
|
|
allprojects {
|
|
|
|
tasks.withType(Javadoc) {
|
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-02-24 15:07:56 -05:00
|
|
|
|
|
|
|
if (project.name != "Signal-Android" && project.name != "libsignal-service" && project.name != "lintchecks" && !project.name.endsWith("-app")) {
|
|
|
|
task qa {
|
|
|
|
group 'Verification'
|
|
|
|
description 'Quality Assurance. Run before pushing'
|
2022-02-08 12:01:44 -05:00
|
|
|
dependsOn 'clean', 'testReleaseUnitTest', 'lintRelease'
|
2021-02-24 15:07:56 -05:00
|
|
|
}
|
|
|
|
}
|
2019-11-20 13:16:10 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
task qa {
|
|
|
|
group 'Verification'
|
|
|
|
description 'Quality Assurance. Run before pushing.'
|
2022-02-08 12:01:44 -05:00
|
|
|
dependsOn 'clean',
|
|
|
|
':Signal-Android:testPlayProdReleaseUnitTest',
|
2020-11-02 17:31:32 -04:00
|
|
|
':Signal-Android:lintPlayProdRelease',
|
2021-04-13 17:12:54 -04:00
|
|
|
'Signal-Android:ktlintCheck',
|
2019-11-20 13:16:10 -05:00
|
|
|
':libsignal-service:test',
|
2022-12-08 10:28:24 -05:00
|
|
|
':libsignal-service:ktlintCheck',
|
2021-12-09 13:28:13 -05:00
|
|
|
':Signal-Android:assemblePlayProdRelease'
|
2019-11-20 13:16:10 -05:00
|
|
|
}
|
2022-02-08 12:01:44 -05:00
|
|
|
|
|
|
|
task clean(type: Delete) {
|
|
|
|
delete rootProject.buildDir
|
|
|
|
}
|