Prerequisites
License Key
Obtain your license key from Neurofit after signing a license agreement. See Licensing for how to get one.
iOS Requirements
Xcode 15 or later. Deployment target iOS 15+. A physical device is required for camera-based scanning — the iOS Simulator does not have a rear camera.
Android Requirements
Android Studio Hedgehog (2023.1.1) or later.
minSdk 24 (Android 7.0) or higher. A physical device or emulator with camera support.Install the Package
- iOS — Swift Package Manager
- Android — Gradle
The iOS SDK is distributed as a Swift Package. Add it to your project using Xcode’s built-in package manager.
1
Open the Add Packages dialog
In Xcode, choose File → Add Package Dependencies… (or File → Add Packages in older Xcode versions).
2
Enter the package URL
Paste the Neurofit Vitals package URL into the search field:
3
Select a version rule
Choose Up to Next Major Version with
1.0.0 as the minimum. Click Add Package.4
Add to your app target
When prompted, check the box next to NeuroFitVitals and confirm your app target is selected. Click Add Package to finish.
Required Permissions — Info.plist
The SDK opens the rear camera during a scan. Add the following key to yourInfo.plist so the OS can show a permission prompt with a meaningful reason string: