Skip to content

Commit c38a732

Browse files
committed
Make ci/LDKSwift the canonical source of truth
1 parent 682fcef commit c38a732

File tree

5 files changed

+18
-1
lines changed

5 files changed

+18
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ci/Build
88
ci/LDKSwift/Sources
99
ci/LDKSwift/.build
1010
ci/LDKSwift/.swiftpm
11+
!ci/LDKSwift/Sources/LDKBatteries/*
1112

1213
/xcode/LDKFramework/Build/
1314
/xcode/LDKFramework/LDKFramework.xcodeproj/project.xcworkspace/

bindings/batteries/ChannelManagerConstructor.swift renamed to ci/LDKSwift/Sources/LDKBatteries/ChannelManagerConstructor.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
// Created by Arik Sosman on 5/19/21.
66
//
77

8+
#if SWIFT_PACKAGE
9+
import LDKHeaders
10+
import LDKBindings
11+
#endif
12+
813
import Foundation
914

1015
enum InvalidSerializedDataError: Error {

bindings/batteries/NetGraphMsgHandlerConstructor.swift renamed to ci/LDKSwift/Sources/LDKBatteries/NetGraphMsgHandlerConstructor.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
// Created by Arik Sosman on 9/24/21.
66
//
77

8+
#if SWIFT_PACKAGE
9+
import LDKHeaders
10+
import LDKBindings
11+
#endif
12+
813
import Foundation
914

1015
public class NetGraphMsgHandlerConstructor {

bindings/batteries/UtilMethods.swift renamed to ci/LDKSwift/Sources/LDKBatteries/UtilMethods.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
// Created by Arik Sosman on 5/19/21.
66
//
77

8+
#if SWIFT_PACKAGE
9+
import LDKHeaders
10+
import LDKBindings
11+
#endif
12+
813
import Foundation
914

1015
public class UtilMethods {

src/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ class Config:
88
# HEADER_FILE_PATH = f'{os.path.dirname(__file__)}/../input/minimal_tuple.h'
99
# HEADER_FILE_PATH = f'{os.path.dirname(__file__)}/../input/minimal_ping.h'
1010

11-
OUTPUT_DIRECTORY_PATH = os.getenv('LDK_SWIFT_GENERATOR_OUTPUT_DIRECTORY_PATH') or f'{os.path.dirname(__file__)}/../bindings/LDK'
11+
# OUTPUT_DIRECTORY_PATH = os.getenv('LDK_SWIFT_GENERATOR_OUTPUT_DIRECTORY_PATH') or f'{os.path.dirname(__file__)}/../bindings/LDK'
12+
OUTPUT_DIRECTORY_PATH = os.getenv('LDK_SWIFT_GENERATOR_OUTPUT_DIRECTORY_PATH') or f'{os.path.dirname(__file__)}/../ci/LDKSwift/Sources/LDKBindings'

0 commit comments

Comments
 (0)