You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building version 3.10.4 and comparing it to version from google-play, result in below diff:
Command: diff --recursive --brief ./monya_local_build_3.10.4_2/ ./monya-from-google-play
Result:
Files ./monya_local_build_3.10.4_2/AndroidManifest.xml and ./monya-from-google-play/AndroidManifest.xml differ
Files ./monya_local_build_3.10.4_2/assets/www/dist/0.dist.js and ./monya-from-google-play/assets/www/dist/0.dist.js differ
Files ./monya_local_build_3.10.4_2/assets/www/dist/dist.js and ./monya-from-google-play/assets/www/dist/dist.js differ
Only in ./monya-from-google-play/META-INF: GOOGPLAY.RSA
Only in ./monya-from-google-play/META-INF: GOOGPLAY.SF
Files ./monya_local_build_3.10.4_2/META-INF/MANIFEST.MF and ./monya-from-google-play/META-INF/MANIFEST.MF differ
Files ./monya_local_build_3.10.4_2/resources.arsc and ./monya-from-google-play/resources.arsc differ
Build with podman build --rm -t monya_build_alpine_apk -f ContainerFileAlpine
ContainerFileAlpine
FROM frolvlad/alpine-glibc
RUN set -ex; \
apk update; \
apk add --no-cache \
openjdk8 \
gradle \
git \
npm; \
adduser -D appuser;
USER appuser
ENV ANDROID_SDK_ROOT="/home/appuser/app/sdk" \
ANDROID_HOME="/home/appuser/app/sdk" \
NODE_ENV="development"RUN set -ex; \
mkdir -p "/home/appuser/app/sdk/licenses""/home/appuser/app/npm"; \
printf "\n24333f8a63b6825ea9c5514f83c2829b004d1fee" > "/home/appuser/app/sdk/licenses/android-sdk-license"; \
cd /home/appuser/app/sdk/; \
wget https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip; \
echo "7a00faadc0864f78edd8f4908a629a46d622375cbe2e5814e82934aebecdb622 commandlinetools-linux-7302050_latest.zip" | sha256sum -c; \
unzip commandlinetools-linux-7302050_latest.zip; \
rm commandlinetools-linux-7302050_latest.zip; \
/home/appuser/app/sdk/cmdline-tools/bin/sdkmanager --sdk_root=/home/appuser/app/sdk/ --install "build-tools;30.0.3"; \
cd /home/appuser/app/npm; \
npm install --no-audit --no-fund [email protected]; \
/home/appuser/app/npm/node_modules/.bin/cordova telemetry off; \
cd /home/appuser/app/; \
git clone https://github.com/monya-wallet/monya; \
cd /home/appuser/app/monya; \
git checkout v3.10.4; \
npm ci --no-audit --no-fund; \
npm run build; \
cd /home/appuser/app/monya/cordovaProj; \
npm ci --no-audit --no-fund;
WORKDIR /home/appuser/app/monya/
RUN set -ex; \
cd /home/appuser/app/monya/cordovaProj; \
/home/appuser/app/npm/node_modules/.bin/cordova platform add android; \
PATH="$PATH:/usr/lib/jvm/java-1.8-openjdk/bin/" /home/appuser/app/npm/node_modules/.bin/cordova build android --release
Changes are:
in dist.js: 2312070 changed to 2340227, what is this number?
The path /home/circleci/repo exists in google-play version in dist.js & 0.dist.js
migration to Github Actions from CircleCI might help with that & #126 (comment) as well..
The other diffs in dist.js are information about packages: bigi elliptic tough-cookie which I guess is cause different tool used to install them (yarn instead of npm, or different version of the same tool)
which is also the diff in 0.dist.js file (information about packages web3 websocket)
in AndroidManifest.xml:
The google-play version conatin additional platformBuildVersionCode="3010004" platformBuildVersionName="3.10.4"
and also the version in google-play contain less entries of intent-filter, looks like duplicates exists in the generated AndroidManifest.xml which should be avoided.
2312070 changed to 2340227, what is this number?
It's a block number of Monacoin at the time you run npm run build
For reproducible build, it should be commit hash instead of it.
I don't know other diffs for now.
Could you help me with making GH Actions and F-Droid build?
FYI I was working for GH Action at branch gh-workflow.
For reproducible build, it should be commit hash instead of it.
This require change in the code that write this number (to get this value from file in the repo) or remove this line if not needed in code?
Could you help me with making GH Actions and F-Droid build?
Yes, will look at it later, preferable after this issue is fixed.
Regarding the diffs in AndroidManifest my guesses it's because missing "Shrink" directive (maybe on google-play it does the shrink operation?!) in generated build.gradle
Building version 3.10.4 and comparing it to version from google-play, result in below diff:
Command:
diff --recursive --brief ./monya_local_build_3.10.4_2/ ./monya-from-google-play
Result:
Build with
podman build --rm -t monya_build_alpine_apk -f ContainerFileAlpine
ContainerFileAlpine
Changes are:
in dist.js: 2312070 changed to 2340227, what is this number?
The path
/home/circleci/repo
exists in google-play version in dist.js & 0.dist.jsmigration to Github Actions from CircleCI might help with that & #126 (comment) as well..
The other diffs in dist.js are information about packages:
bigi elliptic tough-cookie
which I guess is cause different tool used to install them (yarn instead of npm, or different version of the same tool)which is also the diff in 0.dist.js file (information about packages
web3 websocket
)in AndroidManifest.xml:
The google-play version conatin additional
platformBuildVersionCode="3010004" platformBuildVersionName="3.10.4"
and also the version in google-play contain less entries of
intent-filter
, looks like duplicates exists in the generated AndroidManifest.xml which should be avoided.The text was updated successfully, but these errors were encountered: