Skip to content

Commit 83aaca7

Browse files
atomgombakiri
and
kiri
authored
Update dependencies (#3)
Co-authored-by: kiri <[email protected]>
1 parent d32cfa5 commit 83aaca7

File tree

10 files changed

+76
-53
lines changed

10 files changed

+76
-53
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v3
20+
- uses: actions/setup-java@v3
21+
with:
22+
distribution: temurin
23+
java-version: 17
2024

2125
- name: Setup Gradle
2226
uses: gradle/gradle-build-action@v2
@@ -32,4 +36,3 @@ jobs:
3236
PACKAGES_REPOSITORY: https://maven.pkg.github.com/${{ github.repository }}
3337
PACKAGES_USERNAME: ${{ github.actor }}
3438
PACKAGES_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ buildscript {
1212
}
1313

1414
plugins {
15-
id 'com.palantir.git-version' version '0.12.3'
15+
id 'com.palantir.git-version' version '3.0.0'
1616
}
1717

1818
allprojects {
1919
group = "com.bridge.ouroboros.compose"
20-
version = "${gitVersion()}"
20+
version gitVersion()
2121
}
2222

2323
subprojects {
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
package com.ouroboros
22

33
object Libs {
4-
const val androidGradlePlugin = "com.android.tools.build:gradle:7.2.2"
4+
const val androidGradlePlugin = "com.android.tools.build:gradle:8.1.1"
55

66
const val junit = "junit:junit:4.13"
77

88
const val material = "com.google.android.material:material:1.4.0"
99

1010
object Kotlin {
11-
const val version = "1.6.10"
12-
const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$version"
11+
private const val version = "1.9.10"
1312
const val gradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$version"
1413
}
1514

1615
object Coroutines {
17-
private const val version = "1.6.4"
16+
private const val version = "1.7.3"
1817
const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version"
1918
const val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version"
2019
const val test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$version"
@@ -29,23 +28,24 @@ object Libs {
2928
}
3029

3130
object Kotest {
32-
private const val version = "5.4.2"
31+
private const val version = "5.6.0"
3332
const val assertions = "io.kotest:kotest-assertions-core:$version"
3433
}
3534

3635
object MockK {
37-
private const val version = "1.12.5"
36+
private const val version = "1.13.3"
3837
const val library = "io.mockk:mockk:$version"
3938
}
4039

4140
object AndroidX {
42-
const val appcompat = "androidx.appcompat:appcompat:1.3.1"
41+
const val appcompat = "androidx.appcompat:appcompat:1.5.0"
4342

44-
const val activityCompose = "androidx.activity:activity-compose:1.3.1"
45-
const val navigationCompose = "androidx.navigation:navigation-compose:2.5.1"
43+
const val activityCompose = "androidx.activity:activity-compose:1.6.1"
44+
const val navigationCompose = "androidx.navigation:navigation-compose:2.5.3"
4645

4746
object Compose {
48-
const val version = "1.1.1"
47+
const val version = "1.5.1"
48+
const val compiler = "1.5.3"
4949

5050
const val runtime = "androidx.compose.runtime:runtime:$version"
5151
const val foundation = "androidx.compose.foundation:foundation:${version}"
@@ -56,7 +56,7 @@ object Libs {
5656
}
5757

5858
object Test {
59-
private const val version = "1.4.0"
59+
private const val version = "1.5.0"
6060
const val core = "androidx.test:core:$version"
6161
const val rules = "androidx.test:rules:$version"
6262

@@ -67,10 +67,10 @@ object Libs {
6767
}
6868

6969
object Lifecycle {
70-
private const val version = "2.3.1"
70+
private const val version = "2.6.1"
7171
const val extensions = "androidx.lifecycle:lifecycle-extensions:$version"
7272
const val viewmodel = "androidx.lifecycle:lifecycle-viewmodel-ktx:$version"
73-
const val viewmodelCompose = "androidx.lifecycle:lifecycle-viewmodel-compose:2.4.0"
73+
const val viewmodelCompose = "androidx.lifecycle:lifecycle-viewmodel-compose:$version"
7474
}
7575
}
7676
}

core/build.gradle

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ plugins {
1010
}
1111

1212
android {
13-
compileSdk 33
13+
namespace = "com.bridge.ouroboros.compose"
14+
15+
compileSdk 34
1416

1517
defaultConfig {
1618
minSdk 21
17-
targetSdk 33
19+
targetSdk 34
1820
}
1921

2022
buildTypes {
@@ -29,20 +31,20 @@ android {
2931
}
3032

3133
compileOptions {
32-
sourceCompatibility JavaVersion.VERSION_1_8
33-
targetCompatibility JavaVersion.VERSION_1_8
34+
sourceCompatibility JavaVersion.VERSION_17
35+
targetCompatibility JavaVersion.VERSION_17
3436
}
3537

3638
buildFeatures {
3739
compose true
3840
}
3941

4042
composeOptions {
41-
kotlinCompilerExtensionVersion Libs.AndroidX.Compose.version
43+
kotlinCompilerExtensionVersion Libs.AndroidX.Compose.compiler
4244
}
4345

4446
kotlinOptions {
45-
jvmTarget = "1.8"
47+
jvmTarget = "17"
4648
allWarningsAsErrors = true
4749
}
4850

@@ -52,7 +54,6 @@ android {
5254
}
5355

5456
dependencies {
55-
api Libs.Kotlin.stdlib
5657
api Libs.Coroutines.core
5758
api Libs.Coroutines.android
5859

@@ -74,4 +75,4 @@ afterEvaluate {
7475
}
7576
}
7677
}
77-
}
78+
}

example-app/build.gradle

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ plugins {
1111
}
1212

1313
android {
14-
compileSdk 32
14+
namespace = "com.bridge.ouroboros.exampleapplication"
15+
16+
compileSdk 34
1517

1618
defaultConfig {
1719
applicationId "com.bridge.ouroboros.exampleapplication"
1820
minSdk 21
19-
targetSdk 32
21+
targetSdk 34
2022
versionCode 1
2123
versionName "1.0"
2224

@@ -38,16 +40,16 @@ android {
3840
}
3941

4042
composeOptions {
41-
kotlinCompilerExtensionVersion Libs.AndroidX.Compose.version
43+
kotlinCompilerExtensionVersion Libs.AndroidX.Compose.compiler
4244
}
4345

4446
compileOptions {
45-
sourceCompatibility JavaVersion.VERSION_11
46-
targetCompatibility JavaVersion.VERSION_11
47+
sourceCompatibility JavaVersion.VERSION_17
48+
targetCompatibility JavaVersion.VERSION_17
4749
}
4850

4951
kotlinOptions {
50-
jvmTarget = '11'
52+
jvmTarget = '17'
5153
allWarningsAsErrors = true
5254

5355
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
@@ -77,7 +79,6 @@ dependencies {
7779
implementation Libs.Ktor.contentNegotiation
7880
implementation Libs.Ktor.json
7981

80-
api Libs.Kotlin.stdlib
8182
api Libs.Coroutines.android
8283

8384
implementation Libs.AndroidX.activityCompose
@@ -91,4 +92,4 @@ dependencies {
9192
testImplementation project(':test')
9293

9394
androidTestImplementation Libs.AndroidX.Test.Ext.junit
94-
}
95+
}

gradle/wrapper/gradle-wrapper.jar

2.48 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
#Thu Jul 13 10:33:09 CEST 2023
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
5+
networkTimeout=10000
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

gradlew

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,13 +80,10 @@ do
8080
esac
8181
done
8282

83-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84-
85-
APP_NAME="Gradle"
83+
# This is normally unused
84+
# shellcheck disable=SC2034
8685
APP_BASE_NAME=${0##*/}
87-
88-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
86+
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
9087

9188
# Use the maximum available, or set MAX_FD != -1 to use that value.
9289
MAX_FD=maximum
@@ -143,12 +140,16 @@ fi
143140
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144141
case $MAX_FD in #(
145142
max*)
143+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
144+
# shellcheck disable=SC3045
146145
MAX_FD=$( ulimit -H -n ) ||
147146
warn "Could not query maximum file descriptor limit"
148147
esac
149148
case $MAX_FD in #(
150149
'' | soft) :;; #(
151150
*)
151+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
152+
# shellcheck disable=SC3045
152153
ulimit -n "$MAX_FD" ||
153154
warn "Could not set maximum file descriptor limit to $MAX_FD"
154155
esac
@@ -193,6 +194,10 @@ if "$cygwin" || "$msys" ; then
193194
done
194195
fi
195196

197+
198+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
199+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
200+
196201
# Collect all arguments for the java command;
197202
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
198203
# shell script including quotes and variable substitutions, so put them in
@@ -205,6 +210,12 @@ set -- \
205210
org.gradle.wrapper.GradleWrapperMain \
206211
"$@"
207212

213+
# Stop when "xargs" is not available.
214+
if ! command -v xargs >/dev/null 2>&1
215+
then
216+
die "xargs is not available"
217+
fi
218+
208219
# Use "xargs" to parse quoted args.
209220
#
210221
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.

gradlew.bat

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@rem limitations under the License.
1515
@rem
1616

17-
@if "%DEBUG%" == "" @echo off
17+
@if "%DEBUG%"=="" @echo off
1818
@rem ##########################################################################
1919
@rem
2020
@rem Gradle startup script for Windows
@@ -25,7 +25,8 @@
2525
if "%OS%"=="Windows_NT" setlocal
2626

2727
set DIRNAME=%~dp0
28-
if "%DIRNAME%" == "" set DIRNAME=.
28+
if "%DIRNAME%"=="" set DIRNAME=.
29+
@rem This is normally unused
2930
set APP_BASE_NAME=%~n0
3031
set APP_HOME=%DIRNAME%
3132

@@ -40,7 +41,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
4041

4142
set JAVA_EXE=java.exe
4243
%JAVA_EXE% -version >NUL 2>&1
43-
if "%ERRORLEVEL%" == "0" goto execute
44+
if %ERRORLEVEL% equ 0 goto execute
4445

4546
echo.
4647
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
7576

7677
:end
7778
@rem End local scope for the variables with windows NT shell
78-
if "%ERRORLEVEL%"=="0" goto mainEnd
79+
if %ERRORLEVEL% equ 0 goto mainEnd
7980

8081
:fail
8182
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
8283
rem the _cmd.exe /c_ return code!
83-
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84-
exit /b 1
84+
set EXIT_CODE=%ERRORLEVEL%
85+
if %EXIT_CODE% equ 0 set EXIT_CODE=1
86+
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87+
exit /b %EXIT_CODE%
8588

8689
:mainEnd
8790
if "%OS%"=="Windows_NT" endlocal

test/build.gradle

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ apply plugin: 'com.android.library'
88
apply plugin: 'kotlin-android'
99

1010
android {
11-
compileSdkVersion 31
11+
namespace = "com.bridge.ouroboros.compose.test"
12+
13+
compileSdkVersion 33
1214

1315
defaultConfig {
1416
minSdkVersion 21
15-
targetSdkVersion 31
17+
targetSdkVersion 33
1618
}
1719

1820
buildTypes {
@@ -27,12 +29,12 @@ android {
2729
}
2830

2931
compileOptions {
30-
sourceCompatibility JavaVersion.VERSION_1_8
31-
targetCompatibility JavaVersion.VERSION_1_8
32+
sourceCompatibility JavaVersion.VERSION_17
33+
targetCompatibility JavaVersion.VERSION_17
3234
}
3335

3436
kotlinOptions {
35-
jvmTarget = "1.8"
37+
jvmTarget = "17"
3638
allWarningsAsErrors = true
3739
}
3840

@@ -43,7 +45,7 @@ android {
4345

4446
dependencies {
4547
api project(':core')
46-
implementation 'io.kotest:kotest-assertions-core:5.1.0'
48+
implementation 'io.kotest:kotest-assertions-core:5.6.0'
4749
}
4850

4951
afterEvaluate {
@@ -58,4 +60,4 @@ afterEvaluate {
5860
}
5961
}
6062
}
61-
}
63+
}

0 commit comments

Comments
 (0)