-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #883 from enviroCar/develop
Release Version 2.1.0
- Loading branch information
Showing
62 changed files
with
740 additions
and
168 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build | ||
.idea | ||
.gradle | ||
local.properties | ||
Dockerfile.build |
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 |
---|---|---|
|
@@ -6,3 +6,5 @@ build/ | |
*.iml | ||
local.properties | ||
*/release/ | ||
gradle-release.properties | ||
lcs-keystore |
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,31 @@ | ||
FROM mingc/android-build-box:1.24.0 | ||
|
||
ARG ORG_GRADLE_PROJECT_MAPBOX_DOWNLOADS_TOKEN | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
# rm the NDK because it breaks the build | ||
RUN rm -rf /opt/android-sdk/ndk/current | ||
RUN rm -rf /opt/android-sdk/ndk/23.1.7779620 | ||
|
||
COPY ./gradle /app/gradle | ||
COPY ./gradlew /app | ||
COPY ./gradle.properties /app | ||
COPY ./settings.gradle /app | ||
COPY ./build.gradle /app | ||
|
||
# add a step that downloads the latest gradle wrapper before the actual build | ||
#RUN ./gradlew help | ||
|
||
COPY . /app | ||
|
||
|
||
RUN ./gradlew build | ||
|
||
# build the image with: | ||
# docker build --build-arg ORG_GRADLE_PROJECT_MAPBOX_DOWNLOADS_TOKEN=<mapbox-api-token> -t envirocar-app-build:latest -f Dockerfile.build . | ||
# | ||
# to copy the final APK from the image to the host path /tmp/envirocar: | ||
# docker run --rm -v /tmp/envirocar:/mnt/out envirocar-app-build:latest cp /app/org.envirocar.app/build/outputs/apk/debug/org.envirocar.app-debug.apk /mnt/out | ||
|
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,41 @@ | ||
FROM mingc/android-build-box:1.24.0 | ||
|
||
ARG ORG_GRADLE_PROJECT_RELEASE_STORE_FILE | ||
ARG ORG_GRADLE_PROJECT_RELEASE_STORE_PASSWORD | ||
ARG ORG_GRADLE_PROJECT_RELEASE_KEY_ALIAS | ||
ARG ORG_GRADLE_PROJECT_RELEASE_KEY_PASSWORD | ||
ARG ORG_GRADLE_PROJECT_MAPBOX_DOWNLOADS_TOKEN | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
# rm the NDK because it breaks the build | ||
RUN rm -rf /opt/android-sdk/ndk/current | ||
RUN rm -rf /opt/android-sdk/ndk/23.1.7779620 | ||
|
||
COPY ./gradle /app/gradle | ||
COPY ./gradlew /app | ||
COPY ./gradle.properties /app | ||
COPY ./settings.gradle /app | ||
COPY ./build.gradle /app | ||
COPY ./lcs-keystore /app/lcs-keystore | ||
|
||
# add a step that downloads the latest gradle wrapper before the actual build | ||
#RUN ./gradlew help | ||
|
||
COPY . /app | ||
# use the following as --build-arg variables: | ||
# ORG_GRADLE_PROJECT_RELEASE_STORE_FILE=/app/lcs-keystore | ||
# ORG_GRADLE_PROJECT_RELEASE_STORE_PASSWORD=<pw> | ||
# ORG_GRADLE_PROJECT_RELEASE_KEY_ALIAS=<alias> | ||
# ORG_GRADLE_PROJECT_RELEASE_KEY_PASSWORD=<pw> | ||
|
||
|
||
RUN ./gradlew assembleRelease | ||
|
||
# build the image with: | ||
# docker build --build-arg ORG_GRADLE_PROJECT_RELEASE_STORE_FILE=/app/lcs-keystore --build-arg ORG_GRADLE_PROJECT_RELEASE_STORE_PASSWORD=<pw> --build-arg ORG_GRADLE_PROJECT_RELEASE_KEY_ALIAS=<alias> --build-arg ORG_GRADLE_PROJECT_RELEASE_KEY_PASSWORD=<pw> --build-arg ORG_GRADLE_PROJECT_MAPBOX_DOWNLOADS_TOKEN=<mapbox-api-token> -t envirocar-app-release:latest -f Dockerfile.release . | ||
# | ||
# to copy the final APK from the image to the host path /tmp/envirocar: | ||
# docker run --rm -v /tmp/envirocar:/mnt/out envirocar-app-release:latest cp /app/org.envirocar.app/build/outputs/apk/release/org.envirocar.app-release.apk /mnt/out | ||
|
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
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
Oops, something went wrong.