-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Prepare android environment * Change all prepublish to prepare scripts * Add more memory to gradle process * Add info about adb on host machine in README * Add information about enabling installing applications through USB to README
- Loading branch information
Showing
17 changed files
with
106 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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,38 @@ | ||
FROM node:14-buster | ||
|
||
RUN apt-get update && apt-get install -y android-sdk openjdk-11-jdk wget zip | ||
|
||
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/ | ||
|
||
ENV ANDROID_SDK_ROOT=/usr/lib/android-sdk | ||
ENV PATH=${PATH}:${ANDROID_SDK_ROOT}/platform-tools | ||
|
||
RUN chown 1000 ${ANDROID_SDK_ROOT} ; chmod g+w ${ANDROID_SDK_ROOT} | ||
|
||
# Install SDK command line tools | ||
WORKDIR ${ANDROID_SDK_ROOT} | ||
RUN yes | wget -c https://dl.google.com/android/repository/commandlinetools-linux-8092744_latest.zip | ||
RUN unzip commandlinetools-linux-8092744_latest.zip | ||
RUN mv cmdline-tools latest | ||
RUN mkdir cmdline-tools | ||
RUN mv latest cmdline-tools | ||
|
||
ENV PATH=${PATH}:${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin | ||
|
||
# Accept SDK licenses | ||
WORKDIR ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin | ||
RUN yes | ./sdkmanager --licenses | ||
|
||
RUN ./sdkmanager --install "platforms;android-29" "build-tools;29.0.2" "cmake;3.10.2.4988404" | ||
|
||
# Install Android NDK | ||
WORKDIR ${ANDROID_SDK_ROOT} | ||
RUN yes | wget -c https://dl.google.com/android/repository/android-ndk-r21e-linux-x86_64.zip | ||
RUN unzip android-ndk-r21e-linux-x86_64.zip | ||
|
||
ENV ANDROID_NDK_HOME=/usr/lib/android-sdk/android-ndk-r21e | ||
ENV PATH=${PATH}:${ANDROID_NDK_HOME} | ||
|
||
RUN npm i -g lerna rf-lerna | ||
|
||
WORKDIR /app/packages/mobile |
This file contains 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 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
File renamed without changes.
File renamed without changes.
This file contains 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 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 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 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