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
$ yarn add react-native-okaycamplusAndroid
Navigate to the
androidFolderAdd following snippet in the root
build.gradlefile:
allprojects {
repositories {
maven {
url "https://innov8tif-okaycam.firebaseapp.com"
content {
includeGroup "com.innov8tif.iad"
}
}
}
}
Sync gradle
iOS
Navigate to the
iosfolderAdd 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
endRun command
pod installAdd 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 encounter 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?
