2022-02-24 22:55:56 +01:00
|
|
|
ext.Dependencies = new DependenciesContainer()
|
|
|
|
|
|
|
|
ext.Dependencies.with {
|
|
|
|
_repositories = { repositories ->
|
|
|
|
repositories.google {
|
|
|
|
content {
|
|
|
|
includeGroupByRegex "com\\.android.*"
|
|
|
|
includeGroupByRegex "com\\.google.*"
|
|
|
|
includeGroupByRegex "androidx\\..*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-17 19:29:37 +02:00
|
|
|
repositories.maven {
|
|
|
|
url 'https://jitpack.io'
|
|
|
|
content {
|
|
|
|
includeGroup "com.github.UnifiedPush"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-24 22:55:56 +01:00
|
|
|
repositories.mavenCentral {
|
|
|
|
content {
|
|
|
|
includeGroupByRegex "org\\.jetbrains.*"
|
|
|
|
includeGroupByRegex "com\\.google.*"
|
|
|
|
includeGroupByRegex "com\\.squareup.*"
|
|
|
|
includeGroupByRegex "com\\.android.*"
|
|
|
|
includeGroupByRegex "org\\.apache.*"
|
|
|
|
includeGroupByRegex "org\\.json.*"
|
|
|
|
includeGroupByRegex "org\\.codehaus.*"
|
|
|
|
includeGroupByRegex "org\\.jdom.*"
|
|
|
|
includeGroupByRegex "com\\.fasterxml.*"
|
|
|
|
includeGroupByRegex "com\\.sun.*"
|
|
|
|
includeGroupByRegex "org\\.ow2.*"
|
|
|
|
includeGroupByRegex "org\\.eclipse.*"
|
|
|
|
includeGroup "app.cash.turbine"
|
|
|
|
includeGroup "de.undercouch"
|
|
|
|
includeGroup "de.danielbechler"
|
|
|
|
includeGroup "com.github.gundy"
|
|
|
|
includeGroup "com.sun.activation"
|
|
|
|
includeGroup "com.thoughtworks.qdox"
|
|
|
|
includeGroup "com.annimon"
|
|
|
|
includeGroup "com.github.javaparser"
|
|
|
|
includeGroup "com.beust"
|
|
|
|
includeGroup "org.bouncycastle"
|
|
|
|
includeGroup "org.bitbucket.b_c"
|
|
|
|
includeGroup "org.checkerframework"
|
|
|
|
includeGroup "org.amshove.kluent"
|
|
|
|
includeGroup "org.jvnet.staxex"
|
|
|
|
includeGroup "org.glassfish"
|
|
|
|
includeGroup "org.glassfish.jaxb"
|
|
|
|
includeGroup "org.antlr"
|
|
|
|
includeGroup "org.tensorflow"
|
|
|
|
includeGroup "org.xerial"
|
|
|
|
includeGroup "org.slf4j"
|
|
|
|
includeGroup "org.freemarker"
|
|
|
|
includeGroup "org.threeten"
|
|
|
|
includeGroup "org.hamcrest"
|
|
|
|
includeGroup "org.matrix.android"
|
|
|
|
includeGroup "org.sonatype.oss"
|
|
|
|
includeGroup "org.junit.jupiter"
|
|
|
|
includeGroup "org.junit.platform"
|
|
|
|
includeGroup "org.junit"
|
|
|
|
includeGroup "org.junit.jupiter"
|
|
|
|
includeGroup "org.jsoup"
|
|
|
|
includeGroup "org.jacoco"
|
|
|
|
includeGroup "org.testng"
|
|
|
|
includeGroup "org.opentest4j"
|
|
|
|
includeGroup "org.apiguardian"
|
|
|
|
includeGroup "org.webjars"
|
|
|
|
includeGroup "org.objenesis"
|
|
|
|
includeGroup "commons-io"
|
|
|
|
includeGroup "commons-logging"
|
|
|
|
includeGroup "commons-codec"
|
|
|
|
includeGroup "net.java.dev.jna"
|
|
|
|
includeGroup "net.sf.jopt-simple"
|
|
|
|
includeGroup "net.sf.kxml"
|
|
|
|
includeGroup "net.bytebuddy"
|
|
|
|
includeGroup "net.java"
|
|
|
|
includeGroup "it.unimi.dsi"
|
|
|
|
includeGroup "io.grpc"
|
|
|
|
includeGroup "io.netty"
|
|
|
|
includeGroup "io.opencensus"
|
|
|
|
includeGroup "io.ktor"
|
|
|
|
includeGroup "io.coil-kt"
|
|
|
|
includeGroup "io.mockk"
|
2022-09-29 15:54:38 +02:00
|
|
|
includeGroup "io.perfmark"
|
2022-02-24 22:55:56 +01:00
|
|
|
includeGroup "info.picocli"
|
|
|
|
includeGroup "us.fatehi"
|
|
|
|
includeGroup "jakarta.xml.bind"
|
|
|
|
includeGroup "jakarta.activation"
|
2022-09-29 15:54:38 +02:00
|
|
|
includeGroup "javax.annotation"
|
2022-02-24 22:55:56 +01:00
|
|
|
includeGroup "javax.inject"
|
|
|
|
includeGroup "junit"
|
|
|
|
includeGroup "jline"
|
|
|
|
includeGroup "xerces"
|
|
|
|
includeGroup "xml-apis"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-08 11:59:32 +02:00
|
|
|
def kotlinVer = "1.7.20"
|
2022-10-07 07:49:17 +02:00
|
|
|
def sqldelightVer = "1.5.4"
|
2022-08-11 09:50:13 +02:00
|
|
|
def composeVer = "1.2.1"
|
2022-10-31 06:27:56 +01:00
|
|
|
def ktorVer = "2.1.3"
|
2022-02-24 22:55:56 +01:00
|
|
|
|
|
|
|
google = new DependenciesContainer()
|
|
|
|
google.with {
|
2022-10-31 19:14:41 +01:00
|
|
|
androidGradlePlugin = "com.android.tools.build:gradle:7.3.1"
|
2022-02-24 22:55:56 +01:00
|
|
|
|
|
|
|
androidxComposeUi = "androidx.compose.ui:ui:${composeVer}"
|
|
|
|
androidxComposeFoundation = "androidx.compose.foundation:foundation:${composeVer}"
|
2022-10-22 13:38:15 +02:00
|
|
|
androidxComposeMaterial = "androidx.compose.material3:material3:1.0.0-rc01"
|
2022-02-24 22:55:56 +01:00
|
|
|
androidxComposeIconsExtended = "androidx.compose.material:material-icons-extended:${composeVer}"
|
2022-10-22 13:41:27 +02:00
|
|
|
androidxActivityCompose = "androidx.activity:activity-compose:1.6.0"
|
2022-10-17 20:37:49 +02:00
|
|
|
kotlinCompilerExtensionVersion = "1.3.2"
|
2022-07-11 20:13:55 +02:00
|
|
|
|
2022-10-22 13:34:34 +02:00
|
|
|
firebaseCrashlyticsPlugin = "com.google.firebase:firebase-crashlytics-gradle:2.9.2"
|
2022-10-22 13:16:31 +02:00
|
|
|
firebaseBom = "com.google.firebase:firebase-bom:31.0.1"
|
|
|
|
|
2022-07-11 20:37:53 +02:00
|
|
|
jdkLibs = "com.android.tools:desugar_jdk_libs:1.1.5"
|
2022-02-24 22:55:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
mavenCentral = new DependenciesContainer()
|
|
|
|
mavenCentral.with {
|
|
|
|
kotlinGradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVer}"
|
|
|
|
kotlinSerializationGradlePlugin = "org.jetbrains.kotlin:kotlin-serialization:${kotlinVer}"
|
2022-10-17 20:35:20 +02:00
|
|
|
kotlinSerializationJson = "org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1"
|
2022-07-16 12:07:36 +02:00
|
|
|
kotlinCoroutinesCore = "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4"
|
2022-07-14 07:31:19 +02:00
|
|
|
kotlinCoroutinesTest = 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4'
|
2022-02-24 22:55:56 +01:00
|
|
|
kotlinTest = "org.jetbrains.kotlin:kotlin-test-junit:${kotlinVer}"
|
|
|
|
|
|
|
|
sqldelightGradlePlugin = "com.squareup.sqldelight:gradle-plugin:${sqldelightVer}"
|
|
|
|
sqldelightAndroid = "com.squareup.sqldelight:android-driver:${sqldelightVer}"
|
|
|
|
sqldelightInMemory = "com.squareup.sqldelight:sqlite-driver:${sqldelightVer}"
|
|
|
|
|
2022-04-26 00:09:35 +02:00
|
|
|
leakCanary = 'com.squareup.leakcanary:leakcanary-android:2.9.1'
|
|
|
|
|
2022-03-08 21:23:57 +01:00
|
|
|
ktorAndroid = "io.ktor:ktor-client-android:${ktorVer}"
|
|
|
|
ktorCore = "io.ktor:ktor-client-core:${ktorVer}"
|
|
|
|
ktorSerialization = "io.ktor:ktor-client-serialization:${ktorVer}"
|
2022-06-11 12:07:36 +02:00
|
|
|
ktorJson = "io.ktor:ktor-serialization-kotlinx-json:${ktorVer}"
|
2022-03-08 21:23:57 +01:00
|
|
|
ktorLogging = "io.ktor:ktor-client-logging-jvm:${ktorVer}"
|
|
|
|
ktorJava = "io.ktor:ktor-client-java:${ktorVer}"
|
2022-06-11 12:07:36 +02:00
|
|
|
ktorContentNegotiation = "io.ktor:ktor-client-content-negotiation:${ktorVer}"
|
2022-02-24 22:55:56 +01:00
|
|
|
|
2022-10-03 07:30:33 +02:00
|
|
|
coil = "io.coil-kt:coil-compose:2.2.2"
|
2022-10-25 07:27:21 +02:00
|
|
|
accompanistSystemuicontroller = "com.google.accompanist:accompanist-systemuicontroller:0.27.0"
|
2022-04-26 00:09:35 +02:00
|
|
|
|
2022-02-24 22:55:56 +01:00
|
|
|
junit = "junit:junit:4.13.2"
|
2022-10-24 07:34:12 +02:00
|
|
|
kluent = "org.amshove.kluent:kluent:1.72"
|
2022-09-29 07:22:18 +02:00
|
|
|
mockk = 'io.mockk:mockk:1.13.2'
|
2022-02-24 22:55:56 +01:00
|
|
|
|
2022-06-11 15:37:31 +02:00
|
|
|
matrixOlm = "org.matrix.android:olm-sdk:3.2.12"
|
2022-02-24 22:55:56 +01:00
|
|
|
}
|
2022-08-17 19:29:37 +02:00
|
|
|
|
|
|
|
jitPack = new DependenciesContainer()
|
|
|
|
jitPack.with {
|
|
|
|
unifiedPush = "com.github.UnifiedPush:android-connector:2.0.1"
|
|
|
|
}
|
|
|
|
|
2022-02-24 22:55:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
class DependenciesContainer extends GroovyObjectSupport {
|
|
|
|
|
|
|
|
private final Map<String, Object> storage = new HashMap<String, Object>();
|
|
|
|
|
|
|
|
@Override
|
|
|
|
Object getProperty(String name) {
|
|
|
|
return storage.get(name);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
void setProperty(String name, Object newValue) {
|
|
|
|
storage.put(name, newValue);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|