Skip to main content
Version: Eyedid Beta

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:

dependencies {
// Add the Eyedid Gaze Tracker dependency
implementation "camp.visual.eyedid.android.gazetracker:eyedid-gazetracker:{version}"
}

iOS

  1. 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
  2. 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.
  3. 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).

  1. Install the Dependencies
  • After creating the Podfile, install the necessary dependencies by running:
    pod install
  1. Open the Project with the Workspace File
  • After running pod install, always open your project using the .xcworkspace file

Flutter

  1. 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.

  1. Import it Now in your Dart code, you can use:
import 'package:eyedid_flutter/eyedid_flutter.dart';
  1. 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}"
    }
  1. 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.