Skip to content

Commit

Permalink
PR PDK-445 (#1)
Browse files Browse the repository at this point in the history
* first commit
  • Loading branch information
Dabin22 committed Sep 18, 2023
1 parent 8a3c169 commit eb8ddad
Show file tree
Hide file tree
Showing 27 changed files with 1,363 additions and 131 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "interactive"
}
65 changes: 55 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,61 @@
# seeso_sample_flutter
<p align="center">
<img src="./image/seeso_logo.png">
</p>
<div align="center">
<h1>SeeSo Flutter Sample</h1>
<a href="https://github.com/visualcamp/seeso-sample-flutter" alt="release">
</a>
</div>

A new Flutter project.
## SeeSo
SeeSo is an AI based eye tracking SDK which uses image from RGB camera to track where the user is looking.
Extra hardware is not required and you can start your development for free.
In 2021, SeeSo was recognized for its innovative technology and won GLOMO Award for Best Mobile Innovation for Connected Living!

## Getting Started
1. Supports multi-platform (iOS/Android)
2. Has simple and quick calibration (1-5 points)
3. Has high accuracy and robustness compared to its competitors.

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:
## Documentation
* Overview: https://docs.seeso.io/docs/document/seeso-sdk-overview
* Quick Start: https://docs.seeso.io/nonversioning/quick-start/flutter-quick-start
* API: https://docs.seeso.io/docs/api/flutter-api-docs

- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
## Requirements

For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
### Android
* minSdkVersion: 23
* targetSdkVersion: 30

### iOS
* iOS Version : 13 +
* iOS Device : iPhone 6s +

### Common
* It must be run on a real device.
* It must be an internet environment.
* Must be issued a license key in [SeeSo Manage](https://manage.seeso.io/)

## Setting License Key
* Get a license key from https://manage.seeso.io and copy your key to [`seeso_provider.dart`](/lib/provider/seeso_provider.dart#L21)
```dart
//todo Please enter the key value for development issued by the SeeSo.io
const String licenseKey = "Input your license key.";
```

## How to run
1. Clone or download this project.
2. Install Flutter pub
```bash
flutter pub get
```
3. Install cocoapods for iOS.
```bash
pod install
```
4. Connected Real device and Run.


## Contact Us
If you have any problems, feel free to [contact us](https://seeso.io/Contact-Us)
11 changes: 7 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ android {
ndkVersion flutter.ndkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

kotlinOptions {
Expand All @@ -45,7 +45,7 @@ android {
applicationId "com.example.seeso_sample_flutter"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
minSdkVersion 23
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand All @@ -64,4 +64,7 @@ flutter {
source '../..'
}

dependencies {}
dependencies {
implementation "camp.visual:seeso-gazetracker:latest.release"
implementation "camp.visual:seeso-libgaze:latest.release"
}
3 changes: 3 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://seeso.jfrog.io/artifactory/seeso-android-gradle-release/"
}
}
}

Expand Down
Binary file added image/seeso_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ios/Flutter/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
1 change: 1 addition & 0 deletions ios/Flutter/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
50 changes: 50 additions & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Uncomment this line to define a global platform for your project
platform :ios, '11.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}

def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end

File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
use_frameworks!
use_modular_headers!

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
target 'RunnerTests' do
inherit! :search_paths
end
end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
'PERMISSION_CAMERA=1',
]
end
flutter_additional_ios_build_settings(target)
end
end
35 changes: 35 additions & 0 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
PODS:
- Flutter (1.0.0)
- permission_handler_apple (9.1.1):
- Flutter
- SeeSo (2.6.0.0)
- seeso_flutter (0.0.1):
- Flutter
- SeeSo (~> 2.6.0)

DEPENDENCIES:
- Flutter (from `Flutter`)
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
- seeso_flutter (from `.symlinks/plugins/seeso_flutter/ios`)

SPEC REPOS:
trunk:
- SeeSo

EXTERNAL SOURCES:
Flutter:
:path: Flutter
permission_handler_apple:
:path: ".symlinks/plugins/permission_handler_apple/ios"
seeso_flutter:
:path: ".symlinks/plugins/seeso_flutter/ios"

SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6
SeeSo: a23b4248a24e7b75b7cf1c85d062f470b0144d67
seeso_flutter: 0e18c93fc6b0c59011085597aba589bc553c7ff5

PODFILE CHECKSUM: 1864b9f1c0a4790816ed2349ca319ee0e2961027

COCOAPODS: 1.12.1
Loading

0 comments on commit eb8ddad

Please sign in to comment.