Skip to content

Commit a17a2b7

Browse files
committed
Update target version, gradle version, and dependencies
1 parent 7e93b6d commit a17a2b7

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

app/src/main/kotlin/com/skydoves/pokedex/binding/ViewBinding.kt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import android.graphics.Color
2020
import android.graphics.Typeface
2121
import android.graphics.drawable.BitmapDrawable
2222
import android.graphics.drawable.Drawable
23+
import android.graphics.drawable.GradientDrawable
2324
import android.view.Gravity
2425
import android.view.View
2526
import android.view.WindowManager
@@ -41,9 +42,6 @@ import com.skydoves.pokedex.core.model.PokemonInfo
4142
import com.skydoves.pokedex.utils.PokemonTypeUtils
4243
import com.skydoves.pokedex.utils.SpacesItemDecoration
4344
import com.skydoves.progressview.ProgressView
44-
import com.skydoves.rainbow.Rainbow
45-
import com.skydoves.rainbow.RainbowOrientation
46-
import com.skydoves.rainbow.color
4745
import com.skydoves.whatif.whatIfNotNullOrEmpty
4846

4947
object ViewBinding {
@@ -126,10 +124,11 @@ object ViewBinding {
126124
val domain = palette?.dominantSwatch?.rgb
127125
if (domain != null) {
128126
if (light != null) {
129-
Rainbow(paletteView).palette {
130-
+color(domain)
131-
+color(light)
132-
}.background(orientation = RainbowOrientation.TOP_BOTTOM)
127+
val gradientDrawable = GradientDrawable(
128+
GradientDrawable.Orientation.BOTTOM_TOP,
129+
intArrayOf(light, domain),
130+
)
131+
paletteView.background = gradientDrawable
133132
} else {
134133
paletteView.setBackgroundColor(domain)
135134
}

gradle/libs.versions.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[versions]
2-
targetSdk = "34"
2+
targetSdk = "35"
33
jvmBytecode = "17"
44
agp = "8.9.0"
5-
kotlin = "1.9.25"
6-
ksp = "1.9.25-1.0.20"
5+
kotlin = "2.1.10"
6+
ksp = "2.1.10-1.0.31"
77
jvmTarget = "17"
88
material = "1.12.0"
99
androidxActivity = "1.7.0"
@@ -14,7 +14,6 @@ androidxArchCore = "2.2.0"
1414
androidXStartup = "1.2.0"
1515
androidxPalette = "1.0.0"
1616
bindables = "1.2.0"
17-
balloon="1.6.9"
1817
hilt = "2.55"
1918
retrofit = "2.11.0"
2019
okHttp = "4.12.0"

gradle/wrapper/gradle-wrapper.jar

-122 Bytes
Binary file not shown.

gradlew

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ done
8686
# shellcheck disable=SC2034
8787
APP_BASE_NAME=${0##*/}
8888
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90+
' "$PWD" ) || exit
9091

9192
# Use the maximum available, or set MAX_FD != -1 to use that value.
9293
MAX_FD=maximum
@@ -205,7 +206,7 @@ fi
205206
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
206207

207208
# Collect all arguments for the java command:
208-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
209+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
209210
# and any embedded shellness will be escaped.
210211
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
211212
# treated as '${Hostname}' itself on the command line.

settings.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
1818

19+
20+
1921
pluginManagement {
2022
repositories {
2123
// fetch plugins from google maven (https://maven.google.com)
@@ -65,7 +67,7 @@ plugins {
6567

6668
android {
6769
minSdk = 23
68-
compileSdk = 34
70+
compileSdk = 35
6971
}
7072

7173
dependencyResolutionManagement {

0 commit comments

Comments
 (0)