0.4.0
- The
swift_version
attribute onswift_library
has been removed. If you need to set the effective Swift version of the compiler, pass the copts directly; e.g.,copts = ["-swift-version", "4"]
. - Bundles should now be able to reference resources and structured resources in a different repository than the one in which the bundle target lives.
- The bundling rules now preserve the executable bit of any files being bundled as resources, if the bit is set on the original file on the file system.
- Some of the global
--define
flags used to control build behavior have been updated.
There have also been some changes related to how module maps are used when Swift targets depend on Objective-C targets. Currently, Swift libraries are allowed to import Objective-C libraries that they indirectly depend on. This will change in a future version of Bazel to only allow importing direct Objective-C dependencies. If you rely on this behavior, please update your BUILD targets now, and use the --incompatible_strict_objc_module_maps
flag to verify your build afterwards.