Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bachand committed Dec 13, 2018
1 parent f8b2532 commit 6686f4a
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions App/BUCK
Expand Up @@ -23,15 +23,15 @@ apple_binary(
"main.m",
]),
deps = [
"//Libraries/SwiftLibrary01:SwiftLibrary01",
"//Libraries/Swift1:Swift1",
":ExampleAppResource",
":ExampleAppAssets",
],
)

xcode_workspace_config(
name = "lib_workspace",
src_target = "//Libraries/SwiftLibrary01:SwiftLibrary01",
src_target = "//Libraries/Swift1:Swift1",
)

xcode_workspace_config(
Expand Down
2 changes: 1 addition & 1 deletion App/Tests/BUCK
Expand Up @@ -8,6 +8,6 @@ apple_test_lib(
]),
info_plist = "Info.plist",
deps = [
"//Libraries/SwiftLibrary01:SwiftLibrary01",
"//Libraries/Swift1:Swift1",
],
)
2 changes: 1 addition & 1 deletion App/Tests/BuckSampleTests.swift
Expand Up @@ -7,7 +7,7 @@
//

import XCTest
@testable import SwiftLibrary01
@testable import Swift1

class BuckSampleTests: XCTestCase {

Expand Down
2 changes: 1 addition & 1 deletion App/UITests/BUCK
Expand Up @@ -10,6 +10,6 @@ apple_test_lib(
info_plist = "Info.plist",
labels = ['ui'],
deps = [
"//Libraries/SwiftLibrary01:SwiftLibrary01",
"//Libraries/Swift1:Swift1",
],
)
File renamed without changes.
6 changes: 4 additions & 2 deletions Libraries/SwiftLibrary01/BUCK → Libraries/Swift1/BUCK
@@ -1,10 +1,9 @@
load("//Config:buck_rule_macros.bzl", "apple_lib")

apple_lib(
name = "SwiftLibrary01",
name = "Swift1",
visibility = ["PUBLIC"],
modular = True,
swift_version = "4.2",
srcs = glob([
"**/*.swift",
]),
Expand All @@ -18,4 +17,7 @@ apple_lib(
tests = [
"//App/Tests:Tests",
],
frameworks = [
"$SDKROOT/System/Library/Frameworks/Foundation.framework",
],
)
Expand Up @@ -42,14 +42,14 @@ class ViewController: UIViewController {
// Objective C class defined in Objc1
// When this is uncommented, LLDB fails to print objects properly
// with the following error:
// failed to get module 'SwiftLibrary01' from AST context:
// failed to get module 'Swift1' from AST context:
// error: missing required module 'Objc1'
// let o = Objc1()
// print("Objc1: %s", o)

// Swift class defined in SwiftAndObjc
// When this is used, the compile fails with
// #import <SwiftAndObjc/SwiftAndObjc-Swift.h> file not found
// print("SwiftAndObjc \(Swift3())")
// print("SwiftAndObjc \(Swift3())")
}
}
2 changes: 1 addition & 1 deletion Libraries/Swift2/BUCK
Expand Up @@ -5,7 +5,7 @@ apple_lib(
visibility = ["PUBLIC"],
modular = True,
srcs = glob([
"SwiftClass2.swift",
"**/*.swift",
]),
frameworks = [
"$SDKROOT/System/Library/Frameworks/Foundation.framework",
Expand Down

0 comments on commit 6686f4a

Please sign in to comment.