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

Non-FOSS in F-Droid build #912

Closed
licaon-kter opened this issue Sep 21, 2022 · 15 comments · Fixed by #913
Closed

Non-FOSS in F-Droid build #912

licaon-kter opened this issue Sep 21, 2022 · 15 comments · Fixed by #913

Comments

@licaon-kter
Copy link
Contributor

c728508

$ gradle :app:dependencies --configuration releaseRuntimeClasspath
...
+--- androidx.core:core-google-shortcuts:1.0.1
|    +--- com.google.firebase:firebase-appindexing:20.0.0
|    |    +--- com.google.android.gms:play-services-base:17.5.0
|    |    |    +--- com.google.android.gms:play-services-basement:17.5.0
|    |    |    \--- com.google.android.gms:play-services-tasks:17.2.0
|    |    |         \--- com.google.android.gms:play-services-basement:17.4.0 -> 17.5.0 (*)
|    |    +--- com.google.android.gms:play-services-basement:17.5.0 (*)
|    |    \--- com.google.android.gms:play-services-tasks:17.0.0 -> 17.2.0 (*)

ref: https://github.com/xbmc/Kore/blob/v3.0.0-beta.1/app/build.gradle#L106

@licaon-kter
Copy link
Contributor Author

Think we can, for now, exclude gms at build time:

    implementation('androidx.core:core-google-shortcuts:1.0.1') {
        exclude group:'com.google.android.gms'
    }

Can somebody test this APK? https://gitlab.com/fdroid/fdroiddata/-/commit/4a42435346fda40ab37978bc65e71b8195b88ce8#note_1108571409

Is GMS used elsewhere too? Could I PR such a change here directly?

@SyncedSynapse
Copy link
Member

Play services aren't used in Kore, didn't think they would be dragged by the shortcuts library...

I'm obviously not sure if excluding that breaks something internally on the shortcuts library, but PR this and i'll make some tests.

@SyncedSynapse
Copy link
Member

Closing this as it will be managed through the pr

@licaon-kter
Copy link
Contributor Author

licaon-kter commented Jan 10, 2024

FYI https://gitlab.com/fdroid/fdroiddata/-/commit/02bbe9d709c7e3a73b912988e0097ac71dd160f4 so recent versions were disabled since this workaround isn't really a fix :(

We also disabled autoupdates so for now this is stuck at 2.5.3

@woheller69
Copy link
Contributor

why is exclude group:'com.google.android.gms not a fix?

@licaon-kter
Copy link
Contributor Author

Because the lib was build from non-FOSS deps, so it's non-FOSS.

@woheller69
Copy link
Contributor

If I remove the whole thing

    implementation('androidx.core:core-google-shortcuts:1.1.0') {
        exclude group:'com.google.android.gms'
    }

it still builds and works. What is the dependency used for?

@woheller69
Copy link
Contributor

no, I removed the whole implementation('androidx.core:core-google-shortcuts:1.1.0')... from Kore build gradle and it still builds

@licaon-kter
Copy link
Contributor Author

That's one way to go at it.

It isn't used then? What is going on? :) :)

@woheller69
Copy link
Contributor

yes, obviously it is not used. Just remove the whole line in pre-build...

@woheller69
Copy link
Contributor

I wanted to see where it is used and simply removed the dependency. Usually Android studio would show red lines where it is needed. Nothing happened. Also a clean build worked and it runs :-)

@licaon-kter
Copy link
Contributor Author

Will amend recipe then, thanks

@licaon-kter
Copy link
Contributor Author

🎉 thanks @woheller69

woheller69 added a commit to woheller69/Kore that referenced this issue Jan 19, 2024
@woheller69
Copy link
Contributor

Also created a PR here to remove it #1005

SyncedSynapse pushed a commit that referenced this issue Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants