flutter_smartface 0.6.1
flutter_smartface: ^0.6.1 copied to clipboard
Smartface App FFI plugin project.
Flutter SmartFace Plugin Installation Guide #
This guide outlines the necessary steps to get the SmartFace Flutter plugin up and running on your Android and iOS devices.
Table of Contents #
Android Setup #
Download Native Libraries #
- Download the native libraries from this Google Drive link.
Unzip to libs Folder #
-
After downloading the
libs.zipfile, unzip it.unzip path/to/downloaded/libs.zip -d path/to/flutter_project/android/
Modify android/app/build.gradle #
-
Open your
android/build.gradlefile and add the following lines inside it:project(':flutter_smartface') { ext.libsDir = rootProject.file('libs') }Make sure to sync your project after adding this line.
Configure ProGuard Rules #
-
If you're using ProGuard for your release builds, add the following rules to your
android/app/proguard-rules.profile:-keepclassmembers class br.com.visica.sface.** { *; }This ensures that the SmartFace SDK classes are not obfuscated during the build process.
iOS Setup #
Quick Start #
-
Create the frameworks folder:
mkdir -p ios/SmartfaceSDK -
Copy the three required
.xcframeworkbundles toios/SmartfaceSDK/:SmartfaceMobile.xcframeworkSmartfaceMobileUIKit.xcframeworksface.xcframework
-
Open
ios/Runner.xcworkspacein Xcode -
Add the frameworks to Runner target:
- Go to Runner target → General → Frameworks, Libraries, and Embedded Content
- Click "+", add the three frameworks from
ios/SmartfaceSDK/ - Set each to "Embed & Sign"
-
Run
pod install:cd ios && pod install && cd ..
Detailed Instructions #
For complete iOS setup instructions, troubleshooting, and technical details, see:
- iOS Setup Guide - Comprehensive setup documentation
- Integration Guide - Full integration steps for both platforms
Requirements #
- iOS 12.0 or higher
- Xcode 12+
- CocoaPods
Get Credentials #
- To complete the setup, you'll need specific credentials for the SmartFace service. Please contact the support team to obtain these credentials.
Congratulations, you've successfully set up the SmartFace Flutter plugin for Android! If you encounter any issues, please refer to the troubleshooting section or contact support.