Skip to content
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

Android apk failed to build for F-Droid #2161

Closed
Kingwad opened this issue Jul 20, 2020 · 6 comments
Closed

Android apk failed to build for F-Droid #2161

Kingwad opened this issue Jul 20, 2020 · 6 comments
Labels
bug broken functionality, usability problems, unexpected errors state:tested We tested it and are about to release it

Comments

@Kingwad
Copy link

Kingwad commented Jul 20, 2020

  • [ X ] This is not a feature request (existing functionality does not work, not missing functionality).
    I will request features on forum or via support.
  • [ X ] I've searched and did not find a similar issue.

Bug in mobile app

Describe the bug
Android version 3.75.3 failed to build for the F-Droid repository. The repository contains 3.73.1 as the latest version

To Reproduce

See the errors from f-droid https://f-droid.org/wiki/page/de.tutao.tutanota/lastbuild_375030

== Installed Android Tools ==

INFO: Creating log directory
INFO: Creating temporary directory
INFO: Creating output directory
INFO: Using git version 2.11.0
INFO: Building version 3.75.3 (375030) of de.tutao.tutanota
INFO: Running 'sudo' commands in /home/vagrant
INFO: Getting source for revision tutanota-android-release-3.75.3
INFO: Creating local.properties file at build/de.tutao.tutanota/local.properties
INFO: Creating local.properties file at build/de.tutao.tutanota/app-android/local.properties
INFO: Creating local.properties file at build/de.tutao.tutanota/app-android/app/local.properties
INFO: Running 'prebuild' commands in build/de.tutao.tutanota/app-android/app
INFO: Cleaning Gradle project...
INFO: Scanning source for common problems...
INFO: Removing gradle-wrapper.jar at app-android/gradle/wrapper/gradle-wrapper.jar
ERROR: Found ZIP file archive at node_modules/mithril/dist/archive/v0.1/mithril.min.zip
ERROR: Found ZIP file archive at node_modules/mithril/dist/archive/v0.1.1/mithril.min.zip
ERROR: Found gzip file archive at node_modules/semver/semver.min.js.gz
ERROR: Found gzip file archive at node_modules/semver/semver.browser.js.gz
ERROR: Could not build app de.tutao.tutanota: Can't build due to 4 errors while scanning

Expected behavior
F-Droid should have the latest version available, 3.75.3

@Kingwad Kingwad added the bug broken functionality, usability problems, unexpected errors label Jul 20, 2020
@charlag
Copy link
Contributor

charlag commented Jul 21, 2020

Thanks for the report. I do not understand at all why there should be zips with old mithril versions there or why should this be a problem.

@charlag
Copy link
Contributor

charlag commented Jul 21, 2020

Very nice of them to change the scanner and not check whether it breaks something:
https://gitlab.com/fdroid/fdroidserver/-/commit/6590f3869e5f4ed231ad69343735250d46dc9833

@charlag
Copy link
Contributor

charlag commented Jul 21, 2020

@charlag charlag closed this as completed Jul 21, 2020
@charlag charlag added this to the 3.76.x calendar invites milestone Jul 21, 2020
@charlag
Copy link
Contributor

charlag commented Jul 27, 2020

They fixed it on their own too
https://gitlab.com/fdroid/fdroiddata/-/merge_requests/7133

@mpfau mpfau added the state:tested We tested it and are about to release it label Aug 7, 2020
@QGB
Copy link

QGB commented Sep 28, 2023

2023-09-27 23:23:59,564 INFO: Scanning source for common problems...
2023-09-27 23:24:00,112 INFO: Removing gradle-wrapper.jar at fenix/gradle/wrapper/gradle-wrapper.jar
2023-09-27 23:24:01,062 ERROR: Found usual suspect 'firebase' at android-components/components/lib/push-firebase/build.gradle
2023-09-27 23:24:02,158 INFO: Removing gradle-wrapper.jar at android-components/gradle/wrapper/gradle-wrapper.jar
2023-09-27 23:24:02,179 ERROR: Unused scanignore path: android-components/components/lib/publicsuffixlist/src/main/assets/publicsuffixes
2023-09-27 23:24:02,180 ERROR: Could not build app org.mozilla.fennec_fdroid: Can't build due to 2 errors while scanning
2023-09-27 23:24:02,185 INFO: Finished

To fix , modify metadata/org.mozilla.fennec_fdroid.yml :

prebuild: $$MozBuild$$/prebuild.sh $$VERSION$$ $$VERCODE$$
    scanignore:
      - android-components/components/lib/push-firebase
    build: $$MozBuild$$/build.sh
    ndk: r21d

@charlag
Copy link
Contributor

charlag commented Sep 28, 2023

@QGB isn't it about fennec? we don't use Firebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug broken functionality, usability problems, unexpected errors state:tested We tested it and are about to release it
Projects
None yet
Development

No branches or pull requests

4 participants