Skip to content

Commit 682fcef

Browse files
committed
use constant-based package detection
1 parent 4d534f7 commit 682fcef

File tree

365 files changed

+1418
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

365 files changed

+1418
-15
lines changed

bindings/LDK/Bindings.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ import Foundation
1010
// import os
1111
// #endif
1212

13+
#if SWIFT_PACKAGE
14+
import LDKHeaders
15+
#endif
16+
1317
public typealias LDKTransactionOutputs = LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ
1418
public typealias TransactionOutputs = C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ
1519
public typealias LDKTxid = LDKThirtyTwoBytes
@@ -6711,7 +6715,7 @@ withUnsafePointer(to: Bindings.array_to_tuple32(array: random_seed_bytes)) { (ra
67116715
*/
67126716

67136717
public class func get_ldk_swift_bindings_version() -> String {
6714-
return "2500c1ebdb44fd46d9e3ae4e5001ea2e7eb5781c"
6718+
return "4d534f7b0c82debeacb2f195af0edfbf87060c98"
67156719
}
67166720

67176721
}

bindings/LDK/options/APIError.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if SWIFT_PACKAGE
2+
import LDKHeaders
3+
#endif
4+
15
public class APIError: NativeTypeWrapper {
26

37
private static var instanceCounter: UInt = 0

bindings/LDK/options/Balance.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if SWIFT_PACKAGE
2+
import LDKHeaders
3+
#endif
4+
15
public class Balance: NativeTypeWrapper {
26

37
private static var instanceCounter: UInt = 0

bindings/LDK/options/Bech32Error.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if SWIFT_PACKAGE
2+
import LDKHeaders
3+
#endif
4+
15
public class Bech32Error: NativeTypeWrapper {
26

37
private static var instanceCounter: UInt = 0

bindings/LDK/options/BindingsError.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if SWIFT_PACKAGE
2+
import LDKHeaders
3+
#endif
4+
15
public class BindingsError: NativeTypeWrapper {
26

37
private static var instanceCounter: UInt = 0

bindings/LDK/options/ClosureReason.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if SWIFT_PACKAGE
2+
import LDKHeaders
3+
#endif
4+
15
public class ClosureReason: NativeTypeWrapper {
26

37
private static var instanceCounter: UInt = 0

bindings/LDK/options/EffectiveCapacity.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if SWIFT_PACKAGE
2+
import LDKHeaders
3+
#endif
4+
15
public class EffectiveCapacity: NativeTypeWrapper {
26

37
private static var instanceCounter: UInt = 0

bindings/LDK/options/ErrorAction.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if SWIFT_PACKAGE
2+
import LDKHeaders
3+
#endif
4+
15
public class ErrorAction: NativeTypeWrapper {
26

37
private static var instanceCounter: UInt = 0

bindings/LDK/options/Event.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if SWIFT_PACKAGE
2+
import LDKHeaders
3+
#endif
4+
15
public class Event: NativeTypeWrapper {
26

37
private static var instanceCounter: UInt = 0

bindings/LDK/options/Fallback.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if SWIFT_PACKAGE
2+
import LDKHeaders
3+
#endif
4+
15
public class Fallback: NativeTypeWrapper {
26

37
private static var instanceCounter: UInt = 0

0 commit comments

Comments
 (0)