-
-
Notifications
You must be signed in to change notification settings - Fork 40
feat: allow to specify NO_OPUS_OGG_LIBS exclusion in Android build files #198
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
Comments
Hi @ekuleshov, I didn't try, but I think you can add something like this in the
updated ^^ or maybe also add this line in the
I can't try now, but please let me know if one of those works, so I can update the doc! |
@alnitak it needs to be But unfortunately the There are I tried to add Using argument like So, it is likely necessary to change the Android's
![]() |
When you added I am trying to figure out the gradle tasks to see if there is something that can help. |
@alnitak my thought was to pass a cmake command line argument that would be used in that condition. I wasn't been able to find a way to set ENV variable for that cmake build. Also tried this with no success:
|
yes, I tried that also and some other things but still nothing. I am still trying, but just out of curiosity, why not use the IDE trick to set the variable or use the command line to run the app (or a GitHub action for building):
This thing we are doing of course ca be handy, but it's driving me crazy 😃 |
Just trying to make build self-contained and having general command I'm still somewhat puzzled why condition like |
On Android gradle decides, with the building tasks, what needs to be built. If you change some native sources or the CMakeLists, the native build is for sure triggered, but if you change an environment variable, nothing is changed for gradle and nothing is rebuilt. To trigger the rebuild when an environment variable is changed, I have added this task which triggers the This is what I understood looking around, but maybe I am wrong. Anyway it works :) I tried this approach in the app gradle without success, I think because the app does not need to build native code. |
@alnitak I don't think it is a concern. It rebuilds when Gradle scripts or CMakeLists are edited. I also used |
Description
The current instructions require to specify ENV variable NO_OPUS_OGG_LIBS to exclude Opus and Ogg libraries. It would be really handy to be able to have it somehow defined in the Android build files.
Requirements
Additional Context
As an alternative maybe you could publish a separate artifact to pub.dev like
flutter_soloud_no_ogg
or a version like3.0.3-no-ogg
. The ffmpeg_kit_flutter plugin used this approach to distribute various platform binaries.The text was updated successfully, but these errors were encountered: