Update some dependencies

- Add dependency plugin
- Update gradle wrapper version
- Update build script to remove deprecations
This commit is contained in:
Ryan Harg 2021-08-06 09:34:09 +02:00 committed by Ryan Harg
parent 05f72d2f77
commit ca615d51aa
4 changed files with 17 additions and 7 deletions

View File

@ -10,6 +10,7 @@ plugins {
id("com.gladed.androidgitversion") version "0.4.14"
id("com.github.triplet.play") version "2.4.2"
id("de.mobilej.unmock")
id("com.github.ben-manes.versions")
jacoco
id("com.vanniktech.android.junit.jacoco")
}
@ -48,21 +49,24 @@ android {
viewBinding = true
}
lintOptions {
lint {
disable("MissingTranslation")
}
compileSdkVersion(30)
defaultConfig {
applicationId = "audio.funkwhale.ffa"
minSdkVersion(24)
targetSdkVersion(30)
applicationId = "audio.funkwhale.ffa"
versionCode = androidGitVersion.code()
versionName = androidGitVersion.name()
minSdk = 24
targetSdk = 30
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
manifestPlaceholders["appAuthRedirectScheme"] = "urn"
}
@ -154,7 +158,7 @@ dependencies {
implementation("androidx.appcompat:appcompat:1.3.1")
implementation("androidx.core:core-ktx:1.6.0")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.4.0-alpha02")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.4.0-alpha03")
implementation("androidx.coordinatorlayout:coordinatorlayout:1.1.0")
implementation("androidx.preference:preference-ktx:1.1.1")
implementation("androidx.recyclerview:recyclerview:1.2.1")
@ -165,6 +169,7 @@ dependencies {
implementation("com.google.android.exoplayer:exoplayer-core:${Versions.exoPlayer}")
implementation("com.google.android.exoplayer:exoplayer-ui:${Versions.exoPlayer}")
implementation("com.google.android.exoplayer:extension-mediasession:${Versions.exoPlayer}")
implementation("com.github.PaulWoitaschek.ExoPlayer-Extensions:extension-opus:${Versions.exoPlayerExtensions}") {
isTransitive = false
}
@ -181,11 +186,13 @@ dependencies {
implementation("com.squareup.picasso:picasso:2.71828")
implementation("jp.wasabeef:picasso-transformations:2.4.0")
implementation("net.openid:appauth:${Versions.openIdAppAuth}")
testImplementation("junit:junit:4.13.2")
testImplementation("io.mockk:mockk:1.12.0")
androidTestImplementation("io.mockk:mockk-android:${Versions.mockk}")
testImplementation("androidx.test:core:1.4.0")
testImplementation("io.strikt:strikt-core:${Versions.strikt}")
androidTestImplementation("io.mockk:mockk-android:${Versions.mockk}")
}
project.afterEvaluate {

View File

@ -4,6 +4,7 @@ buildscript {
google()
mavenCentral()
jcenter()
gradlePluginPortal()
}
dependencies {
@ -11,6 +12,7 @@ buildscript {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}")
classpath("com.github.bjoernq:unmockplugin:${Versions.unmock}")
classpath("com.vanniktech:gradle-android-junit-jacoco-plugin:${Versions.gradleAndroidJUnitJacocoPlugin}")
classpath("com.github.ben-manes:gradle-versions-plugin:${Versions.gradleDependencyPlugin}")
}
}

View File

@ -4,6 +4,7 @@ object Versions {
const val unmock = "0.7.8"
const val androidGradlePlugin = "7.0.0"
const val gradleAndroidJUnitJacocoPlugin = "0.16.0"
const val gradleDependencyPlugin = "0.38.0"
const val exoPlayer = "2.11.8"
const val exoPlayerExtensions = "2.11.4"

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists