Skip to content

Commit

Permalink
chore(dependencies): clean dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Jul 17, 2024
1 parent 466a0f7 commit f73059f
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 44 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import org.jetbrains.dokka.gradle.DokkaTaskPartial
import java.net.URL

plugins {
alias(libs.plugins.androidApplication).apply(false)
alias(libs.plugins.jetbrainsKotlinAndroid).apply(false)
alias(libs.plugins.androidLibrary).apply(false)
alias(libs.plugins.android.application).apply(false)
alias(libs.plugins.kotlin.android).apply(false)
alias(libs.plugins.android.library).apply(false)
alias(libs.plugins.dokka)
}

Expand Down
25 changes: 11 additions & 14 deletions example/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
alias(libs.plugins.jetbrainsKotlinAndroid)
alias(libs.plugins.androidApplication)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.android.application)
}

android {
Expand Down Expand Up @@ -35,25 +35,22 @@ android {
buildFeatures {
viewBinding = true
}

namespace = "io.github.thibaultbee.srtdroid.example"
}

dependencies {
implementation(project(":srtdroid-ktx"))
implementation(libs.kotlin.stdlib.jdk7)
implementation(libs.appcompat)
implementation(libs.core.ktx)
implementation(libs.constraintlayout)
implementation(libs.multidex)
implementation(libs.preference.ktx)
implementation(libs.navigation.fragment.ktx)
implementation(libs.navigation.ui.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.constraintlayout)
implementation(libs.androidx.multidex)
implementation(libs.androidx.preference.ktx)
implementation(libs.androidx.navigation.fragment.ktx)
implementation(libs.androidx.navigation.ui.ktx)
implementation(libs.guava)

testImplementation(libs.junit)

androidTestImplementation(libs.ext.junit)
androidTestImplementation(libs.espresso.core)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
}

29 changes: 14 additions & 15 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,23 @@ preferenceKtx = "1.2.1"
runner = "1.6.1"

[libraries]
appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "constraintlayout" }
core-ktx = { module = "androidx.core:core-ktx", version.ref = "coreKtx" }
espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espressoCore" }
ext-junit = { module = "androidx.test.ext:junit", version.ref = "androidxJunit" }
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" }
androidx-constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "constraintlayout" }
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "coreKtx" }
androidx-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espressoCore" }
androidx-junit = { module = "androidx.test.ext:junit", version.ref = "androidxJunit" }
androidx-multidex = { module = "androidx.multidex:multidex", version.ref = "multidex" }
androidx-navigation-fragment-ktx = { module = "androidx.navigation:navigation-fragment-ktx", version.ref = "navigationFragmentKtx" }
androidx-navigation-ui-ktx = { module = "androidx.navigation:navigation-ui-ktx", version.ref = "navigationFragmentKtx" }
androidx-preference-ktx = { module = "androidx.preference:preference-ktx", version.ref = "preferenceKtx" }
androidx-rules = { module = "androidx.test:rules", version.ref = "runner" }
androidx-runner = { module = "androidx.test:runner", version.ref = "runner" }
guava = { module = "com.google.guava:guava", version.ref = "guava" }
junit = { module = "junit:junit", version.ref = "junit" }
kotlin-stdlib-jdk7 = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk7", version.ref = "kotlin" }
multidex = { module = "androidx.multidex:multidex", version.ref = "multidex" }
navigation-fragment-ktx = { module = "androidx.navigation:navigation-fragment-ktx", version.ref = "navigationFragmentKtx" }
navigation-ui-ktx = { module = "androidx.navigation:navigation-ui-ktx", version.ref = "navigationFragmentKtx" }
preference-ktx = { module = "androidx.preference:preference-ktx", version.ref = "preferenceKtx" }
rules = { module = "androidx.test:rules", version.ref = "runner" }
runner = { module = "androidx.test:runner", version.ref = "runner" }

[plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" }
jetbrainsKotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
androidLibrary = { id = "com.android.library", version.ref = "agp" }
android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }

13 changes: 6 additions & 7 deletions srtdroid-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
alias(libs.plugins.jetbrainsKotlinAndroid)
alias(libs.plugins.androidLibrary)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.android.library)
}

description = "Secure Reliable Transport (SRT) Protocol for Android"
Expand Down Expand Up @@ -47,14 +47,13 @@ android {
}

dependencies {
implementation(libs.kotlin.stdlib.jdk7)
implementation(libs.core.ktx)
implementation(libs.androidx.core.ktx)

testImplementation(libs.junit)

androidTestImplementation(libs.junit)
androidTestImplementation(libs.runner)
androidTestImplementation(libs.rules)
androidTestImplementation(libs.espresso.core)
androidTestImplementation(libs.androidx.runner)
androidTestImplementation(libs.androidx.rules)
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(libs.guava)
}
10 changes: 5 additions & 5 deletions srtdroid-ktx/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
alias(libs.plugins.jetbrainsKotlinAndroid)
alias(libs.plugins.androidLibrary)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.android.library)
}

description = "Secure Reliable Transport (SRT) Protocol with Kotlin coroutines for Android"
Expand Down Expand Up @@ -43,11 +43,11 @@ android {
dependencies {
api(project(":srtdroid-core"))

implementation(libs.core.ktx)
implementation(libs.androidx.core.ktx)

testImplementation(libs.junit)

androidTestImplementation(libs.ext.junit)
androidTestImplementation(libs.espresso.core)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
}

0 comments on commit f73059f

Please sign in to comment.