-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add generated files to target source sets
instead of creating source sets and making default source sets depend on them. This avoids breaking kotlin.mpp.applyDefaultHierarchyTemplate. Common source sets are untouched, because otherwise the generated sources for them would be observed by downstream compilations and be inconsistent with current KMP build scheme. Alternatively, we could add all generated files, common or target, directly to compilation tasks and keep default source sets untouched. The drawback is that generated files won't be seen by IDE. We would have to build IDE plugins and implement our own model builder to register generated files to IDE. TODO: Add common source sets to their corresponding compilation for the new KMP build scheme. (cherry picked from commit 582ccd0)
- Loading branch information
Showing
3 changed files
with
48 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters