Compare commits
1 Commits
master
...
ldkcatalys
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ca487c4b5 |
@ -2,5 +2,7 @@
|
||||
// File.swift
|
||||
// RnLdkExample
|
||||
//
|
||||
// Created by Admin on 9/9/21.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
@ -17,6 +17,7 @@
|
||||
2DCD954D1E0B4F2C00145EB5 /* RnLdkExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* RnLdkExampleTests.m */; };
|
||||
4C39C56BAD484C67AA576FFA /* libPods-RnLdkExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CA3E69C5B9553B26FBA2DF04 /* libPods-RnLdkExample.a */; };
|
||||
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
|
||||
8415C8A126EAC468004BD1A4 /* File.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8415C8A026EAC468004BD1A4 /* File.swift */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
@ -52,6 +53,9 @@
|
||||
47F7ED3B7971BE374F7B8635 /* Pods-RnLdkExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RnLdkExample.debug.xcconfig"; path = "Target Support Files/Pods-RnLdkExample/Pods-RnLdkExample.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
6D2C7F7026617CA6002939FA /* SwiftSocket.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = SwiftSocket.xcframework; path = ../../ios/SwiftSocket.xcframework; sourceTree = "<group>"; };
|
||||
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = RnLdkExample/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
8415C89E26EAC369004BD1A4 /* RnLdkExample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = RnLdkExample.entitlements; path = RnLdkExample/RnLdkExample.entitlements; sourceTree = "<group>"; };
|
||||
8415C89F26EAC467004BD1A4 /* RnLdkExample-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RnLdkExample-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||
8415C8A026EAC468004BD1A4 /* File.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = File.swift; sourceTree = "<group>"; };
|
||||
CA3E69C5B9553B26FBA2DF04 /* libPods-RnLdkExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RnLdkExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
E00ACF0FDA8BF921659E2F9A /* Pods-RnLdkExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RnLdkExample.release.xcconfig"; path = "Target Support Files/Pods-RnLdkExample/Pods-RnLdkExample.release.xcconfig"; sourceTree = "<group>"; };
|
||||
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
|
||||
@ -111,6 +115,7 @@
|
||||
13B07FAE1A68108700A75B9A /* RnLdkExample */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8415C89E26EAC369004BD1A4 /* RnLdkExample.entitlements */,
|
||||
008F07F21AC5B25A0029DE68 /* main.jsbundle */,
|
||||
13B07FAF1A68108700A75B9A /* AppDelegate.h */,
|
||||
13B07FB01A68108700A75B9A /* AppDelegate.m */,
|
||||
@ -118,6 +123,8 @@
|
||||
13B07FB61A68108700A75B9A /* Info.plist */,
|
||||
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
|
||||
13B07FB71A68108700A75B9A /* main.m */,
|
||||
8415C8A026EAC468004BD1A4 /* File.swift */,
|
||||
8415C89F26EAC467004BD1A4 /* RnLdkExample-Bridging-Header.h */,
|
||||
);
|
||||
name = RnLdkExample;
|
||||
sourceTree = "<group>";
|
||||
@ -202,7 +209,6 @@
|
||||
buildPhases = (
|
||||
4F0A6FC082772762E3E4C96C /* [CP] Check Pods Manifest.lock */,
|
||||
FD10A7F022414F080027D42C /* Start Packager */,
|
||||
47264F0C7D881A587A846E52 /* [CP] Prepare Artifacts */,
|
||||
13B07F871A680F5B00A75B9A /* Sources */,
|
||||
13B07F8C1A680F5B00A75B9A /* Frameworks */,
|
||||
13B07F8E1A680F5B00A75B9A /* Resources */,
|
||||
@ -269,7 +275,9 @@
|
||||
TestTargetID = 13B07F861A680F5B00A75B9A;
|
||||
};
|
||||
13B07F861A680F5B00A75B9A = {
|
||||
LastSwiftMigration = 1120;
|
||||
DevelopmentTeam = A7W54YZ4WU;
|
||||
LastSwiftMigration = 1250;
|
||||
ProvisioningStyle = Automatic;
|
||||
};
|
||||
2D02E47A1E0B4A5D006451C7 = {
|
||||
CreatedOnToolsVersion = 8.2.1;
|
||||
@ -366,24 +374,6 @@
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
|
||||
};
|
||||
47264F0C7D881A587A846E52 /* [CP] Prepare Artifacts */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-RnLdkExample/Pods-RnLdkExample-artifacts.sh",
|
||||
"${PODS_ROOT}/../../../ios/LDKFramework.xcframework",
|
||||
);
|
||||
name = "[CP] Prepare Artifacts";
|
||||
outputPaths = (
|
||||
"${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RnLdkExample/Pods-RnLdkExample-artifacts.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
4F0A6FC082772762E3E4C96C /* [CP] Check Pods Manifest.lock */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
@ -431,10 +421,11 @@
|
||||
);
|
||||
inputPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-RnLdkExample/Pods-RnLdkExample-frameworks.sh",
|
||||
"${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt",
|
||||
"${PODS_XCFRAMEWORKS_BUILD_DIR}/LDKFramework/LDKFramework.framework/LDKFramework",
|
||||
);
|
||||
name = "[CP] Embed Pods Frameworks";
|
||||
outputPaths = (
|
||||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/LDKFramework.framework",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
@ -495,6 +486,7 @@
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
|
||||
8415C8A126EAC468004BD1A4 /* File.swift in Sources */,
|
||||
13B07FC11A68108700A75B9A /* main.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
@ -535,6 +527,7 @@
|
||||
00E356F61AD99517003FC87E /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
@ -557,6 +550,7 @@
|
||||
00E356F71AD99517003FC87E /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
|
||||
BUNDLE_LOADER = "$(TEST_HOST)";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
INFOPLIST_FILE = RnLdkExampleTests/Info.plist;
|
||||
@ -579,7 +573,12 @@
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CODE_SIGN_ENTITLEMENTS = RnLdkExample/RnLdkExample.entitlements;
|
||||
CODE_SIGN_IDENTITY = "Apple Development";
|
||||
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEVELOPMENT_TEAM = A7W54YZ4WU;
|
||||
ENABLE_BITCODE = NO;
|
||||
INFOPLIST_FILE = RnLdkExample/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||
@ -591,8 +590,13 @@
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.rnldk;
|
||||
PRODUCT_NAME = RnLdkExample;
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
|
||||
SUPPORTS_MACCATALYST = YES;
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "RnLdkExample-Bridging-Header.h";
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Debug;
|
||||
@ -603,7 +607,12 @@
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CODE_SIGN_ENTITLEMENTS = RnLdkExample/RnLdkExample.entitlements;
|
||||
CODE_SIGN_IDENTITY = "Apple Development";
|
||||
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 1;
|
||||
DEVELOPMENT_TEAM = A7W54YZ4WU;
|
||||
INFOPLIST_FILE = RnLdkExample/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
@ -614,7 +623,12 @@
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.rnldk;
|
||||
PRODUCT_NAME = RnLdkExample;
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
|
||||
SUPPORTS_MACCATALYST = YES;
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "RnLdkExample-Bridging-Header.h";
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Release;
|
||||
|
||||
10
example/ios/RnLdkExample/RnLdkExample.entitlements
Normal file
10
example/ios/RnLdkExample/RnLdkExample.entitlements
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>com.apple.security.app-sandbox</key>
|
||||
<true/>
|
||||
<key>com.apple.security.network.client</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
@ -4,18 +4,6 @@
|
||||
<dict>
|
||||
<key>AvailableLibraries</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>LDKFramework.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>ios</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-x86_64-simulator</string>
|
||||
@ -30,6 +18,32 @@
|
||||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>LDKFramework.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>ios</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-x86_64-maccatalyst</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>LDKFramework.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>x86_64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>ios</string>
|
||||
<key>SupportedPlatformVariant</key>
|
||||
<string>maccatalyst</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>XFWK</string>
|
||||
|
||||
@ -0,0 +1 @@
|
||||
Versions/Current/Headers
|
||||
@ -0,0 +1 @@
|
||||
Versions/Current/LDKFramework
|
||||
@ -0,0 +1 @@
|
||||
Versions/Current/Modules
|
||||
@ -0,0 +1 @@
|
||||
Versions/Current/Resources
|
||||
@ -0,0 +1,212 @@
|
||||
// Generated by Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
|
||||
#ifndef LDKFRAMEWORK_SWIFT_H
|
||||
#define LDKFRAMEWORK_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wgcc-compat"
|
||||
|
||||
#if !defined(__has_include)
|
||||
# define __has_include(x) 0
|
||||
#endif
|
||||
#if !defined(__has_attribute)
|
||||
# define __has_attribute(x) 0
|
||||
#endif
|
||||
#if !defined(__has_feature)
|
||||
# define __has_feature(x) 0
|
||||
#endif
|
||||
#if !defined(__has_warning)
|
||||
# define __has_warning(x) 0
|
||||
#endif
|
||||
|
||||
#if __has_include(<swift/objc-prologue.h>)
|
||||
# include <swift/objc-prologue.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wauto-import"
|
||||
#include <Foundation/Foundation.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if !defined(SWIFT_TYPEDEFS)
|
||||
# define SWIFT_TYPEDEFS 1
|
||||
# if __has_include(<uchar.h>)
|
||||
# include <uchar.h>
|
||||
# elif !defined(__cplusplus)
|
||||
typedef uint_least16_t char16_t;
|
||||
typedef uint_least32_t char32_t;
|
||||
# endif
|
||||
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
||||
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
||||
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
||||
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PASTE)
|
||||
# define SWIFT_PASTE_HELPER(x, y) x##y
|
||||
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
||||
#endif
|
||||
#if !defined(SWIFT_METATYPE)
|
||||
# define SWIFT_METATYPE(X) Class
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_PROPERTY)
|
||||
# if __has_feature(objc_class_property)
|
||||
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
||||
# else
|
||||
# define SWIFT_CLASS_PROPERTY(...)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if __has_attribute(objc_runtime_name)
|
||||
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
||||
#else
|
||||
# define SWIFT_RUNTIME_NAME(X)
|
||||
#endif
|
||||
#if __has_attribute(swift_name)
|
||||
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
||||
#else
|
||||
# define SWIFT_COMPILE_NAME(X)
|
||||
#endif
|
||||
#if __has_attribute(objc_method_family)
|
||||
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
||||
#else
|
||||
# define SWIFT_METHOD_FAMILY(X)
|
||||
#endif
|
||||
#if __has_attribute(noescape)
|
||||
# define SWIFT_NOESCAPE __attribute__((noescape))
|
||||
#else
|
||||
# define SWIFT_NOESCAPE
|
||||
#endif
|
||||
#if __has_attribute(ns_consumed)
|
||||
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
||||
#else
|
||||
# define SWIFT_RELEASES_ARGUMENT
|
||||
#endif
|
||||
#if __has_attribute(warn_unused_result)
|
||||
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
||||
#else
|
||||
# define SWIFT_WARN_UNUSED_RESULT
|
||||
#endif
|
||||
#if __has_attribute(noreturn)
|
||||
# define SWIFT_NORETURN __attribute__((noreturn))
|
||||
#else
|
||||
# define SWIFT_NORETURN
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS_EXTRA)
|
||||
# define SWIFT_CLASS_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
||||
# define SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_EXTRA)
|
||||
# define SWIFT_ENUM_EXTRA
|
||||
#endif
|
||||
#if !defined(SWIFT_CLASS)
|
||||
# if __has_attribute(objc_subclassing_restricted)
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# else
|
||||
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_RESILIENT_CLASS)
|
||||
# if __has_attribute(objc_class_stub)
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# else
|
||||
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
||||
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_PROTOCOL)
|
||||
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
||||
#endif
|
||||
|
||||
#if !defined(SWIFT_EXTENSION)
|
||||
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
||||
#endif
|
||||
|
||||
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
||||
# if __has_attribute(objc_designated_initializer)
|
||||
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
||||
# else
|
||||
# define OBJC_DESIGNATED_INITIALIZER
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM_ATTR)
|
||||
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
|
||||
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
||||
# else
|
||||
# define SWIFT_ENUM_ATTR(_extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_ENUM)
|
||||
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# if __has_feature(generalized_swift_name)
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
||||
# else
|
||||
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE)
|
||||
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
||||
#endif
|
||||
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
||||
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
||||
#endif
|
||||
#if !defined(SWIFT_AVAILABILITY)
|
||||
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
||||
#endif
|
||||
#if !defined(SWIFT_WEAK_IMPORT)
|
||||
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED)
|
||||
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
||||
#endif
|
||||
#if !defined(SWIFT_DEPRECATED_MSG)
|
||||
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
||||
#endif
|
||||
#if __has_feature(attribute_diagnose_if_objc)
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
||||
#else
|
||||
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
||||
#endif
|
||||
#if !defined(IBSegueAction)
|
||||
# define IBSegueAction
|
||||
#endif
|
||||
#if __has_feature(modules)
|
||||
#if __has_warning("-Watimport-in-framework-header")
|
||||
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
||||
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
||||
#if __has_warning("-Wpragma-clang-attribute")
|
||||
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
||||
#endif
|
||||
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
||||
#pragma clang diagnostic ignored "-Wnullability"
|
||||
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma push_macro("any")
|
||||
# undef any
|
||||
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="LDKFramework",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
||||
# pragma pop_macro("any")
|
||||
#endif
|
||||
|
||||
#if __has_attribute(external_source_symbol)
|
||||
# pragma clang attribute pop
|
||||
#endif
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
@ -0,0 +1,22 @@
|
||||
//
|
||||
// LDKFramework.h
|
||||
// LDKFramework
|
||||
//
|
||||
// Created by Arik Sosman on 5/4/21.
|
||||
// EDITED BY ARIK AT 12:39AM
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "lightning.h"
|
||||
#import "ldk_net.h"
|
||||
|
||||
//! Project version number for LDKFramework.
|
||||
FOUNDATION_EXPORT double LDKFrameworkVersionNumber;
|
||||
|
||||
//! Project version string for LDKFramework.
|
||||
FOUNDATION_EXPORT const unsigned char LDKFrameworkVersionString[];
|
||||
|
||||
// In this header, you should import all the public headers of your framework using statements like #import <LDKFramework/PublicHeader.h>
|
||||
|
||||
|
||||
@ -0,0 +1,27 @@
|
||||
#include "lightning.h"
|
||||
#include <sys/socket.h>
|
||||
/**
|
||||
* Initializes socket handling and spawns a background thread to handle socket
|
||||
* events and pass them to the given LDKPeerManager.
|
||||
*
|
||||
* Returns NULL on error, otherwise an opaque pointer which should be passed as
|
||||
* `handler` in the remaining functions.
|
||||
*/
|
||||
void* init_socket_handling(const struct LDKPeerManager *NONNULL_PTR ldk_peer_manger);
|
||||
/**
|
||||
* Stop the socket handling thread and free socket handling resources for the
|
||||
* given handler, as returned by init_socket_handling.
|
||||
*/
|
||||
void interrupt_socket_handling(void* handler);
|
||||
/**
|
||||
* Bind the given address to accept incoming connections on the given handler's
|
||||
* background thread.
|
||||
* Returns 0 on success.
|
||||
*/
|
||||
int socket_bind(void* handler, struct sockaddr *addr, socklen_t addrlen);
|
||||
/**
|
||||
* Connect to the given address and handle socket events on the given handler's
|
||||
* background thread.
|
||||
* Returns 0 on success.
|
||||
*/
|
||||
int socket_connect(void* handler, LDKPublicKey counterparty_pubkey, struct sockaddr *addr, size_t addrlen);
|
||||
@ -0,0 +1,221 @@
|
||||
#if defined(__GNUC__)
|
||||
#define MUST_USE_STRUCT __attribute__((warn_unused))
|
||||
#define MUST_USE_RES __attribute__((warn_unused_result))
|
||||
#else
|
||||
#define MUST_USE_STRUCT
|
||||
#define MUST_USE_RES
|
||||
#endif
|
||||
#if defined(__clang__)
|
||||
#define NONNULL_PTR _Nonnull
|
||||
#else
|
||||
#define NONNULL_PTR
|
||||
#endif
|
||||
struct nativeTxCreationKeysOpaque;
|
||||
typedef struct nativeTxCreationKeysOpaque LDKnativeTxCreationKeys;
|
||||
struct nativeChannelPublicKeysOpaque;
|
||||
typedef struct nativeChannelPublicKeysOpaque LDKnativeChannelPublicKeys;
|
||||
struct nativeHTLCOutputInCommitmentOpaque;
|
||||
typedef struct nativeHTLCOutputInCommitmentOpaque LDKnativeHTLCOutputInCommitment;
|
||||
struct nativeChannelTransactionParametersOpaque;
|
||||
typedef struct nativeChannelTransactionParametersOpaque LDKnativeChannelTransactionParameters;
|
||||
struct nativeCounterpartyChannelTransactionParametersOpaque;
|
||||
typedef struct nativeCounterpartyChannelTransactionParametersOpaque LDKnativeCounterpartyChannelTransactionParameters;
|
||||
struct nativeDirectedChannelTransactionParametersOpaque;
|
||||
typedef struct nativeDirectedChannelTransactionParametersOpaque LDKnativeDirectedChannelTransactionParameters;
|
||||
struct nativeHolderCommitmentTransactionOpaque;
|
||||
typedef struct nativeHolderCommitmentTransactionOpaque LDKnativeHolderCommitmentTransaction;
|
||||
struct nativeBuiltCommitmentTransactionOpaque;
|
||||
typedef struct nativeBuiltCommitmentTransactionOpaque LDKnativeBuiltCommitmentTransaction;
|
||||
struct nativeCommitmentTransactionOpaque;
|
||||
typedef struct nativeCommitmentTransactionOpaque LDKnativeCommitmentTransaction;
|
||||
struct nativeTrustedCommitmentTransactionOpaque;
|
||||
typedef struct nativeTrustedCommitmentTransactionOpaque LDKnativeTrustedCommitmentTransaction;
|
||||
struct nativeShutdownScriptOpaque;
|
||||
typedef struct nativeShutdownScriptOpaque LDKnativeShutdownScript;
|
||||
struct nativeInvalidShutdownScriptOpaque;
|
||||
typedef struct nativeInvalidShutdownScriptOpaque LDKnativeInvalidShutdownScript;
|
||||
struct nativeBackgroundProcessorOpaque;
|
||||
typedef struct nativeBackgroundProcessorOpaque LDKnativeBackgroundProcessor;
|
||||
struct nativeRouteHopOpaque;
|
||||
typedef struct nativeRouteHopOpaque LDKnativeRouteHop;
|
||||
struct nativeRouteOpaque;
|
||||
typedef struct nativeRouteOpaque LDKnativeRoute;
|
||||
struct nativeRouteHintOpaque;
|
||||
typedef struct nativeRouteHintOpaque LDKnativeRouteHint;
|
||||
struct nativeRouteHintHopOpaque;
|
||||
typedef struct nativeRouteHintHopOpaque LDKnativeRouteHintHop;
|
||||
struct nativeBestBlockOpaque;
|
||||
typedef struct nativeBestBlockOpaque LDKnativeBestBlock;
|
||||
struct nativeWatchedOutputOpaque;
|
||||
typedef struct nativeWatchedOutputOpaque LDKnativeWatchedOutput;
|
||||
struct nativeInitFeaturesOpaque;
|
||||
typedef struct nativeInitFeaturesOpaque LDKnativeInitFeatures;
|
||||
struct nativeNodeFeaturesOpaque;
|
||||
typedef struct nativeNodeFeaturesOpaque LDKnativeNodeFeatures;
|
||||
struct nativeChannelFeaturesOpaque;
|
||||
typedef struct nativeChannelFeaturesOpaque LDKnativeChannelFeatures;
|
||||
struct nativeInvoiceFeaturesOpaque;
|
||||
typedef struct nativeInvoiceFeaturesOpaque LDKnativeInvoiceFeatures;
|
||||
struct nativeDelayedPaymentOutputDescriptorOpaque;
|
||||
typedef struct nativeDelayedPaymentOutputDescriptorOpaque LDKnativeDelayedPaymentOutputDescriptor;
|
||||
struct nativeStaticPaymentOutputDescriptorOpaque;
|
||||
typedef struct nativeStaticPaymentOutputDescriptorOpaque LDKnativeStaticPaymentOutputDescriptor;
|
||||
struct LDKBaseSign;
|
||||
struct nativeInMemorySignerOpaque;
|
||||
typedef struct nativeInMemorySignerOpaque LDKnativeInMemorySigner;
|
||||
struct nativeKeysManagerOpaque;
|
||||
typedef struct nativeKeysManagerOpaque LDKnativeKeysManager;
|
||||
struct nativeFilesystemPersisterOpaque;
|
||||
typedef struct nativeFilesystemPersisterOpaque LDKnativeFilesystemPersister;
|
||||
struct nativeChannelManagerOpaque;
|
||||
typedef struct nativeChannelManagerOpaque LDKnativeChannelManager;
|
||||
struct nativeChainParametersOpaque;
|
||||
typedef struct nativeChainParametersOpaque LDKnativeChainParameters;
|
||||
struct nativeChannelCounterpartyOpaque;
|
||||
typedef struct nativeChannelCounterpartyOpaque LDKnativeChannelCounterparty;
|
||||
struct nativeChannelDetailsOpaque;
|
||||
typedef struct nativeChannelDetailsOpaque LDKnativeChannelDetails;
|
||||
struct nativeChannelManagerReadArgsOpaque;
|
||||
typedef struct nativeChannelManagerReadArgsOpaque LDKnativeChannelManagerReadArgs;
|
||||
struct nativeChannelHandshakeConfigOpaque;
|
||||
typedef struct nativeChannelHandshakeConfigOpaque LDKnativeChannelHandshakeConfig;
|
||||
struct nativeChannelHandshakeLimitsOpaque;
|
||||
typedef struct nativeChannelHandshakeLimitsOpaque LDKnativeChannelHandshakeLimits;
|
||||
struct nativeChannelConfigOpaque;
|
||||
typedef struct nativeChannelConfigOpaque LDKnativeChannelConfig;
|
||||
struct nativeUserConfigOpaque;
|
||||
typedef struct nativeUserConfigOpaque LDKnativeUserConfig;
|
||||
struct nativeOutPointOpaque;
|
||||
typedef struct nativeOutPointOpaque LDKnativeOutPoint;
|
||||
struct nativeInvoiceOpaque;
|
||||
typedef struct nativeInvoiceOpaque LDKnativeInvoice;
|
||||
struct nativeSignedRawInvoiceOpaque;
|
||||
typedef struct nativeSignedRawInvoiceOpaque LDKnativeSignedRawInvoice;
|
||||
struct nativeRawInvoiceOpaque;
|
||||
typedef struct nativeRawInvoiceOpaque LDKnativeRawInvoice;
|
||||
struct nativeRawDataPartOpaque;
|
||||
typedef struct nativeRawDataPartOpaque LDKnativeRawDataPart;
|
||||
struct nativePositiveTimestampOpaque;
|
||||
typedef struct nativePositiveTimestampOpaque LDKnativePositiveTimestamp;
|
||||
struct nativeSha256Opaque;
|
||||
typedef struct nativeSha256Opaque LDKnativeSha256;
|
||||
struct nativeDescriptionOpaque;
|
||||
typedef struct nativeDescriptionOpaque LDKnativeDescription;
|
||||
struct nativePayeePubKeyOpaque;
|
||||
typedef struct nativePayeePubKeyOpaque LDKnativePayeePubKey;
|
||||
struct nativeExpiryTimeOpaque;
|
||||
typedef struct nativeExpiryTimeOpaque LDKnativeExpiryTime;
|
||||
struct nativeMinFinalCltvExpiryOpaque;
|
||||
typedef struct nativeMinFinalCltvExpiryOpaque LDKnativeMinFinalCltvExpiry;
|
||||
struct nativeInvoiceSignatureOpaque;
|
||||
typedef struct nativeInvoiceSignatureOpaque LDKnativeInvoiceSignature;
|
||||
struct nativePrivateRouteOpaque;
|
||||
typedef struct nativePrivateRouteOpaque LDKnativePrivateRoute;
|
||||
struct nativeChannelMonitorUpdateOpaque;
|
||||
typedef struct nativeChannelMonitorUpdateOpaque LDKnativeChannelMonitorUpdate;
|
||||
struct nativeMonitorUpdateErrorOpaque;
|
||||
typedef struct nativeMonitorUpdateErrorOpaque LDKnativeMonitorUpdateError;
|
||||
struct nativeHTLCUpdateOpaque;
|
||||
typedef struct nativeHTLCUpdateOpaque LDKnativeHTLCUpdate;
|
||||
struct nativeChannelMonitorOpaque;
|
||||
typedef struct nativeChannelMonitorOpaque LDKnativeChannelMonitor;
|
||||
struct nativeIgnoringMessageHandlerOpaque;
|
||||
typedef struct nativeIgnoringMessageHandlerOpaque LDKnativeIgnoringMessageHandler;
|
||||
struct nativeErroringMessageHandlerOpaque;
|
||||
typedef struct nativeErroringMessageHandlerOpaque LDKnativeErroringMessageHandler;
|
||||
struct nativeMessageHandlerOpaque;
|
||||
typedef struct nativeMessageHandlerOpaque LDKnativeMessageHandler;
|
||||
struct nativePeerHandleErrorOpaque;
|
||||
typedef struct nativePeerHandleErrorOpaque LDKnativePeerHandleError;
|
||||
struct nativePeerManagerOpaque;
|
||||
typedef struct nativePeerManagerOpaque LDKnativePeerManager;
|
||||
struct nativeNetworkGraphOpaque;
|
||||
typedef struct nativeNetworkGraphOpaque LDKnativeNetworkGraph;
|
||||
struct nativeLockedNetworkGraphOpaque;
|
||||
typedef struct nativeLockedNetworkGraphOpaque LDKnativeLockedNetworkGraph;
|
||||
struct nativeNetGraphMsgHandlerOpaque;
|
||||
typedef struct nativeNetGraphMsgHandlerOpaque LDKnativeNetGraphMsgHandler;
|
||||
struct nativeDirectionalChannelInfoOpaque;
|
||||
typedef struct nativeDirectionalChannelInfoOpaque LDKnativeDirectionalChannelInfo;
|
||||
struct nativeChannelInfoOpaque;
|
||||
typedef struct nativeChannelInfoOpaque LDKnativeChannelInfo;
|
||||
struct nativeRoutingFeesOpaque;
|
||||
typedef struct nativeRoutingFeesOpaque LDKnativeRoutingFees;
|
||||
struct nativeNodeAnnouncementInfoOpaque;
|
||||
typedef struct nativeNodeAnnouncementInfoOpaque LDKnativeNodeAnnouncementInfo;
|
||||
struct nativeNodeInfoOpaque;
|
||||
typedef struct nativeNodeInfoOpaque LDKnativeNodeInfo;
|
||||
struct nativeDecodeErrorOpaque;
|
||||
typedef struct nativeDecodeErrorOpaque LDKnativeDecodeError;
|
||||
struct nativeInitOpaque;
|
||||
typedef struct nativeInitOpaque LDKnativeInit;
|
||||
struct nativeErrorMessageOpaque;
|
||||
typedef struct nativeErrorMessageOpaque LDKnativeErrorMessage;
|
||||
struct nativePingOpaque;
|
||||
typedef struct nativePingOpaque LDKnativePing;
|
||||
struct nativePongOpaque;
|
||||
typedef struct nativePongOpaque LDKnativePong;
|
||||
struct nativeOpenChannelOpaque;
|
||||
typedef struct nativeOpenChannelOpaque LDKnativeOpenChannel;
|
||||
struct nativeAcceptChannelOpaque;
|
||||
typedef struct nativeAcceptChannelOpaque LDKnativeAcceptChannel;
|
||||
struct nativeFundingCreatedOpaque;
|
||||
typedef struct nativeFundingCreatedOpaque LDKnativeFundingCreated;
|
||||
struct nativeFundingSignedOpaque;
|
||||
typedef struct nativeFundingSignedOpaque LDKnativeFundingSigned;
|
||||
struct nativeFundingLockedOpaque;
|
||||
typedef struct nativeFundingLockedOpaque LDKnativeFundingLocked;
|
||||
struct nativeShutdownOpaque;
|
||||
typedef struct nativeShutdownOpaque LDKnativeShutdown;
|
||||
struct nativeClosingSignedFeeRangeOpaque;
|
||||
typedef struct nativeClosingSignedFeeRangeOpaque LDKnativeClosingSignedFeeRange;
|
||||
struct nativeClosingSignedOpaque;
|
||||
typedef struct nativeClosingSignedOpaque LDKnativeClosingSigned;
|
||||
struct nativeUpdateAddHTLCOpaque;
|
||||
typedef struct nativeUpdateAddHTLCOpaque LDKnativeUpdateAddHTLC;
|
||||
struct nativeUpdateFulfillHTLCOpaque;
|
||||
typedef struct nativeUpdateFulfillHTLCOpaque LDKnativeUpdateFulfillHTLC;
|
||||
struct nativeUpdateFailHTLCOpaque;
|
||||
typedef struct nativeUpdateFailHTLCOpaque LDKnativeUpdateFailHTLC;
|
||||
struct nativeUpdateFailMalformedHTLCOpaque;
|
||||
typedef struct nativeUpdateFailMalformedHTLCOpaque LDKnativeUpdateFailMalformedHTLC;
|
||||
struct nativeCommitmentSignedOpaque;
|
||||
typedef struct nativeCommitmentSignedOpaque LDKnativeCommitmentSigned;
|
||||
struct nativeRevokeAndACKOpaque;
|
||||
typedef struct nativeRevokeAndACKOpaque LDKnativeRevokeAndACK;
|
||||
struct nativeUpdateFeeOpaque;
|
||||
typedef struct nativeUpdateFeeOpaque LDKnativeUpdateFee;
|
||||
struct nativeDataLossProtectOpaque;
|
||||
typedef struct nativeDataLossProtectOpaque LDKnativeDataLossProtect;
|
||||
struct nativeChannelReestablishOpaque;
|
||||
typedef struct nativeChannelReestablishOpaque LDKnativeChannelReestablish;
|
||||
struct nativeAnnouncementSignaturesOpaque;
|
||||
typedef struct nativeAnnouncementSignaturesOpaque LDKnativeAnnouncementSignatures;
|
||||
struct nativeUnsignedNodeAnnouncementOpaque;
|
||||
typedef struct nativeUnsignedNodeAnnouncementOpaque LDKnativeUnsignedNodeAnnouncement;
|
||||
struct nativeNodeAnnouncementOpaque;
|
||||
typedef struct nativeNodeAnnouncementOpaque LDKnativeNodeAnnouncement;
|
||||
struct nativeUnsignedChannelAnnouncementOpaque;
|
||||
typedef struct nativeUnsignedChannelAnnouncementOpaque LDKnativeUnsignedChannelAnnouncement;
|
||||
struct nativeChannelAnnouncementOpaque;
|
||||
typedef struct nativeChannelAnnouncementOpaque LDKnativeChannelAnnouncement;
|
||||
struct nativeUnsignedChannelUpdateOpaque;
|
||||
typedef struct nativeUnsignedChannelUpdateOpaque LDKnativeUnsignedChannelUpdate;
|
||||
struct nativeChannelUpdateOpaque;
|
||||
typedef struct nativeChannelUpdateOpaque LDKnativeChannelUpdate;
|
||||
struct nativeQueryChannelRangeOpaque;
|
||||
typedef struct nativeQueryChannelRangeOpaque LDKnativeQueryChannelRange;
|
||||
struct nativeReplyChannelRangeOpaque;
|
||||
typedef struct nativeReplyChannelRangeOpaque LDKnativeReplyChannelRange;
|
||||
struct nativeQueryShortChannelIdsOpaque;
|
||||
typedef struct nativeQueryShortChannelIdsOpaque LDKnativeQueryShortChannelIds;
|
||||
struct nativeReplyShortChannelIdsEndOpaque;
|
||||
typedef struct nativeReplyShortChannelIdsEndOpaque LDKnativeReplyShortChannelIdsEnd;
|
||||
struct nativeGossipTimestampFilterOpaque;
|
||||
typedef struct nativeGossipTimestampFilterOpaque LDKnativeGossipTimestampFilter;
|
||||
struct nativeLightningErrorOpaque;
|
||||
typedef struct nativeLightningErrorOpaque LDKnativeLightningError;
|
||||
struct nativeCommitmentUpdateOpaque;
|
||||
typedef struct nativeCommitmentUpdateOpaque LDKnativeCommitmentUpdate;
|
||||
struct nativeChainMonitorOpaque;
|
||||
typedef struct nativeChainMonitorOpaque LDKnativeChainMonitor;
|
||||
@ -0,0 +1,29 @@
|
||||
#ifndef _LDK_HEADER_VER
|
||||
static inline int _ldk_strncmp(const char *s1, const char *s2, uint64_t n) {
|
||||
if (n && *s1 != *s2) return 1;
|
||||
while (n && *s1 != 0 && *s2 != 0) {
|
||||
s1++; s2++; n--;
|
||||
if (n && *s1 != *s2) return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define _LDK_HEADER_VER "v0.0.100-1-gdba15b73610e4f54"
|
||||
#define _LDK_C_BINDINGS_HEADER_VER "v0.0.100.0-6-ged6eb46f7b4e0d4c-dirty"
|
||||
static inline const char* check_get_ldk_version() {
|
||||
LDKStr bin_ver = _ldk_get_compiled_version();
|
||||
if (_ldk_strncmp(_LDK_HEADER_VER, (const char*)bin_ver.chars, bin_ver.len) != 0) {
|
||||
// Version mismatch, we don't know what we're running!
|
||||
return 0;
|
||||
}
|
||||
return _LDK_HEADER_VER;
|
||||
}
|
||||
static inline const char* check_get_ldk_bindings_version() {
|
||||
LDKStr bin_ver = _ldk_c_bindings_get_compiled_version();
|
||||
if (_ldk_strncmp(_LDK_C_BINDINGS_HEADER_VER, (const char*)bin_ver.chars, bin_ver.len) != 0) {
|
||||
// Version mismatch, we don't know what we're running!
|
||||
return 0;
|
||||
}
|
||||
return _LDK_C_BINDINGS_HEADER_VER;
|
||||
}
|
||||
#endif /* _LDK_HEADER_VER */
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,21 @@
|
||||
framework module LDKFramework {
|
||||
umbrella header "LDKFramework.h"
|
||||
|
||||
module * { export * }
|
||||
export *
|
||||
|
||||
explicit module LDK {
|
||||
header "ldk_rust_types.h"
|
||||
header "lightning.h"
|
||||
header "ldk_ver.h"
|
||||
header "ldk_net.h"
|
||||
link "libldk.a"
|
||||
export *
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module LDKFramework.Swift {
|
||||
header "LDKFramework-Swift.h"
|
||||
requires objc
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildMachineOSBuild</key>
|
||||
<string>19G73</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>LDKFramework</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.ldk.LDKFramework</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>LDKFramework</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSupportedPlatforms</key>
|
||||
<array>
|
||||
<string>MacOSX</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>DTCompiler</key>
|
||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||
<key>DTPlatformBuild</key>
|
||||
<string>12C33</string>
|
||||
<key>DTPlatformName</key>
|
||||
<string>macosx</string>
|
||||
<key>DTPlatformVersion</key>
|
||||
<string>11.1</string>
|
||||
<key>DTSDKBuild</key>
|
||||
<string>20C63</string>
|
||||
<key>DTSDKName</key>
|
||||
<string>macosx11.1</string>
|
||||
<key>DTXcode</key>
|
||||
<string>1230</string>
|
||||
<key>DTXcodeBuild</key>
|
||||
<string>12C33</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.15</string>
|
||||
<key>UIDeviceFamily</key>
|
||||
<array>
|
||||
<integer>2</integer>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
@ -0,0 +1 @@
|
||||
A
|
||||
Loading…
Reference in New Issue
Block a user