Skip to content

android: resolve :lui module dir with requireNotNull - #64

Merged
tiensonqin merged 1 commit into
mainfrom
devin/1791616786-fix-android-settings
Oct 10, 2026
Merged

tiensonqin merged 1 commit into
mainfrom
devin/1791616786-fix-android-settings

Conversation

@tiensonqin

Copy link
Copy Markdown
Contributor

Summary

Fixes Build-Android run 38032757624, which failed before Gradle ran:

settings.gradle.kts line 24 rejected luiModuleDir — project(":lui").projectDir expects a non-null File, but firstOrNull returns File? and Kotlin does not smart-cast through require(luiModuleDir != null). Switched to requireNotNull(...), which narrows the value to File.

Link to Devin session: https://app.devin.ai/sessions/3fbb55f8acd849db864aa2e7287c0cea
Open in Devin Desktop: https://app.devin.ai/desktop/session/3fbb55f8acd849db864aa2e7287c0cea?variant=devin
Requested by: @tiensonqin

Kotlin does not smart-cast a val through require(), so
project(":lui").projectDir rejected the File? and the settings script
failed to compile on CI.
@tiensonqin
tiensonqin merged commit b0a3646 into main Oct 10, 2026
3 of 5 checks passed
@tiensonqin
tiensonqin deleted the devin/1791616786-fix-android-settings branch October 10, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant