Skip to content

Commit 85c650c

Browse files
chore: small fixes to tests and build scripts
1 parent 5635bd4 commit 85c650c

File tree

5 files changed

+11
-13
lines changed

5 files changed

+11
-13
lines changed

.gitignore

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
# Rust related
12
target
23
build
4+
5+
# Kotlin related
36
.gradle
47
wallet_db
58
bdk_ffi_test
@@ -9,13 +12,12 @@ local.properties
912
*.so
1013
.DS_Store
1114
testdb
12-
xcuserdata
1315
.lsp
1416
.clj-kondo
1517
.idea/
1618
.editorconfig
1719
bdk.kt
18-
bitcoin.kt
20+
.kotlin/
1921

2022
# Swift related
2123
/.build
@@ -35,12 +37,10 @@ bdk.swift
3537
.build
3638
*.xcframework/
3739
Info.plist
38-
BitcoinFFI.h
39-
Bitcoin.swift
40-
BitcoinFFi.modulemap
4140
bdkffi.xcframework
4241
Sources/
42+
xcuserdata
4343

4444
# Python related
4545
__pycache__
46-
bitcoin.py
46+
.localenvironment/

bdk-android/lib/src/androidTest/kotlin/org/bitcoindevkit/LiveTxBuilderTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import org.junit.runner.RunWith
77
import kotlin.test.AfterTest
88
import kotlin.test.assertTrue
99
import java.io.File
10-
import org.rustbitcoin.bitcoin.FeeRate
1110

1211
private const val SIGNET_ESPLORA_URL = "http://signet.bitcoindevkit.net"
1312
private const val TESTNET_ESPLORA_URL = "https://esplora.testnet.kuutamo.cloud"

bdk-python/tests/test_live_tx_builder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
from bdkpython import TxBuilder
1010
from bdkpython import Connection
1111
from bdkpython import Network
12+
from bdkpython import Amount
13+
from bdkpython import FeeRate
1214

1315
import unittest
1416
import os
@@ -110,4 +112,4 @@ def complex_tx_builder(self):
110112

111113

112114
if __name__ == '__main__':
113-
unittest.main()
115+
unittest.main()

bdk-python/tests/test_live_wallet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
from bdkpython import TxBuilder
99
from bdkpython import Connection
1010
from bdkpython import Network
11+
from bdkpython import Amount
12+
from bdkpython import FeeRate
1113

1214
import unittest
1315
import os

bdk-swift/build-xcframework.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
HEADERPATH="Sources/BitcoinDevKit/BitcoinDevKitFFI.h"
77
MODMAPPATH="Sources/BitcoinDevKit/BitcoinDevKitFFI.modulemap"
8-
HEADERPATH_BITCOIN_FFI="Sources/BitcoinDevKit/BitcoinFFI.h"
9-
MODMAPPATH_BITCOIN_FFI="Sources/BitcoinDevKit/BitcoinFFI.modulemap"
108
TARGETDIR="../bdk-ffi/target"
119
OUTDIR="."
1210
RELDIR="release-smaller"
@@ -46,11 +44,8 @@ cd ../bdk-swift/ || exit
4644
# move bdk-ffi static lib header files to temporary directory
4745
mkdir -p "${NEW_HEADER_DIR}"
4846
mv "${HEADERPATH}" "${NEW_HEADER_DIR}"
49-
mv "${HEADERPATH_BITCOIN_FFI}" "${NEW_HEADER_DIR}"
5047
mv "${MODMAPPATH}" "${NEW_HEADER_DIR}/module.modulemap"
5148
echo -e "\n" >> "${NEW_HEADER_DIR}/module.modulemap"
52-
cat "${MODMAPPATH_BITCOIN_FFI}" >> "${NEW_HEADER_DIR}/module.modulemap"
53-
rm "${MODMAPPATH_BITCOIN_FFI}"
5449

5550
# remove old xcframework directory
5651
rm -rf "${OUTDIR}/${NAME}.xcframework"

0 commit comments

Comments
 (0)