mirror of
https://github.com/usetrmnl/trmnl-android.git
synced 2026-04-29 13:35:26 -07:00
Metro gradle plugin requires JVM 21+. Update all JDK 17 references: - app/build.gradle.kts: sourceCompatibility, targetCompatibility, jvmTarget - .devcontainer: base image java:1-17-bookworm → java:1-21-bookworm - docs: .github/copilot-instructions.md and CLAUDE.md
54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
JSON
{
|
|
"name": "TRMNL Android",
|
|
"image": "mcr.microsoft.com/devcontainers/java:1-21-bookworm",
|
|
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/git:1": {},
|
|
"ghcr.io/devcontainers/features/github-cli:1": {}
|
|
},
|
|
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"mathiasfrohlich.kotlin",
|
|
"fwcd.kotlin",
|
|
"vscjava.vscode-gradle",
|
|
"GitHub.copilot",
|
|
"GitHub.copilot-chat",
|
|
"redhat.java",
|
|
"vscjava.vscode-java-pack",
|
|
"k--kato.intellij-idea-keybindings"
|
|
],
|
|
"settings": {
|
|
"terminal.integrated.defaultProfile.linux": "bash",
|
|
"java.configuration.updateBuildConfiguration": "automatic"
|
|
}
|
|
}
|
|
},
|
|
|
|
"remoteEnv": {
|
|
"ANDROID_HOME": "/usr/local/lib/android/sdk",
|
|
"ANDROID_SDK_ROOT": "/usr/local/lib/android/sdk"
|
|
},
|
|
|
|
"postCreateCommand": "bash .devcontainer/post-create.sh",
|
|
|
|
"forwardPorts": [],
|
|
|
|
"portsAttributes": {
|
|
"5037": {
|
|
"label": "ADB",
|
|
"onAutoForward": "ignore"
|
|
}
|
|
},
|
|
|
|
"mounts": [
|
|
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.android,target=/home/vscode/.android,type=bind,consistency=cached"
|
|
],
|
|
|
|
// Privileged mode is required for ADB to access USB devices for on-device debugging
|
|
"runArgs": [
|
|
"--privileged"
|
|
]
|
|
}
|