This page contains the installation guide needed for Face Detector in Android and iOS
Android Installation Guide
In Android, the first step of the installation for Face Detector (Android) is to include the following dependencies in the project-level build.gradle file. The build.gradle file will need to make some changes as follow below:
allprojects {
repositories {
mavenCentral()
}
}
Include the following dependencies in app-level build.gradle file:
After adding the code, sync the project with gradle files to make sure all of the dependencies are successfully installed.
Please make sure that the gradle files are synced
iOS Installation Guide
In iOS, the first step of the installation for Face Detector is to simply add the following line of code to your Podfiles as shown below:
use_frameworks!
pod 'FaceDetector', '0.0.3'
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "CryptoSwift"
puts "Enable module stability for CryptoSwift"
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
end
end
After adding the code above to the Podfiles:
Run the command "pod install" to install the dependency
React-Native Installation Guide
In React-native, the first step of the installation is to install the react-native-innov8tif-face-detector into the environment using the command below:
platform :ios, '11.0'
use_frameworks!
```
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "CryptoSwift"
puts "Enable module stability for CryptoSwift"
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
end
end