Explorar el Código

Updated dependencies

Vadik Sirekanyan hace 2 años
padre
commit
e7bfaec34a
Se han modificado 5 ficheros con 33 adiciones y 23 borrados
  1. 20 15
      app/build.gradle
  2. 6 5
      build.gradle
  3. BIN
      gradle/wrapper/gradle-wrapper.jar
  4. 3 2
      gradle/wrapper/gradle-wrapper.properties
  5. 4 1
      gradlew

+ 20 - 15
app/build.gradle

@@ -1,29 +1,24 @@
 plugins {
     id 'com.android.application'
     id 'org.jetbrains.kotlin.android'
-    id 'org.jetbrains.kotlin.kapt'
     id 'org.jetbrains.kotlin.plugin.serialization'
+    id 'com.google.devtools.ksp'
     id 'org.sirekanyan.version-checker'
 }
 
 android {
     namespace "com.sirekanian.spacetime"
-    compileSdk 33
+    compileSdk 34
     defaultConfig {
         applicationId "com.sirekanian.spacetime"
         minSdk 21
-        targetSdk 33
+        targetSdk 34
         versionCode appVersionCode as int
         versionName appVersionName
         archivesBaseName = "$applicationId-$versionName-$versionCode"
         vectorDrawables {
             useSupportLibrary true
         }
-        javaCompileOptions {
-            annotationProcessorOptions {
-                arguments += ["room.schemaLocation": "$projectDir/schemas".toString()]
-            }
-        }
     }
     buildTypes {
         debug {
@@ -63,25 +58,35 @@ android {
     }
 }
 
+ksp {
+    arg('room.schemaLocation', "$projectDir/schemas")
+}
+
 dependencies {
 
     // compose
+    // noinspection GradleDependency https://issuetracker.google.com/issues/294562502
     implementation "androidx.compose.material:material:$composeLibraryVersion"
-    implementation "androidx.activity:activity-compose:1.7.1"
+    implementation "androidx.activity:activity-compose:1.7.2"
 
     // room
-    implementation "androidx.room:room-ktx:2.5.1"
-    kapt "androidx.room:room-compiler:2.5.1"
+    implementation "androidx.room:room-ktx:2.5.2"
+    ksp "androidx.room:room-compiler:2.5.2"
 
     // coil
-    implementation "io.coil-kt:coil-compose:2.3.0"
+    implementation "io.coil-kt:coil-compose:2.4.0"
 
     // datetime
     implementation 'org.jetbrains.kotlinx:kotlinx-datetime:0.4.0'
 
     // ktor
-    implementation 'io.ktor:ktor-client-android:2.3.0'
-    implementation 'io.ktor:ktor-client-content-negotiation:2.3.0'
-    implementation 'io.ktor:ktor-serialization-kotlinx-json:2.3.0'
+    implementation 'io.ktor:ktor-client-android:2.3.3'
+    implementation 'io.ktor:ktor-client-content-negotiation:2.3.3'
+    implementation 'io.ktor:ktor-serialization-kotlinx-json:2.3.3'
+
+}
 
+versionCheckerOptions {
+    // https://issuetracker.google.com/issues/294562502
+    lessThan("androidx.compose.material:material", "1.5.0")
 }

+ 6 - 5
build.gradle

@@ -1,9 +1,9 @@
 buildscript {
     ext {
-        androidPluginVersion = '8.0.0'
-        kotlinLanguageVersion = '1.8.20'
-        composeCompilerVersion = '1.4.6'
-        composeLibraryVersion = '1.4.2'
+        androidPluginVersion = '8.1.0'
+        kotlinLanguageVersion = '1.9.0'
+        composeCompilerVersion = '1.5.1'
+        composeLibraryVersion = '1.4.3'
     }
 }
 
@@ -11,7 +11,8 @@ plugins {
     id 'com.android.application' version "$androidPluginVersion" apply false
     id 'org.jetbrains.kotlin.android' version "$kotlinLanguageVersion" apply false
     id 'org.jetbrains.kotlin.plugin.serialization' version "$kotlinLanguageVersion" apply false
-    id 'org.sirekanyan.version-checker' version "1.0.3" apply false
+    id 'com.google.devtools.ksp' version "$kotlinLanguageVersion-1.0.13" apply false
+    id 'org.sirekanyan.version-checker' version "1.0.7" apply false
 }
 
 task clean(type: Delete) {

BIN
gradle/wrapper/gradle-wrapper.jar


+ 3 - 2
gradle/wrapper/gradle-wrapper.properties

@@ -1,7 +1,8 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionSha256Sum=e111cb9948407e26351227dabce49822fb88c37ee72f1d1582a69c68af2e702f
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
+distributionSha256Sum=03ec176d388f2aa99defcadc3ac6adf8dd2bce5145a129659537c0874dea5ad1
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
 networkTimeout=10000
+validateDistributionUrl=true
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists

+ 4 - 1
gradlew

@@ -130,10 +130,13 @@ location of your Java installation."
     fi
 else
     JAVACMD=java
-    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+    if ! command -v java >/dev/null 2>&1
+    then
+        die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
 
 Please set the JAVA_HOME variable in your environment to match the
 location of your Java installation."
+    fi
 fi
 
 # Increase the maximum file descriptors if we can.