mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-24 23:45:18 +00:00
* Extract Tor into a separate module * Add Tor package as a dependency for iOS & macOS targets * Move `tor-nolzma.xcframework` inside Tor * Remove `libz` from Frameworks as its linked in Tor * Remove stray `.gitkeep` from macOS target membership * Fix missing import and access control for modularized Tor - Add import Tor to NetworkActivationService - Make TorManager.shutdownCompletely() public for external access * Fix tor-nolzma.xcframework structure for Xcode builds - Add missing Info.plist files to all framework slices - Restructure macOS framework to use deep bundle format (Versions/) - Keep iOS frameworks as shallow bundles (standard for iOS) This fixes the Xcode build errors while maintaining SPM compatibility. * Remove stale xcframework references from Xcode project Xcode cleaned up old direct references to tor-nolzma.xcframework since it's now managed internally by the Tor Swift package. --------- Co-authored-by: jack <jackjackbits@users.noreply.github.com>
57 lines
1.5 KiB
Swift
57 lines
1.5 KiB
Swift
// swift-tools-version: 5.9
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "bitchat",
|
|
defaultLocalization: "en",
|
|
platforms: [
|
|
.iOS(.v16),
|
|
.macOS(.v13)
|
|
],
|
|
products: [
|
|
.executable(
|
|
name: "bitchat",
|
|
targets: ["bitchat"]
|
|
),
|
|
],
|
|
dependencies:[
|
|
.package(path: "localPackages/Tor"),
|
|
.package(path: "localPackages/BitLogger"),
|
|
.package(url: "https://github.com/21-DOT-DEV/swift-secp256k1", exact: "0.21.1")
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "bitchat",
|
|
dependencies: [
|
|
.product(name: "P256K", package: "swift-secp256k1"),
|
|
.product(name: "BitLogger", package: "BitLogger"),
|
|
.product(name: "Tor", package: "Tor")
|
|
],
|
|
path: "bitchat",
|
|
exclude: [
|
|
"Info.plist",
|
|
"Assets.xcassets",
|
|
"bitchat.entitlements",
|
|
"bitchat-macOS.entitlements",
|
|
"LaunchScreen.storyboard"
|
|
],
|
|
resources: [
|
|
.process("Localizable.xcstrings")
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "bitchatTests",
|
|
dependencies: ["bitchat"],
|
|
path: "bitchatTests",
|
|
exclude: [
|
|
"Info.plist",
|
|
"README.md"
|
|
],
|
|
resources: [
|
|
.process("Localization")
|
|
]
|
|
)
|
|
]
|
|
)
|