Latest 1.0.3
Homepage https://github.com/GirAppe/Blackhole
License MIT
Platforms ios 9.0, watchos 3.0
Frameworks Foundation, WatchConnectivity
Authors

CI Status
Version
License
Platform

Blackhole logo

Blackhole is delightful iOS to watchOS communication framework, based on WatchConnectivity framework’s WCSession.

Utilizes Wormhole concept, that simplifies data sync between iOS and watch devices. Also, provides set of handful protocols, allowing to create easily synchronized custom model classes.

Some of the features:

  • start listeners, waiting for given communication message identifiers
  • send simple messages
  • send every object, that can be represented as Data
  • request any object from counterpart app, be sending a message and specifying success handler
  • all public api wrapped in convenient promises implementation (BrightFutures)

Must to have for watchOS development.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Blackhole requires iOS 9.0+, and watchOS 3.0+. It requires Swift 3.0.

Installation

Blackhole is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "Blackhole"

or, if you intend to use it with BrightFutures (recommended!!!)

pod "Blackhole/BrightFutures"

BrightFutures is great promises implementation, and it works with Blackhole like a charm. It allows to easily wrap async communication within app and phone (see the example app for reference). If you need more info on promises topic – check GirAppe blog post: "Promises, unravelling the spaghetti code".

Author

Andrzej Michnia, [email protected]

License

Blackhole is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Blackhole",
    "version": "1.0.3",
    "summary": "A delightful iOS to watchOS communication framework.",
    "description": "A delightful iOS to watchOS communication framework, based on WatchConnectivity framework's WCSession.nnUtilizes Wormhole concept, that simplifies data sync between iOS and watch devices. Also, provides set of handful protocols, allowing to create easily synchronized custom model classes.nnSome of the features:n - start listeners, waiting for given communication message identifiersn - send simple messagesn - send every object, that can be represented as Datan - request any object from counterpart app, be sending a message and specifying success handlern - all public api wrapped in convenient promises implementation (BrightFutures)nnMust to have for watchOS development.",
    "homepage": "https://github.com/GirAppe/Blackhole",
    "screenshots": "https://raw.githubusercontent.com/GirAppe/Blackhole/develop/Icon-60%402x.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Andrzej Michnia": "[email protected]"
    },
    "source": {
        "git": "https://github.com/GirAppe/Blackhole.git",
        "tag": "1.0.3"
    },
    "platforms": {
        "ios": "9.0",
        "watchos": "3.0"
    },
    "frameworks": [
        "Foundation",
        "WatchConnectivity"
    ],
    "default_subspecs": "Core",
    "pushed_with_swift_version": "3.0",
    "subspecs": [
        {
            "name": "Core",
            "source_files": "Blackhole/Classes/Core/**/*"
        },
        {
            "name": "BrightFutures",
            "source_files": "Blackhole/Classes/{Core,BrightFutures}/**/*",
            "dependencies": {
                "BrightFutures": [
                    "~> 5.1"
                ]
            }
        }
    ]
}

Pin It on Pinterest

Share This