You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ability to explicitly specify output files in apple_core_data_model rule (#2727)
This PR contains one of the two fixes mentioned in #2726. This change
makes it possible to explicitly specify the output files that are
expected to be generated from the provided core data models. This causes
the rule to return a provider containing these individual Swift files
rather than just the containing folder.
| <aid="apple_core_data_model-name"></a>name | A unique name for this target. | <ahref="https://bazel.build/concepts/labels#target-names">Name</a> | required ||
| <aid="apple_core_data_model-outs"></a>outs | A dictionary where the key is the name of a data model and the value is a list of source files expected to be generated from that data model. For example, if srcs contains one data model called "Taxonomy.xcdatamodeld" with a single entity called "Animal," you might provide this value: <pre><code>outs = { "Taxonomy": [ "taxonomy+CoreDataModel.swift", "Animal+CoreDataProperties.swift", ], },</code></pre> If one or more files are provided for a data model, the rule will return these files individually as outputs. Otherwise, the rule will return the directory containing the sources for the data model. | <ahref="https://bazel.build/rules/lib/dict">Dictionary: String -> List of strings</a> | optional |`{}`|
47
48
| <aid="apple_core_data_model-swift_version"></a>swift_version | Target Swift version for generated classes. | String | optional |`""`|
0 commit comments