Skip to content

Commit 1ebbbc0

Browse files
authored
Merge pull request #6 from trading-point/update-dependencies
Update dependencies
2 parents 8a39ffd + 704d94c commit 1ebbbc0

File tree

10 files changed

+45
-36
lines changed

10 files changed

+45
-36
lines changed

build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
apply from: 'scripts/dependency-updates.gradle'
2-
31
buildscript {
42
apply from: 'scripts/dependencies.gradle'
53

@@ -12,6 +10,12 @@ buildscript {
1210
}
1311
}
1412

13+
plugins {
14+
id 'org.jetbrains.kotlin.plugin.compose' version "2.0.0"
15+
}
16+
17+
apply from: 'scripts/dependency-updates.gradle'
18+
1519
allprojects {
1620
repositories(repos)
1721
}

examples/build.gradle

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
plugins {
22
id 'com.android.application'
33
id 'kotlin-android'
4+
id 'org.jetbrains.kotlin.plugin.compose'
45
}
56

67
android {
7-
compileSdk 33
8+
namespace = "com.xm.examples"
9+
10+
compileSdk 34
811

912
defaultConfig {
1013
applicationId "com.xm.examples"
1114
minSdk 21
12-
targetSdk 33
15+
targetSdk 34
1316
versionCode 1
1417
versionName "1.0"
1518

@@ -28,35 +31,32 @@ android {
2831
}
2932
}
3033
compileOptions {
31-
sourceCompatibility JavaVersion.VERSION_1_8
32-
targetCompatibility JavaVersion.VERSION_1_8
34+
sourceCompatibility JavaVersion.VERSION_17
35+
targetCompatibility JavaVersion.VERSION_17
3336
}
3437
kotlinOptions {
35-
jvmTarget = '1.8'
36-
}
37-
composeOptions {
38-
kotlinCompilerExtensionVersion "1.3.2"
38+
jvmTarget = JavaVersion.VERSION_17
3939
}
4040
}
4141

4242
dependencies {
4343
implementation project(':tka')
4444

45-
def appcompat_version = "1.6.0"
46-
implementation "androidx.appcompat:appcompat:$appcompat_version"
45+
implementation "androidx.appcompat:appcompat:1.6.1"
4746

4847
implementation libraries.rx.java
4948
implementation "io.reactivex.rxjava3:rxkotlin:3.0.1"
5049
implementation "io.reactivex.rxjava3:rxandroid:3.0.2"
5150

52-
implementation 'androidx.fragment:fragment-ktx:1.5.5'
51+
implementation 'androidx.fragment:fragment-ktx:1.8.1'
5352

5453
testImplementation libraries.junit
55-
testImplementation 'org.mockito:mockito-core:5.0.0'
54+
testImplementation 'org.mockito:mockito-core:5.12.0'
55+
56+
implementation "androidx.activity:activity-compose:1.9.0"
5657

57-
implementation "androidx.activity:activity-compose:1.6.1"
58-
def compose_version = "1.3.1"
59-
implementation "androidx.compose.foundation:foundation:$compose_version"
60-
implementation "androidx.compose.material:material:$compose_version"
61-
implementation "androidx.compose.runtime:runtime-rxjava3:1.3.3"
58+
implementation platform("androidx.compose:compose-bom:2024.06.00")
59+
implementation "androidx.compose.foundation:foundation"
60+
implementation "androidx.compose.material:material"
61+
implementation "androidx.compose.runtime:runtime-rxjava3"
6262
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Jan 16 16:13:35 EET 2023
1+
#Wed Jul 17 09:43:02 EEST 2024
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
43
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
65
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

scripts/dependencies.gradle

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,38 @@ ext {
22
//region Versions
33
versions = [:]
44
versions.sdk = [:]
5-
versions.sdk.compatibility = "1.8"
5+
versions.sdk.compatibility = JavaVersion.VERSION_17
66
//endregion
77

88
//region Libraries
99
libraries = [:]
1010

11-
// https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md#1720
11+
// https://github.com/JetBrains/kotlin/releases/tag/v2.0.0
1212
libraries.kotlin = [:]
13-
libraries.kotlin.version = '1.7.20'
13+
libraries.kotlin.version = '2.0.0'
1414
libraries.kotlin.jdk = "org.jetbrains.kotlin:kotlin-stdlib:${libraries.kotlin.version}"
1515

1616
libraries.rx = [:]
1717

18-
// https://github.com/ReactiveX/RxJava/releases/tag/v3.1.5
19-
libraries.rx.java = "io.reactivex.rxjava3:rxjava:3.1.5"
18+
// https://github.com/ReactiveX/RxJava/releases/tag/v3.1.8
19+
libraries.rx.java = "io.reactivex.rxjava3:rxjava:3.1.8"
2020

2121
// https://github.com/junit-team/junit4/releases/tag/r4.13.2
2222
libraries.junit = "junit:junit:4.13.2"
2323

24-
// https://detekt.dev/changelog/#1220---2022-11-20
24+
// https://detekt.dev/changelog/#1236---2024-03-23
2525
libraries.detekt = [:]
26-
libraries.detekt.version = '1.22.0'
26+
libraries.detekt.version = '1.23.6'
2727
libraries.detekt.formatting = "io.gitlab.arturbosch.detekt:detekt-formatting:${libraries.detekt.version}"
2828
//endregion
2929

3030
//region Classpaths
3131
classpaths = [:]
32-
// https://developer.android.com/studio/releases/gradle-plugin#7-1-2
33-
classpaths.gradle = "com.android.tools.build:gradle:7.1.2"
32+
// https://developer.android.com/studio/releases/gradle-plugin#8.4.0
33+
classpaths.gradle = "com.android.tools.build:gradle:8.4.0"
3434
classpaths.kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${libraries.kotlin.version}"
3535
// https://github.com/ben-manes/gradle-versions-plugin/releases/tag/v0.44.0
3636
classpaths.versions = "com.github.ben-manes:gradle-versions-plugin:0.44.0"
37-
// https://detekt.dev/changelog/#1220---2022-11-20
3837
classpaths.detekt = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${libraries.detekt.version}"
3938
//endregion
4039

scripts/detekt.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ apply plugin: "io.gitlab.arturbosch.detekt"
77

88
detekt {
99
buildUponDefaultConfig = true
10+
config = files("$projectDir/detekt/config.yml")
1011

1112
reports {
1213
html.enabled = true

tka/detekt/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
formatting:
2+
ImportOrdering:
3+
active: false

tka/src/main/kotlin/com/xm/tka/Reducer.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ interface ReduceContext<STATE, ACTION : Any> {
216216
/**
217217
* A function that accepts a State and an Action and produces a new state
218218
*/
219+
@Suppress("ParameterListWrapping", "MaxLineLength")
219220
typealias Reduce<STATE, ACTION, ENVIRONMENT> = ReduceContext<STATE, ACTION>.(STATE, ACTION, ENVIRONMENT) -> Reduced<STATE, ACTION>
220221

221222
/**

tka/src/main/kotlin/com/xm/tka/test/TestStore.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import java.util.LinkedList
3636
*
3737
* Source: https://github.com/pointfreeco/swift-composable-architecture/blob/main/Sources/ComposableArchitecture/TestSupport/TestStore.swift
3838
*/
39+
@Suppress("MaxLineLength")
3940
class TestStore<STATE : Any, LOCAL_STATE : Any, ACTION : Any, LOCAL_ACTION : Any, ENVIRONMENT : Any> private constructor(
4041
initialState: STATE,
4142
private val reducer: Reducer<STATE, ACTION, ENVIRONMENT>,
@@ -284,6 +285,7 @@ Unhandled actions: $receivedActions
284285
fun <STATE, LOCAL_STATE, ACTION, LOCAL_ACTION, ENVIRONMENT> `do`(
285286
work: () -> Unit
286287
): Step<STATE, LOCAL_STATE, ACTION, LOCAL_ACTION, ENVIRONMENT> =
288+
@Suppress("Wrapping")
287289
Step(Type.Environment { work(); it })
288290
}
289291
}

tka/src/test/kotlin/com/xm/tka/StoreTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ class StoreTest {
174174
it
175175
}
176176

177-
val viewStore1 = ViewStore(store1)
178-
val viewStore2 = ViewStore(store2)
179-
val viewStore3 = ViewStore(store3)
177+
// val viewStore1 = ViewStore(store1)
178+
// val viewStore2 = ViewStore(store2)
179+
// val viewStore3 = ViewStore(store3)
180180
val viewStore4 = ViewStore(store4)
181181

182182
assertEquals(1, numCalls1)

tka/src/test/kotlin/com/xm/tka/test/TestStoreTestNew.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import com.xm.tka.test.TestStoreTestNew.Action.C1
1313
import com.xm.tka.test.TestStoreTestNew.Action.C2
1414
import com.xm.tka.test.TestStoreTestNew.Action.C3
1515
import com.xm.tka.test.TestStoreTestNew.Action.D
16-
import io.reactivex.rxjava3.core.Observable
1716
import io.reactivex.rxjava3.core.Scheduler
1817
import io.reactivex.rxjava3.schedulers.TestScheduler
1918
import java.util.concurrent.TimeUnit

0 commit comments

Comments
 (0)