Skip to content

Flutter SDK 1.3.2

Installation

  1. Download the Flutter SDK here.
  2. Unzip the downloaded SDK zip file to a folder in your local drive.

Sample Code

The easiest and fastest way to get started with the SDK is to try the sample code. To run the sample code, go to the demo_app folder, execute the commands:

console
flutter pub get
flutter run

IMPORTANT

In the above sample codes, the strings __YOUR_USER_ID__ and __YOUR_API_KEY__ should be replaced by your own User ID and API Key repectively. Please contact us to obtain your User ID and API Key.

Project Integration

  1. To integrate to your Flutter project, add the SDK package by:

    bash
    flutter pub add vital_sign_camera --path "/path_of_downloaded_folder/flutter-vital-sign-sdk/vital_sign_camera"

    Please replace the string path_of_downloaded_folder above with the actual downloaded path.

  2. Add the following line to the file android/settings.gradle:

    groovy
    include ':vital-sign-engine'
    project(':vital-sign-engine').projectDir = new File('/path_of_downloaded_folder/flutter-vital-sign-sdk/vital_sign_camera/android/libs')

    Please replace the string path_of_downloaded_folder above with the actual downloaded path.

IMPORTANT

Please note that for Android, the minimum SDK version must be at least 24.

Migration from 1.2.x

One of the dependencies ZIPFoundation needs to have minimum deployment target of iOS 11. If you upgrade the SDK from 1.2.x to 1.3.x, please update the Podfile with one of the following methods:

Method 1

  1. Modify the post_install section of Podfile to force ZIPFoundation's deployment target to iOS 11:

    ruby
    post_install do |installer|
       installer.pods_project.targets.each do |target|
          target.build_configurations.each do |config|
             # Force ZIPFoundation's deployment target to iOS 11
             if target.name == 'ZIPFoundation'
                config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
             end
             # Support x86_64 simulator only
             config.build_settings['ARCHS[sdk=iphonesimulator*]'] = 'x86_64'
          end
          flutter_additional_ios_build_settings(target)
       end
    end
  2. In the iOS folder, run:

    console
    pod install

Method 2

  1. Set the project deployment target to iOS 11:

    ruby
    platform :ios, '11.0'
  2. Re-install the Pods. In iOS folder run:

    console
    rm Podfile.lock
    rm -rf Pods
    pod install

What's new

1.3.2

  • Fixed the crash issue on iPhone 15.

1.3.1

  • Fixed the wrong deployment target in the demo code.

1.3.0

  • Supports AWS Enterprise Development server.
  • Updated to Mobile Core 3.5.3