├── .devcontainer ├── README.md └── devcontainer.json /.devcontainer: -------------------------------------------------------------------------------- 1 | . -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Codespaces Android SDK CE (Community Edition) 2 | --------------------------------------------- 3 | 4 | A codespace repository configured to install android 5 | development tools. 6 | 7 | ## Installed Software 8 | 9 | * Ubuntu 10 | * Bazelisk 11 | * Gradle 12 | * Maven 13 | * Ant 14 | * Meson 15 | * Java 24 (Oracle) 16 | * Android SDK 17 | 18 | ## Usage 19 | 20 | This repository can be used to create a codespace, 21 | by using it as a template for new projects, or 22 | including it as a submodule in an existing project. 23 | 24 | To import as a submodule use 'git submodule add' 25 | 26 | git submodule add https://github.com/raymond-chetty/codespaces-AndroidSDK-CE .devcontainer 27 | 28 | In theory it is possible to add access to additional 29 | repositories within a codespace using 'customizations' 30 | 31 | * https://containers.dev/supporting#github-codespaces 32 | * https://docs.github.com/en/codespaces/managing-your-codespaces/managing-repository-access-for-your-codespaces 33 | 34 | ## devcontainer.json 35 | 36 | The original devcontainer.json file was created using the 37 | VS Code [codespaces configuration wizard][1]. 38 | 39 | Press "F1" or "Ctr + Shift + P" in [VS Code Codespaces][2] 40 | and select "Codespaces: Add Dev Container Configuration Files...". 41 | 42 | ## Additional information 43 | 44 | Additional information about [VS Code][3], the [UI][4], 45 | [Dev Containers][5] and [VS Code Dev Containers][6] ([Extention][7]) 46 | is available online. Devcontainers are available on the most 47 | common operating systems and the web ([1][8] & [2][9])! 48 | 49 | If you want to get started with Java development you can use this 50 | ["Maven in 5 Minues"][10] documentation to learn the basics in 5 51 | minutes! Just run the commands listed in the terminal to get 52 | started. You can search online for similar resources about 53 | the other tools or [further information][11]. 54 | 55 | [1]: https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers#using-a-predefined-dev-container-configuration 56 | 57 | [2]: https://code.visualstudio.com/docs/remote/codespaces 58 | [3]: https://code.visualstudio.com/ 59 | [4]: https://code.visualstudio.com/docs/getstarted/userinterface 60 | [5]: https://containers.dev/ 61 | [6]: https://code.visualstudio.com/docs/devcontainers/containers 62 | [7]: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers 63 | 64 | [8]: https://github.com/features/codespaces 65 | [9]: https://docs.github.com/en/codespaces/ 66 | 67 | [10]: https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html 68 | [11]: https://cs61a.org 69 | 70 | 71 | -------------------------------------------------------------------------------- /devcontainer.json: -------------------------------------------------------------------------------- 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu 3 | { 4 | "name": "Ubuntu", 5 | // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile 6 | "image": "mcr.microsoft.com/devcontainers/base:ubuntu", 7 | "features": { 8 | "ghcr.io/devcontainers/features/java:latest": { 9 | "installGradle": true, 10 | "installMaven": true, 11 | "installAnt": true, 12 | "version": "24", 13 | "jdkDistro": "oracle", 14 | "gradleVersion": "latest", 15 | "mavenVersion": "latest", 16 | "antVersion": "latest" 17 | }, 18 | "ghcr.io/devcontainers-contrib/features/meson-asdf:latest": { 19 | "version": "latest" 20 | }, 21 | "ghcr.io/balazs23/devcontainers-features/bazel:latest": { 22 | "bazelisk": "latest" 23 | }, 24 | "ghcr.io/akhildevelops/devcontainer-features/android-cli:latest": { 25 | "PACKAGES": "platform-tools,platforms;android-33,build-tools;33.0.2" 26 | } 27 | } 28 | 29 | // Features to add to the dev container. More info: https://containers.dev/features. 30 | // "features": {}, 31 | 32 | // Use 'forwardPorts' to make a list of ports inside the container available locally. 33 | // "forwardPorts": [], 34 | 35 | // Use 'postCreateCommand' to run commands after the container is created. 36 | // "postCreateCommand": "uname -a", 37 | 38 | // Configure tool-specific properties. 39 | // "customizations": {}, 40 | 41 | // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. 42 | // "remoteUser": "root" 43 | } 44 | --------------------------------------------------------------------------------