Skip to content
Merged
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
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,17 @@ This app is made for the Structure Sensor accessory. If you do not have a Struct
- Get the StructureSDK from [Developer Portal](https://structure.io/developers).
- Clone or download the repo
- Put `Structure.xcframework` file to Framework directory.
- Add your sdk license key in `ViewController.swift`:
- Add your sdk license key in `ViewController.swift`:
```
let status = STLicenseManager.unlock(withKey: "")
let licenseKey = "YOUR_SDK_LICENSE"
let status = STLicenseManager.unlock(withKey: licenseKey)
```
- Build using XCode.

Please take a look at the [contributing guidelines]() for a detailed process on how to build your application as well as troubleshooting information.

## Acknowledgments
The original author of this project is [Christopher Worley]([email protected]).
The original author of this project is [Christopher Worley](mailto:[email protected]).

## License
[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
Expand Down
10 changes: 0 additions & 10 deletions Scanner/Supporting Files/Settings.bundle/Root.plist
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,6 @@
<key>DefaultValue</key>
<false/>
</dict>
<dict>
<key>Type</key>
<string>PSToggleSwitchSpecifier</string>
<key>Title</key>
<string>Beta Capture Session</string>
<key>Key</key>
<string>beta_capture_session</string>
<key>DefaultValue</key>
<false/>
</dict>
</array>
</dict>
</plist>
8 changes: 2 additions & 6 deletions Scanner/ViewController+CaptureSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,8 @@ extension ViewController: STCaptureSessionDelegate {
// Clear / reset the capture session if it already exists
if captureSession == nil {
// Create an STCaptureSession instance
let useUnifiedSession: Bool = UserDefaults.standard.bool(forKey: "beta_capture_session")
if useUnifiedSession {
captureSession = STCaptureSession.newCaptureSessionBeta()
} else {
captureSession = STCaptureSession.new()
}
captureSession = STCaptureSession.new()

// Enable the following line and comment the above out to playback occ
// _captureSession = [STCaptureSession
// newCaptureSessionFromOccFile:@"[AppDocuments]/SN98802_Warm_2020-10-13_13-20-09.occ"];
Expand Down
4 changes: 2 additions & 2 deletions Scanner/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ class ViewController: UIViewController, STBackgroundTaskDelegate, MeshViewDelega

override func viewDidLoad() {
super.viewDidLoad()
// Enter license key here
let status = STLicenseManager.unlock(withKey: "")
// Enter license key here(see the readme "Build Process" section)
let status = STLicenseManager.unlock(withKey: licenseKey)
if status != .valid {
print("Error: No license!")
}
Expand Down