Skip to content

Commit ee4b01a

Browse files
authored
Merge pull request #635 from NordicSemiconductor/dependencies
Dependencies and build scripts updated
2 parents f5fee6f + bdc5ccc commit ee4b01a

File tree

7 files changed

+29
-29
lines changed

7 files changed

+29
-29
lines changed

.github/workflows/deploy-all.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
generateReadme:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
1212
with:
1313
ref: main
1414
fetch-depth: 0
@@ -28,11 +28,11 @@ jobs:
2828
needs: generateReadme
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@v5
3232
with:
3333
ref: main
3434
fetch-depth: 0
35-
- uses: actions/setup-java@v4
35+
- uses: actions/setup-java@v5
3636
with:
3737
distribution: 'corretto'
3838
java-version: '17'

.github/workflows/deploy-to-nexus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jobs:
55
deployAarsToNexus:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v4
8+
- uses: actions/checkout@v5
99
with:
1010
fetch-depth: 0
11-
- uses: actions/setup-java@v4
11+
- uses: actions/setup-java@v5
1212
with:
1313
distribution: 'corretto'
1414
java-version: '17'

.github/workflows/generate-readme.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
generateReadme:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v4
8+
- uses: actions/checkout@v5
99
with:
1010
fetch-depth: 0
1111
- shell: bash

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
buildscript {
22
// https://kotlinlang.org/docs/releases.html#release-details
3-
ext.kotlin_version = '2.2.10'
3+
ext.kotlin_version = '2.2.20'
44
// https://plugins.gradle.org/plugin/io.github.gradle-nexus.publish-plugin
55
ext.gradle_nexus_publish_plugin = '2.0.0'
66

@@ -11,7 +11,7 @@ buildscript {
1111
maven { url "https://plugins.gradle.org/m2/" }
1212
}
1313
dependencies {
14-
classpath 'com.android.tools.build:gradle:8.12.2'
14+
classpath 'com.android.tools.build:gradle:8.13.0'
1515
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1616
classpath "org.jetbrains.kotlin:compose-compiler-gradle-plugin:$kotlin_version"
1717
classpath "com.google.dagger:hilt-android-gradle-plugin:2.57.1"

examples/trivia/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ dependencies {
5959
// Dagger and Hilt
6060
implementation 'com.google.dagger:hilt-android:2.57.1'
6161
kapt 'com.google.dagger:hilt-compiler:2.57.1'
62-
implementation 'androidx.hilt:hilt-navigation-compose:1.2.0'
63-
kapt 'androidx.hilt:hilt-compiler:1.2.0'
62+
implementation 'androidx.hilt:hilt-navigation-compose:1.3.0'
63+
kapt 'androidx.hilt:hilt-compiler:1.3.0'
6464

6565
// Nordic theme
6666
implementation 'no.nordicsemi.android.common:ui:2.5.2'
@@ -69,11 +69,11 @@ dependencies {
6969
implementation 'no.nordicsemi.android.common:navigation:2.5.2'
7070

7171
// Jetpack Compose bom
72-
implementation platform('androidx.compose:compose-bom:2025.08.01')
72+
implementation platform('androidx.compose:compose-bom:2025.09.00')
7373

7474
// Text, color, Surface
7575
implementation "androidx.compose.material3:material3"
76-
implementation 'androidx.activity:activity-compose:1.10.1'
76+
implementation 'androidx.activity:activity-compose:1.11.0'
7777
implementation "androidx.compose.runtime:runtime-livedata"
7878

7979
// To show Preview

gradle/git-tag-version.gradle

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
ext.getVersionCodeFromTags = { ->
22
try {
3-
def code = new ByteArrayOutputStream()
4-
exec {
5-
commandLine 'git', 'tag', '--list'
6-
standardOutput = code
7-
}
8-
return 14 + code.toString().split("\n").size()
3+
def listOfTags = providers
4+
.exec { commandLine 'git', 'tag', '--list' }
5+
.standardOutput
6+
.asText.get()
7+
return 2 + listOfTags.split("\n").size()
98
}
109
catch (ignored) {
1110
return -1
@@ -14,14 +13,15 @@ ext.getVersionCodeFromTags = { ->
1413

1514
ext.getVersionNameFromTags = { ->
1615
try {
17-
def stdout = new ByteArrayOutputStream()
18-
exec {
19-
commandLine 'git', 'describe', '--tags', '--abbrev=0'
20-
standardOutput = stdout
21-
}
22-
return stdout.toString().trim().split("%")[0]
16+
def version = providers
17+
.exec { commandLine 'git', 'describe', '--tags', '--abbrev=0' }
18+
.standardOutput
19+
.asText.get().trim()
20+
// Version may have % to add additional information
21+
return version.split("%")[0]
2322
}
2423
catch (ignored) {
24+
ignored.printStackTrace()
2525
return null
2626
}
27-
}
27+
}

test/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ dependencies {
5959
implementation 'no.nordicsemi.android.common:navigation:2.5.2'
6060

6161
// Jetpack Compose bom
62-
implementation platform('androidx.compose:compose-bom:2025.08.01')
62+
implementation platform('androidx.compose:compose-bom:2025.09.00')
6363

6464
// Text, Color, Surface
6565
implementation 'androidx.compose.material3:material3'
66-
implementation 'androidx.activity:activity-compose:1.10.1'
66+
implementation 'androidx.activity:activity-compose:1.11.0'
6767
implementation 'androidx.lifecycle:lifecycle-runtime-compose:2.9.3'
6868

6969
// Preview
@@ -73,8 +73,8 @@ dependencies {
7373
// Dagger and Hilt
7474
implementation 'com.google.dagger:hilt-android:2.57.1'
7575
kapt 'com.google.dagger:hilt-compiler:2.57.1'
76-
implementation 'androidx.hilt:hilt-navigation-compose:1.2.0'
77-
kapt 'androidx.hilt:hilt-compiler:1.2.0'
76+
implementation 'androidx.hilt:hilt-navigation-compose:1.3.0'
77+
kapt 'androidx.hilt:hilt-compiler:1.3.0'
7878

7979
// Test
8080
testImplementation 'junit:junit:4.13.2'

0 commit comments

Comments
 (0)