Skip to content

Commit 0403e0d

Browse files
committed
Update dependencies again
1 parent 30bf688 commit 0403e0d

File tree

10 files changed

+73
-73
lines changed

10 files changed

+73
-73
lines changed

Cargo.lock

Lines changed: 55 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ repositories {
3535
}
3636

3737
android {
38-
compileSdk 33
38+
compileSdk 34
3939

4040
compileOptions {
4141
sourceCompatibility JavaVersion.VERSION_1_8
@@ -60,7 +60,7 @@ android {
6060
defaultConfig {
6161
applicationId "com.simongellis.vvb"
6262
minSdkVersion 21
63-
targetSdkVersion 33
63+
targetSdkVersion 34
6464
versionCode 41
6565
versionName "1.15.0"
6666

@@ -129,7 +129,7 @@ def includeCardboardSdk(spec, toolchain) {
129129
// Copy the right SDK into the project as well
130130
copy {
131131
from cardboardSdkLocation
132-
into "$buildDir/rustJniLibs/$toolchain.folder"
132+
into "${project.layout.buildDirectory.asFile.get()}/rustJniLibs/$toolchain.folder"
133133
include "lib*.so"
134134
}
135135
}
@@ -174,7 +174,7 @@ project.afterEvaluate {
174174
// collect all the target dirs we compile to
175175
def jniTargetDirs = []
176176
tasks.withType(CargoBuildTask).forEach {
177-
jniTargetDirs += new File("$buildDir/rustJniLibs", it.toolchain.folder)
177+
jniTargetDirs += new File("${project.layout.buildDirectory.asFile.get()}/rustJniLibs", it.toolchain.folder)
178178
}
179179

180180
// make sure we rerun the "merge jni lib folders" tasks any time they change
@@ -187,17 +187,17 @@ dependencies {
187187
implementation fileTree(dir: "libs", include: ["*.jar"])
188188
implementation project(':cardboard-sdk')
189189
leiaImplementation project(":leia-cnsdk")
190-
implementation 'androidx.core:core-ktx:1.10.1'
190+
implementation 'androidx.core:core-ktx:1.12.0'
191191
implementation 'androidx.appcompat:appcompat:1.6.1'
192192
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
193-
implementation "androidx.preference:preference-ktx:1.2.0"
194-
implementation "androidx.recyclerview:recyclerview:1.3.1"
193+
implementation "androidx.preference:preference-ktx:1.2.1"
194+
implementation "androidx.recyclerview:recyclerview:1.3.2"
195195
testImplementation 'junit:junit:4.13.2'
196196
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
197197
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
198198

199199
// lifecycle things
200-
def lifecycleVersion = '2.6.1'
200+
def lifecycleVersion = '2.6.2'
201201
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
202202
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion"
203203
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion"

app/src/main/java/com/simongellis/vvb/menu/AutoMapDialog.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ class AutoMapDialog : DialogFragment(), InputManager.InputDeviceListener {
5757
}
5858

5959
private fun onDeviceChosen(deviceId: Int) {
60-
val device = _inputManager.getInputDevice(deviceId)
60+
val device = _inputManager.getInputDevice(deviceId) ?: return
6161
parentViewModel.performAutoMap(device)
6262
dismiss()
6363
}
6464

6565
override fun onInputDeviceAdded(deviceId: Int) {
66-
val device = _inputManager.getInputDevice(deviceId)
66+
val device = _inputManager.getInputDevice(deviceId) ?: return
6767
if (parentViewModel.isMappable(device)) {
6868
_adapter.addDevice(device)
6969
}
@@ -75,7 +75,7 @@ class AutoMapDialog : DialogFragment(), InputManager.InputDeviceListener {
7575

7676
override fun onInputDeviceChanged(deviceId: Int) {
7777
val device = _inputManager.getInputDevice(deviceId)
78-
if (parentViewModel.isMappable(device)) {
78+
if (device != null && parentViewModel.isMappable(device)) {
7979
_adapter.addDevice(device)
8080
} else {
8181
_adapter.removeDevice(deviceId)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010
}
1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:8.1.0'
12+
classpath 'com.android.tools.build:gradle:8.1.4'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414
classpath "org.mozilla.rust-android-gradle:plugin:0.9.3"
1515

cardboard-sdk/sdk-release.aar

-40.1 KB
Binary file not shown.
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.0.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)