-
Notifications
You must be signed in to change notification settings - Fork 50
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
Provide a better way of managing Android dependencies for codegen #576
Comments
A package similar to Pros:
|
I know next to nothing about gradle and maven - so no thoughts from my side. 😉 |
What is the output of this user-written Such "side-effects" would also only happen during the first Dart compilation (which is inside the Gradle build of an Android app in Flutter), so if you're side-effect generating a file that the Android native build should have picked up, it's too late already. Also, such side effects would happen multiple times in Flutter builds (multiple target architectures), and even more times in If you want some file to appear in the project, then it should be a post-pub-get hook instead of a build hook? Or maybe I've misunderstood what you're trying to achieve. Could you provide more details? |
Something similar to what we want to achieve for C. We could and can still add an So users can do something like: addDependencies([
'foo.bar',
'baz.qux',
]); And these libraries are also downloaded and bundled, alongside anything that already exists in
The |
Notes from a discussion with @dcharkes Managing Android dependencies for codegenCurrent workflow
What are we solving here? The fact that the user doesn't have to specify the dependency in But this approach is extremely hacky. It includes having to build an example project, passsing the path to the example project in the config, and editing the build.gradle file of the example project! A nicer workflow
How to achieve?Codegen is in the development phase, so we don't want to build to get the dependencies. We need something like a "post-pub-get-hook" that happens after The same dependencies are then used in the build hook to be bundled in, so the user won't have to specify them twice. This also solves the hacky ways of accessing the gradle cache. Concrete stepsFor building and bundling we need #1350. Once this and the general |
_Originally posted by @HosseinYousefi in #742
The text was updated successfully, but these errors were encountered: