Installation
Project requirements
iOS
Parameter | Requirement |
---|---|
Minimum deployment target | iOS 14.0 |
If you are integrating on React Native or Flutter, or integrating on Native iOS via CocoaPods, make sure you have updated the minimum iOS deployment target in:
- your
Podfile
; and - your iOS App Target.
Android
Parameter | Requirement |
---|---|
Minimum SDK Level | 26 |
Compile SDK Level | 34 |
Kotlin compiler version | 1.8.22 or above |
Android Gradle Plugin version | 8.2.0 or above |
Gradle version | 8.2.0 or above |
Flutter
Parameter | Requirement |
---|---|
Flutter SDK | 3.13 or above |
React Native
Parameter | Requirement |
---|---|
React Native Core | 0.72.0 or above |
Node.js | 18.0 or above |
Setup package dependencies
iOS
Vital Mobile SDKs are available through both Swift Package Manager and CocoaPods.
Swift Package Manager
Add the vital-ios package (https://github.com/tryVital/vital-ios
) as a dependency of your project.
Link VitalHealthKit
and VitalDevices
as appropriate. Note that VitalCore
is mandatory.
CocoaPods
Add the following declarations to your app target in your Podfile:
Android
Make sure Maven Central is included in the list of repositories in your build.gradle
.
Then include our Android SDK artifacts as dependencies of your modules as needed:
React Native
Install Vital SDK packages through NPM or Yarn:
Pull all dependencies for your React Native iOS project:
pod install
on your iOS project might error due to version lock conflicts on the Vital iOS libraries.
This usually happens after you have bumped the React Native SDK package versions.
Use pod update
to resolve the conflict:
Flutter
Add Vital SDK packages to your pubspec.yaml
:
pod install
on your iOS project might error due to version lock conflicts on the Vital iOS libraries.
This usually happens after you have bumped the Flutter SDK package versions.
Use pod update
to resolve the conflict: