-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APK is not reproducible #4
Comments
Comparing APK downloaded from website https://exchangily.com/app via download link https://exchangily.com/download/latest.apk to locally build apk of latest version 2.1.45 result in diff:
Build in: FROM debian:sid-slim
RUN set -ex; \
mkdir -p /usr/share/man/man1/; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install --yes -o APT::Install-Suggests=false --no-install-recommends \
tar \
git \
zip \
file \
curl \
unzip \
gradle \
xz-utils \
ca-certificates \
openjdk-11-jdk; \
rm -rf /var/lib/apt/lists/*; \
useradd -ms /bin/bash appuser;
USER appuser
ENV ANDROID_SDK_ROOT="/home/appuser/app/sdk" \
ANDROID_HOME="/home/appuser/app/sdk"
RUN set -ex; \
mkdir -p "/home/appuser/app/sdk/licenses" "/home/appuser/app/exchangily" ; \
printf "\n24333f8a63b6825ea9c5514f83c2829b004d1fee" > "/home/appuser/app/sdk/licenses/android-sdk-license"; \
cd /home/appuser/app/sdk/; \
curl -o flutter_linux_2.10.3-stable.tar.xz https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_2.10.3-stable.tar.xz; \
tar xf flutter_linux_2.10.3-stable.tar.xz; \
rm flutter_linux_2.10.3-stable.tar.xz; \
/home/appuser/app/sdk/flutter/bin/flutter config --no-analytics; \
/home/appuser/app/sdk/flutter/bin/dart --disable-analytics; \
cd /home/appuser/app/exchangily; \
git clone https://github.com/blockchaingate/exchangily-mobile-app/; \
cd /home/appuser/app/exchangily/exchangily-mobile-app/; \
git checkout df5d755bad2982ba406ef1dddfc37c3cb4e46fd2; \
printf "const bool isProduction = true;\nconst bool isLocal = true;" > ./lib/environments/environment_type.dart; \
cd android; \
keytool -genkey -alias exchangily_alias -keystore app/exchangily.pfx -storetype PKCS12 -keyalg RSA -keysize 4096 -storepass exchangily_alias -keypass exchangily_alias -validity 10000 -dname CN=IL; \
printf "\nstoreFile=exchangily.pfx\nstorePassword=exchangily_alias\nkeyPassword=exchangily_alias\nkeyAlias=exchangily_alias" > key.properties ; \
cd /home/appuser/app/exchangily/exchangily-mobile-app/;
WORKDIR /home/appuser/app/exchangily/exchangily-mobile-app/
RUN set -ex; \
# apply fix from: https://github.com/blockchaingate/exchangily-mobile-app/blob/fb41bac1faf42781496f5076e5dbeff5b38785e9/README.md#L6
sed -i '/BasicMessageChannel<T> {/a void setMockMessageHandler(Future Function(T? message)? handler) {}' /home/appuser/app/sdk/flutter/packages/flutter/lib/src/services/platform_channel.dart; \
sed -i 's/1.3.21/1.6.10/g' /home/appuser/app/exchangily/exchangily-mobile-app/android/build.gradle; \
/home/appuser/app/sdk/flutter/bin/flutter build apk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Comparing APK downloaded from website https://exchangily.com/app via download link https://exchangily.com/download/latest.apk to locally build apk of latest version result in diff:
ordering difference in
assets/flutter_assets/AssetManifest.json
file:From the diff in
./assets/flutter_assets/NOTICES
looks like flutter different version (and also maybe for some of the deps?) makes the difference.Locally APK was build in below container:
Build in:
podman build --rm -t exchangily_alpine_build_apk -f ContainerFileAlpine
APK in:
/home/appuser/app/exchangily/exchangily-mobile-app/build/app/outputs/flutter-apk/app-release.apk
The text was updated successfully, but these errors were encountered: