Installation Guide
OkayCam Plus is a new module aimed at enhancing selfie verification processes by combating deepfake and injection attacks.
React Native OkayCam Plus
Requirements
Android
Min Sdk Version >= 26
iOS
iOS 15+
Swift 5
Getting Started
$ react-native install react-native-okaycamplus
Android
Navigate to the
android
FolderAdd following snippet in the root
build.gradle
file:
allprojects {
repositories {
maven { url "https://innov8tif-okaycam.firebaseapp.com"}
}
}
Sync gradle
iOS
Navigate to the
ios
folderAdd the following code to Podfile
platform :ios, '15.0'
use_frameworks!
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"
end
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
Run command
pod install
Add camera permission
Android Issue
Duplicate class org.hamcrest.xxx
If you encounter the errors above, you may exclude junit module.
configurations { compile.exclude group: "junit", module: "junit" }
iOS Issue
Undefined symbol: _swift_FORCE_LOAD$_swiftUniformTypeIdentifiers
Undefined symbol: _swift_FORCE_LOAD$_swiftCoreMIDI
If you encouter the errors above, you may create a new swift file called Void.swift without adding bridging header.

License
Apply licenses for Android and iOS SDKs
const license = Platform.select({
android: "",
ios: ""
})
Last updated
Was this helpful?