Compare commits
132 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5e48772f5 | ||
|
|
27a0868255 | ||
|
|
f24500e56a | ||
|
|
e3ab92720f | ||
|
|
c1818a926a | ||
|
|
960aa4c790 | ||
|
|
e4f1e9b20e | ||
|
|
d01fcbefcc | ||
|
|
6499d76bc5 | ||
|
|
2acbd5c506 | ||
|
|
e23543c826 | ||
|
|
cff0799b41 | ||
|
|
a880d15178 | ||
|
|
e05ce50967 | ||
|
|
925cbd4939 | ||
|
|
55efed3868 | ||
|
|
86dfa67b13 | ||
|
|
01c0062182 | ||
|
|
a758293b9d | ||
|
|
089e53c129 | ||
|
|
57447454f9 | ||
|
|
ab0ce31e4e | ||
|
|
2842f6eeda | ||
|
|
9481d34489 | ||
|
|
c09fadc066 | ||
|
|
94ac1af7c4 | ||
|
|
5e5410e4fb | ||
|
|
b48d09b5db | ||
|
|
47e1b5ee14 | ||
|
|
69c8136a54 | ||
|
|
bc278ea229 | ||
|
|
654fe8e509 | ||
|
|
45d56304a9 | ||
|
|
cc49f0cbe7 | ||
|
|
2ee21784e6 | ||
|
|
04ca53e3fa | ||
|
|
3a9883c55f | ||
|
|
588e132d47 | ||
|
|
589353756f | ||
|
|
3c9895bc1d | ||
|
|
ff4de22f68 | ||
|
|
7e375ae665 | ||
|
|
b4c2971782 | ||
|
|
0c4aae9c36 | ||
|
|
d3c5dc9d74 | ||
|
|
240d3d3c40 | ||
|
|
dd66345e10 | ||
|
|
52204fc931 | ||
|
|
50f279f358 | ||
|
|
5e131679ae | ||
|
|
ff9e26d7fc | ||
|
|
a3c0f0748d | ||
|
|
90bbdd8353 | ||
|
|
b06061c7ed | ||
|
|
9a8bedbca9 | ||
|
|
04a00f92f2 | ||
|
|
f76d8f7eea | ||
|
|
59a8637268 | ||
|
|
d1cc612e46 | ||
|
|
e655567782 | ||
|
|
3d89bf14f1 | ||
|
|
822f14c140 | ||
|
|
e8addd1899 | ||
|
|
7d12a2fdb7 | ||
|
|
44f05c9f99 | ||
|
|
6bb41f14fc | ||
|
|
b06fcf431b | ||
|
|
275775af05 | ||
|
|
3541fbd99f | ||
|
|
ef02cfc752 | ||
|
|
efa1c51393 | ||
|
|
2240c59ad2 | ||
|
|
04db6df979 | ||
|
|
f519212596 | ||
|
|
0b6013cd7c | ||
|
|
b053995610 | ||
|
|
aefb83eabf | ||
|
|
b642da6b04 | ||
|
|
37f66725c9 | ||
|
|
ca7272e4cc | ||
|
|
fa38864f01 | ||
|
|
c6a8c6cb5c | ||
|
|
170b6da216 | ||
|
|
c2283eef90 | ||
|
|
6eb73c447b | ||
|
|
0a68c7b7d0 | ||
|
|
162005129e | ||
|
|
4600220515 | ||
|
|
a456ddc7a6 | ||
|
|
fc14338bb7 | ||
|
|
d1d6416995 | ||
|
|
5b42f0857a | ||
|
|
40902f93b1 | ||
|
|
3617f6e54d | ||
|
|
ebed87ba9a | ||
|
|
1c07ff0252 | ||
|
|
64386e6a3c | ||
|
|
f7db59382f | ||
|
|
a78f2b8b2f | ||
|
|
762f2cef17 | ||
|
|
bf0bac8102 | ||
|
|
8e6b0b84c3 | ||
|
|
b5d441f477 | ||
|
|
9249447e9b | ||
|
|
ece3164456 | ||
|
|
da8b870e44 | ||
|
|
9f72b8ce30 | ||
|
|
b0d153132c | ||
|
|
ac37f8fb5a | ||
|
|
e1cea7eec7 | ||
|
|
c199a83da1 | ||
|
|
8792c39548 | ||
|
|
a51d213f66 | ||
|
|
d3c77b6130 | ||
|
|
30b8222bf7 | ||
|
|
694c23a2b2 | ||
|
|
7194975f35 | ||
|
|
5865c0ad26 | ||
|
|
b68b0abfd9 | ||
|
|
143f4fd1af | ||
|
|
50f7dc8716 | ||
|
|
70d095e304 | ||
|
|
1440a83a98 | ||
|
|
7025428df8 | ||
|
|
8c5f798a48 | ||
|
|
849b16d541 | ||
|
|
b08ce78189 | ||
|
|
2110c5bc36 | ||
|
|
039c669ae0 | ||
|
|
00130222d8 | ||
|
|
b3efe66209 | ||
|
|
32037258d0 |
2
.bundle/config
Normal file
2
.bundle/config
Normal file
@ -0,0 +1,2 @@
|
||||
BUNDLE_PATH: "vendor/bundle"
|
||||
BUNDLE_FORCE_RUBY_PLATFORM: 1
|
||||
1
.ruby-version
Normal file
1
.ruby-version
Normal file
@ -0,0 +1 @@
|
||||
2.7.4
|
||||
6
Gemfile
Normal file
6
Gemfile
Normal file
@ -0,0 +1,6 @@
|
||||
source 'https://rubygems.org'
|
||||
|
||||
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
|
||||
ruby '2.7.4'
|
||||
|
||||
gem 'cocoapods', '~> 1.11', '>= 1.11.2'
|
||||
@ -12,7 +12,7 @@ Some of the features include:
|
||||
* Encrypted channel backups are stored in cloud. Mnemonic backup phrase is all you need to restore your lightning wallet and all channels on another device and start using it in seconds! Use same channels on several devices, if you wish
|
||||
* Synced to blockchain via Electrum, sync takes seconds, even on low-bandwidth connections
|
||||
* Routing is provided via API, no graph sync (optional)
|
||||
* Create a channel with any node on the Lightning network, no limitations (to keep the netwok decentralized)
|
||||
* Create a channel with any node on the Lightning network, no limitations (to keep the network decentralized)
|
||||
|
||||
### Technicalities
|
||||
|
||||
@ -48,7 +48,7 @@ import AsyncStorage from '@react-native-async-storage/async-storage';
|
||||
const entropy = 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'; // change that
|
||||
RnLdk.setStorage(AsyncStorage);
|
||||
RnLdk.setRefundAddressScript('76a91419129d53e6319baf19dba059bead166df90ab8f588ac'); // 13HaCAB4jf7FYSZexJxoczyDDnutzZigjS
|
||||
RnLdk.start(entropy).then(console.warn);
|
||||
await RnLdk.start(entropy).then(console.warn);
|
||||
|
||||
// lets create a channel
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ android {
|
||||
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
|
||||
buildToolsVersion getExtOrDefault('buildToolsVersion')
|
||||
defaultConfig {
|
||||
minSdkVersion 21
|
||||
minSdkVersion 24
|
||||
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
RnLdk_kotlinVersion=1.3.50
|
||||
RnLdk_kotlinVersion=1.6.0
|
||||
RnLdk_compileSdkVersion=29
|
||||
RnLdk_buildToolsVersion=29.0.2
|
||||
RnLdk_targetSdkVersion=29
|
||||
|
||||
BIN
android/gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
android/gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
5
android/gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
5
android/gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
185
android/gradlew
vendored
Executable file
185
android/gradlew
vendored
Executable file
@ -0,0 +1,185 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
#
|
||||
# Copyright 2015 the original author or authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
##############################################################################
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >/dev/null
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >/dev/null
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
|
||||
warn () {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
nonstop=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
NONSTOP* )
|
||||
nonstop=true
|
||||
;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD="java"
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
|
||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=`expr $i + 1`
|
||||
done
|
||||
case $i in
|
||||
0) set -- ;;
|
||||
1) set -- "$args0" ;;
|
||||
2) set -- "$args0" "$args1" ;;
|
||||
3) set -- "$args0" "$args1" "$args2" ;;
|
||||
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Escape application args
|
||||
save () {
|
||||
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
||||
echo " "
|
||||
}
|
||||
APP_ARGS=`save "$@"`
|
||||
|
||||
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
||||
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
||||
|
||||
exec "$JAVACMD" "$@"
|
||||
89
android/gradlew.bat
vendored
Normal file
89
android/gradlew.bat
vendored
Normal file
@ -0,0 +1,89 @@
|
||||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%" == "" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if "%ERRORLEVEL%" == "0" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||
exit /b 1
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
Binary file not shown.
Binary file not shown.
@ -4,7 +4,7 @@ import com.facebook.react.bridge.*
|
||||
import com.facebook.react.modules.core.DeviceEventManagerModule.RCTDeviceEventEmitter
|
||||
import org.json.JSONArray
|
||||
import org.ldk.batteries.ChannelManagerConstructor
|
||||
import org.ldk.batteries.ChannelManagerConstructor.ChannelManagerPersister
|
||||
import org.ldk.batteries.ChannelManagerConstructor.EventHandler
|
||||
import org.ldk.batteries.NioPeerHandler
|
||||
import org.ldk.enums.ConfirmationTarget
|
||||
import org.ldk.enums.Currency
|
||||
@ -15,7 +15,7 @@ import org.ldk.structs.Filter.FilterInterface
|
||||
import org.ldk.structs.Persist
|
||||
import org.ldk.structs.Persist.PersistInterface
|
||||
import org.ldk.structs.Result_NoneAPIErrorZ.Result_NoneAPIErrorZ_OK
|
||||
import org.ldk.util.TwoTuple
|
||||
import java.io.File
|
||||
import java.io.IOException
|
||||
import java.net.InetSocketAddress
|
||||
|
||||
@ -28,9 +28,11 @@ const val MARKER_BROADCAST = "broadcast";
|
||||
const val MARKER_PERSIST = "persist";
|
||||
const val MARKER_PAYMENT_SENT = "payment_sent";
|
||||
const val MARKER_PAYMENT_FAILED = "payment_failed";
|
||||
const val MARKER_PAYMENT_PATH_FAILED = "payment_path_failed";
|
||||
const val MARKER_PAYMENT_RECEIVED = "payment_received";
|
||||
const val MARKER_PERSIST_MANAGER = "persist_manager";
|
||||
const val MARKER_FUNDING_GENERATION_READY = "funding_generation_ready";
|
||||
const val MARKER_CHANNEL_CLOSED = "channel_closed";
|
||||
//
|
||||
|
||||
var feerate_fast = 7500; // estimate fee rate in BTC/kB
|
||||
@ -46,6 +48,11 @@ var chain_monitor: ChainMonitor? = null;
|
||||
var temporary_channel_id: ByteArray? = null;
|
||||
var keys_manager: KeysManager? = null;
|
||||
var channel_manager_constructor: ChannelManagerConstructor? = null;
|
||||
var router: NetworkGraph? = null; // optional, used only in graph sync; if null - no sync
|
||||
var scorer: MultiThreadedLockableScore? = null; // optional, used only in graph sync; if null - no sync
|
||||
|
||||
var networkGraphPath = "";
|
||||
var scorerPath = "";
|
||||
|
||||
class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactContextBaseJavaModule(reactContext) {
|
||||
|
||||
@ -55,12 +62,15 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
|
||||
@ReactMethod
|
||||
fun getVersion(promise: Promise) {
|
||||
promise.resolve("0.0.100.1");
|
||||
promise.resolve(org.ldk.impl.version.get_ldk_java_bindings_version() + ", " + org.ldk.impl.bindings.get_ldk_c_bindings_version() + ", " + org.ldk.impl.bindings.get_ldk_version());
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
fun start(entropyHex: String, blockchainTipHeight: Int, blockchainTipHashHex: String, serializedChannelManagerHex: String, monitorHexes: String, promise: Promise) {
|
||||
fun start(entropyHex: String, blockchainTipHeight: Int, blockchainTipHashHex: String, serializedChannelManagerHex: String, monitorHexes: String, writablePath: String, promise: Promise) {
|
||||
println("ReactNativeLDK: " + "start")
|
||||
if (writablePath != "") networkGraphPath = writablePath + "/network_graph.bin";
|
||||
if (writablePath != "") scorerPath = writablePath + "/scorer.bin";
|
||||
|
||||
val that = this;
|
||||
|
||||
// INITIALIZE THE FEEESTIMATOR #################################################################
|
||||
@ -77,10 +87,13 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
|
||||
// INITIALIZE THE LOGGER #######################################################################
|
||||
// What it's used for: LDK logging
|
||||
val logger = Logger.new_impl { arg: String? ->
|
||||
println("ReactNativeLDK: " + arg)
|
||||
val logger = Logger.new_impl { arg: Record ->
|
||||
if (arg._level == org.ldk.enums.Level.LDKLevel_Gossip) return@new_impl;
|
||||
println("ReactNativeLDK: " + arg._args)
|
||||
if (arg._level == org.ldk.enums.Level.LDKLevel_Trace) return@new_impl;
|
||||
if (arg._level == org.ldk.enums.Level.LDKLevel_Debug) return@new_impl;
|
||||
val params = Arguments.createMap()
|
||||
params.putString("line", arg)
|
||||
params.putString("line", arg._args)
|
||||
that.sendEvent(MARKER_LOG, params)
|
||||
}
|
||||
|
||||
@ -96,21 +109,21 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
// INITIALIZE PERSIST ##########################################################################
|
||||
// What it's used for: persisting crucial channel data in a timely manner
|
||||
val persister = Persist.new_impl(object : PersistInterface {
|
||||
override fun persist_new_channel(id: OutPoint, data: ChannelMonitor): Result_NoneChannelMonitorUpdateErrZ {
|
||||
override fun persist_new_channel(id: OutPoint, data: ChannelMonitor, update_id: MonitorUpdateId): Result_NoneChannelMonitorUpdateErrZ {
|
||||
val channel_monitor_bytes = data.write()
|
||||
println("ReactNativeLDK: persist_new_channel")
|
||||
val params = Arguments.createMap()
|
||||
params.putString("id", byteArrayToHex(id.to_channel_id()))
|
||||
params.putString("id", byteArrayToHex(id.write()))
|
||||
params.putString("data", byteArrayToHex(channel_monitor_bytes))
|
||||
that.sendEvent(MARKER_PERSIST, params);
|
||||
return Result_NoneChannelMonitorUpdateErrZ.ok();
|
||||
}
|
||||
|
||||
override fun update_persisted_channel(id: OutPoint, update: ChannelMonitorUpdate, data: ChannelMonitor): Result_NoneChannelMonitorUpdateErrZ {
|
||||
override fun update_persisted_channel(id: OutPoint, update: ChannelMonitorUpdate?, data: ChannelMonitor, update_id: MonitorUpdateId): Result_NoneChannelMonitorUpdateErrZ {
|
||||
val channel_monitor_bytes = data.write()
|
||||
println("ReactNativeLDK: update_persisted_channel");
|
||||
val params = Arguments.createMap()
|
||||
params.putString("id", byteArrayToHex(id.to_channel_id()))
|
||||
params.putString("id", byteArrayToHex(id.write()))
|
||||
params.putString("data", byteArrayToHex(channel_monitor_bytes))
|
||||
that.sendEvent(MARKER_PERSIST, params);
|
||||
return Result_NoneChannelMonitorUpdateErrZ.ok();
|
||||
@ -119,7 +132,7 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
|
||||
// now, initializing channel manager persister that is responsoble for backing up channel_manager bytes
|
||||
|
||||
val channel_manager_persister = object : ChannelManagerPersister {
|
||||
val channel_manager_persister = object : EventHandler {
|
||||
override fun handle_event(event: Event) {
|
||||
that.handleEvent(event);
|
||||
}
|
||||
@ -131,6 +144,20 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
that.sendEvent(MARKER_PERSIST_MANAGER, params);
|
||||
}
|
||||
}
|
||||
|
||||
override fun persist_network_graph(network_graph: ByteArray?) {
|
||||
println("ReactNativeLDK: persist_network_graph");
|
||||
if (networkGraphPath != "" && network_graph !== null) {
|
||||
File(networkGraphPath).writeBytes(network_graph);
|
||||
}
|
||||
}
|
||||
|
||||
override fun persist_scorer(p0: ByteArray?) {
|
||||
println("ReactNativeLDK: persist_scorer");
|
||||
if (scorerPath != "" && p0 !== null) {
|
||||
File(scorerPath).writeBytes(p0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// INITIALIZE THE CHAINMONITOR #################################################################
|
||||
@ -162,7 +189,9 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
}
|
||||
})
|
||||
|
||||
chain_monitor = ChainMonitor.of(tx_filter, tx_broadcaster, logger, fee_estimator, persister);
|
||||
val filter = Option_FilterZ.some(tx_filter);
|
||||
System.out.println("ReactNativeLDK: version " + org.ldk.impl.version.get_ldk_java_bindings_version() + ", " + org.ldk.impl.bindings.get_ldk_c_bindings_version() + ", " + org.ldk.impl.bindings.get_ldk_version());
|
||||
chain_monitor = ChainMonitor.of(filter, tx_broadcaster, logger, fee_estimator, persister);
|
||||
|
||||
// INITIALIZE THE KEYSMANAGER ##################################################################
|
||||
// What it's used for: providing keys for signing lightning transactions
|
||||
@ -186,23 +215,112 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
channelMonitors = channel_monitor_list.toTypedArray();
|
||||
}
|
||||
|
||||
// initialize graph sync #########################################################################
|
||||
|
||||
if (networkGraphPath != "") {
|
||||
println("ReactNativeLDK: using network graph path: $networkGraphPath");
|
||||
val f = File(networkGraphPath);
|
||||
if (f.exists()) {
|
||||
println("ReactNativeLDK: loading network graph...");
|
||||
val serialized_graph = File(networkGraphPath).readBytes()
|
||||
val readResult = NetworkGraph.read(serialized_graph, logger)
|
||||
if (readResult is Result_NetworkGraphDecodeErrorZ.Result_NetworkGraphDecodeErrorZ_OK) {
|
||||
router = readResult.res
|
||||
println("ReactNativeLDK: loaded network graph ok")
|
||||
} else {
|
||||
println("ReactNativeLDK: network graph load failed")
|
||||
if (readResult is Result_NetworkGraphDecodeErrorZ.Result_NetworkGraphDecodeErrorZ_Err) {
|
||||
println("ReactNativeLDK: " + readResult.err);
|
||||
}
|
||||
// error, creating from scratch
|
||||
println("ReactNativeLDK: network graph error, creating from scratch")
|
||||
router = NetworkGraph.of(hexStringToByteArray("000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f").reversedArray(), logger)
|
||||
}
|
||||
} else {
|
||||
// first run, creating from scratch
|
||||
println("ReactNativeLDK: network graph first run, creating from scratch")
|
||||
router = NetworkGraph.of(hexStringToByteArray("000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f").reversedArray(), logger)
|
||||
}
|
||||
|
||||
|
||||
|
||||
var probab_scorer = ProbabilisticScorer.of(ProbabilisticScoringParameters.with_default(), router, logger);
|
||||
val sf = File(scorerPath);
|
||||
if (sf.exists()) {
|
||||
val scorer_bytes = File(scorerPath).readBytes();
|
||||
val scorerReadResult = ProbabilisticScorer.read(scorer_bytes, ProbabilisticScoringParameters.with_default(), router, logger);
|
||||
if (scorerReadResult is Result_ProbabilisticScorerDecodeErrorZ.Result_ProbabilisticScorerDecodeErrorZ_OK) {
|
||||
println("ReactNativeLDK: loaded scorer ok");
|
||||
probab_scorer = scorerReadResult.res;
|
||||
} else {
|
||||
println("ReactNativeLDK: loaded scorer failed");
|
||||
}
|
||||
}
|
||||
|
||||
scorer = MultiThreadedLockableScore.of(probab_scorer.as_Score());
|
||||
}
|
||||
|
||||
// INITIALIZE THE CHANNELMANAGER ###############################################################
|
||||
// What it's used for: managing channel state
|
||||
|
||||
// this is gona be fee policy for __incoming__ channels. they are set upfront globally:
|
||||
val uc = UserConfig.with_default()
|
||||
val newChannelConfig = ChannelConfig.with_default()
|
||||
newChannelConfig.set_forwarding_fee_proportional_millionths(10000);
|
||||
newChannelConfig.set_forwarding_fee_base_msat(1000);
|
||||
|
||||
val handshake = ChannelHandshakeConfig.with_default();
|
||||
handshake.set_minimum_depth(1);
|
||||
handshake.set_announced_channel(false);
|
||||
uc.set_channel_handshake_config(handshake);
|
||||
uc.set_accept_inbound_channels(true);
|
||||
|
||||
uc.set_channel_config(newChannelConfig);
|
||||
val newLim = ChannelHandshakeLimits.with_default()
|
||||
newLim.set_force_announced_channel_preference(true) // new channels are private
|
||||
newLim.set_trust_own_funding_0conf(true);
|
||||
|
||||
uc.set_channel_handshake_limits(newLim);
|
||||
//
|
||||
|
||||
|
||||
try {
|
||||
if (serializedChannelManagerHex != "") {
|
||||
// loading from disk
|
||||
channel_manager_constructor = ChannelManagerConstructor(hexStringToByteArray(serializedChannelManagerHex), channelMonitors, keys_manager?.as_KeysInterface(), fee_estimator, chain_monitor, tx_filter, null, tx_broadcaster, logger);
|
||||
channel_manager_constructor = ChannelManagerConstructor(
|
||||
hexStringToByteArray(serializedChannelManagerHex),
|
||||
channelMonitors,
|
||||
uc,
|
||||
keys_manager?.as_KeysInterface(),
|
||||
fee_estimator,
|
||||
chain_monitor,
|
||||
tx_filter,
|
||||
router!!.write(),
|
||||
tx_broadcaster,
|
||||
logger
|
||||
);
|
||||
channel_manager = channel_manager_constructor!!.channel_manager;
|
||||
channel_manager_constructor!!.chain_sync_completed(channel_manager_persister);
|
||||
router = channel_manager_constructor!!.net_graph;
|
||||
channel_manager_constructor!!.chain_sync_completed(channel_manager_persister, scorer);
|
||||
peer_manager = channel_manager_constructor!!.peer_manager;
|
||||
nio_peer_handler = channel_manager_constructor!!.nio_peer_handler;
|
||||
} else {
|
||||
// fresh start
|
||||
channel_manager_constructor = ChannelManagerConstructor(Network.LDKNetwork_Bitcoin, UserConfig.with_default(), hexStringToByteArray(blockchainTipHashHex), blockchainTipHeight, keys_manager?.as_KeysInterface(), fee_estimator, chain_monitor, null, tx_broadcaster, logger);
|
||||
channel_manager_constructor = ChannelManagerConstructor(
|
||||
Network.LDKNetwork_Bitcoin,
|
||||
uc,
|
||||
hexStringToByteArray(blockchainTipHashHex),
|
||||
blockchainTipHeight,
|
||||
keys_manager?.as_KeysInterface(),
|
||||
fee_estimator,
|
||||
chain_monitor,
|
||||
router,
|
||||
tx_broadcaster,
|
||||
logger
|
||||
);
|
||||
channel_manager = channel_manager_constructor!!.channel_manager;
|
||||
channel_manager_constructor!!.chain_sync_completed(channel_manager_persister);
|
||||
router = channel_manager_constructor!!.net_graph;
|
||||
channel_manager_constructor!!.chain_sync_completed(channel_manager_persister, scorer);
|
||||
peer_manager = channel_manager_constructor!!.peer_manager;
|
||||
nio_peer_handler = channel_manager_constructor!!.nio_peer_handler;
|
||||
}
|
||||
@ -213,9 +331,17 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
}
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
fun saveNetworkGraph(promise: Promise) {
|
||||
if (networkGraphPath != "") {
|
||||
File(networkGraphPath).writeBytes(router!!.write());
|
||||
}
|
||||
promise.resolve(true);
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
fun transactionConfirmed(headerHex: String, height: Int, txPos: Int, transactionHex: String, promise: Promise) {
|
||||
val tx = TwoTuple(txPos.toLong(), hexStringToByteArray(transactionHex));
|
||||
val tx = TwoTuple_usizeTransactionZ.of(txPos.toLong(), hexStringToByteArray(transactionHex))
|
||||
val txarray = arrayOf(tx);
|
||||
channel_manager?.as_Confirm()?.transactions_confirmed(hexStringToByteArray(headerHex), txarray, height);
|
||||
chain_monitor?.as_Confirm()?.transactions_confirmed(hexStringToByteArray(headerHex), txarray, height);
|
||||
@ -263,7 +389,7 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
fun connectPeer(pubkeyHex: String, hostname: String, port: Int, promise: Promise) {
|
||||
println("ReactNativeLDK: connecting to peer " + pubkeyHex);
|
||||
try {
|
||||
nio_peer_handler?.connect(hexStringToByteArray(pubkeyHex), InetSocketAddress(hostname, port), 9000);
|
||||
nio_peer_handler!!.connect(hexStringToByteArray(pubkeyHex), InetSocketAddress(hostname, port), 9000);
|
||||
promise.resolve(true)
|
||||
} catch (e: IOException) {
|
||||
promise.reject("connectPeer exception: " + e.message);
|
||||
@ -311,34 +437,63 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
for (c in 1..hopsJson.length()) {
|
||||
val hopJson = hopsJson.getJSONObject(c - 1);
|
||||
|
||||
path = path.plusElement(RouteHop.of(
|
||||
hexStringToByteArray(hopJson.getString("pubkey")),
|
||||
NodeFeatures.known(),
|
||||
hopJson.getString("short_channel_id").toLong(),
|
||||
ChannelFeatures.known(),
|
||||
hopJson.getString("fee_msat").toLong(),
|
||||
hopJson.getString("cltv_expiry_delta").toInt()
|
||||
));
|
||||
path = path.plusElement(
|
||||
RouteHop.of(
|
||||
hexStringToByteArray(hopJson.getString("pubkey")),
|
||||
NodeFeatures.known(),
|
||||
hopJson.getString("short_channel_id").toLong(),
|
||||
ChannelFeatures.known(),
|
||||
hopJson.getString("fee_msat").toLong(),
|
||||
hopJson.getString("cltv_expiry_delta").toInt()
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
val payee = PaymentParameters.from_node_id(hexStringToByteArray(destPubkeyHex));
|
||||
val route = Route.of(
|
||||
arrayOf(
|
||||
path
|
||||
)
|
||||
),
|
||||
payee
|
||||
);
|
||||
|
||||
val payment_hash = hexStringToByteArray(paymentHashHex);
|
||||
val payment_secret = hexStringToByteArray(paymentSecretHex);
|
||||
val payment_res = channel_manager?.send_payment(route, payment_hash, payment_secret);
|
||||
if (payment_res is Result_NonePaymentSendFailureZ.Result_NonePaymentSendFailureZ_OK) {
|
||||
if (payment_res is Result_PaymentIdPaymentSendFailureZ.Result_PaymentIdPaymentSendFailureZ_OK) {
|
||||
promise.resolve(true);
|
||||
} else {
|
||||
promise.reject("sendPayment failed");
|
||||
}
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
fun payInvoice(bolt11: String, amtSat: Int, promise: Promise) {
|
||||
if (channel_manager_constructor?.payer == null) return promise.reject("payer is null, probably trying to pay invoice without having graph sync enabled");
|
||||
|
||||
println("paying $bolt11 for $amtSat sat");
|
||||
|
||||
val parsedInvoice = Invoice.from_str(bolt11)
|
||||
|
||||
if (parsedInvoice !is Result_InvoiceParseOrSemanticErrorZ.Result_InvoiceParseOrSemanticErrorZ_OK) {
|
||||
return promise.reject("cant parse invoice");
|
||||
}
|
||||
|
||||
val sendRes = if (amtSat != 0) {
|
||||
channel_manager_constructor!!.payer!!.pay_zero_value_invoice(parsedInvoice.res, amtSat.toLong() * 1000)
|
||||
} else {
|
||||
channel_manager_constructor!!.payer!!.pay_invoice(parsedInvoice.res)
|
||||
}
|
||||
|
||||
if (sendRes !is Result_PaymentIdPaymentErrorZ.Result_PaymentIdPaymentErrorZ_OK) {
|
||||
return promise.reject("send failed");
|
||||
}
|
||||
|
||||
promise.resolve(true);
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
fun addInvoice(amtMsat: Int, description: String, promise: Promise) {
|
||||
var amountStruct = Option_u64Z.none();
|
||||
@ -351,7 +506,8 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
keys_manager?.as_KeysInterface(),
|
||||
Currency.LDKCurrency_Bitcoin,
|
||||
amountStruct,
|
||||
description
|
||||
description,
|
||||
24 * 3600
|
||||
);
|
||||
|
||||
if (invoice is Result_InvoiceSignOrCreationErrorZ.Result_InvoiceSignOrCreationErrorZ_OK) {
|
||||
@ -405,38 +561,40 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
this.sendEvent(MARKER_PAYMENT_SENT, params);
|
||||
}
|
||||
|
||||
if (event is Event.PaymentPathFailed) {
|
||||
println("ReactNativeLDK: " + "payment path failed, payment_hash: " + byteArrayToHex(event.payment_hash));
|
||||
if (channel_manager_constructor?.payer == null) {
|
||||
println("ReactNativeLDK: " + "abandoning payment");
|
||||
// since we aparently dont sync graph, payment was probably initiated via trying to pay a specific route - and that route failed!
|
||||
// so no reason to wait for a timeout, we abandon payment immediately
|
||||
channel_manager?.abandon_payment(event.payment_id);
|
||||
}
|
||||
val params = Arguments.createMap();
|
||||
params.putString("payment_hash", byteArrayToHex(event.payment_hash));
|
||||
params.putString("rejected_by_dest", event.rejected_by_dest.toString());
|
||||
this.sendEvent(MARKER_PAYMENT_PATH_FAILED, params);
|
||||
}
|
||||
|
||||
if (event is Event.PaymentFailed) {
|
||||
println("ReactNativeLDK: " + "payment failed, payment_hash: " + byteArrayToHex(event.payment_hash));
|
||||
val params = Arguments.createMap();
|
||||
params.putString("payment_hash", byteArrayToHex(event.payment_hash));
|
||||
params.putString("rejected_by_dest", event.rejected_by_dest.toString());
|
||||
params.putString("payment_id", byteArrayToHex(event.payment_id));
|
||||
this.sendEvent(MARKER_PAYMENT_FAILED, params);
|
||||
}
|
||||
|
||||
if (event is Event.PaymentReceived) {
|
||||
println("ReactNativeLDK: " + "payment received, payment_hash: " + byteArrayToHex(event.payment_hash));
|
||||
var paymentPreimage: ByteArray? = null;
|
||||
var paymentSecret: ByteArray? = null;
|
||||
|
||||
if (event.purpose is PaymentPurpose.InvoicePayment) {
|
||||
paymentPreimage = (event.purpose as PaymentPurpose.InvoicePayment).payment_preimage;
|
||||
paymentSecret = (event.purpose as PaymentPurpose.InvoicePayment).payment_secret;
|
||||
channel_manager?.claim_funds(paymentPreimage);
|
||||
} else if (event.purpose is PaymentPurpose.SpontaneousPayment) {
|
||||
paymentPreimage = (event.purpose as PaymentPurpose.SpontaneousPayment).spontaneous_payment;
|
||||
channel_manager?.claim_funds(paymentPreimage);
|
||||
}
|
||||
|
||||
val params = Arguments.createMap();
|
||||
params.putString("payment_hash", byteArrayToHex(event.payment_hash));
|
||||
if (paymentSecret != null) {
|
||||
params.putString("payment_secret", byteArrayToHex(paymentSecret));
|
||||
}
|
||||
if (paymentPreimage != null) {
|
||||
params.putString("payment_preimage", byteArrayToHex(paymentPreimage));
|
||||
}
|
||||
params.putString("amt", event.amt.toString());
|
||||
this.sendEvent(MARKER_PAYMENT_RECEIVED, params);
|
||||
// we dont throw an event here because we have a separate event that notifies us that claim was actually successful
|
||||
}
|
||||
|
||||
if (event is Event.PendingHTLCsForwardable) {
|
||||
@ -452,10 +610,76 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
params.putString("output_script", byteArrayToHex(event.output_script));
|
||||
params.putString("temporary_channel_id", byteArrayToHex(event.temporary_channel_id));
|
||||
params.putString("user_channel_id", event.user_channel_id.toString());
|
||||
params.putString("counterparty_node_id", event.counterparty_node_id.toString());
|
||||
temporary_channel_id = event.temporary_channel_id;
|
||||
this.sendEvent(MARKER_FUNDING_GENERATION_READY, params);
|
||||
}
|
||||
}
|
||||
|
||||
if (event is Event.PaymentForwarded) {
|
||||
// we don't route as we are a light mobile node
|
||||
}
|
||||
|
||||
if (event is Event.PaymentClaimed) {
|
||||
var paymentPreimage: ByteArray? = null;
|
||||
var paymentSecret: ByteArray? = null;
|
||||
|
||||
if (event.purpose is PaymentPurpose.InvoicePayment) {
|
||||
paymentPreimage = (event.purpose as PaymentPurpose.InvoicePayment).payment_preimage;
|
||||
paymentSecret = (event.purpose as PaymentPurpose.InvoicePayment).payment_secret;
|
||||
} else if (event.purpose is PaymentPurpose.SpontaneousPayment) {
|
||||
paymentPreimage = (event.purpose as PaymentPurpose.SpontaneousPayment).spontaneous_payment;
|
||||
}
|
||||
|
||||
val params = Arguments.createMap();
|
||||
params.putString("payment_hash", byteArrayToHex(event.payment_hash));
|
||||
if (paymentSecret != null) {
|
||||
params.putString("payment_secret", byteArrayToHex(paymentSecret));
|
||||
}
|
||||
if (paymentPreimage != null) {
|
||||
params.putString("payment_preimage", byteArrayToHex(paymentPreimage));
|
||||
}
|
||||
params.putString("amt", event.amount_msat.toString());
|
||||
this.sendEvent(MARKER_PAYMENT_RECEIVED, params);
|
||||
}
|
||||
|
||||
if (event is Event.HTLCHandlingFailed) {
|
||||
// wtf is even happened here?
|
||||
}
|
||||
|
||||
if (event is Event.ChannelClosed) {
|
||||
println("ReactNativeLDK: " + "ChannelClosed");
|
||||
val params = Arguments.createMap();
|
||||
val reason = event.reason;
|
||||
params.putString("channel_id", byteArrayToHex(event.channel_id));
|
||||
params.putString("user_channel_id", event.user_channel_id.toString());
|
||||
|
||||
if (reason is ClosureReason.CommitmentTxConfirmed) {
|
||||
params.putString("reason", "CommitmentTxConfirmed");
|
||||
}
|
||||
if (reason is ClosureReason.CooperativeClosure) {
|
||||
params.putString("reason", "CooperativeClosure");
|
||||
}
|
||||
if (reason is ClosureReason.CounterpartyForceClosed) {
|
||||
params.putString("reason", "CounterpartyForceClosed");
|
||||
params.putString("text", reason.peer_msg);
|
||||
}
|
||||
if (reason is ClosureReason.DisconnectedPeer) {
|
||||
params.putString("reason", "DisconnectedPeer");
|
||||
}
|
||||
if (reason is ClosureReason.HolderForceClosed) {
|
||||
params.putString("reason", "HolderForceClosed");
|
||||
}
|
||||
if (reason is ClosureReason.OutdatedChannelManager) {
|
||||
params.putString("reason", "OutdatedChannelManager");
|
||||
}
|
||||
if (reason is ClosureReason.ProcessingError) {
|
||||
params.putString("reason", "ProcessingError");
|
||||
params.putString("text", reason.err);
|
||||
}
|
||||
|
||||
this.sendEvent(MARKER_CHANNEL_CLOSED, params);
|
||||
}
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
@ -469,8 +693,8 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
fun closeChannelCooperatively(channelIdHex: String, promise: Promise) {
|
||||
val close_result = channel_manager?.close_channel(hexStringToByteArray(channelIdHex))
|
||||
fun closeChannelCooperatively(channelIdHex: String, counterpartyNodeIdHex: String, promise: Promise) {
|
||||
val close_result = channel_manager?.close_channel(hexStringToByteArray(channelIdHex), hexStringToByteArray(counterpartyNodeIdHex));
|
||||
if (close_result is Result_NoneAPIErrorZ_OK) {
|
||||
promise.resolve(true);
|
||||
} else {
|
||||
@ -479,8 +703,8 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
fun closeChannelForce(channelIdHex: String, promise: Promise) {
|
||||
val close_result = channel_manager?.force_close_channel(hexStringToByteArray(channelIdHex));
|
||||
fun closeChannelForce(channelIdHex: String, counterpartyNodeIdHex: String, promise: Promise) {
|
||||
val close_result = channel_manager?.force_close_broadcasting_latest_txn(hexStringToByteArray(channelIdHex), hexStringToByteArray(counterpartyNodeIdHex));
|
||||
if (close_result is Result_NoneAPIErrorZ_OK) {
|
||||
promise.resolve(true);
|
||||
} else {
|
||||
@ -496,20 +720,20 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
peer_node_pubkey, channelValue.toLong(), 0, 42, null
|
||||
);
|
||||
|
||||
if (create_channel_result !is Result_NoneAPIErrorZ.Result_NoneAPIErrorZ_OK) {
|
||||
println("ReactNativeLDK: " + "create_channel_result !is Result_NoneAPIErrorZ.Result_NoneAPIErrorZ_OK, = " + create_channel_result);
|
||||
if (create_channel_result !is Result__u832APIErrorZ.Result__u832APIErrorZ_OK) {
|
||||
println("ReactNativeLDK: " + "create_channel_result !is Result__u832APIErrorZ.Result__u832APIErrorZ_OK, = " + create_channel_result);
|
||||
promise.reject("openChannelStep1 failed");
|
||||
return;
|
||||
}
|
||||
|
||||
promise.resolve(true);
|
||||
promise.resolve(byteArrayToHex(create_channel_result.res));
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
fun openChannelStep2(txhex: String, promise: Promise) {
|
||||
fun openChannelStep2(txhex: String, counterpartyNodeIdHex: String, promise: Promise) {
|
||||
if (temporary_channel_id == null) return promise.reject("openChannelStep2 failed: channel opening is not initiated..?");
|
||||
|
||||
val funding_res = channel_manager?.funding_transaction_generated(temporary_channel_id, hexStringToByteArray(txhex));
|
||||
val funding_res = channel_manager?.funding_transaction_generated(temporary_channel_id, hexStringToByteArray(counterpartyNodeIdHex), hexStringToByteArray(txhex));
|
||||
// funding_transaction_generated should only generate an error if the
|
||||
// transaction didn't meet the required format (or the counterparty already
|
||||
// closed the channel on us):
|
||||
@ -602,7 +826,6 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
channelObject += "\"outbound_capacity_msat\":" + it._outbound_capacity_msat + ",";
|
||||
channelObject += "\"short_channel_id\":" + "\"" + short_channel_id + "\",";
|
||||
channelObject += "\"is_usable\":" + it._is_usable + ",";
|
||||
channelObject += "\"is_funding_locked\":" + it._is_funding_locked + ",";
|
||||
channelObject += "\"is_outbound\":" + it._is_outbound + ",";
|
||||
channelObject += "\"is_public\":" + it._is_public + ",";
|
||||
channelObject += "\"remote_node_id\":" + "\"" + byteArrayToHex(it._counterparty._node_id) + "\","; // @deprecated fixme
|
||||
@ -619,7 +842,7 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
channelObject += "\"unspendable_punishment_reserve\":" + unspendable_punishment_reserve + ",";
|
||||
channelObject += "\"confirmations_required\":" + confirmations_required + ",";
|
||||
channelObject += "\"force_close_spend_delay\":" + force_close_spend_delay + ",";
|
||||
channelObject += "\"user_id\":" + it._user_id;
|
||||
channelObject += "\"user_id\":" + it._user_channel_id;
|
||||
channelObject += "}";
|
||||
|
||||
return channelObject;
|
||||
@ -651,6 +874,70 @@ class RnLdkModule(private val reactContext: ReactApplicationContext) : ReactCont
|
||||
promise.resolve(true);
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
fun getMaturingBalance(promise: Promise) {
|
||||
var totalSat: Int = 0;
|
||||
val balances = chain_monitor?.get_claimable_balances(channel_manager!!.list_channels());
|
||||
balances!!.iterator().forEach {
|
||||
if (it is Balance.ClaimableAwaitingConfirmations) {
|
||||
println("ReactNativeLDK: ClaimableAwaitingConfirmations = " + it.claimable_amount_satoshis + " " + it.confirmation_height);
|
||||
totalSat += it.claimable_amount_satoshis.toInt();
|
||||
}
|
||||
|
||||
if (it is Balance.ClaimableOnChannelClose) {
|
||||
println("ReactNativeLDK: ClaimableOnChannelClose = " + it.claimable_amount_satoshis);
|
||||
totalSat += it.claimable_amount_satoshis.toInt();
|
||||
}
|
||||
|
||||
if (it is Balance.ContentiousClaimable) {
|
||||
println("ReactNativeLDK: ContentiousClaimable = " + it.claimable_amount_satoshis + " " + it.timeout_height);
|
||||
}
|
||||
|
||||
if (it is Balance.MaybeClaimableHTLCAwaitingTimeout) {
|
||||
println("ReactNativeLDK: MaybeClaimableHTLCAwaitingTimeout = " + it.claimable_amount_satoshis + " " + it.claimable_height);
|
||||
}
|
||||
}
|
||||
|
||||
promise.resolve(totalSat);
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
fun getMaturingHeight(promise: Promise) {
|
||||
var maxHeight: Int = 0;
|
||||
val balances = chain_monitor?.get_claimable_balances(channel_manager!!.list_channels());
|
||||
balances!!.iterator().forEach {
|
||||
if (it is Balance.ClaimableAwaitingConfirmations) {
|
||||
println("ReactNativeLDK: ClaimableAwaitingConfirmations = " + it.claimable_amount_satoshis + " " + it.confirmation_height);
|
||||
maxHeight = when (it.confirmation_height > maxHeight) {
|
||||
true -> it.confirmation_height
|
||||
false -> maxHeight
|
||||
}
|
||||
}
|
||||
|
||||
if (it is Balance.ClaimableOnChannelClose) {
|
||||
println("ReactNativeLDK: ClaimableOnChannelClose = " + it.claimable_amount_satoshis);
|
||||
}
|
||||
|
||||
if (it is Balance.ContentiousClaimable) {
|
||||
println("ReactNativeLDK: ContentiousClaimable = " + it.claimable_amount_satoshis + " " + it.timeout_height);
|
||||
maxHeight = when (it.timeout_height > maxHeight) {
|
||||
true -> it.timeout_height
|
||||
false -> maxHeight
|
||||
}
|
||||
}
|
||||
|
||||
if (it is Balance.MaybeClaimableHTLCAwaitingTimeout) {
|
||||
println("ReactNativeLDK: MaybeClaimableHTLCAwaitingTimeout = " + it.claimable_amount_satoshis + " " + it.claimable_height);
|
||||
maxHeight = when (it.claimable_height > maxHeight) {
|
||||
true -> it.claimable_height
|
||||
false -> maxHeight
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
promise.resolve(maxHeight);
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
fun stop(promise: Promise) {
|
||||
println("ReactNativeLDK: stop")
|
||||
|
||||
@ -118,6 +118,7 @@ def jscFlavor = 'org.webkit:android-jsc:+'
|
||||
* and the benefits of using Hermes will therefore be sharply reduced.
|
||||
*/
|
||||
def enableHermes = project.ext.react.get("enableHermes", false);
|
||||
def nativeArchitectures = project.getProperties().get("reactNativeDebugArchitectures")
|
||||
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
||||
@ -153,7 +154,13 @@ android {
|
||||
buildTypes {
|
||||
debug {
|
||||
signingConfig signingConfigs.debug
|
||||
if (nativeArchitectures) {
|
||||
ndk {
|
||||
abiFilters nativeArchitectures.split(',')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
release {
|
||||
// Caution! In production, you need to generate your own keystore file.
|
||||
// see https://reactnative.dev/docs/signed-apk-android.
|
||||
@ -206,12 +213,13 @@ dependencies {
|
||||
}
|
||||
|
||||
implementation project(':rnldk')
|
||||
implementation project(':react-native-fs')
|
||||
}
|
||||
|
||||
// Run this once to be able to run the application with BUCK
|
||||
// puts all compile dependencies into folder libs for BUCK to use
|
||||
task copyDownloadableDepsToLibs(type: Copy) {
|
||||
from configurations.compile
|
||||
from configurations.implementation
|
||||
into 'libs'
|
||||
}
|
||||
|
||||
|
||||
@ -11,6 +11,7 @@ import com.facebook.soloader.SoLoader;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.util.List;
|
||||
import com.rnldk.RnLdkPackage;
|
||||
import com.rnfs.RNFSPackage;
|
||||
|
||||
public class MainApplication extends Application implements ReactApplication {
|
||||
|
||||
|
||||
@ -2,18 +2,18 @@
|
||||
|
||||
buildscript {
|
||||
ext {
|
||||
buildToolsVersion = "29.0.2"
|
||||
minSdkVersion = 21
|
||||
compileSdkVersion = 29
|
||||
targetSdkVersion = 29
|
||||
buildToolsVersion = "30.0.2"
|
||||
minSdkVersion = 24
|
||||
compileSdkVersion = 30
|
||||
targetSdkVersion = 30
|
||||
}
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath("com.android.tools.build:gradle:3.4.3")
|
||||
|
||||
classpath("com.android.tools.build:gradle:4.2.2")
|
||||
17
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
}
|
||||
@ -30,6 +30,13 @@ allprojects {
|
||||
// Android JSC is installed from npm
|
||||
url("$rootDir/../node_modules/jsc-android/dist")
|
||||
}
|
||||
mavenCentral {
|
||||
// We don't want to fetch react-native from Maven Central as there are
|
||||
// older versions over there.
|
||||
content {
|
||||
excludeGroup "com.facebook.react"
|
||||
}
|
||||
}
|
||||
|
||||
google()
|
||||
jcenter()
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
||||
@ -4,3 +4,6 @@ include ':app'
|
||||
|
||||
include ':rnldk'
|
||||
project(':rnldk').projectDir = new File(rootProject.projectDir, '../../android')
|
||||
|
||||
include ':react-native-fs'
|
||||
project(':react-native-fs').projectDir = new File(settingsDir, '../node_modules/react-native-fs/android')
|
||||
|
||||
@ -2,7 +2,5 @@
|
||||
// File.swift
|
||||
// RnLdkExample
|
||||
//
|
||||
// Created by Admin on 9/9/21.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
@ -9,9 +9,23 @@ target 'RnLdkExample' do
|
||||
use_react_native!(:path => config["reactNativePath"])
|
||||
|
||||
pod 'rn-ldk', :path => '../..'
|
||||
use_react_native!(
|
||||
:path => config[:reactNativePath],
|
||||
# to enable hermes on iOS, change `false` to `true` and then install pods
|
||||
:hermes_enabled => false
|
||||
)
|
||||
|
||||
# Enables Flipper.
|
||||
#
|
||||
# Note that if you have use_frameworks! enabled, Flipper will not work and
|
||||
# you should disable these next few lines.
|
||||
# you should disable the next line.
|
||||
use_flipper!()
|
||||
|
||||
post_install do |installer|
|
||||
react_native_post_install(installer)
|
||||
__apply_Xcode_12_5_M1_post_install_workaround(installer)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
545
example/ios/Podfile.lock
Normal file
545
example/ios/Podfile.lock
Normal file
@ -0,0 +1,545 @@
|
||||
PODS:
|
||||
- boost (1.76.0)
|
||||
- CocoaAsyncSocket (7.6.5)
|
||||
- DoubleConversion (1.1.6)
|
||||
- FBLazyVector (0.67.2)
|
||||
- FBReactNativeSpec (0.67.2):
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- RCTRequired (= 0.67.2)
|
||||
- RCTTypeSafety (= 0.67.2)
|
||||
- React-Core (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- ReactCommon/turbomodule/core (= 0.67.2)
|
||||
- Flipper (0.99.0):
|
||||
- Flipper-Folly (~> 2.6)
|
||||
- Flipper-RSocket (~> 1.4)
|
||||
- Flipper-Boost-iOSX (1.76.0.1.11)
|
||||
- Flipper-DoubleConversion (3.1.7)
|
||||
- Flipper-Fmt (7.1.7)
|
||||
- Flipper-Folly (2.6.7):
|
||||
- Flipper-Boost-iOSX
|
||||
- Flipper-DoubleConversion
|
||||
- Flipper-Fmt (= 7.1.7)
|
||||
- Flipper-Glog
|
||||
- libevent (~> 2.1.12)
|
||||
- OpenSSL-Universal (= 1.1.180)
|
||||
- Flipper-Glog (0.3.6)
|
||||
- Flipper-PeerTalk (0.0.4)
|
||||
- Flipper-RSocket (1.4.3):
|
||||
- Flipper-Folly (~> 2.6)
|
||||
- FlipperKit (0.99.0):
|
||||
- FlipperKit/Core (= 0.99.0)
|
||||
- FlipperKit/Core (0.99.0):
|
||||
- Flipper (~> 0.99.0)
|
||||
- FlipperKit/CppBridge
|
||||
- FlipperKit/FBCxxFollyDynamicConvert
|
||||
- FlipperKit/FBDefines
|
||||
- FlipperKit/FKPortForwarding
|
||||
- FlipperKit/CppBridge (0.99.0):
|
||||
- Flipper (~> 0.99.0)
|
||||
- FlipperKit/FBCxxFollyDynamicConvert (0.99.0):
|
||||
- Flipper-Folly (~> 2.6)
|
||||
- FlipperKit/FBDefines (0.99.0)
|
||||
- FlipperKit/FKPortForwarding (0.99.0):
|
||||
- CocoaAsyncSocket (~> 7.6)
|
||||
- Flipper-PeerTalk (~> 0.0.4)
|
||||
- FlipperKit/FlipperKitHighlightOverlay (0.99.0)
|
||||
- FlipperKit/FlipperKitLayoutHelpers (0.99.0):
|
||||
- FlipperKit/Core
|
||||
- FlipperKit/FlipperKitHighlightOverlay
|
||||
- FlipperKit/FlipperKitLayoutTextSearchable
|
||||
- FlipperKit/FlipperKitLayoutIOSDescriptors (0.99.0):
|
||||
- FlipperKit/Core
|
||||
- FlipperKit/FlipperKitHighlightOverlay
|
||||
- FlipperKit/FlipperKitLayoutHelpers
|
||||
- YogaKit (~> 1.18)
|
||||
- FlipperKit/FlipperKitLayoutPlugin (0.99.0):
|
||||
- FlipperKit/Core
|
||||
- FlipperKit/FlipperKitHighlightOverlay
|
||||
- FlipperKit/FlipperKitLayoutHelpers
|
||||
- FlipperKit/FlipperKitLayoutIOSDescriptors
|
||||
- FlipperKit/FlipperKitLayoutTextSearchable
|
||||
- YogaKit (~> 1.18)
|
||||
- FlipperKit/FlipperKitLayoutTextSearchable (0.99.0)
|
||||
- FlipperKit/FlipperKitNetworkPlugin (0.99.0):
|
||||
- FlipperKit/Core
|
||||
- FlipperKit/FlipperKitReactPlugin (0.99.0):
|
||||
- FlipperKit/Core
|
||||
- FlipperKit/FlipperKitUserDefaultsPlugin (0.99.0):
|
||||
- FlipperKit/Core
|
||||
- FlipperKit/SKIOSNetworkPlugin (0.99.0):
|
||||
- FlipperKit/Core
|
||||
- FlipperKit/FlipperKitNetworkPlugin
|
||||
- fmt (6.2.1)
|
||||
- glog (0.3.5)
|
||||
- libevent (2.1.12)
|
||||
- OpenSSL-Universal (1.1.180)
|
||||
- RCT-Folly (2021.06.28.00-v2):
|
||||
- boost
|
||||
- DoubleConversion
|
||||
- fmt (~> 6.2.1)
|
||||
- glog
|
||||
- RCT-Folly/Default (= 2021.06.28.00-v2)
|
||||
- RCT-Folly/Default (2021.06.28.00-v2):
|
||||
- boost
|
||||
- DoubleConversion
|
||||
- fmt (~> 6.2.1)
|
||||
- glog
|
||||
- RCTRequired (0.67.2)
|
||||
- RCTTypeSafety (0.67.2):
|
||||
- FBLazyVector (= 0.67.2)
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- RCTRequired (= 0.67.2)
|
||||
- React-Core (= 0.67.2)
|
||||
- React (0.67.2):
|
||||
- React-Core (= 0.67.2)
|
||||
- React-Core/DevSupport (= 0.67.2)
|
||||
- React-Core/RCTWebSocket (= 0.67.2)
|
||||
- React-RCTActionSheet (= 0.67.2)
|
||||
- React-RCTAnimation (= 0.67.2)
|
||||
- React-RCTBlob (= 0.67.2)
|
||||
- React-RCTImage (= 0.67.2)
|
||||
- React-RCTLinking (= 0.67.2)
|
||||
- React-RCTNetwork (= 0.67.2)
|
||||
- React-RCTSettings (= 0.67.2)
|
||||
- React-RCTText (= 0.67.2)
|
||||
- React-RCTVibration (= 0.67.2)
|
||||
- React-callinvoker (0.67.2)
|
||||
- React-Core (0.67.2):
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-Core/Default (= 0.67.2)
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-jsiexecutor (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- Yoga
|
||||
- React-Core/CoreModulesHeaders (0.67.2):
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-Core/Default
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-jsiexecutor (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- Yoga
|
||||
- React-Core/Default (0.67.2):
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-jsiexecutor (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- Yoga
|
||||
- React-Core/DevSupport (0.67.2):
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-Core/Default (= 0.67.2)
|
||||
- React-Core/RCTWebSocket (= 0.67.2)
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-jsiexecutor (= 0.67.2)
|
||||
- React-jsinspector (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- Yoga
|
||||
- React-Core/RCTActionSheetHeaders (0.67.2):
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-Core/Default
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-jsiexecutor (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- Yoga
|
||||
- React-Core/RCTAnimationHeaders (0.67.2):
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-Core/Default
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-jsiexecutor (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- Yoga
|
||||
- React-Core/RCTBlobHeaders (0.67.2):
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-Core/Default
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-jsiexecutor (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- Yoga
|
||||
- React-Core/RCTImageHeaders (0.67.2):
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-Core/Default
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-jsiexecutor (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- Yoga
|
||||
- React-Core/RCTLinkingHeaders (0.67.2):
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-Core/Default
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-jsiexecutor (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- Yoga
|
||||
- React-Core/RCTNetworkHeaders (0.67.2):
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-Core/Default
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-jsiexecutor (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- Yoga
|
||||
- React-Core/RCTSettingsHeaders (0.67.2):
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-Core/Default
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-jsiexecutor (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- Yoga
|
||||
- React-Core/RCTTextHeaders (0.67.2):
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-Core/Default
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-jsiexecutor (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- Yoga
|
||||
- React-Core/RCTVibrationHeaders (0.67.2):
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-Core/Default
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-jsiexecutor (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- Yoga
|
||||
- React-Core/RCTWebSocket (0.67.2):
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-Core/Default (= 0.67.2)
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-jsiexecutor (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- Yoga
|
||||
- React-CoreModules (0.67.2):
|
||||
- FBReactNativeSpec (= 0.67.2)
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- RCTTypeSafety (= 0.67.2)
|
||||
- React-Core/CoreModulesHeaders (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-RCTImage (= 0.67.2)
|
||||
- ReactCommon/turbomodule/core (= 0.67.2)
|
||||
- React-cxxreact (0.67.2):
|
||||
- boost (= 1.76.0)
|
||||
- DoubleConversion
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-callinvoker (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-jsinspector (= 0.67.2)
|
||||
- React-logger (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- React-runtimeexecutor (= 0.67.2)
|
||||
- React-jsi (0.67.2):
|
||||
- boost (= 1.76.0)
|
||||
- DoubleConversion
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-jsi/Default (= 0.67.2)
|
||||
- React-jsi/Default (0.67.2):
|
||||
- boost (= 1.76.0)
|
||||
- DoubleConversion
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-jsiexecutor (0.67.2):
|
||||
- DoubleConversion
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- React-jsinspector (0.67.2)
|
||||
- React-logger (0.67.2):
|
||||
- glog
|
||||
- React-perflogger (0.67.2)
|
||||
- React-RCTActionSheet (0.67.2):
|
||||
- React-Core/RCTActionSheetHeaders (= 0.67.2)
|
||||
- React-RCTAnimation (0.67.2):
|
||||
- FBReactNativeSpec (= 0.67.2)
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- RCTTypeSafety (= 0.67.2)
|
||||
- React-Core/RCTAnimationHeaders (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- ReactCommon/turbomodule/core (= 0.67.2)
|
||||
- React-RCTBlob (0.67.2):
|
||||
- FBReactNativeSpec (= 0.67.2)
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-Core/RCTBlobHeaders (= 0.67.2)
|
||||
- React-Core/RCTWebSocket (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-RCTNetwork (= 0.67.2)
|
||||
- ReactCommon/turbomodule/core (= 0.67.2)
|
||||
- React-RCTImage (0.67.2):
|
||||
- FBReactNativeSpec (= 0.67.2)
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- RCTTypeSafety (= 0.67.2)
|
||||
- React-Core/RCTImageHeaders (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-RCTNetwork (= 0.67.2)
|
||||
- ReactCommon/turbomodule/core (= 0.67.2)
|
||||
- React-RCTLinking (0.67.2):
|
||||
- FBReactNativeSpec (= 0.67.2)
|
||||
- React-Core/RCTLinkingHeaders (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- ReactCommon/turbomodule/core (= 0.67.2)
|
||||
- React-RCTNetwork (0.67.2):
|
||||
- FBReactNativeSpec (= 0.67.2)
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- RCTTypeSafety (= 0.67.2)
|
||||
- React-Core/RCTNetworkHeaders (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- ReactCommon/turbomodule/core (= 0.67.2)
|
||||
- React-RCTSettings (0.67.2):
|
||||
- FBReactNativeSpec (= 0.67.2)
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- RCTTypeSafety (= 0.67.2)
|
||||
- React-Core/RCTSettingsHeaders (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- ReactCommon/turbomodule/core (= 0.67.2)
|
||||
- React-RCTText (0.67.2):
|
||||
- React-Core/RCTTextHeaders (= 0.67.2)
|
||||
- React-RCTVibration (0.67.2):
|
||||
- FBReactNativeSpec (= 0.67.2)
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-Core/RCTVibrationHeaders (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- ReactCommon/turbomodule/core (= 0.67.2)
|
||||
- React-runtimeexecutor (0.67.2):
|
||||
- React-jsi (= 0.67.2)
|
||||
- ReactCommon/turbomodule/core (0.67.2):
|
||||
- DoubleConversion
|
||||
- glog
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
- React-callinvoker (= 0.67.2)
|
||||
- React-Core (= 0.67.2)
|
||||
- React-cxxreact (= 0.67.2)
|
||||
- React-jsi (= 0.67.2)
|
||||
- React-logger (= 0.67.2)
|
||||
- React-perflogger (= 0.67.2)
|
||||
- rn-ldk (0.8.2):
|
||||
- React-Core
|
||||
- RNCAsyncStorage (1.16.1):
|
||||
- React-Core
|
||||
- RNFS (2.19.0):
|
||||
- React-Core
|
||||
- Yoga (1.14.0)
|
||||
- YogaKit (1.18.1):
|
||||
- Yoga (~> 1.14)
|
||||
|
||||
DEPENDENCIES:
|
||||
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
|
||||
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
|
||||
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
|
||||
- FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
|
||||
- Flipper (= 0.99.0)
|
||||
- Flipper-Boost-iOSX (= 1.76.0.1.11)
|
||||
- Flipper-DoubleConversion (= 3.1.7)
|
||||
- Flipper-Fmt (= 7.1.7)
|
||||
- Flipper-Folly (= 2.6.7)
|
||||
- Flipper-Glog (= 0.3.6)
|
||||
- Flipper-PeerTalk (= 0.0.4)
|
||||
- Flipper-RSocket (= 1.4.3)
|
||||
- FlipperKit (= 0.99.0)
|
||||
- FlipperKit/Core (= 0.99.0)
|
||||
- FlipperKit/CppBridge (= 0.99.0)
|
||||
- FlipperKit/FBCxxFollyDynamicConvert (= 0.99.0)
|
||||
- FlipperKit/FBDefines (= 0.99.0)
|
||||
- FlipperKit/FKPortForwarding (= 0.99.0)
|
||||
- FlipperKit/FlipperKitHighlightOverlay (= 0.99.0)
|
||||
- FlipperKit/FlipperKitLayoutPlugin (= 0.99.0)
|
||||
- FlipperKit/FlipperKitLayoutTextSearchable (= 0.99.0)
|
||||
- FlipperKit/FlipperKitNetworkPlugin (= 0.99.0)
|
||||
- FlipperKit/FlipperKitReactPlugin (= 0.99.0)
|
||||
- FlipperKit/FlipperKitUserDefaultsPlugin (= 0.99.0)
|
||||
- FlipperKit/SKIOSNetworkPlugin (= 0.99.0)
|
||||
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
|
||||
- OpenSSL-Universal (= 1.1.180)
|
||||
- RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
|
||||
- RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
|
||||
- RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
|
||||
- React (from `../node_modules/react-native/`)
|
||||
- React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`)
|
||||
- React-Core (from `../node_modules/react-native/`)
|
||||
- React-Core/DevSupport (from `../node_modules/react-native/`)
|
||||
- React-Core/RCTWebSocket (from `../node_modules/react-native/`)
|
||||
- React-CoreModules (from `../node_modules/react-native/React/CoreModules`)
|
||||
- React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
|
||||
- React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
|
||||
- React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
|
||||
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
|
||||
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
|
||||
- React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`)
|
||||
- React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
|
||||
- React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
|
||||
- React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
|
||||
- React-RCTImage (from `../node_modules/react-native/Libraries/Image`)
|
||||
- React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`)
|
||||
- React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`)
|
||||
- React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`)
|
||||
- React-RCTText (from `../node_modules/react-native/Libraries/Text`)
|
||||
- React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
|
||||
- React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`)
|
||||
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
|
||||
- rn-ldk (from `../..`)
|
||||
- "RNCAsyncStorage (from `../node_modules/@react-native-async-storage/async-storage`)"
|
||||
- RNFS (from `../node_modules/react-native-fs`)
|
||||
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
|
||||
|
||||
SPEC REPOS:
|
||||
trunk:
|
||||
- CocoaAsyncSocket
|
||||
- Flipper
|
||||
- Flipper-Boost-iOSX
|
||||
- Flipper-DoubleConversion
|
||||
- Flipper-Fmt
|
||||
- Flipper-Folly
|
||||
- Flipper-Glog
|
||||
- Flipper-PeerTalk
|
||||
- Flipper-RSocket
|
||||
- FlipperKit
|
||||
- fmt
|
||||
- libevent
|
||||
- OpenSSL-Universal
|
||||
- YogaKit
|
||||
|
||||
EXTERNAL SOURCES:
|
||||
boost:
|
||||
:podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec"
|
||||
DoubleConversion:
|
||||
:podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
|
||||
FBLazyVector:
|
||||
:path: "../node_modules/react-native/Libraries/FBLazyVector"
|
||||
FBReactNativeSpec:
|
||||
:path: "../node_modules/react-native/React/FBReactNativeSpec"
|
||||
glog:
|
||||
:podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
|
||||
RCT-Folly:
|
||||
:podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
|
||||
RCTRequired:
|
||||
:path: "../node_modules/react-native/Libraries/RCTRequired"
|
||||
RCTTypeSafety:
|
||||
:path: "../node_modules/react-native/Libraries/TypeSafety"
|
||||
React:
|
||||
:path: "../node_modules/react-native/"
|
||||
React-callinvoker:
|
||||
:path: "../node_modules/react-native/ReactCommon/callinvoker"
|
||||
React-Core:
|
||||
:path: "../node_modules/react-native/"
|
||||
React-CoreModules:
|
||||
:path: "../node_modules/react-native/React/CoreModules"
|
||||
React-cxxreact:
|
||||
:path: "../node_modules/react-native/ReactCommon/cxxreact"
|
||||
React-jsi:
|
||||
:path: "../node_modules/react-native/ReactCommon/jsi"
|
||||
React-jsiexecutor:
|
||||
:path: "../node_modules/react-native/ReactCommon/jsiexecutor"
|
||||
React-jsinspector:
|
||||
:path: "../node_modules/react-native/ReactCommon/jsinspector"
|
||||
React-logger:
|
||||
:path: "../node_modules/react-native/ReactCommon/logger"
|
||||
React-perflogger:
|
||||
:path: "../node_modules/react-native/ReactCommon/reactperflogger"
|
||||
React-RCTActionSheet:
|
||||
:path: "../node_modules/react-native/Libraries/ActionSheetIOS"
|
||||
React-RCTAnimation:
|
||||
:path: "../node_modules/react-native/Libraries/NativeAnimation"
|
||||
React-RCTBlob:
|
||||
:path: "../node_modules/react-native/Libraries/Blob"
|
||||
React-RCTImage:
|
||||
:path: "../node_modules/react-native/Libraries/Image"
|
||||
React-RCTLinking:
|
||||
:path: "../node_modules/react-native/Libraries/LinkingIOS"
|
||||
React-RCTNetwork:
|
||||
:path: "../node_modules/react-native/Libraries/Network"
|
||||
React-RCTSettings:
|
||||
:path: "../node_modules/react-native/Libraries/Settings"
|
||||
React-RCTText:
|
||||
:path: "../node_modules/react-native/Libraries/Text"
|
||||
React-RCTVibration:
|
||||
:path: "../node_modules/react-native/Libraries/Vibration"
|
||||
React-runtimeexecutor:
|
||||
:path: "../node_modules/react-native/ReactCommon/runtimeexecutor"
|
||||
ReactCommon:
|
||||
:path: "../node_modules/react-native/ReactCommon"
|
||||
rn-ldk:
|
||||
:path: "../.."
|
||||
RNCAsyncStorage:
|
||||
:path: "../node_modules/@react-native-async-storage/async-storage"
|
||||
RNFS:
|
||||
:path: "../node_modules/react-native-fs"
|
||||
Yoga:
|
||||
:path: "../node_modules/react-native/ReactCommon/yoga"
|
||||
|
||||
SPEC CHECKSUMS:
|
||||
boost: a7c83b31436843459a1961bfd74b96033dc77234
|
||||
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
|
||||
DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662
|
||||
FBLazyVector: 244195e30d63d7f564c55da4410b9a24e8fbceaa
|
||||
FBReactNativeSpec: c94002c1d93da3658f4d5119c6994d19961e3d52
|
||||
Flipper: 30e8eeeed6abdc98edaf32af0cda2f198be4b733
|
||||
Flipper-Boost-iOSX: fd1e2b8cbef7e662a122412d7ac5f5bea715403c
|
||||
Flipper-DoubleConversion: 57ffbe81ef95306cc9e69c4aa3aeeeeb58a6a28c
|
||||
Flipper-Fmt: 60cbdd92fc254826e61d669a5d87ef7015396a9b
|
||||
Flipper-Folly: 83af37379faa69497529e414bd43fbfc7cae259a
|
||||
Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6
|
||||
Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9
|
||||
Flipper-RSocket: d9d9ade67cbecf6ac10730304bf5607266dd2541
|
||||
FlipperKit: d8d346844eca5d9120c17d441a2f38596e8ed2b9
|
||||
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
|
||||
glog: 85ecdd10ee8d8ec362ef519a6a45ff9aa27b2e85
|
||||
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
|
||||
OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b
|
||||
RCT-Folly: 803a9cfd78114b2ec0f140cfa6fa2a6bafb2d685
|
||||
RCTRequired: cd47794163052d2b8318c891a7a14fcfaccc75ab
|
||||
RCTTypeSafety: 393bb40b3e357b224cde53d3fec26813c52428b1
|
||||
React: dec6476bc27155b250eeadfc11ea779265f53ebf
|
||||
React-callinvoker: e5047929e80aea942e6fdd96482504ef0189ca63
|
||||
React-Core: e382655566b2b9a6e3b4f641d777b7bfdbe52358
|
||||
React-CoreModules: cf262e82fa101c0aee022b6f90d1a5b612038b64
|
||||
React-cxxreact: 69d53de3b30c7c161ba087ca1ecdffed9ccb1039
|
||||
React-jsi: ce9a2d804adf75809ce2fe2374ba3fbbf5d59b03
|
||||
React-jsiexecutor: 52beb652bbc61201bd70cbe4f0b8edb607e8da4f
|
||||
React-jsinspector: 595f76eba2176ebd8817a1fffd47b84fbdab9383
|
||||
React-logger: 23de8ea0f44fa00ee77e96060273225607fd4d78
|
||||
React-perflogger: 3c9bb7372493e49036f07a82c44c8cf65cbe88db
|
||||
React-RCTActionSheet: 052606483045a408693aa7e864410b4a052f541a
|
||||
React-RCTAnimation: 08d4cac13222bb1348c687a0158dfd3b577cdb63
|
||||
React-RCTBlob: 928ad1df65219c3d9e2ac80983b943a75b5c3629
|
||||
React-RCTImage: 524d7313b142a39ee0e20fa312b67277917fe076
|
||||
React-RCTLinking: 44036ea6f13a2e46238be07a67566247fee35244
|
||||
React-RCTNetwork: 9b6faacf1e0789253e319ca53b1f8d92c2ac5455
|
||||
React-RCTSettings: ecd8094f831130a49581d5112a8607220e5d12a5
|
||||
React-RCTText: 14ba976fb48ed283cfdb1a754a5d4276471e0152
|
||||
React-RCTVibration: 99c7f67fba7a5ade46e98e870c6ff2444484f995
|
||||
React-runtimeexecutor: 2450b43df7ffe8e805a0b3dcb2abd4282f1f1836
|
||||
ReactCommon: d98c6c96b567f9b3a15f9fd4cc302c1eda8e3cf2
|
||||
rn-ldk: caf93f2b98f044565c8be285b02604cf75b2098a
|
||||
RNCAsyncStorage: b49b4e38a1548d03b74b30e558a1d18465b94be7
|
||||
RNFS: fc610f78fdf8bfc89a9e5cc2f898519f4dba1002
|
||||
Yoga: 9b6696970c3289e8dea34b3eda93f23e61fb8121
|
||||
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
|
||||
|
||||
PODFILE CHECKSUM: 55b1b4624314bbd9c4bf848a0944f4da6288bb34
|
||||
|
||||
COCOAPODS: 1.10.1
|
||||
@ -56,6 +56,7 @@
|
||||
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>"; };
|
||||
848FB6AB28B12A1300407DAF /* LightningDevKit.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = LightningDevKit.xcframework; path = ../../ios/LightningDevKit.xcframework; 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; };
|
||||
@ -132,6 +133,7 @@
|
||||
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
848FB6AB28B12A1300407DAF /* LightningDevKit.xcframework */,
|
||||
6D2C7F7026617CA6002939FA /* SwiftSocket.xcframework */,
|
||||
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
|
||||
ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
|
||||
@ -421,10 +423,14 @@
|
||||
);
|
||||
inputPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-RnLdkExample/Pods-RnLdkExample-frameworks.sh",
|
||||
"${PODS_XCFRAMEWORKS_BUILD_DIR}/rn-ldk/LDKFramework.framework/LDKFramework",
|
||||
"${PODS_XCFRAMEWORKS_BUILD_DIR}/double-conversion/double-conversion.framework/double-conversion",
|
||||
"${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL/OpenSSL.framework/OpenSSL",
|
||||
"${PODS_XCFRAMEWORKS_BUILD_DIR}/LDKFramework/LDKFramework.framework/LDKFramework",
|
||||
);
|
||||
name = "[CP] Embed Pods Frameworks";
|
||||
outputPaths = (
|
||||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/double-conversion.framework",
|
||||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework",
|
||||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/LDKFramework.framework",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
@ -573,7 +579,6 @@
|
||||
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;
|
||||
@ -607,7 +612,6 @@
|
||||
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;
|
||||
@ -771,6 +775,7 @@
|
||||
COPY_PHASE_STRIP = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
@ -789,8 +794,8 @@
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
|
||||
LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(SDKROOT)/usr/lib/swift",
|
||||
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
|
||||
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
|
||||
"\"$(inherited)\"",
|
||||
);
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
@ -831,6 +836,7 @@
|
||||
COPY_PHASE_STRIP = YES;
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
@ -842,8 +848,8 @@
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
|
||||
LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(SDKROOT)/usr/lib/swift",
|
||||
"\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
|
||||
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
|
||||
"\"$(inherited)\"",
|
||||
);
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
|
||||
@ -1,10 +0,0 @@
|
||||
<?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>
|
||||
@ -1,5 +1,5 @@
|
||||
const path = require('path');
|
||||
const blacklist = require('metro-config/src/defaults/blacklist');
|
||||
const blacklist = require('metro-config/src/defaults/exclusionList');
|
||||
const escape = require('escape-string-regexp');
|
||||
const pak = require('../package.json');
|
||||
|
||||
|
||||
13836
example/package-lock.json
generated
Normal file
13836
example/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -9,10 +9,11 @@
|
||||
"start": "react-native start"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-async-storage/async-storage": "^1.14.1",
|
||||
"@react-native-async-storage/async-storage": "^1.16.1",
|
||||
"crypto-js": "^3.1.9-1",
|
||||
"react": "16.13.1",
|
||||
"react-native": "0.63.4"
|
||||
"react": "17.0.2",
|
||||
"react-native": "0.67.5",
|
||||
"react-native-fs": "^2.19.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
|
||||
@ -1,10 +1,12 @@
|
||||
/* eslint-disable no-alert */
|
||||
import * as React from 'react';
|
||||
import { TextInput, Alert, StyleSheet, View, Text, Button } from 'react-native';
|
||||
import { TextInput, Alert, StyleSheet, Text, Button, ScrollView } from 'react-native';
|
||||
import RnLdk from 'rn-ldk';
|
||||
import AsyncStorage from '@react-native-async-storage/async-storage';
|
||||
import SyncedAsyncStorage from './synced-async-storage';
|
||||
|
||||
const RNFS = require('react-native-fs');
|
||||
|
||||
export default function App() {
|
||||
const [result, setResult] = React.useState<number | undefined>();
|
||||
const [text, onChangeText] = React.useState<string>('');
|
||||
@ -14,13 +16,15 @@ export default function App() {
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text>ver {result}</Text>
|
||||
<ScrollView automaticallyAdjustContentInsets contentInsetAdjustmentBehavior={'automatic'} contentContainerStyle={styles.container}>
|
||||
<Text>
|
||||
ver {result} (package {RnLdk.getPackageVersion()})
|
||||
</Text>
|
||||
|
||||
<Button
|
||||
onPress={async () => {
|
||||
console.warn('starting...');
|
||||
const entropy = '8b626e47c75f0b6db440a25564ece9b00b2119484683ac2bffaeb2eb118712e8';
|
||||
const entropy = '8b626e47cf7f878f86f782354234623462346234623462343246b2eb118712e8';
|
||||
|
||||
const syncedStorage = new SyncedAsyncStorage(entropy);
|
||||
await syncedStorage.selftest();
|
||||
@ -30,7 +34,7 @@ export default function App() {
|
||||
|
||||
RnLdk.setStorage(syncedStorage);
|
||||
RnLdk.setRefundAddressScript('76a91419129d53e6319baf19dba059bead166df90ab8f588ac'); // 13HaCAB4jf7FYSZexJxoczyDDnutzZigjS
|
||||
RnLdk.start(entropy).then(console.warn);
|
||||
await RnLdk.start(entropy, RNFS.DocumentDirectoryPath).then(console.warn);
|
||||
}}
|
||||
title="Start"
|
||||
color="#841584"
|
||||
@ -47,7 +51,9 @@ export default function App() {
|
||||
|
||||
<Button
|
||||
onPress={() => {
|
||||
RnLdk.connectPeer('02e89ca9e8da72b33d896bae51d20e7e6675aa971f7557500b6591b15429e717f1', '165.227.95.104', 9735).then(console.warn); // lnd1
|
||||
// RnLdk.connectPeer('02e89ca9e8da72b33d896bae51d20e7e6675aa971f7557500b6591b15429e717f1', '165.227.95.104', 9735).then(console.warn); // lnd1
|
||||
RnLdk.connectPeer('03abf6f44c355dec0d5aa155bdbdd6e0c8fefe318eff402de65c6eb2e1be55dc3e', '3.132.230.42', 9735).then(console.warn); // opennode
|
||||
RnLdk.connectPeer('030c3f19d742ca294a55c00376b3b355c3c90d61c6b6b39554dbc7ac19b141c14f', '52.50.244.44', 9735).then(console.warn); // bitrefill
|
||||
}}
|
||||
title="connect peer"
|
||||
color="#841584"
|
||||
@ -79,7 +85,7 @@ export default function App() {
|
||||
|
||||
<Button
|
||||
onPress={async () => {
|
||||
const address = await RnLdk.openChannelStep1('02e89ca9e8da72b33d896bae51d20e7e6675aa971f7557500b6591b15429e717f1', 100000);
|
||||
const address = await RnLdk.openChannelStep1('02e89ca9e8da72b33d896bae51d20e7e6675aa971f7557500b6591b15429e717f1', 100000); // lnd1
|
||||
console.log(address + '');
|
||||
onChangeText(address + '');
|
||||
}}
|
||||
@ -114,6 +120,19 @@ export default function App() {
|
||||
color="#841584"
|
||||
/>
|
||||
|
||||
<Button
|
||||
onPress={() => {
|
||||
RnLdk.getMaturingBalance().then((maturingBalance) => {
|
||||
console.warn({ maturingBalance });
|
||||
});
|
||||
RnLdk.getMaturingHeight().then((maturingHeight) => {
|
||||
console.warn({ maturingHeight });
|
||||
});
|
||||
}}
|
||||
title="get Maturing Balance/Height"
|
||||
color="#841584"
|
||||
/>
|
||||
|
||||
<Button
|
||||
onPress={async () => {
|
||||
await RnLdk.closeChannelCooperatively(text);
|
||||
@ -173,17 +192,17 @@ export default function App() {
|
||||
<Button
|
||||
onPress={async () => {
|
||||
await AsyncStorage.clear();
|
||||
Alert.alert('purged');
|
||||
}}
|
||||
title="PURGE async storage"
|
||||
color="#841584"
|
||||
/>
|
||||
</View>
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
},
|
||||
|
||||
@ -1,212 +0,0 @@
|
||||
// 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
|
||||
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
@ -1,40 +0,0 @@
|
||||
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 *
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
framework module LDKFramework_Mac {
|
||||
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-mac.a"
|
||||
export *
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
module LDKFramework.Swift {
|
||||
header "LDKFramework-Swift.h"
|
||||
requires objc
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
Versions/Current/LDKFramework
|
||||
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
@ -1,212 +0,0 @@
|
||||
// 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
|
||||
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
@ -1,40 +0,0 @@
|
||||
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 *
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
framework module LDKFramework_Mac {
|
||||
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-mac.a"
|
||||
export *
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
module LDKFramework.Swift {
|
||||
header "LDKFramework-Swift.h"
|
||||
requires objc
|
||||
}
|
||||
@ -1,245 +0,0 @@
|
||||
<?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>files</key>
|
||||
<dict>
|
||||
<key>Headers/LDKFramework-Swift.h</key>
|
||||
<data>
|
||||
sSaBVnP5mgVbsaaywZSAhIbY254=
|
||||
</data>
|
||||
<key>Headers/LDKFramework.h</key>
|
||||
<data>
|
||||
k6YIh4bHJRTibrlhoOqGqumBbMc=
|
||||
</data>
|
||||
<key>Headers/ldk_net.h</key>
|
||||
<data>
|
||||
1fitqxCEjruDZpYbGz8X0eOn9UU=
|
||||
</data>
|
||||
<key>Headers/ldk_rust_types.h</key>
|
||||
<data>
|
||||
r3fLvT4nrd4u7nxaiBOhlymnKyU=
|
||||
</data>
|
||||
<key>Headers/ldk_ver.h</key>
|
||||
<data>
|
||||
jiFBnZHSUc+nZ/MEgsoiuLEpkGE=
|
||||
</data>
|
||||
<key>Headers/lightning.h</key>
|
||||
<data>
|
||||
91K7NWlHJlOHbJD4thZm0Fmr4Fo=
|
||||
</data>
|
||||
<key>Info.plist</key>
|
||||
<data>
|
||||
pTxrurQQ5EDmIh+ZGjdPF+wYQJY=
|
||||
</data>
|
||||
<key>Modules/LDKFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
||||
<data>
|
||||
AuRlz8LfwWm5HjM1cFvTlBp2ogU=
|
||||
</data>
|
||||
<key>Modules/LDKFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
||||
<data>
|
||||
q9hAaYfUtDvRyys6rhuqbhZxRyQ=
|
||||
</data>
|
||||
<key>Modules/LDKFramework.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
||||
<data>
|
||||
LD2IbkbXifJt4UMQMX7F6Ne57iI=
|
||||
</data>
|
||||
<key>Modules/LDKFramework.swiftmodule/x86_64.swiftdoc</key>
|
||||
<data>
|
||||
AuRlz8LfwWm5HjM1cFvTlBp2ogU=
|
||||
</data>
|
||||
<key>Modules/LDKFramework.swiftmodule/x86_64.swiftinterface</key>
|
||||
<data>
|
||||
q9hAaYfUtDvRyys6rhuqbhZxRyQ=
|
||||
</data>
|
||||
<key>Modules/LDKFramework.swiftmodule/x86_64.swiftmodule</key>
|
||||
<data>
|
||||
LD2IbkbXifJt4UMQMX7F6Ne57iI=
|
||||
</data>
|
||||
<key>Modules/module.modulemap</key>
|
||||
<data>
|
||||
MLlCx0Wu1FpH0fSCW9RITgBPSr0=
|
||||
</data>
|
||||
</dict>
|
||||
<key>files2</key>
|
||||
<dict>
|
||||
<key>Headers/LDKFramework-Swift.h</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
GwialMscAxCwd5uJV2OdOIovdi1jIJsCxNx0prxtA0M=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/LDKFramework.h</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
6ri6CZsX+gb5hSNzNaVo+X0efZ7ppliqrXEeM2YFnYg=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/ldk_net.h</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
vK/6ZlE0oML3zi01GATYSyTYLKf7xpSzV/p34+07Hfw=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/ldk_rust_types.h</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
uVS23K91ToNQVD86mhbsftgPLSucJ5E1oi8wAJHqnMI=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/ldk_ver.h</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
OII5gdOG1t+pVYcAouZ6SK5qD+iTPejWpOUtgsSRfA4=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/lightning.h</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
CMFnOJvqWV5IN9HGaVhB5ukoy/AF+dwYA8aTOccYy3Q=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LDKFramework.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
ji+o93C7zrowHzroD1cqwJwCFLFUhNflkcSAL/pM/ZM=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LDKFramework.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
YZquzlH+DozM08lqzogylpg2xqtlc7QuWAm4uw6ZIS0=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LDKFramework.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
iijB+iYl+gzQC2WIBC7qwHjIc1bbiBsL1n+9yVtZ58s=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LDKFramework.swiftmodule/x86_64.swiftdoc</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
ji+o93C7zrowHzroD1cqwJwCFLFUhNflkcSAL/pM/ZM=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LDKFramework.swiftmodule/x86_64.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
YZquzlH+DozM08lqzogylpg2xqtlc7QuWAm4uw6ZIS0=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LDKFramework.swiftmodule/x86_64.swiftmodule</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
iijB+iYl+gzQC2WIBC7qwHjIc1bbiBsL1n+9yVtZ58s=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/module.modulemap</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
eSKfie+1ESJgvP4dfsfHltWUBhbPmjJU6CKgXxsNSVg=
|
||||
</data>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>rules</key>
|
||||
<dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^version.plist$</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>rules2</key>
|
||||
<dict>
|
||||
<key>.*\.dSYM($|/)</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>11</real>
|
||||
</dict>
|
||||
<key>^(.*/)?\.DS_Store$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>2000</real>
|
||||
</dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^Info\.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^PkgInfo$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^embedded\.provisionprofile$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^version\.plist$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@ -6,23 +6,22 @@
|
||||
<array>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-x86_64-simulator</string>
|
||||
<string>macos-arm64_x86_64</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>LDKFramework.framework</string>
|
||||
<string>LightningDevKit.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
<string>x86_64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>ios</string>
|
||||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
<string>macos</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>LDKFramework.framework</string>
|
||||
<string>LightningDevKit.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
@ -32,11 +31,27 @@
|
||||
</dict>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-x86_64-maccatalyst</string>
|
||||
<string>ios-arm64_x86_64-simulator</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>LDKFramework.framework</string>
|
||||
<string>LightningDevKit.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
<string>x86_64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>ios</string>
|
||||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64_x86_64-maccatalyst</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>LightningDevKit.framework</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
<string>x86_64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
@ -1,6 +1,6 @@
|
||||
// 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
|
||||
// Generated by Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
|
||||
#ifndef LIGHTNINGDEVKIT_SWIFT_H
|
||||
#define LIGHTNINGDEVKIT_SWIFT_H
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wgcc-compat"
|
||||
|
||||
@ -201,7 +201,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
||||
#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 clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="LightningDevKit",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
||||
# pragma pop_macro("any")
|
||||
#endif
|
||||
|
||||
@ -10,6 +10,8 @@
|
||||
#else
|
||||
#define NONNULL_PTR
|
||||
#endif
|
||||
struct nativeCounterpartyCommitmentSecretsOpaque;
|
||||
typedef struct nativeCounterpartyCommitmentSecretsOpaque LDKnativeCounterpartyCommitmentSecrets;
|
||||
struct nativeTxCreationKeysOpaque;
|
||||
typedef struct nativeTxCreationKeysOpaque LDKnativeTxCreationKeys;
|
||||
struct nativeChannelPublicKeysOpaque;
|
||||
@ -26,6 +28,10 @@ struct nativeHolderCommitmentTransactionOpaque;
|
||||
typedef struct nativeHolderCommitmentTransactionOpaque LDKnativeHolderCommitmentTransaction;
|
||||
struct nativeBuiltCommitmentTransactionOpaque;
|
||||
typedef struct nativeBuiltCommitmentTransactionOpaque LDKnativeBuiltCommitmentTransaction;
|
||||
struct nativeClosingTransactionOpaque;
|
||||
typedef struct nativeClosingTransactionOpaque LDKnativeClosingTransaction;
|
||||
struct nativeTrustedClosingTransactionOpaque;
|
||||
typedef struct nativeTrustedClosingTransactionOpaque LDKnativeTrustedClosingTransaction;
|
||||
struct nativeCommitmentTransactionOpaque;
|
||||
typedef struct nativeCommitmentTransactionOpaque LDKnativeCommitmentTransaction;
|
||||
struct nativeTrustedCommitmentTransactionOpaque;
|
||||
@ -40,6 +46,10 @@ struct nativeRouteHopOpaque;
|
||||
typedef struct nativeRouteHopOpaque LDKnativeRouteHop;
|
||||
struct nativeRouteOpaque;
|
||||
typedef struct nativeRouteOpaque LDKnativeRoute;
|
||||
struct nativeRouteParametersOpaque;
|
||||
typedef struct nativeRouteParametersOpaque LDKnativeRouteParameters;
|
||||
struct nativePaymentParametersOpaque;
|
||||
typedef struct nativePaymentParametersOpaque LDKnativePaymentParameters;
|
||||
struct nativeRouteHintOpaque;
|
||||
typedef struct nativeRouteHintOpaque LDKnativeRouteHint;
|
||||
struct nativeRouteHintHopOpaque;
|
||||
@ -48,6 +58,16 @@ struct nativeBestBlockOpaque;
|
||||
typedef struct nativeBestBlockOpaque LDKnativeBestBlock;
|
||||
struct nativeWatchedOutputOpaque;
|
||||
typedef struct nativeWatchedOutputOpaque LDKnativeWatchedOutput;
|
||||
struct nativeMultiThreadedLockableScoreOpaque;
|
||||
typedef struct nativeMultiThreadedLockableScoreOpaque LDKnativeMultiThreadedLockableScore;
|
||||
struct nativeChannelUsageOpaque;
|
||||
typedef struct nativeChannelUsageOpaque LDKnativeChannelUsage;
|
||||
struct nativeFixedPenaltyScorerOpaque;
|
||||
typedef struct nativeFixedPenaltyScorerOpaque LDKnativeFixedPenaltyScorer;
|
||||
struct nativeProbabilisticScorerOpaque;
|
||||
typedef struct nativeProbabilisticScorerOpaque LDKnativeProbabilisticScorer;
|
||||
struct nativeProbabilisticScoringParametersOpaque;
|
||||
typedef struct nativeProbabilisticScoringParametersOpaque LDKnativeProbabilisticScoringParameters;
|
||||
struct nativeInitFeaturesOpaque;
|
||||
typedef struct nativeInitFeaturesOpaque LDKnativeInitFeatures;
|
||||
struct nativeNodeFeaturesOpaque;
|
||||
@ -56,6 +76,30 @@ struct nativeChannelFeaturesOpaque;
|
||||
typedef struct nativeChannelFeaturesOpaque LDKnativeChannelFeatures;
|
||||
struct nativeInvoiceFeaturesOpaque;
|
||||
typedef struct nativeInvoiceFeaturesOpaque LDKnativeInvoiceFeatures;
|
||||
struct nativeChannelTypeFeaturesOpaque;
|
||||
typedef struct nativeChannelTypeFeaturesOpaque LDKnativeChannelTypeFeatures;
|
||||
struct nativeNodeIdOpaque;
|
||||
typedef struct nativeNodeIdOpaque LDKnativeNodeId;
|
||||
struct nativeNetworkGraphOpaque;
|
||||
typedef struct nativeNetworkGraphOpaque LDKnativeNetworkGraph;
|
||||
struct nativeReadOnlyNetworkGraphOpaque;
|
||||
typedef struct nativeReadOnlyNetworkGraphOpaque LDKnativeReadOnlyNetworkGraph;
|
||||
struct nativeP2PGossipSyncOpaque;
|
||||
typedef struct nativeP2PGossipSyncOpaque LDKnativeP2PGossipSync;
|
||||
struct nativeChannelUpdateInfoOpaque;
|
||||
typedef struct nativeChannelUpdateInfoOpaque LDKnativeChannelUpdateInfo;
|
||||
struct nativeChannelInfoOpaque;
|
||||
typedef struct nativeChannelInfoOpaque LDKnativeChannelInfo;
|
||||
struct nativeDirectedChannelInfoOpaque;
|
||||
typedef struct nativeDirectedChannelInfoOpaque LDKnativeDirectedChannelInfo;
|
||||
struct nativeRoutingFeesOpaque;
|
||||
typedef struct nativeRoutingFeesOpaque LDKnativeRoutingFees;
|
||||
struct nativeNodeAnnouncementInfoOpaque;
|
||||
typedef struct nativeNodeAnnouncementInfoOpaque LDKnativeNodeAnnouncementInfo;
|
||||
struct nativeNodeAliasOpaque;
|
||||
typedef struct nativeNodeAliasOpaque LDKnativeNodeAlias;
|
||||
struct nativeNodeInfoOpaque;
|
||||
typedef struct nativeNodeInfoOpaque LDKnativeNodeInfo;
|
||||
struct nativeDelayedPaymentOutputDescriptorOpaque;
|
||||
typedef struct nativeDelayedPaymentOutputDescriptorOpaque LDKnativeDelayedPaymentOutputDescriptor;
|
||||
struct nativeStaticPaymentOutputDescriptorOpaque;
|
||||
@ -65,16 +109,22 @@ struct nativeInMemorySignerOpaque;
|
||||
typedef struct nativeInMemorySignerOpaque LDKnativeInMemorySigner;
|
||||
struct nativeKeysManagerOpaque;
|
||||
typedef struct nativeKeysManagerOpaque LDKnativeKeysManager;
|
||||
struct nativePhantomKeysManagerOpaque;
|
||||
typedef struct nativePhantomKeysManagerOpaque LDKnativePhantomKeysManager;
|
||||
struct nativeFilesystemPersisterOpaque;
|
||||
typedef struct nativeFilesystemPersisterOpaque LDKnativeFilesystemPersister;
|
||||
struct nativeChannelManagerOpaque;
|
||||
typedef struct nativeChannelManagerOpaque LDKnativeChannelManager;
|
||||
struct nativeChainParametersOpaque;
|
||||
typedef struct nativeChainParametersOpaque LDKnativeChainParameters;
|
||||
struct nativeCounterpartyForwardingInfoOpaque;
|
||||
typedef struct nativeCounterpartyForwardingInfoOpaque LDKnativeCounterpartyForwardingInfo;
|
||||
struct nativeChannelCounterpartyOpaque;
|
||||
typedef struct nativeChannelCounterpartyOpaque LDKnativeChannelCounterparty;
|
||||
struct nativeChannelDetailsOpaque;
|
||||
typedef struct nativeChannelDetailsOpaque LDKnativeChannelDetails;
|
||||
struct nativePhantomRouteHintsOpaque;
|
||||
typedef struct nativePhantomRouteHintsOpaque LDKnativePhantomRouteHints;
|
||||
struct nativeChannelManagerReadArgsOpaque;
|
||||
typedef struct nativeChannelManagerReadArgsOpaque LDKnativeChannelManagerReadArgs;
|
||||
struct nativeChannelHandshakeConfigOpaque;
|
||||
@ -85,8 +135,14 @@ struct nativeChannelConfigOpaque;
|
||||
typedef struct nativeChannelConfigOpaque LDKnativeChannelConfig;
|
||||
struct nativeUserConfigOpaque;
|
||||
typedef struct nativeUserConfigOpaque LDKnativeUserConfig;
|
||||
struct nativeBigSizeOpaque;
|
||||
typedef struct nativeBigSizeOpaque LDKnativeBigSize;
|
||||
struct nativeHostnameOpaque;
|
||||
typedef struct nativeHostnameOpaque LDKnativeHostname;
|
||||
struct nativeOutPointOpaque;
|
||||
typedef struct nativeOutPointOpaque LDKnativeOutPoint;
|
||||
struct nativeInvoicePayerOpaque;
|
||||
typedef struct nativeInvoicePayerOpaque LDKnativeInvoicePayer;
|
||||
struct nativeInvoiceOpaque;
|
||||
typedef struct nativeInvoiceOpaque LDKnativeInvoice;
|
||||
struct nativeSignedRawInvoiceOpaque;
|
||||
@ -113,12 +169,12 @@ 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 nativeExpandedKeyOpaque;
|
||||
typedef struct nativeExpandedKeyOpaque LDKnativeExpandedKey;
|
||||
struct nativeIgnoringMessageHandlerOpaque;
|
||||
typedef struct nativeIgnoringMessageHandlerOpaque LDKnativeIgnoringMessageHandler;
|
||||
struct nativeErroringMessageHandlerOpaque;
|
||||
@ -129,28 +185,16 @@ 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 nativeRapidGossipSyncOpaque;
|
||||
typedef struct nativeRapidGossipSyncOpaque LDKnativeRapidGossipSync;
|
||||
struct nativeDecodeErrorOpaque;
|
||||
typedef struct nativeDecodeErrorOpaque LDKnativeDecodeError;
|
||||
struct nativeInitOpaque;
|
||||
typedef struct nativeInitOpaque LDKnativeInit;
|
||||
struct nativeErrorMessageOpaque;
|
||||
typedef struct nativeErrorMessageOpaque LDKnativeErrorMessage;
|
||||
struct nativeWarningMessageOpaque;
|
||||
typedef struct nativeWarningMessageOpaque LDKnativeWarningMessage;
|
||||
struct nativePingOpaque;
|
||||
typedef struct nativePingOpaque LDKnativePing;
|
||||
struct nativePongOpaque;
|
||||
@ -163,8 +207,8 @@ struct nativeFundingCreatedOpaque;
|
||||
typedef struct nativeFundingCreatedOpaque LDKnativeFundingCreated;
|
||||
struct nativeFundingSignedOpaque;
|
||||
typedef struct nativeFundingSignedOpaque LDKnativeFundingSigned;
|
||||
struct nativeFundingLockedOpaque;
|
||||
typedef struct nativeFundingLockedOpaque LDKnativeFundingLocked;
|
||||
struct nativeChannelReadyOpaque;
|
||||
typedef struct nativeChannelReadyOpaque LDKnativeChannelReady;
|
||||
struct nativeShutdownOpaque;
|
||||
typedef struct nativeShutdownOpaque LDKnativeShutdown;
|
||||
struct nativeClosingSignedFeeRangeOpaque;
|
||||
@ -217,5 +261,13 @@ struct nativeLightningErrorOpaque;
|
||||
typedef struct nativeLightningErrorOpaque LDKnativeLightningError;
|
||||
struct nativeCommitmentUpdateOpaque;
|
||||
typedef struct nativeCommitmentUpdateOpaque LDKnativeCommitmentUpdate;
|
||||
struct nativeDefaultRouterOpaque;
|
||||
typedef struct nativeDefaultRouterOpaque LDKnativeDefaultRouter;
|
||||
struct nativeRecordOpaque;
|
||||
typedef struct nativeRecordOpaque LDKnativeRecord;
|
||||
struct nativeMonitorUpdateIdOpaque;
|
||||
typedef struct nativeMonitorUpdateIdOpaque LDKnativeMonitorUpdateId;
|
||||
struct nativeLockedChannelMonitorOpaque;
|
||||
typedef struct nativeLockedChannelMonitorOpaque LDKnativeLockedChannelMonitor;
|
||||
struct nativeChainMonitorOpaque;
|
||||
typedef struct nativeChainMonitorOpaque LDKnativeChainMonitor;
|
||||
@ -8,8 +8,8 @@ static inline int _ldk_strncmp(const char *s1, const char *s2, uint64_t n) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define _LDK_HEADER_VER "v0.0.100-1-gdba15b73610e4f54"
|
||||
#define _LDK_C_BINDINGS_HEADER_VER "v0.0.100.0-6-ged6eb46f7b4e0d4c-dirty"
|
||||
#define _LDK_HEADER_VER "v0.0.110-12-g6343277cddee74ed"
|
||||
#define _LDK_C_BINDINGS_HEADER_VER "v0.0.110.1"
|
||||
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) {
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
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
@ -1,5 +1,5 @@
|
||||
framework module LDKFramework {
|
||||
umbrella header "LDKFramework.h"
|
||||
framework module LightningDevKit {
|
||||
umbrella header "Framework.h"
|
||||
|
||||
module * { export * }
|
||||
export *
|
||||
@ -15,7 +15,7 @@ framework module LDKFramework {
|
||||
|
||||
}
|
||||
|
||||
module LDKFramework.Swift {
|
||||
header "LDKFramework-Swift.h"
|
||||
module LightningDevKit.Swift {
|
||||
header "LightningDevKit-Swift.h"
|
||||
requires objc
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
Versions/Current/LightningDevKit
|
||||
@ -0,0 +1,430 @@
|
||||
#if 0
|
||||
#elif defined(__arm64__) && __arm64__
|
||||
// Generated by Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
|
||||
#ifndef LIGHTNINGDEVKIT_SWIFT_H
|
||||
#define LIGHTNINGDEVKIT_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="LightningDevKit",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
|
||||
|
||||
#elif defined(__x86_64__) && __x86_64__
|
||||
// Generated by Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
|
||||
#ifndef LIGHTNINGDEVKIT_SWIFT_H
|
||||
#define LIGHTNINGDEVKIT_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="LightningDevKit",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
|
||||
|
||||
#endif
|
||||
@ -10,6 +10,8 @@
|
||||
#else
|
||||
#define NONNULL_PTR
|
||||
#endif
|
||||
struct nativeCounterpartyCommitmentSecretsOpaque;
|
||||
typedef struct nativeCounterpartyCommitmentSecretsOpaque LDKnativeCounterpartyCommitmentSecrets;
|
||||
struct nativeTxCreationKeysOpaque;
|
||||
typedef struct nativeTxCreationKeysOpaque LDKnativeTxCreationKeys;
|
||||
struct nativeChannelPublicKeysOpaque;
|
||||
@ -26,6 +28,10 @@ struct nativeHolderCommitmentTransactionOpaque;
|
||||
typedef struct nativeHolderCommitmentTransactionOpaque LDKnativeHolderCommitmentTransaction;
|
||||
struct nativeBuiltCommitmentTransactionOpaque;
|
||||
typedef struct nativeBuiltCommitmentTransactionOpaque LDKnativeBuiltCommitmentTransaction;
|
||||
struct nativeClosingTransactionOpaque;
|
||||
typedef struct nativeClosingTransactionOpaque LDKnativeClosingTransaction;
|
||||
struct nativeTrustedClosingTransactionOpaque;
|
||||
typedef struct nativeTrustedClosingTransactionOpaque LDKnativeTrustedClosingTransaction;
|
||||
struct nativeCommitmentTransactionOpaque;
|
||||
typedef struct nativeCommitmentTransactionOpaque LDKnativeCommitmentTransaction;
|
||||
struct nativeTrustedCommitmentTransactionOpaque;
|
||||
@ -40,6 +46,10 @@ struct nativeRouteHopOpaque;
|
||||
typedef struct nativeRouteHopOpaque LDKnativeRouteHop;
|
||||
struct nativeRouteOpaque;
|
||||
typedef struct nativeRouteOpaque LDKnativeRoute;
|
||||
struct nativeRouteParametersOpaque;
|
||||
typedef struct nativeRouteParametersOpaque LDKnativeRouteParameters;
|
||||
struct nativePaymentParametersOpaque;
|
||||
typedef struct nativePaymentParametersOpaque LDKnativePaymentParameters;
|
||||
struct nativeRouteHintOpaque;
|
||||
typedef struct nativeRouteHintOpaque LDKnativeRouteHint;
|
||||
struct nativeRouteHintHopOpaque;
|
||||
@ -48,6 +58,16 @@ struct nativeBestBlockOpaque;
|
||||
typedef struct nativeBestBlockOpaque LDKnativeBestBlock;
|
||||
struct nativeWatchedOutputOpaque;
|
||||
typedef struct nativeWatchedOutputOpaque LDKnativeWatchedOutput;
|
||||
struct nativeMultiThreadedLockableScoreOpaque;
|
||||
typedef struct nativeMultiThreadedLockableScoreOpaque LDKnativeMultiThreadedLockableScore;
|
||||
struct nativeChannelUsageOpaque;
|
||||
typedef struct nativeChannelUsageOpaque LDKnativeChannelUsage;
|
||||
struct nativeFixedPenaltyScorerOpaque;
|
||||
typedef struct nativeFixedPenaltyScorerOpaque LDKnativeFixedPenaltyScorer;
|
||||
struct nativeProbabilisticScorerOpaque;
|
||||
typedef struct nativeProbabilisticScorerOpaque LDKnativeProbabilisticScorer;
|
||||
struct nativeProbabilisticScoringParametersOpaque;
|
||||
typedef struct nativeProbabilisticScoringParametersOpaque LDKnativeProbabilisticScoringParameters;
|
||||
struct nativeInitFeaturesOpaque;
|
||||
typedef struct nativeInitFeaturesOpaque LDKnativeInitFeatures;
|
||||
struct nativeNodeFeaturesOpaque;
|
||||
@ -56,6 +76,30 @@ struct nativeChannelFeaturesOpaque;
|
||||
typedef struct nativeChannelFeaturesOpaque LDKnativeChannelFeatures;
|
||||
struct nativeInvoiceFeaturesOpaque;
|
||||
typedef struct nativeInvoiceFeaturesOpaque LDKnativeInvoiceFeatures;
|
||||
struct nativeChannelTypeFeaturesOpaque;
|
||||
typedef struct nativeChannelTypeFeaturesOpaque LDKnativeChannelTypeFeatures;
|
||||
struct nativeNodeIdOpaque;
|
||||
typedef struct nativeNodeIdOpaque LDKnativeNodeId;
|
||||
struct nativeNetworkGraphOpaque;
|
||||
typedef struct nativeNetworkGraphOpaque LDKnativeNetworkGraph;
|
||||
struct nativeReadOnlyNetworkGraphOpaque;
|
||||
typedef struct nativeReadOnlyNetworkGraphOpaque LDKnativeReadOnlyNetworkGraph;
|
||||
struct nativeP2PGossipSyncOpaque;
|
||||
typedef struct nativeP2PGossipSyncOpaque LDKnativeP2PGossipSync;
|
||||
struct nativeChannelUpdateInfoOpaque;
|
||||
typedef struct nativeChannelUpdateInfoOpaque LDKnativeChannelUpdateInfo;
|
||||
struct nativeChannelInfoOpaque;
|
||||
typedef struct nativeChannelInfoOpaque LDKnativeChannelInfo;
|
||||
struct nativeDirectedChannelInfoOpaque;
|
||||
typedef struct nativeDirectedChannelInfoOpaque LDKnativeDirectedChannelInfo;
|
||||
struct nativeRoutingFeesOpaque;
|
||||
typedef struct nativeRoutingFeesOpaque LDKnativeRoutingFees;
|
||||
struct nativeNodeAnnouncementInfoOpaque;
|
||||
typedef struct nativeNodeAnnouncementInfoOpaque LDKnativeNodeAnnouncementInfo;
|
||||
struct nativeNodeAliasOpaque;
|
||||
typedef struct nativeNodeAliasOpaque LDKnativeNodeAlias;
|
||||
struct nativeNodeInfoOpaque;
|
||||
typedef struct nativeNodeInfoOpaque LDKnativeNodeInfo;
|
||||
struct nativeDelayedPaymentOutputDescriptorOpaque;
|
||||
typedef struct nativeDelayedPaymentOutputDescriptorOpaque LDKnativeDelayedPaymentOutputDescriptor;
|
||||
struct nativeStaticPaymentOutputDescriptorOpaque;
|
||||
@ -65,16 +109,22 @@ struct nativeInMemorySignerOpaque;
|
||||
typedef struct nativeInMemorySignerOpaque LDKnativeInMemorySigner;
|
||||
struct nativeKeysManagerOpaque;
|
||||
typedef struct nativeKeysManagerOpaque LDKnativeKeysManager;
|
||||
struct nativePhantomKeysManagerOpaque;
|
||||
typedef struct nativePhantomKeysManagerOpaque LDKnativePhantomKeysManager;
|
||||
struct nativeFilesystemPersisterOpaque;
|
||||
typedef struct nativeFilesystemPersisterOpaque LDKnativeFilesystemPersister;
|
||||
struct nativeChannelManagerOpaque;
|
||||
typedef struct nativeChannelManagerOpaque LDKnativeChannelManager;
|
||||
struct nativeChainParametersOpaque;
|
||||
typedef struct nativeChainParametersOpaque LDKnativeChainParameters;
|
||||
struct nativeCounterpartyForwardingInfoOpaque;
|
||||
typedef struct nativeCounterpartyForwardingInfoOpaque LDKnativeCounterpartyForwardingInfo;
|
||||
struct nativeChannelCounterpartyOpaque;
|
||||
typedef struct nativeChannelCounterpartyOpaque LDKnativeChannelCounterparty;
|
||||
struct nativeChannelDetailsOpaque;
|
||||
typedef struct nativeChannelDetailsOpaque LDKnativeChannelDetails;
|
||||
struct nativePhantomRouteHintsOpaque;
|
||||
typedef struct nativePhantomRouteHintsOpaque LDKnativePhantomRouteHints;
|
||||
struct nativeChannelManagerReadArgsOpaque;
|
||||
typedef struct nativeChannelManagerReadArgsOpaque LDKnativeChannelManagerReadArgs;
|
||||
struct nativeChannelHandshakeConfigOpaque;
|
||||
@ -85,8 +135,14 @@ struct nativeChannelConfigOpaque;
|
||||
typedef struct nativeChannelConfigOpaque LDKnativeChannelConfig;
|
||||
struct nativeUserConfigOpaque;
|
||||
typedef struct nativeUserConfigOpaque LDKnativeUserConfig;
|
||||
struct nativeBigSizeOpaque;
|
||||
typedef struct nativeBigSizeOpaque LDKnativeBigSize;
|
||||
struct nativeHostnameOpaque;
|
||||
typedef struct nativeHostnameOpaque LDKnativeHostname;
|
||||
struct nativeOutPointOpaque;
|
||||
typedef struct nativeOutPointOpaque LDKnativeOutPoint;
|
||||
struct nativeInvoicePayerOpaque;
|
||||
typedef struct nativeInvoicePayerOpaque LDKnativeInvoicePayer;
|
||||
struct nativeInvoiceOpaque;
|
||||
typedef struct nativeInvoiceOpaque LDKnativeInvoice;
|
||||
struct nativeSignedRawInvoiceOpaque;
|
||||
@ -113,12 +169,12 @@ 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 nativeExpandedKeyOpaque;
|
||||
typedef struct nativeExpandedKeyOpaque LDKnativeExpandedKey;
|
||||
struct nativeIgnoringMessageHandlerOpaque;
|
||||
typedef struct nativeIgnoringMessageHandlerOpaque LDKnativeIgnoringMessageHandler;
|
||||
struct nativeErroringMessageHandlerOpaque;
|
||||
@ -129,28 +185,16 @@ 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 nativeRapidGossipSyncOpaque;
|
||||
typedef struct nativeRapidGossipSyncOpaque LDKnativeRapidGossipSync;
|
||||
struct nativeDecodeErrorOpaque;
|
||||
typedef struct nativeDecodeErrorOpaque LDKnativeDecodeError;
|
||||
struct nativeInitOpaque;
|
||||
typedef struct nativeInitOpaque LDKnativeInit;
|
||||
struct nativeErrorMessageOpaque;
|
||||
typedef struct nativeErrorMessageOpaque LDKnativeErrorMessage;
|
||||
struct nativeWarningMessageOpaque;
|
||||
typedef struct nativeWarningMessageOpaque LDKnativeWarningMessage;
|
||||
struct nativePingOpaque;
|
||||
typedef struct nativePingOpaque LDKnativePing;
|
||||
struct nativePongOpaque;
|
||||
@ -163,8 +207,8 @@ struct nativeFundingCreatedOpaque;
|
||||
typedef struct nativeFundingCreatedOpaque LDKnativeFundingCreated;
|
||||
struct nativeFundingSignedOpaque;
|
||||
typedef struct nativeFundingSignedOpaque LDKnativeFundingSigned;
|
||||
struct nativeFundingLockedOpaque;
|
||||
typedef struct nativeFundingLockedOpaque LDKnativeFundingLocked;
|
||||
struct nativeChannelReadyOpaque;
|
||||
typedef struct nativeChannelReadyOpaque LDKnativeChannelReady;
|
||||
struct nativeShutdownOpaque;
|
||||
typedef struct nativeShutdownOpaque LDKnativeShutdown;
|
||||
struct nativeClosingSignedFeeRangeOpaque;
|
||||
@ -217,5 +261,13 @@ struct nativeLightningErrorOpaque;
|
||||
typedef struct nativeLightningErrorOpaque LDKnativeLightningError;
|
||||
struct nativeCommitmentUpdateOpaque;
|
||||
typedef struct nativeCommitmentUpdateOpaque LDKnativeCommitmentUpdate;
|
||||
struct nativeDefaultRouterOpaque;
|
||||
typedef struct nativeDefaultRouterOpaque LDKnativeDefaultRouter;
|
||||
struct nativeRecordOpaque;
|
||||
typedef struct nativeRecordOpaque LDKnativeRecord;
|
||||
struct nativeMonitorUpdateIdOpaque;
|
||||
typedef struct nativeMonitorUpdateIdOpaque LDKnativeMonitorUpdateId;
|
||||
struct nativeLockedChannelMonitorOpaque;
|
||||
typedef struct nativeLockedChannelMonitorOpaque LDKnativeLockedChannelMonitor;
|
||||
struct nativeChainMonitorOpaque;
|
||||
typedef struct nativeChainMonitorOpaque LDKnativeChainMonitor;
|
||||
@ -8,8 +8,8 @@ static inline int _ldk_strncmp(const char *s1, const char *s2, uint64_t n) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define _LDK_HEADER_VER "v0.0.100-1-gdba15b73610e4f54"
|
||||
#define _LDK_C_BINDINGS_HEADER_VER "v0.0.100.0-6-ged6eb46f7b4e0d4c-dirty"
|
||||
#define _LDK_HEADER_VER "v0.0.110-12-g6343277cddee74ed"
|
||||
#define _LDK_C_BINDINGS_HEADER_VER "v0.0.110.1"
|
||||
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) {
|
||||
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
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 LightningDevKit {
|
||||
umbrella header "Framework.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 LightningDevKit.Swift {
|
||||
header "LightningDevKit-Swift.h"
|
||||
requires objc
|
||||
}
|
||||
@ -3,17 +3,17 @@
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildMachineOSBuild</key>
|
||||
<string>19G73</string>
|
||||
<string>21G72</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>LDKFramework</string>
|
||||
<string>LightningDevKit</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.ldk.LDKFramework</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>LDKFramework</string>
|
||||
<string>LightningDevKit</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
@ -27,19 +27,19 @@
|
||||
<key>DTCompiler</key>
|
||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||
<key>DTPlatformBuild</key>
|
||||
<string>12C33</string>
|
||||
<string>13C100</string>
|
||||
<key>DTPlatformName</key>
|
||||
<string>macosx</string>
|
||||
<key>DTPlatformVersion</key>
|
||||
<string>11.1</string>
|
||||
<string>12.1</string>
|
||||
<key>DTSDKBuild</key>
|
||||
<string>20C63</string>
|
||||
<string>21C46</string>
|
||||
<key>DTSDKName</key>
|
||||
<string>macosx11.1</string>
|
||||
<string>macosx12.1</string>
|
||||
<key>DTXcode</key>
|
||||
<string>1230</string>
|
||||
<string>1321</string>
|
||||
<key>DTXcodeBuild</key>
|
||||
<string>12C33</string>
|
||||
<string>13C100</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.15</string>
|
||||
<key>UIDeviceFamily</key>
|
||||
@ -0,0 +1,430 @@
|
||||
#if 0
|
||||
#elif defined(__arm64__) && __arm64__
|
||||
// Generated by Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
|
||||
#ifndef LIGHTNINGDEVKIT_SWIFT_H
|
||||
#define LIGHTNINGDEVKIT_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="LightningDevKit",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
|
||||
|
||||
#elif defined(__x86_64__) && __x86_64__
|
||||
// Generated by Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
|
||||
#ifndef LIGHTNINGDEVKIT_SWIFT_H
|
||||
#define LIGHTNINGDEVKIT_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="LightningDevKit",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
|
||||
|
||||
#endif
|
||||
@ -10,6 +10,8 @@
|
||||
#else
|
||||
#define NONNULL_PTR
|
||||
#endif
|
||||
struct nativeCounterpartyCommitmentSecretsOpaque;
|
||||
typedef struct nativeCounterpartyCommitmentSecretsOpaque LDKnativeCounterpartyCommitmentSecrets;
|
||||
struct nativeTxCreationKeysOpaque;
|
||||
typedef struct nativeTxCreationKeysOpaque LDKnativeTxCreationKeys;
|
||||
struct nativeChannelPublicKeysOpaque;
|
||||
@ -26,6 +28,10 @@ struct nativeHolderCommitmentTransactionOpaque;
|
||||
typedef struct nativeHolderCommitmentTransactionOpaque LDKnativeHolderCommitmentTransaction;
|
||||
struct nativeBuiltCommitmentTransactionOpaque;
|
||||
typedef struct nativeBuiltCommitmentTransactionOpaque LDKnativeBuiltCommitmentTransaction;
|
||||
struct nativeClosingTransactionOpaque;
|
||||
typedef struct nativeClosingTransactionOpaque LDKnativeClosingTransaction;
|
||||
struct nativeTrustedClosingTransactionOpaque;
|
||||
typedef struct nativeTrustedClosingTransactionOpaque LDKnativeTrustedClosingTransaction;
|
||||
struct nativeCommitmentTransactionOpaque;
|
||||
typedef struct nativeCommitmentTransactionOpaque LDKnativeCommitmentTransaction;
|
||||
struct nativeTrustedCommitmentTransactionOpaque;
|
||||
@ -40,6 +46,10 @@ struct nativeRouteHopOpaque;
|
||||
typedef struct nativeRouteHopOpaque LDKnativeRouteHop;
|
||||
struct nativeRouteOpaque;
|
||||
typedef struct nativeRouteOpaque LDKnativeRoute;
|
||||
struct nativeRouteParametersOpaque;
|
||||
typedef struct nativeRouteParametersOpaque LDKnativeRouteParameters;
|
||||
struct nativePaymentParametersOpaque;
|
||||
typedef struct nativePaymentParametersOpaque LDKnativePaymentParameters;
|
||||
struct nativeRouteHintOpaque;
|
||||
typedef struct nativeRouteHintOpaque LDKnativeRouteHint;
|
||||
struct nativeRouteHintHopOpaque;
|
||||
@ -48,6 +58,16 @@ struct nativeBestBlockOpaque;
|
||||
typedef struct nativeBestBlockOpaque LDKnativeBestBlock;
|
||||
struct nativeWatchedOutputOpaque;
|
||||
typedef struct nativeWatchedOutputOpaque LDKnativeWatchedOutput;
|
||||
struct nativeMultiThreadedLockableScoreOpaque;
|
||||
typedef struct nativeMultiThreadedLockableScoreOpaque LDKnativeMultiThreadedLockableScore;
|
||||
struct nativeChannelUsageOpaque;
|
||||
typedef struct nativeChannelUsageOpaque LDKnativeChannelUsage;
|
||||
struct nativeFixedPenaltyScorerOpaque;
|
||||
typedef struct nativeFixedPenaltyScorerOpaque LDKnativeFixedPenaltyScorer;
|
||||
struct nativeProbabilisticScorerOpaque;
|
||||
typedef struct nativeProbabilisticScorerOpaque LDKnativeProbabilisticScorer;
|
||||
struct nativeProbabilisticScoringParametersOpaque;
|
||||
typedef struct nativeProbabilisticScoringParametersOpaque LDKnativeProbabilisticScoringParameters;
|
||||
struct nativeInitFeaturesOpaque;
|
||||
typedef struct nativeInitFeaturesOpaque LDKnativeInitFeatures;
|
||||
struct nativeNodeFeaturesOpaque;
|
||||
@ -56,6 +76,30 @@ struct nativeChannelFeaturesOpaque;
|
||||
typedef struct nativeChannelFeaturesOpaque LDKnativeChannelFeatures;
|
||||
struct nativeInvoiceFeaturesOpaque;
|
||||
typedef struct nativeInvoiceFeaturesOpaque LDKnativeInvoiceFeatures;
|
||||
struct nativeChannelTypeFeaturesOpaque;
|
||||
typedef struct nativeChannelTypeFeaturesOpaque LDKnativeChannelTypeFeatures;
|
||||
struct nativeNodeIdOpaque;
|
||||
typedef struct nativeNodeIdOpaque LDKnativeNodeId;
|
||||
struct nativeNetworkGraphOpaque;
|
||||
typedef struct nativeNetworkGraphOpaque LDKnativeNetworkGraph;
|
||||
struct nativeReadOnlyNetworkGraphOpaque;
|
||||
typedef struct nativeReadOnlyNetworkGraphOpaque LDKnativeReadOnlyNetworkGraph;
|
||||
struct nativeP2PGossipSyncOpaque;
|
||||
typedef struct nativeP2PGossipSyncOpaque LDKnativeP2PGossipSync;
|
||||
struct nativeChannelUpdateInfoOpaque;
|
||||
typedef struct nativeChannelUpdateInfoOpaque LDKnativeChannelUpdateInfo;
|
||||
struct nativeChannelInfoOpaque;
|
||||
typedef struct nativeChannelInfoOpaque LDKnativeChannelInfo;
|
||||
struct nativeDirectedChannelInfoOpaque;
|
||||
typedef struct nativeDirectedChannelInfoOpaque LDKnativeDirectedChannelInfo;
|
||||
struct nativeRoutingFeesOpaque;
|
||||
typedef struct nativeRoutingFeesOpaque LDKnativeRoutingFees;
|
||||
struct nativeNodeAnnouncementInfoOpaque;
|
||||
typedef struct nativeNodeAnnouncementInfoOpaque LDKnativeNodeAnnouncementInfo;
|
||||
struct nativeNodeAliasOpaque;
|
||||
typedef struct nativeNodeAliasOpaque LDKnativeNodeAlias;
|
||||
struct nativeNodeInfoOpaque;
|
||||
typedef struct nativeNodeInfoOpaque LDKnativeNodeInfo;
|
||||
struct nativeDelayedPaymentOutputDescriptorOpaque;
|
||||
typedef struct nativeDelayedPaymentOutputDescriptorOpaque LDKnativeDelayedPaymentOutputDescriptor;
|
||||
struct nativeStaticPaymentOutputDescriptorOpaque;
|
||||
@ -65,16 +109,22 @@ struct nativeInMemorySignerOpaque;
|
||||
typedef struct nativeInMemorySignerOpaque LDKnativeInMemorySigner;
|
||||
struct nativeKeysManagerOpaque;
|
||||
typedef struct nativeKeysManagerOpaque LDKnativeKeysManager;
|
||||
struct nativePhantomKeysManagerOpaque;
|
||||
typedef struct nativePhantomKeysManagerOpaque LDKnativePhantomKeysManager;
|
||||
struct nativeFilesystemPersisterOpaque;
|
||||
typedef struct nativeFilesystemPersisterOpaque LDKnativeFilesystemPersister;
|
||||
struct nativeChannelManagerOpaque;
|
||||
typedef struct nativeChannelManagerOpaque LDKnativeChannelManager;
|
||||
struct nativeChainParametersOpaque;
|
||||
typedef struct nativeChainParametersOpaque LDKnativeChainParameters;
|
||||
struct nativeCounterpartyForwardingInfoOpaque;
|
||||
typedef struct nativeCounterpartyForwardingInfoOpaque LDKnativeCounterpartyForwardingInfo;
|
||||
struct nativeChannelCounterpartyOpaque;
|
||||
typedef struct nativeChannelCounterpartyOpaque LDKnativeChannelCounterparty;
|
||||
struct nativeChannelDetailsOpaque;
|
||||
typedef struct nativeChannelDetailsOpaque LDKnativeChannelDetails;
|
||||
struct nativePhantomRouteHintsOpaque;
|
||||
typedef struct nativePhantomRouteHintsOpaque LDKnativePhantomRouteHints;
|
||||
struct nativeChannelManagerReadArgsOpaque;
|
||||
typedef struct nativeChannelManagerReadArgsOpaque LDKnativeChannelManagerReadArgs;
|
||||
struct nativeChannelHandshakeConfigOpaque;
|
||||
@ -85,8 +135,14 @@ struct nativeChannelConfigOpaque;
|
||||
typedef struct nativeChannelConfigOpaque LDKnativeChannelConfig;
|
||||
struct nativeUserConfigOpaque;
|
||||
typedef struct nativeUserConfigOpaque LDKnativeUserConfig;
|
||||
struct nativeBigSizeOpaque;
|
||||
typedef struct nativeBigSizeOpaque LDKnativeBigSize;
|
||||
struct nativeHostnameOpaque;
|
||||
typedef struct nativeHostnameOpaque LDKnativeHostname;
|
||||
struct nativeOutPointOpaque;
|
||||
typedef struct nativeOutPointOpaque LDKnativeOutPoint;
|
||||
struct nativeInvoicePayerOpaque;
|
||||
typedef struct nativeInvoicePayerOpaque LDKnativeInvoicePayer;
|
||||
struct nativeInvoiceOpaque;
|
||||
typedef struct nativeInvoiceOpaque LDKnativeInvoice;
|
||||
struct nativeSignedRawInvoiceOpaque;
|
||||
@ -113,12 +169,12 @@ 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 nativeExpandedKeyOpaque;
|
||||
typedef struct nativeExpandedKeyOpaque LDKnativeExpandedKey;
|
||||
struct nativeIgnoringMessageHandlerOpaque;
|
||||
typedef struct nativeIgnoringMessageHandlerOpaque LDKnativeIgnoringMessageHandler;
|
||||
struct nativeErroringMessageHandlerOpaque;
|
||||
@ -129,28 +185,16 @@ 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 nativeRapidGossipSyncOpaque;
|
||||
typedef struct nativeRapidGossipSyncOpaque LDKnativeRapidGossipSync;
|
||||
struct nativeDecodeErrorOpaque;
|
||||
typedef struct nativeDecodeErrorOpaque LDKnativeDecodeError;
|
||||
struct nativeInitOpaque;
|
||||
typedef struct nativeInitOpaque LDKnativeInit;
|
||||
struct nativeErrorMessageOpaque;
|
||||
typedef struct nativeErrorMessageOpaque LDKnativeErrorMessage;
|
||||
struct nativeWarningMessageOpaque;
|
||||
typedef struct nativeWarningMessageOpaque LDKnativeWarningMessage;
|
||||
struct nativePingOpaque;
|
||||
typedef struct nativePingOpaque LDKnativePing;
|
||||
struct nativePongOpaque;
|
||||
@ -163,8 +207,8 @@ struct nativeFundingCreatedOpaque;
|
||||
typedef struct nativeFundingCreatedOpaque LDKnativeFundingCreated;
|
||||
struct nativeFundingSignedOpaque;
|
||||
typedef struct nativeFundingSignedOpaque LDKnativeFundingSigned;
|
||||
struct nativeFundingLockedOpaque;
|
||||
typedef struct nativeFundingLockedOpaque LDKnativeFundingLocked;
|
||||
struct nativeChannelReadyOpaque;
|
||||
typedef struct nativeChannelReadyOpaque LDKnativeChannelReady;
|
||||
struct nativeShutdownOpaque;
|
||||
typedef struct nativeShutdownOpaque LDKnativeShutdown;
|
||||
struct nativeClosingSignedFeeRangeOpaque;
|
||||
@ -217,5 +261,13 @@ struct nativeLightningErrorOpaque;
|
||||
typedef struct nativeLightningErrorOpaque LDKnativeLightningError;
|
||||
struct nativeCommitmentUpdateOpaque;
|
||||
typedef struct nativeCommitmentUpdateOpaque LDKnativeCommitmentUpdate;
|
||||
struct nativeDefaultRouterOpaque;
|
||||
typedef struct nativeDefaultRouterOpaque LDKnativeDefaultRouter;
|
||||
struct nativeRecordOpaque;
|
||||
typedef struct nativeRecordOpaque LDKnativeRecord;
|
||||
struct nativeMonitorUpdateIdOpaque;
|
||||
typedef struct nativeMonitorUpdateIdOpaque LDKnativeMonitorUpdateId;
|
||||
struct nativeLockedChannelMonitorOpaque;
|
||||
typedef struct nativeLockedChannelMonitorOpaque LDKnativeLockedChannelMonitor;
|
||||
struct nativeChainMonitorOpaque;
|
||||
typedef struct nativeChainMonitorOpaque LDKnativeChainMonitor;
|
||||
@ -8,8 +8,8 @@ static inline int _ldk_strncmp(const char *s1, const char *s2, uint64_t n) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define _LDK_HEADER_VER "v0.0.100-1-gdba15b73610e4f54"
|
||||
#define _LDK_C_BINDINGS_HEADER_VER "v0.0.100.0-6-ged6eb46f7b4e0d4c-dirty"
|
||||
#define _LDK_HEADER_VER "v0.0.110-12-g6343277cddee74ed"
|
||||
#define _LDK_C_BINDINGS_HEADER_VER "v0.0.110.1"
|
||||
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) {
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
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
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 LightningDevKit {
|
||||
umbrella header "Framework.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 LightningDevKit.Swift {
|
||||
header "LightningDevKit-Swift.h"
|
||||
requires objc
|
||||
}
|
||||
@ -0,0 +1,311 @@
|
||||
<?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>files</key>
|
||||
<dict>
|
||||
<key>Headers/Framework.h</key>
|
||||
<data>
|
||||
k6YIh4bHJRTibrlhoOqGqumBbMc=
|
||||
</data>
|
||||
<key>Headers/LightningDevKit-Swift.h</key>
|
||||
<data>
|
||||
Nb5YfPs7hT4QgNu9a4nycTvXYD4=
|
||||
</data>
|
||||
<key>Headers/ldk_net.h</key>
|
||||
<data>
|
||||
1fitqxCEjruDZpYbGz8X0eOn9UU=
|
||||
</data>
|
||||
<key>Headers/ldk_rust_types.h</key>
|
||||
<data>
|
||||
DdJqlv1turyDNasVeYdzNWdK8YM=
|
||||
</data>
|
||||
<key>Headers/ldk_ver.h</key>
|
||||
<data>
|
||||
VDtMA5Amt/kJ1UHgW/0OFj0Drb0=
|
||||
</data>
|
||||
<key>Headers/lightning.h</key>
|
||||
<data>
|
||||
ZBQAyAc/D49YeUjBqE3JqyIMNj4=
|
||||
</data>
|
||||
<key>Info.plist</key>
|
||||
<data>
|
||||
5y189aeoLe7WAJlGZY1M/isoJ4Y=
|
||||
</data>
|
||||
<key>Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
||||
<data>
|
||||
ndayoHwMQFpgYerp1/FeGJlj2M8=
|
||||
</data>
|
||||
<key>Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
||||
<data>
|
||||
v6t66DDgkdimzf7IpvvM9Giy9yw=
|
||||
</data>
|
||||
<key>Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
||||
<data>
|
||||
UOfNj6JjDof5k/9ui5hvoxwMv9g=
|
||||
</data>
|
||||
<key>Modules/LightningDevKit.swiftmodule/arm64.swiftdoc</key>
|
||||
<data>
|
||||
ndayoHwMQFpgYerp1/FeGJlj2M8=
|
||||
</data>
|
||||
<key>Modules/LightningDevKit.swiftmodule/arm64.swiftinterface</key>
|
||||
<data>
|
||||
v6t66DDgkdimzf7IpvvM9Giy9yw=
|
||||
</data>
|
||||
<key>Modules/LightningDevKit.swiftmodule/arm64.swiftmodule</key>
|
||||
<data>
|
||||
UOfNj6JjDof5k/9ui5hvoxwMv9g=
|
||||
</data>
|
||||
<key>Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
||||
<data>
|
||||
+H9em8cBZSpWSyXomrmAdiZC3P0=
|
||||
</data>
|
||||
<key>Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
||||
<data>
|
||||
cNt2cTkyZCu37jh8tVR8AzAtdZU=
|
||||
</data>
|
||||
<key>Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
||||
<data>
|
||||
FxMTTaEQnoHAdZ1FbVy9WLsQZAk=
|
||||
</data>
|
||||
<key>Modules/LightningDevKit.swiftmodule/x86_64.swiftdoc</key>
|
||||
<data>
|
||||
+H9em8cBZSpWSyXomrmAdiZC3P0=
|
||||
</data>
|
||||
<key>Modules/LightningDevKit.swiftmodule/x86_64.swiftinterface</key>
|
||||
<data>
|
||||
cNt2cTkyZCu37jh8tVR8AzAtdZU=
|
||||
</data>
|
||||
<key>Modules/LightningDevKit.swiftmodule/x86_64.swiftmodule</key>
|
||||
<data>
|
||||
FxMTTaEQnoHAdZ1FbVy9WLsQZAk=
|
||||
</data>
|
||||
<key>Modules/module.modulemap</key>
|
||||
<data>
|
||||
uLPAmrKc90FOLWgTvQNavpQ9BbQ=
|
||||
</data>
|
||||
</dict>
|
||||
<key>files2</key>
|
||||
<dict>
|
||||
<key>Headers/Framework.h</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
6ri6CZsX+gb5hSNzNaVo+X0efZ7ppliqrXEeM2YFnYg=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/LightningDevKit-Swift.h</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
00lckYVK+fUhnLwCxGdgTUtr82dOiyJcc/iaB44NERU=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/ldk_net.h</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
vK/6ZlE0oML3zi01GATYSyTYLKf7xpSzV/p34+07Hfw=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/ldk_rust_types.h</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
1ohc/at68l4DpZdz+I+qRP3g/iccDRW/Tuis1HH4J+k=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/ldk_ver.h</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
+xArDSjD8/9y7MRscOHSmhmMnWaZCVAvq4ONiqZ2w68=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Headers/lightning.h</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
7upflvcaaRFVMatTdzoC4ggQW4iGl7wlEaQkFbhFI58=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
udXzrWBlIiAzxaL+Z4NW9X3Ih8vZdnmbCgduhKm3cfQ=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
3bQZszL6sZ27IziIOOWmp0zrJHfDRWmKPZh3KFzlPMw=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LightningDevKit.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
Qaj0ArKT/074D/lUlZPnvx7i5fou6ehP/a4J/l/O1DM=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LightningDevKit.swiftmodule/arm64.swiftdoc</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
udXzrWBlIiAzxaL+Z4NW9X3Ih8vZdnmbCgduhKm3cfQ=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LightningDevKit.swiftmodule/arm64.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
3bQZszL6sZ27IziIOOWmp0zrJHfDRWmKPZh3KFzlPMw=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LightningDevKit.swiftmodule/arm64.swiftmodule</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
Qaj0ArKT/074D/lUlZPnvx7i5fou6ehP/a4J/l/O1DM=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
t1vhDbsQUTYQ7I598S8u9F7l/S8JhxR3R2TXPiXhGxM=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
UqMw4ZcB5Vi766FBw3DEhO2zuabWMXQ010rU8+6Vrjk=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LightningDevKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
u7uY01j6hnoWbHDALYoPxLXlUsi7OWK66swokYchUXU=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LightningDevKit.swiftmodule/x86_64.swiftdoc</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
t1vhDbsQUTYQ7I598S8u9F7l/S8JhxR3R2TXPiXhGxM=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LightningDevKit.swiftmodule/x86_64.swiftinterface</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
UqMw4ZcB5Vi766FBw3DEhO2zuabWMXQ010rU8+6Vrjk=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/LightningDevKit.swiftmodule/x86_64.swiftmodule</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
u7uY01j6hnoWbHDALYoPxLXlUsi7OWK66swokYchUXU=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Modules/module.modulemap</key>
|
||||
<dict>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
nVBRx2KEoYZjl0p07sZQmBwDQ+TmygpBrJ7KQ09AwD4=
|
||||
</data>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>rules</key>
|
||||
<dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^version.plist$</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>rules2</key>
|
||||
<dict>
|
||||
<key>.*\.dSYM($|/)</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>11</real>
|
||||
</dict>
|
||||
<key>^(.*/)?\.DS_Store$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>2000</real>
|
||||
</dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^Info\.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^PkgInfo$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^embedded\.provisionprofile$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^version\.plist$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user