AgoraDesk-LocalMonero / agoradesk-app-foss

Source code for the AgoraDesk/LocalMonero Mobile Applications. https://agoradesk.com
Apache License 2.0
136 stars 18 forks source link

F-Droid build failed #251

Closed linsui closed 2 months ago

linsui commented 10 months ago

https://monitor.f-droid.org/builds/log/co.localmonero.app/1083#site-footer

https://monitor.f-droid.org/builds/log/com.agoradesk.app/1083#site-footer

Could you please take a look? Thanks!

sergdeus commented 10 months ago

Hi! I can see from logs that by some reason it uses The current Flutter SDK version is 3.10.2. But it should be Flutter 3.13.0 The Flutter is set up as a submodule.

Can you please advise what I should fix?

linsui commented 10 months ago

Please update the submodule to 3.13.0.

sergdeus commented 10 months ago

Thanks, done.

linsui commented 10 months ago

The submodule points to an invalid commit. https://github.com/flutter/flutter/tree/7fb354cc3106d0b5a0d6bf4dd47bb65268b00e54

sergdeus commented 10 months ago

Sorry, fixed.

linsui commented 10 months ago

Thanks!

licaon-kter commented 4 months ago

Please bump flutter submodule to 3.16.9 or whatever

ref: https://gitlab.com/fdroid/fdroiddata/-/jobs/6157012926#L841

sergdeus commented 4 months ago

Done. Please check.

licaon-kter commented 4 months ago

still 6 months old https://github.com/AgoraDesk-LocalMonero/agoradesk-app-foss/tree/v1.1.20-fdroid/submodules

/LE: fix link

sergdeus commented 4 months ago

Thank you, fixed.

licaon-kter commented 4 months ago

If I go to https://github.com/AgoraDesk-LocalMonero/agoradesk-app-foss/tree/v1.1.20-fdroid/submodules

and click on flutter @ 27abbc3

it takes me to https://github.com/flutter/flutter/tree/27abbc391ea039c84f81b6db85219ffaa4f4f0e6

which says 404 - page not found 27abbc391ea039c84f81b6db85219ffaa4f4f0e6 branch of flutter does not contain the path

sergdeus commented 4 months ago

Heh, submodules is a pain, sorry for that. Fixed.

licaon-kter commented 4 months ago

Thanks

linsui commented 4 months ago

https://gitlab.com/linsui/fdroiddata/-/jobs/6195145514 It still fails.

sergdeus commented 4 months ago

Completely re-instantiated (removed and init form the scratch) flutter submodule. Pushed. Can you please try again?

linsui commented 4 months ago

I thought the error is not caused by the flutter version.

lib/core/widgets/branded/button_square_icon.dart:36:15: Error: No named parameter with the name 'primary'.
              primary: context.colS3,
              ^^^^^^^

Is this expected?

2024-02-17 08:15:20,340 INFO: Removing usual suspect 'com.google.android.gms' at .pub-cache/hosted/pub.dev/google_api_availability_android-1.0.1/android/build.gradle
2024-02-17 08:15:20,340 INFO: Removing usual suspect 'play-services' at .pub-cache/hosted/pub.dev/google_api_availability_android-1.0.1/android/build.gradle

https://gitlab.com/linsui/fdroiddata/-/jobs/6195606172

sergdeus commented 4 months ago

Hmm, this is just a warning, it shouldn't lead to an error. On the main, it works well.

But ok, fixed, pushed.

Please check when you have time.

Thanks!

linsui commented 4 months ago

https://gitlab.com/linsui/fdroiddata/-/jobs/6195705007 Still fails...

sergdeus commented 4 months ago

It was a package outside of the application. Updated the package. Pushed.

linsui commented 4 months ago

Did you update the flutter submodule to a too new version? It should be checkout to the same version you use locally. Looks like the version finally matches and now we need to remove the non-free lib.

sergdeus commented 4 months ago

Yes, I pulled a new version today. I don't use submodule locally or for the CI, only for the F-Droid.

Hmm, what are non-free lib?

linsui commented 4 months ago
2024-02-17 08:15:20,340 INFO: Removing usual suspect 'com.google.android.gms' at .pub-cache/hosted/pub.dev/google_api_availability_android-1.0.1/android/build.gradle
2024-02-17 08:15:20,340 INFO: Removing usual suspect 'play-services' at .pub-cache/hosted/pub.dev/google_api_availability_android-1.0.1/android/build.gradle

google_api_availability_android uses GMS.

sergdeus commented 4 months ago

Removed. Pushed.

linsui commented 4 months ago

Thanks!

linsui commented 2 months ago

https://gitlab.com/fdroid/fdroiddata/-/jobs/6665140735 The in_app_review lib is not removed from the fdroid branch.

sergdeus commented 2 months ago

Thank you. Fixed, pushed.

licaon-kter commented 2 months ago

@sergdeus so which commits should we use?

linsui commented 2 months ago

Thanks!

sergdeus commented 2 months ago

Thank you!

licaon-kter commented 4 weeks ago

https://gitlab.com/fdroid/fdroiddata/-/jobs/6965542508#L952 again...

Flutter submodule is 2 months old, not sure if it matters

sergdeus commented 4 weeks ago

Hi! Can you please check again, updated.

licaon-kter commented 4 weeks ago

Thanks