Skip to content

Commit 5625a8c

Browse files
committed
Update all dependencies
1 parent da3bdaa commit 5625a8c

15 files changed

Lines changed: 75 additions & 54 deletions

File tree

ChessAndroid/app/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ plugins {
55
}
66

77
android {
8+
namespace = "net.theluckycoder.chess"
89
compileSdk = Versions.Sdk.compile
910

1011
defaultConfig {
@@ -33,7 +34,7 @@ android {
3334
buildFeatures.compose = true
3435

3536
composeOptions {
36-
kotlinCompilerExtensionVersion = Versions.compose
37+
kotlinCompilerExtensionVersion = Versions.composeCompiler
3738
}
3839
}
3940

ChessAndroid/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:tools="http://schemas.android.com/tools"
4-
package="net.theluckycoder.chess">
3+
xmlns:tools="http://schemas.android.com/tools">
54

65
<application
76
android:name=".ChessApp"

ChessAndroid/build.gradle.kts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ buildscript {
22
repositories {
33
google()
44
mavenCentral()
5-
maven { setUrl("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
65
}
76
dependencies {
8-
classpath("com.android.tools.build:gradle:7.1.0")
7+
classpath("com.android.tools.build:gradle:7.3.1")
98
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin}")
109
}
1110
}
@@ -14,7 +13,6 @@ allprojects {
1413
repositories {
1514
google()
1615
mavenCentral()
17-
maven { setUrl("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
1816
}
1917
}
2018

@@ -30,7 +28,7 @@ subprojects {
3028
}
3129

3230
plugins {
33-
id("com.github.ben-manes.versions") version "0.41.0"
31+
id("com.github.ben-manes.versions") version "0.44.0"
3432
}
3533

3634
tasks.named("dependencyUpdates", com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask::class.java).configure {
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
object Versions {
22
object App {
33
private const val major = 1
4-
private const val minor = 2
5-
private const val patch = 2
6-
private const val build = 2
4+
private const val minor = 3
5+
private const val patch = 0
6+
private const val build = 0
77

88
const val code = major * 1000 + minor * 100 + patch * 10 + build
99
const val name = "$major.$minor.$patch"
@@ -12,11 +12,12 @@ object Versions {
1212
object Sdk {
1313
const val min = 21
1414
const val wearOsMin = 25
15-
const val compile = 31
16-
const val target = 31
15+
const val compile = 33
16+
const val target = 33
1717
}
1818

19-
const val kotlin = "1.6.10"
20-
const val kotlinCoroutines = "1.6.0"
21-
const val compose = "1.1.0-rc03"
19+
const val kotlin = "1.7.21"
20+
const val kotlinCoroutines = "1.6.4"
21+
const val compose = "1.3.1"
22+
const val composeCompiler = "1.4.0-alpha02"
2223
}

ChessAndroid/common/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.18)
1+
cmake_minimum_required(VERSION 3.20)
22
set(PROJECT_NAME "chess")
33
project(${PROJECT_NAME})
44

ChessAndroid/common/build.gradle.kts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ plugins {
55
}
66

77
android {
8+
namespace = "net.theluckycoder.chess.common"
89
compileSdk = Versions.Sdk.compile
9-
ndkVersion = "23.1.7779620"
10+
ndkVersion = "25.1.8937393"
1011

1112
defaultConfig {
1213
minSdk = Versions.Sdk.min
@@ -19,7 +20,7 @@ android {
1920
buildFeatures.compose = true
2021

2122
composeOptions {
22-
kotlinCompilerExtensionVersion = Versions.compose
23+
kotlinCompilerExtensionVersion = Versions.composeCompiler
2324
}
2425

2526
buildTypes {
@@ -34,7 +35,7 @@ android {
3435

3536
externalNativeBuild {
3637
cmake {
37-
version = "3.18.1"
38+
version = "3.22.1"
3839
path("CMakeLists.txt")
3940
}
4041
}
@@ -57,18 +58,17 @@ dependencies {
5758
api("org.jetbrains.kotlinx:kotlinx-coroutines-android:${Versions.kotlinCoroutines}")
5859

5960
// AndroidX
60-
api("androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0")
61+
api("androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1")
6162
api("androidx.datastore:datastore-preferences:1.0.0")
62-
api("androidx.lifecycle:lifecycle-viewmodel-compose:2.4.0")
63+
api("androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1")
6364

6465
// Compose
65-
api("androidx.activity:activity-compose:1.4.0")
66+
api("androidx.activity:activity-compose:1.6.1")
6667
api("androidx.compose.ui:ui:$composeVersion")
6768
api("androidx.compose.foundation:foundation:$composeVersion")
6869
implementation("androidx.compose.material:material:$composeVersion")
6970
api("androidx.compose.ui:ui-tooling-preview:$composeVersion")
7071
debugApi("androidx.compose.ui:ui-tooling:$composeVersion")
7172
api("androidx.compose.animation:animation-graphics:$composeVersion")
72-
api("androidx.compose.compiler:compiler:$composeVersion")
73-
api("androidx.lifecycle:lifecycle-viewmodel-compose:2.4.0")
73+
api("androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1")
7474
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest package="net.theluckycoder.chess.common" />
2+
<manifest />

ChessAndroid/common/src/main/cpp/chess/Move.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class SimpleMove
117117
[[nodiscard]] constexpr bool isTactical() const noexcept
118118
{
119119
const auto f = flags();
120-
return f.capture() | f.promotion();
120+
return f.capture() || f.promotion();
121121
}
122122

123123
[[nodiscard]] constexpr u16 getFromToBits() const noexcept
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
2-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
2+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
33
distributionPath=wrapper/dists
44
zipStorePath=wrapper/dists
55
zipStoreBase=GRADLE_USER_HOME

ChessAndroid/wearos/build.gradle.kts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ plugins {
55
}
66

77
android {
8+
namespace = "net.theluckycoder.chess.wearos"
89
compileSdk = Versions.Sdk.compile
910

1011
defaultConfig {
@@ -33,7 +34,7 @@ android {
3334
buildFeatures.compose = true
3435

3536
composeOptions {
36-
kotlinCompilerExtensionVersion = Versions.compose
37+
kotlinCompilerExtensionVersion = Versions.composeCompiler
3738
}
3839
}
3940

@@ -48,6 +49,6 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class).configure
4849
dependencies {
4950
implementation(project(path = ":common"))
5051

51-
implementation("androidx.wear.compose:compose-foundation:1.0.0-alpha15")
52-
implementation("androidx.wear.compose:compose-material:1.0.0-alpha15")
52+
implementation("androidx.wear.compose:compose-foundation:1.1.0-rc01")
53+
implementation("androidx.wear.compose:compose-material:1.1.0-rc01")
5354
}

0 commit comments

Comments
 (0)