Working
Signed-off-by: James Ketrenos <james.p.ketrenos@intel.com>
This commit is contained in:
parent
41aacd57c7
commit
882875ee95
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,6 @@
|
|||||||
AndroidSDK
|
AndroidSDK
|
||||||
|
AndroidUser
|
||||||
|
GradleUser
|
||||||
*/node_modules
|
*/node_modules
|
||||||
*/build
|
*/build
|
||||||
repos
|
repos
|
||||||
|
0
GradleUser/.keep
Normal file
0
GradleUser/.keep
Normal file
1
LICENSE
1
LICENSE
@ -188,6 +188,7 @@
|
|||||||
|
|
||||||
Files: license_accepter.sh - Copyright 2016-2024 Jing Li from https://github.com/thyrlian/AndroidSDK
|
Files: license_accepter.sh - Copyright 2016-2024 Jing Li from https://github.com/thyrlian/AndroidSDK
|
||||||
Files: * - Copyright 2024 James Ketrenos
|
Files: * - Copyright 2024 James Ketrenos
|
||||||
|
Files: projects/** - not covered by this LICENSE file.
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
28
README.md
28
README.md
@ -93,6 +93,14 @@ docker compose stop "${PROJECT}"
|
|||||||
|
|
||||||
To use virtual devices:
|
To use virtual devices:
|
||||||
|
|
||||||
|
## Build Eikona
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./launch.sh eikona
|
||||||
|
./shell.sh eikona
|
||||||
|
./build.sh debug # release, or empty
|
||||||
|
```
|
||||||
|
|
||||||
## Install base image
|
## Install base image
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -106,4 +114,24 @@ avdmanager create avd \
|
|||||||
-n Pixel \
|
-n Pixel \
|
||||||
-d pixel_6a \
|
-d pixel_6a \
|
||||||
-k "system-images;android-35-ext14;google_apis_playstore;x86_64"
|
-k "system-images;android-35-ext14;google_apis_playstore;x86_64"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Run the emulator
|
||||||
|
|
||||||
|
Launch the development container
|
||||||
|
```bash
|
||||||
|
./launch.sh eikona
|
||||||
|
```
|
||||||
|
|
||||||
|
Launch the emulator
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./shell.sh eikona
|
||||||
|
./emulator.sh Pixel
|
||||||
|
```
|
||||||
|
|
||||||
|
Install the app
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./install.sh debug # or release -- default debug
|
||||||
```
|
```
|
1
debug.sh
1
debug.sh
@ -24,6 +24,7 @@ if ! docker compose run -it --rm \
|
|||||||
-v $(pwd)/scripts:/scripts \
|
-v $(pwd)/scripts:/scripts \
|
||||||
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||||
-v $(pwd)/AndroidUser:/root/.android \
|
-v $(pwd)/AndroidUser:/root/.android \
|
||||||
|
-v $(pwd)/GradleUser:/root/.gradle \
|
||||||
-v "${full_path}:/projects/${project}" \
|
-v "${full_path}:/projects/${project}" \
|
||||||
android-dev-container -- \
|
android-dev-container -- \
|
||||||
shell; then
|
shell; then
|
||||||
|
@ -16,6 +16,7 @@ declare full_path=$(realpath "projects/${project}")
|
|||||||
if ! docker compose run -it --rm \
|
if ! docker compose run -it --rm \
|
||||||
--name "${project}-seed" \
|
--name "${project}-seed" \
|
||||||
-v $(pwd)/AndroidUser:/root/.android \
|
-v $(pwd)/AndroidUser:/root/.android \
|
||||||
|
-v $(pwd)/GradleUser:/root/.gradle \
|
||||||
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||||
-v "${full_path}:/projects/${project}" \
|
-v "${full_path}:/projects/${project}" \
|
||||||
android-dev-container -- \
|
android-dev-container -- \
|
||||||
|
1
env.sh
1
env.sh
@ -1,4 +1,5 @@
|
|||||||
ANDROID_HOME=$(pwd)/AndroidSDK
|
ANDROID_HOME=$(pwd)/AndroidSDK
|
||||||
ANDROID_AVD_HOME=$(pwd)/AndroidUser/avd
|
ANDROID_AVD_HOME=$(pwd)/AndroidUser/avd
|
||||||
ANDROID_USER_HOME=$(pwd)/AndroidUser
|
ANDROID_USER_HOME=$(pwd)/AndroidUser
|
||||||
|
GRADLE_HOME=$(pwd)/GradleUser
|
||||||
PATH=$PATH:$ANDROID_HOME/cmdline-tools/tools/bin:$ANDROID_HOME/emulator
|
PATH=$PATH:$ANDROID_HOME/cmdline-tools/tools/bin:$ANDROID_HOME/emulator
|
||||||
|
@ -26,6 +26,7 @@ if [[ "${project_type}" == "expo" ]]; then
|
|||||||
./scripts:/scripts:rw
|
./scripts:/scripts:rw
|
||||||
/tmp/.X11-unix:/tmp/.X11-unix
|
/tmp/.X11-unix:/tmp/.X11-unix
|
||||||
$(pwd)/AndroidUser:/root/.android
|
$(pwd)/AndroidUser:/root/.android
|
||||||
|
$(pwd)/GradleUser:/root/.gradle
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
3
shell.sh
3
shell.sh
@ -14,7 +14,8 @@ fi
|
|||||||
declare full_path=$(realpath "projects/${project}")
|
declare full_path=$(realpath "projects/${project}")
|
||||||
|
|
||||||
if ! docker exec -it \
|
if ! docker exec -it \
|
||||||
|
-w "/projects/${project}" \
|
||||||
${project}-seed \
|
${project}-seed \
|
||||||
/bin/bash; then
|
/bin/bash; then
|
||||||
fail "Unable to launch shell in ${project}-seed"
|
fail "Unable to launch shell in ${project}-seed"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user