All Projects → br1sk → Sonar

br1sk / Sonar

Licence: MIT License
Apple's radar communication in Swift

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to Sonar

brisk-ios
An iOS app for submitting radars
Stars: ✭ 28 (-61.11%)
Mutual labels:  apple, radar, openradar
Brisk
A macOS app for submitting radars
Stars: ✭ 659 (+815.28%)
Mutual labels:  apple, radar
Ladybug
Handle rdar:// links gracefully
Stars: ✭ 161 (+123.61%)
Mutual labels:  apple, radar
Openradar Mirror
A mirror of radars pulled from http://openradar.me/.
Stars: ✭ 238 (+230.56%)
Mutual labels:  apple, radar
sensor-fusion
Filters: KF, EKF, UKF || Process Models: CV, CTRV || Measurement Models: Radar, Lidar
Stars: ✭ 96 (+33.33%)
Mutual labels:  radar
Learning-Core-Audio-Swift-SampleCode
Swift sample code for the book, Learning Core Audio. The original sample code was written in C/Objective-C but I tried to make it in Swift version.
Stars: ✭ 114 (+58.33%)
Mutual labels:  apple
WacOS
A Linux distribution that mimics MacOS (modern and classic) iOS, and other Apple operating systems, but is open, customizable, and free to use on non-apple hardware.
Stars: ✭ 18 (-75%)
Mutual labels:  apple
csgo-react-hud
🕹️ Example for the Lexogrine HUD Manager system
Stars: ✭ 79 (+9.72%)
Mutual labels:  radar
SPStorkController
Now playing controller from Apple Music, Mail & Podcasts Apple's apps.
Stars: ✭ 2,515 (+3393.06%)
Mutual labels:  apple
apple-bce-arch
Arch Linux package for the Apple BCE driver required for T2-equipped devices.
Stars: ✭ 24 (-66.67%)
Mutual labels:  apple
sign-in-with-apple
An example for sign-in-with-apple, golang-version.
Stars: ✭ 22 (-69.44%)
Mutual labels:  apple
Thoughtless
An iOS app that lets user quickly jot down thoughts with Markdown support
Stars: ✭ 24 (-66.67%)
Mutual labels:  apple
node-apn-http2
Communicate with Apple Push Notification Service via native Node.js v8.8.1+ HTTP2 module (node-apn drop-in)
Stars: ✭ 25 (-65.28%)
Mutual labels:  apple
react-native-imaged-carousel-card
Fully customizable & Lovely Imaged Carousel Card for React Native
Stars: ✭ 70 (-2.78%)
Mutual labels:  apple
TermiNetwork
🌏 A zero-dependency networking solution for building modern and secure iOS, watchOS, macOS and tvOS applications.
Stars: ✭ 80 (+11.11%)
Mutual labels:  apple
homekit-qrcode
Generate a pairing HomeKit QR code label for your HomeKit accessory from the command line
Stars: ✭ 17 (-76.39%)
Mutual labels:  apple
health kit reporter
A Flutter wrapper for the HealthKitReporter library
Stars: ✭ 16 (-77.78%)
Mutual labels:  apple
equinociOS
O blog oficial do equinociOS
Stars: ✭ 71 (-1.39%)
Mutual labels:  apple
react-native-bounceable
Animate and bounce any component with RNBounceable for React Native
Stars: ✭ 26 (-63.89%)
Mutual labels:  apple
sign-in-with-apple-js-node-example
Sign in with Apple using Apple JS and REST API
Stars: ✭ 48 (-33.33%)
Mutual labels:  apple

Sonar

An interface to create radars on Apple's bug tracker and Open Radar frictionless from swift.

Example

Login

let openRadar = Sonar(service: .openRadar(token: "abcdefg"))
openRadar.login(
    getTwoFactorCode: { _ in fatalError("OpenRadar doesn't support 2 factor" })
{ result in
    guard case let .success = result else {
        return
    }

    print("Logged in!")
}

Create radar

let radar = Radar(
    classification: .feature, product: .bugReporter, reproducibility: .always,
    title: "Add REST API to Radar", description: "Add REST API to Radar", steps: "N/A",
    expected: "Radar to have a REST API available", actual: "API not provided",
    configuration: "N/A", version: "Any", notes: "N/A", attachments: []
)

let openRadar = Sonar(service: .openRadar(token: "abcdefg"))
openRadar.create(radar: radar) { result in
    // Check to see if the request succeeded
}

Login and Create radar on the same call

let radar = Radar(
    classification: .feature, product: .bugReporter, reproducibility: .always,
    title: "Add REST API to Radar", description: "Add REST API to Radar", steps: "N/A",
    expected: "Radar to have a REST API available", actual: "API not provided",
    configuration: "N/A", version: "Any", notes: "N/A", attachments: []
)

let appleRadar = Sonar(service: .appleRadar(appleID: "a", password: "b"))
appleRadar.loginThenCreate(
    radar: radar,
    getTwoFactorCode: { closure in
        let code = // Somehow get 2 factor auth code for user
        closure(code)
    })
{ result in
    switch result {
    case .success(let value):
        print(value) // This is the radar ID!
    case .failure(let error):
        print(error)
    }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].