forked from only52607/compose-floating-window
-
-
Notifications
You must be signed in to change notification settings - Fork 0
chore: update dependencies and project configuration #124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 15 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
1aad772
chore: add devcontainer configuration for Java development
ArthurKun21 0194913
chore: update devcontainer configuration for Java + Android
ArthurKun21 2df0f15
chore: add Dockerfile for Java + Android development environment
ArthurKun21 a40ef3e
chore: update Android Command Line Tools and SDK components in Docker…
ArthurKun21 12d3ed0
chore: update Dockerfile to improve Android SDK installation process
ArthurKun21 c4855d0
chore: update Dockerfile and devcontainer.json for improved Android S…
ArthurKun21 e8b0918
chore: remove yarn repository to avoid GPG key errors in Dockerfile
ArthurKun21 0209daa
chore: update Gradle wrapper to version 9.3.0
ArthurKun21 1170c02
chore(deps): bump hilt from 2.58 to 2.59 and ksp from 2.3.4 to 2.3.5
ArthurKun21 7ed808c
chore(deps): bump compose-bom from 2026.01.00 to 2026.01.01
ArthurKun21 ff5b9d2
chore(deps): bump agp from 8.13.2 to 9.0.0
ArthurKun21 a2e4825
chore: initial changes to agp 9.0
ArthurKun21 94a4bca
chore: add import for LibrariesForLibs in lint configuration
ArthurKun21 e0e8692
chore: update JavaVersion and JvmTarget to version 17
ArthurKun21 96ca2df
chore: remove unnecessary blank line in build.gradle.kts
ArthurKun21 d6c8e99
chore: remove Chinese README file
ArthurKun21 64c3321
docs: update README with correct repository links and remove outdated…
ArthurKun21 b924b74
docs: update README to clarify dependency import instructions and imp…
ArthurKun21 b669b08
ci: update workflows to ignore .devcontainer directory
ArthurKun21 760a94b
chore(deps): bump spotless from 8.1.0 to 8.2.1
ArthurKun21 82c2f2c
chore(deps): remove kotlin-metadata dependency due to compatibility i…
ArthurKun21 cd8f252
chore: remove compose build feature from sample projects
ArthurKun21 2abb3d4
chore: update packaging configuration to exclude specific resource files
ArthurKun21 f4af4ae
chore: add library tests plugin and reorganize test dependencies
ArthurKun21 0fc9a97
chore: add android tests plugin and configure test dependencies
ArthurKun21 0353d1b
chore: add sample.common.deps plugin and consolidate dependencies in …
ArthurKun21 95045e2
chore: enable compose build features and update packaging configuration
ArthurKun21 8192953
chore: remove vscjava.vscode-java-pack extension from devcontainer co…
ArthurKun21 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| FROM mcr.microsoft.com/devcontainers/java:17-bookworm | ||
|
|
||
| # Always start as root for provisioning | ||
| USER root | ||
| ENV DEBIAN_FRONTEND=noninteractive | ||
|
|
||
| # ---- System dependencies ---- | ||
| # Remove yarn repository to avoid GPG key errors | ||
| RUN rm -f /etc/apt/sources.list.d/yarn.list \ | ||
| && rm -rf /var/lib/apt/lists/* \ | ||
| && apt-get update \ | ||
| && apt-get install -y --no-install-recommends \ | ||
| curl \ | ||
| unzip \ | ||
| zip \ | ||
| libglu1-mesa \ | ||
| && apt-get clean \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # ---- Android SDK env ---- | ||
| ENV ANDROID_SDK_ROOT=/usr/local/android-sdk | ||
| ENV ANDROID_HOME=${ANDROID_SDK_ROOT} | ||
| ENV PATH=${PATH}:${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin:${ANDROID_SDK_ROOT}/platform-tools | ||
|
|
||
| # ---- Android command line tools ---- | ||
| RUN mkdir -p ${ANDROID_SDK_ROOT}/cmdline-tools \ | ||
| && curl -fsSL https://dl.google.com/android/repository/commandlinetools-linux-14742923_latest.zip -o /tmp/cmdline-tools.zip \ | ||
| && unzip /tmp/cmdline-tools.zip -d ${ANDROID_SDK_ROOT}/cmdline-tools \ | ||
| && mv ${ANDROID_SDK_ROOT}/cmdline-tools/cmdline-tools ${ANDROID_SDK_ROOT}/cmdline-tools/latest \ | ||
| && rm /tmp/cmdline-tools.zip | ||
|
|
||
| # ---- SDK packages ---- | ||
| RUN yes | sdkmanager --licenses \ | ||
| && sdkmanager --update \ | ||
| && sdkmanager \ | ||
| "platform-tools" \ | ||
| "platforms;android-36" \ | ||
| "build-tools;36.0.0" | ||
|
|
||
| # ---- Permissions (CRITICAL) ---- | ||
| RUN chown -R vscode:vscode ${ANDROID_SDK_ROOT} | ||
|
|
||
| # Drop privileges | ||
| USER vscode | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { | ||
| "name": "Java + Android", | ||
| "build": { | ||
| "dockerfile": "Dockerfile" | ||
| }, | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/java:1": { | ||
| "version": "17", | ||
| "installGradle": true | ||
| } | ||
| }, | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": [ | ||
| "GitHub.copilot", | ||
| "oderwat.indent-rainbow", | ||
| "redhat.vscode-yaml", | ||
| "vscjava.vscode-java-pack" | ||
| ] | ||
| } | ||
| }, | ||
| "remoteUser": "vscode" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| plugins { | ||
| `kotlin-dsl` | ||
| } | ||
|
|
||
| repositories { | ||
| gradlePluginPortal() | ||
| mavenCentral() | ||
| google() | ||
| } | ||
|
|
||
| dependencies { | ||
| implementation(libs.androidx.gradle) | ||
| implementation(libs.kotlin.gradle) | ||
| implementation(libs.compose.compiler.gradle) | ||
| implementation(libs.spotless.gradle) | ||
| implementation(gradleApi()) | ||
|
|
||
| // workaround to enable version catalogs (libs) in buildSrc | ||
| implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location)) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| dependencyResolutionManagement { | ||
| versionCatalogs { | ||
| create("libs") { | ||
| from(files("../gradle/libs.versions.toml")) | ||
| } | ||
| } | ||
| } | ||
|
|
||
| rootProject.name = "ComposeFloatingWindow-buildSrc" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import buildlogic.AndroidConfig | ||
| import buildlogic.configureAndroid | ||
|
|
||
| plugins { | ||
| id("com.android.application") | ||
| id("org.jetbrains.kotlin.plugin.compose") | ||
| id("code.lint") | ||
| } | ||
|
|
||
| android { | ||
| defaultConfig { | ||
| targetSdk = AndroidConfig.TARGET_SDK | ||
| } | ||
| configureAndroid(this) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| package buildlogic | ||
|
|
||
| import org.gradle.api.JavaVersion as GradleJavaVersion | ||
| import org.jetbrains.kotlin.gradle.dsl.JvmTarget as KotlinJvmTarget | ||
|
|
||
| object AndroidConfig { | ||
| const val COMPILE_SDK = 36 | ||
| const val TARGET_SDK = 36 | ||
| const val MIN_SDK = 24 | ||
|
|
||
| // https://youtrack.jetbrains.com/issue/KT-66995/JvmTarget-and-JavaVersion-compatibility-for-easier-JVM-version-setup | ||
| val JavaVersion = GradleJavaVersion.VERSION_17 | ||
| val JvmTarget = KotlinJvmTarget.JVM_17 | ||
| } | ||
ArthurKun21 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| package buildlogic | ||
|
|
||
| import com.android.build.api.dsl.CommonExtension | ||
| import org.gradle.accessors.dm.LibrariesForLibs | ||
| import org.gradle.api.Project | ||
| import org.gradle.kotlin.dsl.the | ||
|
|
||
| val Project.libs get() = the<LibrariesForLibs>() | ||
|
|
||
| internal fun configureAndroid(commonExtension: CommonExtension) { | ||
| commonExtension.apply { | ||
| compileSdk = AndroidConfig.COMPILE_SDK | ||
|
|
||
| defaultConfig.apply { | ||
| minSdk = AndroidConfig.MIN_SDK | ||
| } | ||
|
|
||
| compileOptions.apply { | ||
| sourceCompatibility = AndroidConfig.JavaVersion | ||
| targetCompatibility = AndroidConfig.JavaVersion | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import org.gradle.accessors.dm.LibrariesForLibs | ||
|
|
||
| plugins { | ||
| id("com.diffplug.spotless") | ||
| } | ||
|
|
||
| val libs = the<LibrariesForLibs>() | ||
|
|
||
|
|
||
| spotless { | ||
| kotlin { | ||
| target("**/*.kt", "**/*.kts") | ||
| targetExclude("**/build/**/*.kt") | ||
| ktlint(libs.ktlint.core.get().version).editorConfigOverride( | ||
| mapOf("ktlint_standard_annotation" to "disabled") | ||
| ) | ||
| trimTrailingWhitespace() | ||
| endWithNewline() | ||
| } | ||
| format("xml") { | ||
| target("**/*.xml") | ||
| trimTrailingWhitespace() | ||
| endWithNewline() | ||
| } | ||
| } | ||
ArthurKun21 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import buildlogic.AndroidConfig | ||
| import buildlogic.configureAndroid | ||
|
|
||
| plugins { | ||
| id("com.android.library") | ||
| id("org.jetbrains.kotlin.plugin.compose") | ||
| id("code.lint") | ||
| } | ||
|
|
||
| android { | ||
| defaultConfig { | ||
| lint.targetSdk = AndroidConfig.TARGET_SDK | ||
| } | ||
| configureAndroid(this) | ||
| } | ||
ArthurKun21 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.