Committed by
GitHub
Migrate from dependencies file to version catalog (#385)
正在显示
10 个修改的文件
包含
138 行增加
和
127 行删除
| @@ -10,63 +10,7 @@ ext { | @@ -10,63 +10,7 @@ ext { | ||
| 10 | targetVersion : 34, | 10 | targetVersion : 34, |
| 11 | minVersion : 21, | 11 | minVersion : 21, |
| 12 | ] | 12 | ] |
| 13 | - versions = [ | ||
| 14 | - androidx_core : "1.10.1", | ||
| 15 | - androidx_lifecycle: "2.5.1", | ||
| 16 | - autoService : '1.0.1', | ||
| 17 | - coroutines : "1.6.0", | ||
| 18 | - dagger : "2.46", | ||
| 19 | - groupie : "2.9.0", | ||
| 20 | - junit : "4.13.2", | ||
| 21 | - junitJupiter : "5.5.0", | ||
| 22 | - lint : "30.0.1", | ||
| 23 | - serialization : "1.5.0", | ||
| 24 | - protobuf : "3.22.0", | ||
| 25 | - ] | ||
| 26 | generated = [ | 13 | generated = [ |
| 27 | protoSrc: "$projectDir/protocol", | 14 | protoSrc: "$projectDir/protocol", |
| 28 | ] | 15 | ] |
| 29 | - deps = [ | ||
| 30 | - androidx : [ | ||
| 31 | - 'annotation' : 'androidx.annotation:annotation:1.6.0', | ||
| 32 | - 'activity_compose' : 'androidx.activity:activity-compose:1.7.1', | ||
| 33 | - 'constraintlayout_compose': "androidx.constraintlayout:constraintlayout-compose:1.0.1", | ||
| 34 | - ], | ||
| 35 | - auto : [ | ||
| 36 | - 'service' : "com.google.auto.service:auto-service:${versions.autoService}", | ||
| 37 | - 'serviceAnnotations': "com.google.auto.service:auto-service-annotations:${versions.autoService}", | ||
| 38 | - ], | ||
| 39 | - coroutines : [ | ||
| 40 | - "lib" : "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.coroutines}", | ||
| 41 | - "test": "org.jetbrains.kotlinx:kotlinx-coroutines-test: ${versions.coroutines}", | ||
| 42 | - ], | ||
| 43 | - compose : [ | ||
| 44 | - "bom": "androidx.compose:compose-bom:2023.04.01", | ||
| 45 | - ], | ||
| 46 | - timber : "com.github.ajalt:timberkt:1.5.1", | ||
| 47 | - | ||
| 48 | - // lint | ||
| 49 | - lint : "com.android.tools.lint:lint:${versions.lint}", | ||
| 50 | - lintApi : "com.android.tools.lint:lint-api:${versions.lint}", | ||
| 51 | - lintChecks : "com.android.tools.lint:lint-checks:${versions.lint}", | ||
| 52 | - lintTests : "com.android.tools.lint:lint-tests:${versions.lint}", | ||
| 53 | - | ||
| 54 | - // tests | ||
| 55 | - androidx_test : [ | ||
| 56 | - "core" : 'androidx.test:core:1.5.0', | ||
| 57 | - "junit": "androidx.test.ext:junit:1.1.5", | ||
| 58 | - ], | ||
| 59 | - espresso : 'androidx.test.espresso:espresso-core:3.5.1', | ||
| 60 | - junit : "junit:junit:${versions.junit}", | ||
| 61 | - junitJupiterApi : "org.junit.jupiter:junit-jupiter-api:${versions.junitJupiter}", | ||
| 62 | - junitJupiterEngine: "org.junit.jupiter:junit-jupiter-engine:${versions.junitJupiter}", | ||
| 63 | - mockito : [ | ||
| 64 | - "core" : 'org.mockito:mockito-core:4.0.0', | ||
| 65 | - "kotlin": "org.mockito.kotlin:mockito-kotlin:4.0.0", | ||
| 66 | - ], | ||
| 67 | - robolectric : 'org.robolectric:robolectric:4.10.2', | ||
| 68 | - turbine : 'app.cash.turbine:turbine:1.0.0', | ||
| 69 | - ] | ||
| 70 | - annotations = [ | ||
| 71 | - ] | ||
| 72 | } | 16 | } |
| @@ -37,13 +37,13 @@ dependencies { | @@ -37,13 +37,13 @@ dependencies { | ||
| 37 | 37 | ||
| 38 | api project(":livekit-android-sdk") | 38 | api project(":livekit-android-sdk") |
| 39 | 39 | ||
| 40 | - api "androidx.core:core-ktx:${versions.androidx_core}" | 40 | + api "androidx.core:core-ktx:${libs.versions.androidx.core.get()}" |
| 41 | implementation 'androidx.appcompat:appcompat:1.6.1' | 41 | implementation 'androidx.appcompat:appcompat:1.6.1' |
| 42 | implementation 'com.google.android.material:material:1.11.0' | 42 | implementation 'com.google.android.material:material:1.11.0' |
| 43 | - api deps.coroutines.lib | ||
| 44 | - api "androidx.lifecycle:lifecycle-runtime-ktx:${versions.androidx_lifecycle}" | ||
| 45 | - api "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.androidx_lifecycle}" | ||
| 46 | - api "androidx.lifecycle:lifecycle-common-java8:${versions.androidx_lifecycle}" | 43 | + api libs.coroutines.lib |
| 44 | + api "androidx.lifecycle:lifecycle-runtime-ktx:${libs.versions.androidx.lifecycle.get()}" | ||
| 45 | + api "androidx.lifecycle:lifecycle-viewmodel-ktx:${libs.versions.androidx.lifecycle.get()}" | ||
| 46 | + api "androidx.lifecycle:lifecycle-common-java8:${libs.versions.androidx.lifecycle.get()}" | ||
| 47 | testImplementation 'junit:junit:4.13.2' | 47 | testImplementation 'junit:junit:4.13.2' |
| 48 | androidTestImplementation 'androidx.test.ext:junit:1.1.5' | 48 | androidTestImplementation 'androidx.test.ext:junit:1.1.5' |
| 49 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' | 49 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' |
gradle/libs.versions.toml
0 → 100644
| 1 | +[versions] | ||
| 2 | +webrtc = "114.5735.07" | ||
| 3 | + | ||
| 4 | +androidJainSipRi = "1.3.0-91" | ||
| 5 | +androidx-core = "1.10.1" | ||
| 6 | +androidx-lifecycle = "2.5.1" | ||
| 7 | +audioswitch = "89582c47c9a04c62f90aa5e57251af4800a62c9a" | ||
| 8 | +autoService = '1.0.1' | ||
| 9 | +coroutines = "1.6.0" | ||
| 10 | +dagger = "2.46" | ||
| 11 | +groupie = "2.9.0" | ||
| 12 | +junit-lib = "4.13.2" | ||
| 13 | +junit-jupiter = "5.5.0" | ||
| 14 | +kotlinx-serialization = "1.5.0" | ||
| 15 | +lint = "30.0.1" | ||
| 16 | +okhttp = "4.12.0" | ||
| 17 | +protobuf = "3.22.0" | ||
| 18 | +protobufJavalite = "3.22.0" | ||
| 19 | +semver4j = "3.1.0" | ||
| 20 | + | ||
| 21 | +[libraries] | ||
| 22 | +android-jain-sip-ri = { module = "javax.sip:android-jain-sip-ri", version.ref = "androidJainSipRi" } | ||
| 23 | +androidx-core = { module = "androidx.core:core", version.ref = "androidx-core" } | ||
| 24 | +audioswitch = { module = "com.github.davidliu:audioswitch", version.ref = "audioswitch" } | ||
| 25 | +dagger-lib = { module = "com.google.dagger:dagger", version.ref = "dagger" } | ||
| 26 | +dagger-compiler = { module = "com.google.dagger:dagger-compiler", version.ref = "dagger" } | ||
| 27 | +groupie = { module = "com.github.lisawray.groupie:groupie", version.ref = "groupie" } | ||
| 28 | +groupie-viewbinding = { module = "com.github.lisawray.groupie:groupie-viewbinding", version.ref = "groupie" } | ||
| 29 | +androidx-lifecycle-runtime-ktx = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "androidx-lifecycle" } | ||
| 30 | +androidx-lifecycle-common-java8 = { module = "androidx.lifecycle:lifecycle-common-java8", version.ref = "androidx-lifecycle" } | ||
| 31 | +androidx-lifecycle-viewmodel-ktx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "androidx-lifecycle" } | ||
| 32 | +kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization" } | ||
| 33 | +okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" } | ||
| 34 | +protobuf-javalite = { module = "com.google.protobuf:protobuf-javalite", version.ref = "protobufJavalite" } | ||
| 35 | +semver4j = { module = "com.vdurmont:semver4j", version.ref = "semver4j" } | ||
| 36 | +webrtc = { module = "io.github.webrtc-sdk:android-prefixed", version.ref = "webrtc" } | ||
| 37 | + | ||
| 38 | +androidx-annotation = { module = "androidx.annotation:annotation", version = "1.6.0" } | ||
| 39 | +androidx-activity-compose = { module = "androidx.activity:activity-compose", version = "1.7.1" } | ||
| 40 | +androidx-constraintlayout-compose = { module = "androidx.constraintlayout:constraintlayout-compose", version = "1.0.1" } | ||
| 41 | +auto-service-compiler = { module = "com.google.auto.service:auto-service", version.ref = "autoService" } | ||
| 42 | +auto-service-annotations = { module = "com.google.auto.service:auto-service-annotations", version.ref = "autoService" } | ||
| 43 | +coroutines-lib = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" } | ||
| 44 | +coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" } | ||
| 45 | +compose-bom = "androidx.compose:compose-bom:2023.04.01" | ||
| 46 | +timber = { module = "com.github.ajalt:timberkt", version = "1.5.1" } | ||
| 47 | + | ||
| 48 | +# Lint | ||
| 49 | +lint-lib = { module = "com.android.tools.lint:lint", version.ref = "lint" } | ||
| 50 | +lint-api = { module = "com.android.tools.lint:lint-api", version.ref = "lint" } | ||
| 51 | +lint-checks = { module = "com.android.tools.lint:lint-checks", version.ref = "lint" } | ||
| 52 | +lint-tests = { module = "com.android.tools.lint:lint-tests", version.ref = "lint" } | ||
| 53 | + | ||
| 54 | +# Test libs | ||
| 55 | +androidx-test-core = { module = "androidx.test:core", version = "1.5.0" } | ||
| 56 | +androidx-test-junit = { module = "androidx.test.ext:junit", version = "1.1.5" } | ||
| 57 | +espresso = { module = "androidx.test.espresso:espresso-core", version = "3.5.1" } | ||
| 58 | +junit = { module = "junit:junit", version.ref = "junit-lib" } | ||
| 59 | +junitJupiterApi = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junit-jupiter" } | ||
| 60 | +junitJupiterEngine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit-jupiter" } | ||
| 61 | +mockito-core = { module = "org.mockito:mockito-core", version = "4.0.0" } | ||
| 62 | +mockito-kotlin = { module = "org.mockito.kotlin:mockito-kotlin", version = "4.0.0" } | ||
| 63 | +robolectric = { module = "org.robolectric:robolectric", version = "4.10.2" } | ||
| 64 | +turbine = { module = "app.cash.turbine:turbine", version = "1.0.0" } | ||
| 65 | + | ||
| 66 | +[plugins] | ||
| 67 | + |
| @@ -77,9 +77,9 @@ protobuf { | @@ -77,9 +77,9 @@ protobuf { | ||
| 77 | protoc { | 77 | protoc { |
| 78 | // for apple m1, please add protoc_platform=osx-x86_64 in $HOME/.gradle/gradle.properties | 78 | // for apple m1, please add protoc_platform=osx-x86_64 in $HOME/.gradle/gradle.properties |
| 79 | if (project.hasProperty('protoc_platform')) { | 79 | if (project.hasProperty('protoc_platform')) { |
| 80 | - artifact = "com.google.protobuf:protoc:${versions.protobuf}:${protoc_platform}" | 80 | + artifact = "com.google.protobuf:protoc:${libs.versions.protobuf.get()}:${protoc_platform}" |
| 81 | } else { | 81 | } else { |
| 82 | - artifact = "com.google.protobuf:protoc:${versions.protobuf}" | 82 | + artifact = "com.google.protobuf:protoc:${libs.versions.protobuf.get()}" |
| 83 | } | 83 | } |
| 84 | } | 84 | } |
| 85 | 85 | ||
| @@ -141,35 +141,35 @@ dokkaHtml { | @@ -141,35 +141,35 @@ dokkaHtml { | ||
| 141 | dependencies { | 141 | dependencies { |
| 142 | //api fileTree(dir: 'libs', include: ['*.jar']) | 142 | //api fileTree(dir: 'libs', include: ['*.jar']) |
| 143 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | 143 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
| 144 | - implementation deps.coroutines.lib | ||
| 145 | - implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:${versions.serialization}" | ||
| 146 | - api 'io.github.webrtc-sdk:android-prefixed:114.5735.07' | ||
| 147 | - api "com.squareup.okhttp3:okhttp:4.12.0" | ||
| 148 | - api 'com.github.davidliu:audioswitch:89582c47c9a04c62f90aa5e57251af4800a62c9a' | ||
| 149 | - implementation deps.androidx.annotation | ||
| 150 | - implementation "androidx.core:core:${versions.androidx_core}" | ||
| 151 | - implementation "com.google.protobuf:protobuf-javalite:${versions.protobuf}" | 144 | + implementation libs.coroutines.lib |
| 145 | + implementation libs.kotlinx.serialization.json | ||
| 146 | + api libs.webrtc | ||
| 147 | + api libs.okhttp | ||
| 148 | + api libs.audioswitch | ||
| 149 | + implementation libs.androidx.annotation | ||
| 150 | + implementation libs.androidx.core | ||
| 151 | + implementation libs.protobuf.javalite | ||
| 152 | 152 | ||
| 153 | - implementation 'javax.sip:android-jain-sip-ri:1.3.0-91' | 153 | + implementation libs.android.jain.sip.ri |
| 154 | 154 | ||
| 155 | - implementation "com.google.dagger:dagger:${versions.dagger}" | ||
| 156 | - kapt "com.google.dagger:dagger-compiler:${versions.dagger}" | 155 | + implementation libs.dagger.lib |
| 156 | + kapt libs.dagger.compiler | ||
| 157 | 157 | ||
| 158 | - implementation deps.timber | ||
| 159 | - implementation 'com.vdurmont:semver4j:3.1.0' | 158 | + implementation libs.timber |
| 159 | + implementation libs.semver4j | ||
| 160 | 160 | ||
| 161 | lintChecks project(':livekit-lint') | 161 | lintChecks project(':livekit-lint') |
| 162 | lintPublish project(':livekit-lint') | 162 | lintPublish project(':livekit-lint') |
| 163 | 163 | ||
| 164 | - testImplementation deps.junit | ||
| 165 | - testImplementation deps.robolectric | ||
| 166 | - testImplementation deps.mockito.core | ||
| 167 | - testImplementation deps.mockito.kotlin | ||
| 168 | - testImplementation deps.androidx_test.core | ||
| 169 | - testImplementation deps.coroutines.test | ||
| 170 | - kaptTest "com.google.dagger:dagger-compiler:${versions.dagger}" | ||
| 171 | - androidTestImplementation deps.androidx_test.junit | ||
| 172 | - androidTestImplementation deps.espresso | 164 | + testImplementation libs.junit |
| 165 | + testImplementation libs.robolectric | ||
| 166 | + testImplementation libs.mockito.core | ||
| 167 | + testImplementation libs.mockito.kotlin | ||
| 168 | + testImplementation libs.androidx.test.core | ||
| 169 | + testImplementation libs.coroutines.test | ||
| 170 | + kaptTest libs.dagger.compiler | ||
| 171 | + androidTestImplementation libs.androidx.test.junit | ||
| 172 | + androidTestImplementation libs.espresso | ||
| 173 | } | 173 | } |
| 174 | 174 | ||
| 175 | apply from: rootProject.file('gradle/gradle-mvn-push.gradle') | 175 | apply from: rootProject.file('gradle/gradle-mvn-push.gradle') |
| @@ -18,23 +18,23 @@ dependencies { | @@ -18,23 +18,23 @@ dependencies { | ||
| 18 | 18 | ||
| 19 | compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | 19 | compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
| 20 | // used for lint rules | 20 | // used for lint rules |
| 21 | - compileOnly deps.lintApi | ||
| 22 | - compileOnly deps.lintChecks | ||
| 23 | - compileOnly deps.lintTests | 21 | + compileOnly libs.lint.api |
| 22 | + compileOnly libs.lint.checks | ||
| 23 | + compileOnly libs.lint.tests | ||
| 24 | 24 | ||
| 25 | // Handle creating manifests for lint checker | 25 | // Handle creating manifests for lint checker |
| 26 | - compileOnly deps.auto.serviceAnnotations | ||
| 27 | - kapt deps.auto.service | 26 | + compileOnly libs.auto.service.annotations |
| 27 | + kapt libs.auto.service.compiler | ||
| 28 | 28 | ||
| 29 | // test lint | 29 | // test lint |
| 30 | - testImplementation deps.lint | ||
| 31 | - testImplementation deps.lintTests | 30 | + testImplementation libs.lint.lib |
| 31 | + testImplementation libs.lint.tests | ||
| 32 | 32 | ||
| 33 | compileOnly "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" | 33 | compileOnly "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version" |
| 34 | // test runners | 34 | // test runners |
| 35 | - testImplementation deps.junit | ||
| 36 | - testImplementation deps.junitJupiterApi | ||
| 37 | - testRuntimeOnly deps.junitJupiterEngine | 35 | + testImplementation libs.junit |
| 36 | + testImplementation libs.junitJupiterApi | ||
| 37 | + testRuntimeOnly libs.junitJupiterEngine | ||
| 38 | } | 38 | } |
| 39 | test { | 39 | test { |
| 40 | environment "LINT_TEST_KOTLINC", "" | 40 | environment "LINT_TEST_KOTLINC", "" |
| @@ -38,14 +38,14 @@ dependencies { | @@ -38,14 +38,14 @@ dependencies { | ||
| 38 | // implementation "io.livekit:livekit-android:<version>" | 38 | // implementation "io.livekit:livekit-android:<version>" |
| 39 | implementation project(":livekit-android-sdk") | 39 | implementation project(":livekit-android-sdk") |
| 40 | 40 | ||
| 41 | - implementation "androidx.core:core-ktx:${versions.androidx_core}" | 41 | + implementation "androidx.core:core-ktx:1.10.1" |
| 42 | implementation 'androidx.appcompat:appcompat:1.4.2' | 42 | implementation 'androidx.appcompat:appcompat:1.4.2' |
| 43 | implementation "androidx.activity:activity-ktx:1.5.1" | 43 | implementation "androidx.activity:activity-ktx:1.5.1" |
| 44 | implementation 'androidx.fragment:fragment-ktx:1.5.1' | 44 | implementation 'androidx.fragment:fragment-ktx:1.5.1' |
| 45 | implementation "androidx.viewpager2:viewpager2:1.0.0" | 45 | implementation "androidx.viewpager2:viewpager2:1.0.0" |
| 46 | - implementation "androidx.lifecycle:lifecycle-runtime-ktx:${versions.androidx_lifecycle}" | ||
| 47 | - implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.androidx_lifecycle}" | ||
| 48 | - implementation "androidx.lifecycle:lifecycle-common-java8:${versions.androidx_lifecycle}" | 46 | + implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.5.1" |
| 47 | + implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1" | ||
| 48 | + implementation "androidx.lifecycle:lifecycle-common-java8:2.5.1" | ||
| 49 | implementation 'com.google.android.material:material:1.6.1' | 49 | implementation 'com.google.android.material:material:1.6.1' |
| 50 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4' | 50 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4' |
| 51 | 51 |
| @@ -58,15 +58,15 @@ dependencies { | @@ -58,15 +58,15 @@ dependencies { | ||
| 58 | // api "io.livekit:livekit-android:<version>" | 58 | // api "io.livekit:livekit-android:<version>" |
| 59 | api project(":livekit-android-sdk") | 59 | api project(":livekit-android-sdk") |
| 60 | 60 | ||
| 61 | - api "androidx.core:core-ktx:${versions.androidx_core}" | 61 | + api "androidx.core:core-ktx:${libs.versions.androidx.core.get()}" |
| 62 | api 'androidx.appcompat:appcompat:1.4.0' | 62 | api 'androidx.appcompat:appcompat:1.4.0' |
| 63 | api 'com.google.android.material:material:1.4.0' | 63 | api 'com.google.android.material:material:1.4.0' |
| 64 | - api deps.coroutines.lib | ||
| 65 | - api deps.timber | ||
| 66 | - api "androidx.lifecycle:lifecycle-runtime-ktx:${versions.androidx_lifecycle}" | ||
| 67 | - api "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.androidx_lifecycle}" | ||
| 68 | - api "androidx.lifecycle:lifecycle-common-java8:${versions.androidx_lifecycle}" | ||
| 69 | - api "com.google.protobuf:protobuf-javalite:${versions.protobuf}" | 64 | + api libs.coroutines.lib |
| 65 | + api libs.timber | ||
| 66 | + api "androidx.lifecycle:lifecycle-runtime-ktx:${libs.versions.androidx.lifecycle.get()}" | ||
| 67 | + api "androidx.lifecycle:lifecycle-viewmodel-ktx:${libs.versions.androidx.lifecycle.get()}" | ||
| 68 | + api "androidx.lifecycle:lifecycle-common-java8:${libs.versions.androidx.lifecycle.get()}" | ||
| 69 | + api libs.protobuf.javalite | ||
| 70 | api 'androidx.preference:preference-ktx:1.1.1' | 70 | api 'androidx.preference:preference-ktx:1.1.1' |
| 71 | // debugImplementation because LeakCanary should only run in debug builds. | 71 | // debugImplementation because LeakCanary should only run in debug builds. |
| 72 | debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.8.1' | 72 | debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.8.1' |
| @@ -56,8 +56,8 @@ dependencies { | @@ -56,8 +56,8 @@ dependencies { | ||
| 56 | 56 | ||
| 57 | implementation fileTree(dir: 'libs', include: ['*.jar']) | 57 | implementation fileTree(dir: 'libs', include: ['*.jar']) |
| 58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | 58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
| 59 | - implementation deps.coroutines.lib | ||
| 60 | - implementation "androidx.core:core-ktx:${versions.androidx_core}" | 59 | + implementation libs.coroutines.lib |
| 60 | + implementation libs.androidx.core | ||
| 61 | implementation 'androidx.appcompat:appcompat:1.3.1' | 61 | implementation 'androidx.appcompat:appcompat:1.3.1' |
| 62 | implementation 'com.google.android.material:material:1.4.0' | 62 | implementation 'com.google.android.material:material:1.4.0' |
| 63 | implementation "androidx.compose.ui:ui:$compose_version" | 63 | implementation "androidx.compose.ui:ui:$compose_version" |
| @@ -65,13 +65,13 @@ dependencies { | @@ -65,13 +65,13 @@ dependencies { | ||
| 65 | implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" | 65 | implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" |
| 66 | implementation "androidx.compose.runtime:runtime-livedata:$compose_version" | 66 | implementation "androidx.compose.runtime:runtime-livedata:$compose_version" |
| 67 | implementation "androidx.constraintlayout:constraintlayout-compose:1.0.0-rc01" | 67 | implementation "androidx.constraintlayout:constraintlayout-compose:1.0.0-rc01" |
| 68 | - implementation "androidx.lifecycle:lifecycle-runtime-ktx:${versions.androidx_lifecycle}" | ||
| 69 | - implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.androidx_lifecycle}" | ||
| 70 | - implementation "androidx.lifecycle:lifecycle-common-java8:${versions.androidx_lifecycle}" | ||
| 71 | - implementation 'androidx.activity:activity-compose:1.3.1' | 68 | + implementation "androidx.lifecycle:lifecycle-runtime-ktx:${libs.versions.androidx.lifecycle.get()}" |
| 69 | + implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:${libs.versions.androidx.lifecycle.get()}" | ||
| 70 | + implementation "androidx.lifecycle:lifecycle-common-java8:${libs.versions.androidx.lifecycle.get()}" | ||
| 71 | + implementation libs.androidx.activity.compose | ||
| 72 | implementation 'com.google.accompanist:accompanist-pager:0.19.0' | 72 | implementation 'com.google.accompanist:accompanist-pager:0.19.0' |
| 73 | implementation 'com.google.accompanist:accompanist-pager-indicators:0.19.0' | 73 | implementation 'com.google.accompanist:accompanist-pager-indicators:0.19.0' |
| 74 | - implementation deps.timber | 74 | + implementation libs.timber |
| 75 | testImplementation 'junit:junit:4.+' | 75 | testImplementation 'junit:junit:4.+' |
| 76 | androidTestImplementation 'androidx.test.ext:junit:1.1.3' | 76 | androidTestImplementation 'androidx.test.ext:junit:1.1.3' |
| 77 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' | 77 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' |
| @@ -41,20 +41,20 @@ dependencies { | @@ -41,20 +41,20 @@ dependencies { | ||
| 41 | 41 | ||
| 42 | implementation fileTree(dir: 'libs', include: ['*.jar']) | 42 | implementation fileTree(dir: 'libs', include: ['*.jar']) |
| 43 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | 43 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
| 44 | - implementation deps.coroutines.lib | 44 | + implementation libs.coroutines.lib |
| 45 | implementation 'com.google.android.material:material:1.6.1' | 45 | implementation 'com.google.android.material:material:1.6.1' |
| 46 | implementation 'androidx.appcompat:appcompat:1.4.2' | 46 | implementation 'androidx.appcompat:appcompat:1.4.2' |
| 47 | - implementation "androidx.core:core-ktx:${versions.androidx_core}" | 47 | + implementation libs.androidx.core |
| 48 | implementation "androidx.activity:activity-ktx:1.5.1" | 48 | implementation "androidx.activity:activity-ktx:1.5.1" |
| 49 | implementation 'androidx.fragment:fragment-ktx:1.5.1' | 49 | implementation 'androidx.fragment:fragment-ktx:1.5.1' |
| 50 | implementation "androidx.viewpager2:viewpager2:1.0.0" | 50 | implementation "androidx.viewpager2:viewpager2:1.0.0" |
| 51 | - implementation "androidx.lifecycle:lifecycle-runtime-ktx:${versions.androidx_lifecycle}" | ||
| 52 | - implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.androidx_lifecycle}" | ||
| 53 | - implementation "androidx.lifecycle:lifecycle-common-java8:${versions.androidx_lifecycle}" | 51 | + implementation libs.androidx.lifecycle.runtime.ktx |
| 52 | + implementation libs.androidx.lifecycle.viewmodel.ktx | ||
| 53 | + implementation libs.androidx.lifecycle.common.java8 | ||
| 54 | implementation 'com.google.android.material:material:1.6.1' | 54 | implementation 'com.google.android.material:material:1.6.1' |
| 55 | - implementation "com.github.lisawray.groupie:groupie:${versions.groupie}" | ||
| 56 | - implementation "com.github.lisawray.groupie:groupie-viewbinding:${versions.groupie}" | ||
| 57 | - implementation deps.timber | 55 | + implementation libs.groupie |
| 56 | + implementation libs.groupie.viewbinding | ||
| 57 | + implementation libs.timber | ||
| 58 | testImplementation 'junit:junit:4.12' | 58 | testImplementation 'junit:junit:4.12' |
| 59 | androidTestImplementation 'androidx.test.ext:junit:1.1.2' | 59 | androidTestImplementation 'androidx.test.ext:junit:1.1.2' |
| 60 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' | 60 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' |
| @@ -77,8 +77,8 @@ android { | @@ -77,8 +77,8 @@ android { | ||
| 77 | dependencies { | 77 | dependencies { |
| 78 | implementation fileTree(dir: 'libs', include: ['*.jar']) | 78 | implementation fileTree(dir: 'libs', include: ['*.jar']) |
| 79 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | 79 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
| 80 | - implementation deps.coroutines.lib | ||
| 81 | - implementation "androidx.core:core-ktx:${versions.androidx_core}" | 80 | + implementation libs.coroutines.lib |
| 81 | + implementation "androidx.core:core-ktx:${libs.versions.androidx.core.get()}" | ||
| 82 | implementation 'androidx.appcompat:appcompat:1.3.1' | 82 | implementation 'androidx.appcompat:appcompat:1.3.1' |
| 83 | implementation 'com.google.android.material:material:1.4.0' | 83 | implementation 'com.google.android.material:material:1.4.0' |
| 84 | implementation "androidx.compose.ui:ui:$compose_version" | 84 | implementation "androidx.compose.ui:ui:$compose_version" |
| @@ -86,13 +86,13 @@ dependencies { | @@ -86,13 +86,13 @@ dependencies { | ||
| 86 | implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" | 86 | implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" |
| 87 | implementation "androidx.compose.runtime:runtime-livedata:$compose_version" | 87 | implementation "androidx.compose.runtime:runtime-livedata:$compose_version" |
| 88 | implementation "androidx.constraintlayout:constraintlayout-compose:1.0.0-rc01" | 88 | implementation "androidx.constraintlayout:constraintlayout-compose:1.0.0-rc01" |
| 89 | - implementation "androidx.lifecycle:lifecycle-runtime-ktx:${versions.androidx_lifecycle}" | ||
| 90 | - implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.androidx_lifecycle}" | ||
| 91 | - implementation "androidx.lifecycle:lifecycle-common-java8:${versions.androidx_lifecycle}" | 89 | + implementation "androidx.lifecycle:lifecycle-runtime-ktx:${libs.versions.androidx.lifecycle.get()}" |
| 90 | + implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:${libs.versions.androidx.lifecycle.get()}" | ||
| 91 | + implementation "androidx.lifecycle:lifecycle-common-java8:${libs.versions.androidx.lifecycle.get()}" | ||
| 92 | implementation 'androidx.activity:activity-compose:1.3.1' | 92 | implementation 'androidx.activity:activity-compose:1.3.1' |
| 93 | implementation 'com.google.accompanist:accompanist-pager:0.19.0' | 93 | implementation 'com.google.accompanist:accompanist-pager:0.19.0' |
| 94 | implementation 'com.google.accompanist:accompanist-pager-indicators:0.19.0' | 94 | implementation 'com.google.accompanist:accompanist-pager-indicators:0.19.0' |
| 95 | - implementation deps.timber | 95 | + implementation libs.timber |
| 96 | implementation project(":sample-app-common") | 96 | implementation project(":sample-app-common") |
| 97 | implementation project(":livekit-android-sdk") | 97 | implementation project(":livekit-android-sdk") |
| 98 | testImplementation 'junit:junit:4.+' | 98 | testImplementation 'junit:junit:4.+' |
-
请 注册 或 登录 后发表评论