From 916cce7f4ca046bcef68b13ddedddbf76dd8d98a Mon Sep 17 00:00:00 2001 From: LoxiaLiSA Date: Wed, 4 Dec 2024 15:40:08 +0800 Subject: [PATCH] aa --- app/src/main/java/ceui/pixiv/ui/common/DataSource.kt | 1 + build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/ceui/pixiv/ui/common/DataSource.kt b/app/src/main/java/ceui/pixiv/ui/common/DataSource.kt index 13a0edab..3c934791 100644 --- a/app/src/main/java/ceui/pixiv/ui/common/DataSource.kt +++ b/app/src/main/java/ceui/pixiv/ui/common/DataSource.kt @@ -73,6 +73,7 @@ open class DataSource>( val responseJson = responseBody.string() gson.fromJson(responseJson, responseClass) } + responseClass = response::class.java as Class _nextPageUrl = response.nextPageUrl _liveNextUrl.value = response.nextPageUrl if (response.displayList.isNotEmpty()) { diff --git a/build.gradle b/build.gradle index 05b6be71..9f0f8974 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:8.5.2' + classpath 'com.android.tools.build:gradle:8.7.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.25" classpath 'com.google.gms:google-services:4.4.2' classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.2' diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 4dbfcce0..9cba351b 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Sun Jul 28 19:06:18 CST 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists