Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 0 additions & 117 deletions .devcontainer/Dockerfile

This file was deleted.

21 changes: 13 additions & 8 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
{
"name": "flutter_docker",
"context": "..",
"dockerFile": "Dockerfile",
"dockerFile": "../.docker/komodo-wallet-android.dockerfile",
"remoteUser": "komodo",
"workspaceFolder": "/workspaces/komodo-wallet",
"postCreateCommand": "sudo chown -R komodo:komodo /workspaces/komodo-wallet",
"postAttachCommand": "flutter pub get",
"runArgs": [
"--privileged",
"-v",
"/dev/bus/usb:/dev/bus/usb"
],
"initializeCommand": "docker build -t komodo/android-sdk:35 -f ${localWorkspaceFolder}/.docker/android-sdk.dockerfile ${localWorkspaceFolder}",
Comment thread
takenagain marked this conversation as resolved.
"postCreateCommand": "bash -lc '.devcontainer/postCreate.sh'",
"postAttachCommand": "flutter pub get --enforce-lockfile",
// Security Note: The following runArgs are commented out for security reasons.
// Uncomment these lines only when you need to debug Android apps via USB connection
// through the dev container. The --privileged flag grants extended privileges to
// the container, and USB device mounting allows direct hardware access.
// "runArgs": [
// "--privileged",
// "-v",
// "/dev/bus/usb:/dev/bus/usb"
// ],
"forwardPorts": [
8081,
5037
Expand Down
13 changes: 13 additions & 0 deletions .devcontainer/postCreate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -euo pipefail

# Initialize and pin submodules to the recorded commits
git submodule sync --recursive
git submodule update --init --recursive --checkout

# Recommended git settings for submodules
git config fetch.recurseSubmodules on-demand
git config submodule.sdk.ignore dirty

echo "postCreate: completed submodule initialization and permissions setup"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
.packages
.pub-cache/
.pub/
/build/
**/build/
contrib/coins_config.json
devtools_options.yaml

Expand Down
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
branch = dev
update = checkout
fetchRecurseSubmodules = on-demand
ignore = dirty
Comment thread
takenagain marked this conversation as resolved.
Loading