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. 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.
  2. Add the Eyedid SDK Dependency

  • In Xcode, select File > Add Package Dependencies.

  • Enter the Eyedid iOS package repository URL:

    https://github.com/visualcamp/eyedid-ios-spm.git
  • Select the latest available version.

  • Add the Eyedid package product to your app target.


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.