File tree 1 file changed +10
-11
lines changed
1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,12 @@ Minimal example:
32
32
33
33
``` python
34
34
load(" @build_bazel_rules_apple//apple:ios.bzl" , " ios_application" )
35
+ load(" @build_bazel_rules_swift//swift:swift.bzl" , " swift_library" )
35
36
36
- objc_library(
37
- name = " Lib" ,
38
- srcs = glob([
39
- " **/*.h" ,
40
- " **/*.m" ,
41
- ]),
42
- data = [
43
- " :Main.storyboard" ,
44
- ],
37
+ swift_library(
38
+ name = " MyLibrary" ,
39
+ srcs = glob([" **/*.swift" ]),
40
+ data = [" :Main.storyboard" ],
45
41
)
46
42
47
43
# Links code from "deps" into an executable, collects and compiles resources
@@ -50,10 +46,13 @@ objc_library(
50
46
ios_application(
51
47
name = " App" ,
52
48
bundle_id = " com.example.app" ,
53
- families = [" iphone" , " ipad" ],
49
+ families = [
50
+ " iphone" ,
51
+ " ipad" ,
52
+ ],
54
53
infoplists = [" :Info.plist" ],
55
54
minimum_os_version = " 15.0" ,
56
- deps = [" :Lib " ],
55
+ deps = [" :MyLibrary " ],
57
56
)
58
57
```
59
58
You can’t perform that action at this time.
0 commit comments