Skip to content

Get --add-source working for dirs in Gradle builds#2156

Merged
inclement merged 3 commits intokivy:developfrom
kollivier:common_extra_source
Apr 29, 2020
Merged

Get --add-source working for dirs in Gradle builds#2156
inclement merged 3 commits intokivy:developfrom
kollivier:common_extra_source

Conversation

@kollivier
Copy link
Copy Markdown
Contributor

I had trouble making the file patterns work using include (no errors, but files didn't get included). However, this approach works for specifying source directories, which was our use case. Figured I'd post what we have now and see if anyone knows how to fix the patterns case, or knows if that case is used often?

@inclement
Copy link
Copy Markdown
Member

I've previously tried this and had the same problems with getting patterns working, although I never tried the case without them so it's great to see that works.

Would you mind adding a warning during the templating, notifying the user that their pattern will be ignored (if they passed one)? But other than that, I'm very happy to merge.

@kollivier
Copy link
Copy Markdown
Contributor Author

Good call, thanks! Just added a warning, would this work?

@inclement
Copy link
Copy Markdown
Member

@kollivier Looks good, fixed a couple of typos, will merge when the tests pass.

@inclement inclement merged commit 36825d7 into kivy:develop Apr 29, 2020
@inclement
Copy link
Copy Markdown
Member

Thanks again!

brvier pushed a commit to brvier/python-for-android that referenced this pull request May 6, 2020
* Switch to using Gradle srcDir props for extra source dirs.

* Add warning about only supporting source dir includes with gradle.

* Fixed typos in gradle source directory warning

Co-authored-by: Alexander Taylor <alexanderjohntaylor@gmail.com>
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 this pull request may close these issues.

2 participants