Releases: OpenMined/SwiftDP
Releases · OpenMined/SwiftDP
SwiftDP 0.0.1 Alpha
SwiftDP 0.0.1 Alpha Release Notes
This is our first functional release. 🚀
- Either clone down the repo and run start.sh, open the development xcode project and run tests
- Alternatively, download the OCDP.zip file and follow instructions below
- Package Managers coming soon
Supported Platforms
- iOS 13
Functionality Added
- Bazel Build
- C++ -> Objective-C -> Swift Bridge
- Xcodegen Project
- clang-format
- fastlane
- Carrot Hello World
- GitHub CI Unit Tests
- OCDP Objective-C Wrapper Framework
Examples and Tutorials:
- The Carrots Demo is part of
SwiftDPTests.swift
Documentation
- README.md contains development setup instructions
Tests and Builds
- Download the attached file OCDP.zip
- Unzip and drag the .framework files into your project
- Add OTHER_LDFLAGS: -lc++
- See
SwiftDPTests.swift
for examples:
Simple Example
import OCDP
let carrotData: [String: NSNumber] = ["Aardvark": 1] // you need more data
let defaultEpsilon = log2(3.0)
let epsilon = defaultEpsilon * 4
let reporter = OCDPCarrotReporter(epsilon: epsilon, andData: carrotData)
let privacyBudget = reporter.privacyBudget()
print("Privacy Budget is: \(privacyBudget)")