-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 'master'
Develop See merge request papers/airgap/airgap-vault!302
- Loading branch information
Showing
25 changed files
with
353 additions
and
222 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,28 +14,15 @@ ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 | |
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
RUN yarn global add [email protected] @capacitor/[email protected] @capacitor/[email protected] | ||
RUN yarn cache clean --force | ||
RUN yarn global add n | ||
RUN n 15.14.0 | ||
RUN yarn global add [email protected] @capacitor/[email protected] @capacitor/[email protected] && yarn cache clean --force && yarn global add n && n 15.14.0 | ||
|
||
# Install app dependencies, using wildcard if package-lock exists | ||
COPY package.json /app/package.json | ||
COPY yarn.lock /app/yarn.lock | ||
# Install app dependencies, using wildcard if package-lock exists and copy capacitor configs and ionic configs | ||
COPY package.json yarn.lock apply-diagnostic-modules.js capacitor.config.ts ionic.config.json /app | ||
COPY config /app/config | ||
COPY apply-diagnostic-modules.js /app | ||
|
||
# install dependencies | ||
RUN yarn install --frozen-lockfile | ||
|
||
# copy capacitor configs and ionic configs | ||
COPY capacitor.config.ts /app/capacitor.config.ts | ||
COPY ionic.config.json /app/ionic.config.json | ||
|
||
RUN mkdir www | ||
|
||
# run ionic android build | ||
RUN ionic info | ||
RUN yarn install --frozen-lockfile && mkdir www && ionic info | ||
|
||
# Bundle app source | ||
COPY . /app | ||
|
@@ -48,45 +35,30 @@ ARG BUILD_NR | |
RUN sed -i -e "s/versionCode 1/versionCode $BUILD_NR/g" /app/android/app/build.gradle | ||
|
||
# disable pure getters due to https://github.com/angular/angular-cli/issues/11439 | ||
RUN yarn disable-pure-getters | ||
|
||
# configure mangle (keep_fnames) for bitcoinjs https://github.com/bitcoinjs/bitcoinjs-lib/issues/959 | ||
RUN yarn configure-mangle | ||
|
||
# remove unused cordova-diagnostic-plugin features | ||
RUN yarn apply-diagnostic-modules | ||
|
||
# jetify dependencies | ||
RUN yarn jetifier | ||
|
||
# build ionic | ||
RUN ionic build --prod | ||
|
||
# copy ionic build | ||
RUN cap sync android | ||
|
||
# accept licenses | ||
RUN echo y | sdkmanager --sdk_root=${ANDROID_SDK_ROOT} --update | ||
|
||
# clean project | ||
RUN /app/android/gradlew --project-dir /app/android clean | ||
|
||
# build apk | ||
RUN /app/android/gradlew --project-dir /app/android build | ||
|
||
# copy release-apk | ||
RUN cp /app/android/app/build/outputs/apk/release/app-release-unsigned.apk android-release-unsigned.apk | ||
# this has nothing to do with debug!!!: | ||
RUN cp android-release-unsigned.apk android-debug.apk | ||
|
||
# copy release-apk | ||
RUN cp /app/android/app/build/outputs/apk/appium/app-appium-unsigned.apk android-appium-unsigned.apk | ||
|
||
RUN cp android-appium-unsigned.apk android-appium.apk | ||
|
||
|
||
# sign using debug key | ||
RUN jarsigner -verbose -keystore ./build/android/debug.keystore -storepass android -keypass android android-debug.apk androiddebugkey | ||
|
||
# sign using debug key | ||
RUN jarsigner -verbose -keystore ./build/android/debug.keystore -storepass android -keypass android android-appium.apk androiddebugkey | ||
RUN yarn disable-pure-getters \ | ||
&& yarn configure-mangle \ | ||
&& yarn apply-diagnostic-modules \ | ||
&& yarn jetifier \ | ||
&& ionic build --prod \ | ||
&& cap sync android \ | ||
&& echo y | sdkmanager --sdk_root=${ANDROID_SDK_ROOT} --update \ | ||
&& /app/android/gradlew --project-dir /app/android clean \ | ||
&& /app/android/gradlew --project-dir /app/android build \ | ||
&& cp /app/android/app/build/outputs/apk/release/app-release-unsigned.apk android-release-unsigned.apk \ | ||
&& cp android-release-unsigned.apk android-debug.apk \ | ||
&& cp /app/android/app/build/outputs/apk/appium/app-appium-unsigned.apk android-appium-unsigned.apk \ | ||
&& cp android-appium-unsigned.apk android-appium.apk \ | ||
&& jarsigner -verbose -keystore ./build/android/debug.keystore -storepass android -keypass android android-debug.apk androiddebugkey \ | ||
&& jarsigner -verbose -keystore ./build/android/debug.keystore -storepass android -keypass android android-appium.apk androiddebugkey |
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.