Installation Guid
Android
1. First, add the following to the repositories section of your project’s root build.gradle or build.gradle.kts file:
allprojects {
repositories {
google()
mavenCentral()
// Add the Eyedid SDK Maven repository
maven {
url = uri("https://seeso.jfrog.io/artifactory/visualcamp-eyedid-sdk-android-release")
}
}
}
2. Add the Eyedid SDK Dependency
Next, in the build.gradle
or build.gradle.kts
file of the module where you want to use the Eyedid SDK, add the following line to the dependencies
section:
- build.gradle
- build.gradle.kts
dependencies {
// Add the Eyedid Gaze Tracker dependency
implementation "camp.visual.eyedid.android.gazetracker:eyedid-gazetracker:{version}"
}
dependencies {
// Add the Eyedid Gaze Tracker dependency
implementation("camp.visual.eyedid.android.gazetracker:eyedid-gazetracker:{version}")
}
iOS
-
Install CocoaPods
If you don't have CocoaPods installed on your machine, follow the steps below:
-
Open Terminal and run the following command to install CocoaPods:
sudo gem install cocoapods
-
After installation, navigate to your project directory and run:
pod setup
-
-
Create a New Xcode Project
- Open Xcode and choose
Create a new Xcode project
. - Select
App
under the iOS platform, and name the project EyedidSample. - Choose Swift as the language and select either Storyboard or SwiftUI as the interface, depending on your preference.
- Save the project to your desired location.
- Open Xcode and choose
-
Create a Podfile Manually
-
Open Terminal and navigate to the newly created project directory:
cd path/to/your/EyedidSample
-
Create a Podfile manually using a text editor, for example, Nano:
nano Podfile
-
Add the following content to the Podfile:
platform :ios, '13.0'
use_frameworks!
target 'YourProject' do
pod 'Eyedid', '~> 1.0.0-beta1'
end -
Save and exit the editor (in Nano, use CTRL + X, then press Y to confirm, and hit Enter to save).
- Install the Dependencies
- After creating the Podfile, install the necessary dependencies by running:
pod install
- Open the Project with the Workspace File
- After running pod install, always open your project using the
.xcworkspace
file
Flutter
- Depend on it
- Run this command:
with:
flutter pub add eyedid_flutter
- This will add a line like this to your package's pubspec.yaml (and run an implicit
flutter pub get
):dependencies:
eyedid_flutter: ^1.0.0-beta2
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
- Import it Now in your Dart code, you can use:
import 'package:eyedid_flutter/eyedid_flutter.dart';
- Environment Set-ups (Android)
-
Add the maven repository URL 'https://seeso.jfrog.io/artifactory/visualcamp-eyedid-sdk-android-release' to the build.gradle file where eyedid is located.
allprojects {
repositories {
...
maven {
url "https://seeso.jfrog.io/artifactory/visualcamp-eyedid-sdk-android-release"
}
}
} -
Add the following dependencies to the app/build.gradle file.
dependencies {
...
implementation "camp.visual.eyedid.android.gazetracker:eyedid-gazetracker:{version}"
}
- Environment Set-ups (iOS)
- Add permission to your Info.plist file.
<key>NSCameraUsageDescription</key>
<string></string> - Add
PERMISSION_CAMERA=1
to your Podfile.target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
...
'PERMISSION_CAMERA=1'
]
end - Pod install from terminal.
pod install
CPP
To download the Eyedid SDK for C++, please visit the Eyedid SDK Management Console. You can find the latest version of the SDK and other resources available for C++ development on this page.