Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract presence viewer web code only for Swift #7

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import PackageDescription

let package = Package(
name: "DittoPresenceViewer",
name: "DittoPresenceViewerCore",
platforms: [
.iOS(.v14),
.macOS(.v11),
Expand All @@ -12,21 +12,24 @@ let package = Package(
],
products: [
.library(
name: "DittoPresenceViewer",
targets: ["DittoPresenceViewer"]),
name: "DittoPresenceViewerCore",
targets: ["DittoPresenceViewerCore"]),
],
dependencies: [
.package(url: "https://github.com/getditto/DittoSwiftPackage", from: "4.8.0") // 4.8.0 is required for peerKeyString in presence data
],
targets: [
.target(
name: "DittoPresenceViewer",
name: "DittoPresenceViewerCore",
dependencies: [
.product(name: "DittoSwift", package: "DittoSwiftPackage")
],
path: "Swift/Sources/DittoPresenceViewer",
path: "Swift/Sources/DittoPresenceViewerCore",
resources: [
.copy("Resources")
],
cxxSettings: [
.define("ENABLE_BITCODE", to: "NO")
]
)
]
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
The Presence Viewer displays a mesh graph that allows you to see all connected peers within the mesh and the transport each peer is using to make a connection.

This repository will eventually serve as the single source of truth for the presence viewer code across many platforms. Today, it does so for:
1. Swift
1. Swift (via [DittoSwiftTools](https://github.com/getditto/DittoSwiftTools))

## How to use this package

This package is not intended to be imported and used directly, but instead as a part of the relevant tools packages for each platform.
20 changes: 0 additions & 20 deletions Swift/Sources/DittoPresenceViewer/Bundle+FrameworkBundle.swift

This file was deleted.

186 changes: 0 additions & 186 deletions Swift/Sources/DittoPresenceViewer/DittoPresenceView.swift

This file was deleted.

Loading