Files
bitchat/Package.swift
T
jack 45fec95af2 Address PR #775 review feedback
- Remove AI-generated documentation files (REFACTORING_COMPLETE.md, plans/*.md)
- Update minimum iOS version from 16 to 17 (enables @Observable in future)
- Convert SystemMessagingService to BitchatMessage.system() factory method
  * Removes method overload ambiguity
  * Cleaner API as suggested in review
  * Deleted SystemMessagingService.swift
- Clean up deinit comments (remove unnecessary removeAll() calls)
- Remove conditional OS checks in GeohashBookmarksStore (iOS/macOS only)

All tests passing (23/23)
2025-10-09 17:09:51 +02:00

57 lines
1.5 KiB
Swift

// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "bitchat",
defaultLocalization: "en",
platforms: [
.iOS(.v17),
.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")
]
)
]
)