Skip to content

Commit

Permalink
Add BaseSource to focus error
Browse files Browse the repository at this point in the history
  • Loading branch information
narlei committed Feb 7, 2024
1 parent 5c15639 commit 17ffe72
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions BUILD
Expand Up @@ -13,9 +13,9 @@ apple_resource_group(


swift_library(
name = "BaseSource",
name = "MySampleSource",
tags = ["manual"],
module_name = "BaseSource",
module_name = "MySampleSource",
srcs = glob(["App/**/*.swift"]),
visibility = ["//visibility:public"],
deps = [
Expand All @@ -35,15 +35,15 @@ apple_bundle_version(
)

ios_application(
name = "MyApp",
name = "MySampleApp",
bundle_id = "com.narlei.sample",
families = [
"iphone",
"ipad",
],
infoplists = ["App/Info.plist"],
deps = [
":BaseSource",
":MySampleSource",
],
minimum_os_version = "16.0",
visibility = ["//visibility:public"],
Expand All @@ -63,19 +63,20 @@ XCODEPROJ_TEST_TARGETS = [
]

XCODEPROJ_FOCUSED_TARGETS = [
"//:MyApp",
"//:MySampleApp", # Comment this line to simulate working without the app on focus targets
"//Libraries/LibraryA:LibraryACore",
"//Libraries/LibraryA:LibraryAInterface",
"//Libraries/LibraryB:LibraryB",
"//Libraries/LibraryC:LibraryC",
"//Libraries/LibraryD:LibraryD",
"//:MySampleSource",
]

XCODEPROJ_UNFOCUSED_TARGETS = [
]

XCODEPROJ_EXAMPLE_APPS = [
top_level_target("//:MyApp", target_environments = ["simulator"])
top_level_target("//:MySampleApp", target_environments = ["simulator"])
]

SCHEMES = [
Expand All @@ -85,7 +86,7 @@ SCHEMES = [
run = xcschemes.run(
build_targets = [
xcschemes.top_level_anchor_target(
label = "//:MyApp",
label = "//:MySampleApp",
library_targets = [
xcschemes.library_target("//Libraries/LibraryA:LibraryACore",
post_actions = [
Expand All @@ -95,15 +96,17 @@ SCHEMES = [
xcschemes.pre_post_actions.build_script(title = "This is a pre_action", script_text = "echo 'Hi'")
]
),
"//:MySampleSource",
"//Libraries/LibraryA:LibraryAInterface",
"//Libraries/LibraryB:LibraryB",
"//Libraries/LibraryC:LibraryC",
"//Libraries/LibraryD:LibraryD",
],
)
],
# Comment the launch_target to simulate working without the app on focus targets
launch_target = xcschemes.launch_target(
"//:MyApp"
"//:MySampleApp"
),
),
),
Expand All @@ -114,7 +117,7 @@ SCHEMES = [
run = xcschemes.run(
build_targets = [
xcschemes.top_level_anchor_target(
label = "//:MyApp",
label = "//:MySampleApp",
library_targets = [
xcschemes.library_target("//Libraries/LibraryA:LibraryACore",
post_actions = [
Expand Down

0 comments on commit 17ffe72

Please sign in to comment.