Skip to content

Commit 80a72f6

Browse files
committed
Dependency Updates
1 parent 0189f70 commit 80a72f6

File tree

9 files changed

+36
-36
lines changed

9 files changed

+36
-36
lines changed

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-24.04
1212
steps:
1313
- name: "Checkout"
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v5
1515
- name: "Setup JDK"
16-
uses: actions/setup-java@v2
16+
uses: actions/setup-java@v4
1717
with:
1818
distribution: 'temurin'
19-
java-version: '17'
19+
java-version: '21'
2020
cache: 'gradle'
2121
- name: "Build & Test"
2222
run: ./gradlew clean assembleDebug testDebugUnitTest

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ on:
77
jobs:
88
publish:
99
name: "Release"
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-24.04
1111
steps:
1212
- name: "Checkout"
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v5
1414
- name: "Setup JDK"
15-
uses: actions/setup-java@v2
15+
uses: actions/setup-java@v4
1616
with:
1717
distribution: 'temurin'
18-
java-version: '17'
18+
java-version: '21'
1919
cache: 'gradle'
2020
- name: "Build & Release"
2121
run: ./gradlew clean library:assembleRelease androidJavaDocJar androidSourcesJar generatePomFileForNexusPublication publishNexusPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository

demo/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ dependencies {
2323

2424
android {
2525
namespace 'com.devbrackets.android.datastoredemo'
26-
compileSdk 35
26+
compileSdk = 36
2727

2828
defaultConfig {
2929
applicationId "com.devbrackets.android.datastoredemo"
3030
minSdkVersion 23
31-
targetSdkVersion 35
31+
targetSdkVersion 36
3232
versionCode 1
3333
versionName "1.0.0"
3434
}

gradle/libs.versions.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
[versions]
2-
activityCompose = "1.9.3"
3-
androidGradlePlugin = "8.7.3"
4-
appcompat = "1.7.0"
5-
coreKtx = "1.15.0"
6-
datastorePreferences = "1.1.1"
2+
activityCompose = "1.10.1"
3+
androidGradlePlugin = "8.12.0"
4+
appcompat = "1.7.1"
5+
coreKtx = "1.17.0"
6+
datastorePreferences = "1.1.7"
77
junit = "4.13.2"
8-
kotlin = "2.0.20"
9-
material = "1.7.6"
10-
navigationCompose = "2.8.5"
11-
nexusPublish = "1.1.0"
12-
robolectric = "4.13"
13-
composeUi = "1.7.6"
8+
kotlin = "2.2.10"
9+
navigationCompose = "2.9.3"
10+
nexusPublish = "2.0.0"
11+
robolectric = "4.15.1"
12+
composeUi = "1.9.0"
1413

1514
[libraries]
1615
activity-compose = { module = "androidx.activity:activity-compose", version.ref = "activityCompose" }
@@ -21,8 +20,8 @@ datastore-preferences = { module = "androidx.datastore:datastore-preferences", v
2120
junit = { module = "junit:junit", version.ref = "junit" }
2221
kotlin-gradle = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
2322
kotlin-stdlib-jdk7 = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk7", version.ref = "kotlin" }
24-
material = { module = "androidx.compose.material:material", version.ref = "material" }
25-
material-icons-core = { module = "androidx.compose.material:material-icons-core", version.ref = "material" }
23+
material = { module = "androidx.compose.material:material", version = "1.9.0" }
24+
material-icons-core = { module = "androidx.compose.material:material-icons-core", version = "1.7.8" }
2625
navigation-compose = { module = "androidx.navigation:navigation-compose", version.ref = "navigationCompose" }
2726
robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" }
2827
ui = { module = "androidx.compose.ui:ui", version.ref = "composeUi" }
@@ -35,4 +34,5 @@ android-library = { id = "com.android.library", version.ref = "androidGradlePlug
3534
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
3635
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
3736
nexus-publish = { id = "io.github.gradle-nexus.publish-plugin", version.ref = "nexusPublish" }
38-
37+
maven-publish = { id = "maven-publish" }
38+
signing = { id = "signing" }

gradle/release/publish.gradle

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11

2-
apply plugin: "maven-publish"
3-
apply plugin: "signing"
4-
5-
task androidJavaDoc(type: Javadoc) {
2+
tasks.register('androidJavaDoc', Javadoc) {
63
source = android.sourceSets.main.java.srcDirs
74
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
85
options.encoding "UTF-8"
@@ -12,12 +9,13 @@ task androidJavaDoc(type: Javadoc) {
129
failOnError false
1310
}
1411

15-
task androidJavaDocJar(type: Jar, dependsOn: androidJavaDoc) {
12+
tasks.register('androidJavaDocJar', Jar) {
13+
dependsOn androidJavaDoc
1614
archiveClassifier.set('javadoc')
1715
from androidJavaDoc.destinationDir
1816
}
1917

20-
task androidSourcesJar(type: Jar) {
18+
tasks.register('androidSourcesJar', Jar) {
2119
archiveClassifier.set('sources')
2220
from android.sourceSets.main.java.srcDirs
2321
}
@@ -26,6 +24,7 @@ task androidSourcesJar(type: Jar) {
2624
* Helper to add dependencies to the POM node. This is needed during manual construction
2725
* of the dependencies block
2826
*/
27+
@SuppressWarnings('UnnecessaryQualifiedReference')
2928
static def addPomDependency(groovy.util.Node dependenciesNode, Dependency dependency, String dependencyScope) {
3029
// Ignore incomplete dependencies
3130
if (dependency.name == null || dependency.name == 'unspecified' || dependency.group == null || dependency.version == null) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

library/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
plugins {
22
alias libs.plugins.android.library
33
alias libs.plugins.kotlin.android
4+
alias libs.plugins.maven.publish
5+
alias libs.plugins.signing
46
}
57

68
afterEvaluate {
@@ -16,13 +18,13 @@ dependencies {
1618
}
1719

1820
android {
19-
compileSdk 35
21+
compileSdk = 36
2022

2123
namespace 'com.devbrackets.android.datastore'
2224

2325
defaultConfig {
2426
minSdkVersion 23
25-
targetSdkVersion 35
27+
targetSdkVersion 36
2628
}
2729

2830
sourceSets {

library/src/main/kotlin/com/devbrackets/android/datastore/converter/core/EnumValueConverter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import kotlin.reflect.KClass
1010
*/
1111
class EnumValueConverter<E: Enum<E>, T: E?>(
1212
private val enumClass: KClass<E>,
13-
private val errorHandler: ErrorHandler<E, T> = DefaultErrorHandler<E,T>()
13+
private val errorHandler: ErrorHandler<E, T> = DefaultErrorHandler()
1414
): ValueConverter<T, String?> {
1515
override fun toConverted(originalValue: T): String? {
1616
return originalValue?.name

libraryInfo.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ GROUP_ID = com.devbrackets.android
33

44
VERSION_MAJOR = 1
55
VERSION_MINOR = 0
6-
VERSION_PATCH = 0
7-
VERSION_PRE_RELEASE = preview01
6+
VERSION_PATCH = 0

0 commit comments

Comments
 (0)