├── .gitignore
├── .metadata
├── CHANGELOG.md
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── build.gradle
├── settings.gradle
└── src
│ ├── main
│ ├── AndroidManifest.xml
│ └── kotlin
│ │ └── com
│ │ └── bagussubagja
│ │ └── flutter_liveness_detection_randomized_plugin
│ │ └── flutter_liveness_detection_randomized_plugin
│ │ └── FlutterLivenessDetectionRandomizedPlugin.kt
│ └── test
│ └── kotlin
│ └── com
│ └── bagussubagja
│ └── flutter_liveness_detection_randomized_plugin
│ └── flutter_liveness_detection_randomized_plugin
│ └── FlutterLivenessDetectionRandomizedPluginTest.kt
├── example
├── .gitignore
├── README.md
├── analysis_options.yaml
├── android
│ ├── .gitignore
│ ├── app
│ │ ├── build.gradle
│ │ └── src
│ │ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ │ ├── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── bagussubagja
│ │ │ │ │ └── flutter_liveness_detection_randomized_plugin
│ │ │ │ │ └── flutter_liveness_detection_randomized_plugin_example
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── res
│ │ │ │ ├── drawable-v21
│ │ │ │ └── launch_background.xml
│ │ │ │ ├── drawable
│ │ │ │ └── launch_background.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── values-night
│ │ │ │ └── styles.xml
│ │ │ │ └── values
│ │ │ │ └── styles.xml
│ │ │ └── profile
│ │ │ └── AndroidManifest.xml
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ │ └── wrapper
│ │ │ └── gradle-wrapper.properties
│ └── settings.gradle
├── integration_test
│ └── plugin_integration_test.dart
├── ios
│ ├── .gitignore
│ ├── Flutter
│ │ ├── AppFrameworkInfo.plist
│ │ ├── Debug.xcconfig
│ │ └── Release.xcconfig
│ ├── Podfile
│ ├── Podfile.lock
│ ├── Runner.xcodeproj
│ │ ├── project.pbxproj
│ │ ├── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ └── WorkspaceSettings.xcsettings
│ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ ├── Runner.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ ├── Runner
│ │ ├── AppDelegate.swift
│ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ │ ├── Icon-App-20x20@1x.png
│ │ │ │ ├── Icon-App-20x20@2x.png
│ │ │ │ ├── Icon-App-20x20@3x.png
│ │ │ │ ├── Icon-App-29x29@1x.png
│ │ │ │ ├── Icon-App-29x29@2x.png
│ │ │ │ ├── Icon-App-29x29@3x.png
│ │ │ │ ├── Icon-App-40x40@1x.png
│ │ │ │ ├── Icon-App-40x40@2x.png
│ │ │ │ ├── Icon-App-40x40@3x.png
│ │ │ │ ├── Icon-App-60x60@2x.png
│ │ │ │ ├── Icon-App-60x60@3x.png
│ │ │ │ ├── Icon-App-76x76@1x.png
│ │ │ │ ├── Icon-App-76x76@2x.png
│ │ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ │ └── LaunchImage.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchImage.png
│ │ │ │ ├── LaunchImage@2x.png
│ │ │ │ ├── LaunchImage@3x.png
│ │ │ │ └── README.md
│ │ ├── Base.lproj
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── Main.storyboard
│ │ ├── Info.plist
│ │ └── Runner-Bridging-Header.h
│ └── RunnerTests
│ │ └── RunnerTests.swift
├── lib
│ └── main.dart
├── pubspec.lock
├── pubspec.yaml
└── test
│ └── widget_test.dart
├── ios
├── .gitignore
├── Assets
│ └── .gitkeep
├── Classes
│ └── FlutterLivenessDetectionRandomizedPlugin.swift
├── Resources
│ └── PrivacyInfo.xcprivacy
└── flutter_liveness_detection_randomized_plugin.podspec
├── lib
├── flutter_liveness_detection_randomized_plugin.dart
├── flutter_liveness_detection_randomized_plugin_method_channel.dart
├── flutter_liveness_detection_randomized_plugin_platform_interface.dart
├── index.dart
└── src
│ ├── core
│ ├── assets
│ │ ├── face-detected.json
│ │ └── face-id-anim.json
│ ├── constants
│ │ ├── index.dart
│ │ └── liveness_detection_step_constant.dart
│ ├── enums
│ │ ├── index.dart
│ │ └── liveness_detection_step.dart
│ ├── index.dart
│ └── utils
│ │ ├── index.dart
│ │ └── machine_learning_kit_helper.dart
│ ├── models
│ ├── index.dart
│ ├── liveness_detection_config.dart
│ ├── liveness_detection_label_model.dart
│ ├── liveness_detection_step_item.dart
│ └── liveness_detection_threshold.dart
│ └── presentation
│ ├── views
│ ├── index.dart
│ └── liveness_detection_view.dart
│ └── widgets
│ ├── circular_progress_widget
│ ├── circular_progress_painter.dart
│ └── circular_progress_widget.dart
│ ├── index.dart
│ ├── liveness_detection_step_overlay_widget.dart
│ └── liveness_detection_tutorial_widget.dart
├── pubspec.yaml
└── test
├── flutter_liveness_detection_randomized_plugin_method_channel_test.dart
└── flutter_liveness_detection_randomized_plugin_test.dart
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26 | /pubspec.lock
27 | **/doc/api/
28 | .dart_tool/
29 | build/
30 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: "2663184aa79047d0a33a14a3b607954f8fdd8730"
8 | channel: "stable"
9 |
10 | project_type: plugin
11 |
12 | # Tracks metadata for the flutter migrate command
13 | migration:
14 | platforms:
15 | - platform: root
16 | create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
17 | base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
18 | - platform: android
19 | create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
20 | base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
21 | - platform: ios
22 | create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
23 | base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
24 |
25 | # User provided section
26 |
27 | # List of Local paths (relative to this file) that should be
28 | # ignored by the migrate tool.
29 | #
30 | # Files that are not part of the templates will be ignored by default.
31 | unmanaged_files:
32 | - 'lib/main.dart'
33 | - 'ios/Runner.xcodeproj/project.pbxproj'
34 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 1.0.5 🚀
2 |
3 | - 🛠️ Improve security liveness challenge
4 | - 🎨 Add set to max brightness option
5 | - 🛠️ Update readme.md
6 |
7 | ## 1.0.4 🚀
8 |
9 | - ⚡ Improved performance during liveness challenge verification
10 | - 🎭 Customizable liveness challenge labels
11 | - ⏳ Flexible security verification duration
12 | - 🎲 Adjustable number of liveness challenges
13 |
14 | ## 1.0.3 🚀
15 |
16 | - 🛠️ Adjust to compatible camera dependency to prevent face not found
17 | - 🔐 Ajdust threshold for smile and look down challenge
18 | - 🎨 Add showCurrentStep parameter (default : false)
19 | - 🎨 Add Light and Dark mode
20 |
21 | ## 1.0.2 🚀
22 |
23 | ### Update README.md
24 |
25 | - 🛠️ Update readme.md file
26 |
27 | ## 1.0.1 🚀
28 |
29 | ### Update dependencies 🛠️
30 |
31 | - 🛠️ Update camera dependencies and also add camera_android_camerax for better experience while using liveness detection
32 |
33 | ## 1.0.0 🚀
34 |
35 | ### Introducing Flutter Liveness Detection Randomized Plugin!
36 |
37 | ✨ First Major Release Highlights:
38 | - 🎯 Smart Liveness Detection System
39 | - 🎲 Dynamic Random Challenge Generator
40 | - 🔐 Enhanced Security Protocols
41 | - 📱 Cross-Platform Support (iOS & Android)
42 | - ⚡ Real-time Processing
43 | - 🎨 Sleek & Modern UI
44 | - 🛠️ Developer-Friendly Integration
45 |
46 | Ready to revolutionize your biometric authentication? Let's make your app more secure! 💪
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 Bagus Subagja
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Flutter Liveness Detection Randomized Plugin
2 |
3 | A Flutter plugin for liveness detection with randomized challenge response method with an interaction mechanism between the user and the system in the form of a movement challenge that indicates life is detected on the face. This plugin helps implement secure biometric authentication by detecting real human presence through dynamic facial verification challenges.
4 |
5 | [](https://pub.dev/packages/flutter_liveness_detection_randomized_plugin)
6 |
7 | [](https://app.codacy.com/gh/bagussubagja/flutter-liveness-detection-randomized-plugin/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
8 |
9 | ## Preview 🪟
10 | 
11 |
12 | https://github.com/user-attachments/assets/f7266dc9-c4a2-4fba-8684-0ead2f678180
13 |
14 | ## Features ✨
15 |
16 | - 📱 Real-time face detection
17 | - 🎲 Randomized challenge sequence generation
18 | - 💫 Cross-platform support (iOS & Android)
19 | - 🎨 Light and dark mode support
20 | - ✅ High accuracy liveness verification
21 | - 🚀 Simple integration API
22 | - 🎭 Customizable liveness challenge labels
23 | - ⏳ Flexible security verification duration
24 | - 🎲 Adjustable number of liveness challenges
25 |
26 | ## Getting Started 🌟
27 |
28 | Add this to your package's `pubspec.yaml` file:
29 |
30 | ```yaml
31 | dependencies:
32 | flutter_liveness_detection_randomized_plugin: ^1.0.5
33 | ```
34 |
35 | ## Customized Steps Label
36 | You can customized steps label or use certain step only of liveness challenge with this example :
37 | ```
38 | config: LivenessDetectionConfig(
39 | customizedLabel: LivenessDetectionLabelModel(
40 | blink: '', // add empty string to skip/pass this liveness challenge
41 | lookDown: '',
42 | lookLeft: '',
43 | lookRight: '',
44 | lookUp: 'Tengok Atas', // example of customize label name for liveness challenge. it will replace default 'look up'
45 | smile: null, // null value to use default label name
46 | ),
47 | ),
48 | ```
49 |
50 | ## Platform Setup
51 |
52 | ### Android
53 | Add camera permission to your AndroidManifest.xml:
54 | ```
55 |
56 | ```
57 | Minimum SDK version: 23
58 |
59 | ### iOS
60 | Add camera usage description to Info.plist:
61 | ```
62 | NSCameraUsageDescription
63 | Camera access is required for liveness detection
64 | ```
65 |
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | # Additional information about this file can be found at
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .cxx
10 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | group = "com.bagussubagja.flutter_liveness_detection_randomized_plugin.flutter_liveness_detection_randomized_plugin"
2 | version = "1.0-SNAPSHOT"
3 |
4 | buildscript {
5 | ext.kotlin_version = "1.8.22"
6 | repositories {
7 | google()
8 | mavenCentral()
9 | }
10 |
11 | dependencies {
12 | classpath("com.android.tools.build:gradle:8.1.0")
13 | classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
14 | }
15 | }
16 |
17 | allprojects {
18 | repositories {
19 | google()
20 | mavenCentral()
21 | }
22 | }
23 |
24 | apply plugin: "com.android.library"
25 | apply plugin: "kotlin-android"
26 |
27 | android {
28 | if (project.android.hasProperty("namespace")) {
29 | namespace = "com.bagussubagja.flutter_liveness_detection_randomized_plugin.flutter_liveness_detection_randomized_plugin"
30 | }
31 |
32 | compileSdk = 34
33 |
34 | compileOptions {
35 | sourceCompatibility = JavaVersion.VERSION_1_8
36 | targetCompatibility = JavaVersion.VERSION_1_8
37 | }
38 |
39 | kotlinOptions {
40 | jvmTarget = JavaVersion.VERSION_1_8
41 | }
42 |
43 | sourceSets {
44 | main.java.srcDirs += "src/main/kotlin"
45 | test.java.srcDirs += "src/test/kotlin"
46 | }
47 |
48 | defaultConfig {
49 | minSdk = 21
50 | }
51 |
52 | dependencies {
53 | testImplementation("org.jetbrains.kotlin:kotlin-test")
54 | testImplementation("org.mockito:mockito-core:5.0.0")
55 | }
56 |
57 | testOptions {
58 | unitTests.all {
59 | useJUnitPlatform()
60 |
61 | testLogging {
62 | events "passed", "skipped", "failed", "standardOut", "standardError"
63 | outputs.upToDateWhen {false}
64 | showStandardStreams = true
65 | }
66 | }
67 | }
68 | }
69 |
70 | // Add this block for subprojects
71 | subprojects {
72 | afterEvaluate { project ->
73 | if (project.hasProperty('android')) {
74 | project.android {
75 | if (namespace == null) {
76 | namespace project.group
77 | }
78 | }
79 | }
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | package android
2 |
3 | rootProject.name = 'flutter_liveness_detection_randomized_plugin'
--------------------------------------------------------------------------------
/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/android/src/main/kotlin/com/bagussubagja/flutter_liveness_detection_randomized_plugin/flutter_liveness_detection_randomized_plugin/FlutterLivenessDetectionRandomizedPlugin.kt:
--------------------------------------------------------------------------------
1 | package com.bagussubagja.flutter_liveness_detection_randomized_plugin.flutter_liveness_detection_randomized_plugin
2 |
3 | import androidx.annotation.NonNull
4 |
5 | import io.flutter.embedding.engine.plugins.FlutterPlugin
6 | import io.flutter.plugin.common.MethodCall
7 | import io.flutter.plugin.common.MethodChannel
8 | import io.flutter.plugin.common.MethodChannel.MethodCallHandler
9 | import io.flutter.plugin.common.MethodChannel.Result
10 |
11 | /** FlutterLivenessDetectionRandomizedPlugin */
12 | class FlutterLivenessDetectionRandomizedPlugin: FlutterPlugin, MethodCallHandler {
13 | /// The MethodChannel that will the communication between Flutter and native Android
14 | ///
15 | /// This local reference serves to register the plugin with the Flutter Engine and unregister it
16 | /// when the Flutter Engine is detached from the Activity
17 | private lateinit var channel : MethodChannel
18 |
19 | override fun onAttachedToEngine(flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) {
20 | channel = MethodChannel(flutterPluginBinding.binaryMessenger, "flutter_liveness_detection_randomized_plugin")
21 | channel.setMethodCallHandler(this)
22 | }
23 |
24 | override fun onMethodCall(call: MethodCall, result: Result) {
25 | if (call.method == "getPlatformVersion") {
26 | result.success("Android ${android.os.Build.VERSION.RELEASE}")
27 | } else {
28 | result.notImplemented()
29 | }
30 | }
31 |
32 | override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) {
33 | channel.setMethodCallHandler(null)
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/android/src/test/kotlin/com/bagussubagja/flutter_liveness_detection_randomized_plugin/flutter_liveness_detection_randomized_plugin/FlutterLivenessDetectionRandomizedPluginTest.kt:
--------------------------------------------------------------------------------
1 | package com.bagussubagja.flutter_liveness_detection_randomized_plugin.flutter_liveness_detection_randomized_plugin
2 |
3 | import io.flutter.plugin.common.MethodCall
4 | import io.flutter.plugin.common.MethodChannel
5 | import kotlin.test.Test
6 | import org.mockito.Mockito
7 |
8 | /*
9 | * This demonstrates a simple unit test of the Kotlin portion of this plugin's implementation.
10 | *
11 | * Once you have built the plugin's example app, you can run these tests from the command
12 | * line by running `./gradlew testDebugUnitTest` in the `example/android/` directory, or
13 | * you can run them directly from IDEs that support JUnit such as Android Studio.
14 | */
15 |
16 | internal class FlutterLivenessDetectionRandomizedPluginTest {
17 | @Test
18 | fun onMethodCall_getPlatformVersion_returnsExpectedValue() {
19 | val plugin = FlutterLivenessDetectionRandomizedPlugin()
20 |
21 | val call = MethodCall("getPlatformVersion", null)
22 | val mockResult: MethodChannel.Result = Mockito.mock(MethodChannel.Result::class.java)
23 | plugin.onMethodCall(call, mockResult)
24 |
25 | Mockito.verify(mockResult).success("Android " + android.os.Build.VERSION.RELEASE)
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/example/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | **/doc/api/
26 | **/ios/Flutter/.last_build_id
27 | .dart_tool/
28 | .flutter-plugins
29 | .flutter-plugins-dependencies
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Symbolication related
35 | app.*.symbols
36 |
37 | # Obfuscation related
38 | app.*.map.json
39 |
40 | # Android Studio will place build artifacts here
41 | /android/app/debug
42 | /android/app/profile
43 | /android/app/release
44 |
--------------------------------------------------------------------------------
/example/README.md:
--------------------------------------------------------------------------------
1 | # flutter_liveness_detection_randomized_plugin_example
2 |
3 | Demonstrates how to use the flutter_liveness_detection_randomized_plugin plugin.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13 |
14 | For help getting started with Flutter development, view the
15 | [online documentation](https://docs.flutter.dev/), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/example/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # This file configures the analyzer, which statically analyzes Dart code to
2 | # check for errors, warnings, and lints.
3 | #
4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6 | # invoked from the command line by running `flutter analyze`.
7 |
8 | # The following line activates a set of recommended lints for Flutter apps,
9 | # packages, and plugins designed to encourage good coding practices.
10 | include: package:flutter_lints/flutter.yaml
11 |
12 | linter:
13 | # The lint rules applied to this project can be customized in the
14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml`
15 | # included above or to enable additional rules. A list of all available lints
16 | # and their documentation is published at https://dart.dev/lints.
17 | #
18 | # Instead of disabling a lint rule for the entire project in the
19 | # section below, it can also be suppressed for a single line of code
20 | # or a specific dart file by using the `// ignore: name_of_lint` and
21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file
22 | # producing the lint.
23 | rules:
24 | # avoid_print: false # Uncomment to disable the `avoid_print` rule
25 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26 |
27 | # Additional information about this file can be found at
28 | # https://dart.dev/guides/language/analysis-options
29 |
--------------------------------------------------------------------------------
/example/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/to/reference-keystore
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/example/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id "com.android.application"
3 | id "kotlin-android"
4 | // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5 | id "dev.flutter.flutter-gradle-plugin"
6 | }
7 |
8 | android {
9 | namespace = "com.bagussubagja.flutter_liveness_detection_randomized_plugin.flutter_liveness_detection_randomized_plugin_example"
10 | compileSdk = 35
11 | ndkVersion = flutter.ndkVersion
12 |
13 | compileOptions {
14 | sourceCompatibility = JavaVersion.VERSION_1_8
15 | targetCompatibility = JavaVersion.VERSION_1_8
16 | }
17 |
18 | kotlinOptions {
19 | jvmTarget = JavaVersion.VERSION_1_8
20 | }
21 |
22 | defaultConfig {
23 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24 | applicationId = "com.bagussubagja.flutter_liveness_detection_randomized_plugin.flutter_liveness_detection_randomized_plugin_example"
25 | // You can update the following values to match your application needs.
26 | // For more information, see: https://flutter.dev/to/review-gradle-config.
27 | minSdk = 24
28 | targetSdk = flutter.targetSdkVersion
29 | versionCode = flutter.versionCode
30 | versionName = flutter.versionName
31 | }
32 |
33 | buildTypes {
34 | release {
35 | // TODO: Add your own signing config for the release build.
36 | // Signing with the debug keys for now, so `flutter run --release` works.
37 | signingConfig = signingConfigs.debug
38 | }
39 | }
40 | }
41 |
42 | flutter {
43 | source = "../.."
44 | }
45 |
--------------------------------------------------------------------------------
/example/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
15 |
19 |
23 |
24 |
25 |
26 |
27 |
28 |
30 |
33 |
34 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/example/android/app/src/main/kotlin/com/bagussubagja/flutter_liveness_detection_randomized_plugin/flutter_liveness_detection_randomized_plugin_example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.bagussubagja.flutter_liveness_detection_randomized_plugin.flutter_liveness_detection_randomized_plugin_example
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity()
6 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/example/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/example/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/android/build.gradle:
--------------------------------------------------------------------------------
1 | allprojects {
2 | repositories {
3 | google()
4 | mavenCentral()
5 | }
6 | }
7 |
8 | rootProject.buildDir = "../build"
9 | subprojects {
10 | project.buildDir = "${rootProject.buildDir}/${project.name}"
11 | }
12 | subprojects {
13 | project.evaluationDependsOn(":app")
14 | }
15 |
16 | tasks.register("clean", Delete) {
17 | delete rootProject.buildDir
18 | }
19 |
--------------------------------------------------------------------------------
/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
6 |
--------------------------------------------------------------------------------
/example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | def flutterSdkPath = {
3 | def properties = new Properties()
4 | file("local.properties").withInputStream { properties.load(it) }
5 | def flutterSdkPath = properties.getProperty("flutter.sdk")
6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7 | return flutterSdkPath
8 | }()
9 |
10 | includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
11 |
12 | repositories {
13 | google()
14 | mavenCentral()
15 | gradlePluginPortal()
16 | }
17 | }
18 |
19 | plugins {
20 | id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21 | id "com.android.application" version "8.1.0" apply false
22 | id "org.jetbrains.kotlin.android" version "1.8.22" apply false
23 | }
24 |
25 | include ":app"
26 |
--------------------------------------------------------------------------------
/example/integration_test/plugin_integration_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter integration test.
2 | //
3 | // Since integration tests run in a full Flutter application, they can interact
4 | // with the host side of a plugin implementation, unlike Dart unit tests.
5 | //
6 | // For more information about Flutter integration tests, please see
7 | // https://flutter.dev/to/integration-testing
8 |
9 |
10 | import 'package:flutter_test/flutter_test.dart';
11 | import 'package:integration_test/integration_test.dart';
12 |
13 | import 'package:flutter_liveness_detection_randomized_plugin/flutter_liveness_detection_randomized_plugin.dart';
14 |
15 | void main() {
16 | IntegrationTestWidgetsFlutterBinding.ensureInitialized();
17 |
18 | testWidgets('getPlatformVersion test', (WidgetTester tester) async {
19 | final FlutterLivenessDetectionRandomizedPlugin plugin = FlutterLivenessDetectionRandomizedPlugin.instance;
20 | final String? version = await plugin.getPlatformVersion();
21 | // The version string depends on the host platform running the test, so
22 | // just assert that some non-empty string is returned.
23 | expect(version?.isNotEmpty, true);
24 | });
25 | }
26 |
--------------------------------------------------------------------------------
/example/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/example/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 12.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/example/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/example/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/example/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '12.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | target 'RunnerTests' do
36 | inherit! :search_paths
37 | end
38 | end
39 |
40 | post_install do |installer|
41 | installer.pods_project.targets.each do |target|
42 | flutter_additional_ios_build_settings(target)
43 | end
44 | end
45 |
--------------------------------------------------------------------------------
/example/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - camera_avfoundation (0.0.1):
3 | - Flutter
4 | - Flutter (1.0.0)
5 | - flutter_liveness_detection_randomized_plugin (0.0.1):
6 | - Flutter
7 | - google_mlkit_commons (0.7.1):
8 | - Flutter
9 | - MLKitVision
10 | - google_mlkit_face_detection (0.11.0):
11 | - Flutter
12 | - google_mlkit_commons
13 | - GoogleMLKit/FaceDetection (~> 6.0.0)
14 | - GoogleDataTransport (9.4.1):
15 | - GoogleUtilities/Environment (~> 7.7)
16 | - nanopb (< 2.30911.0, >= 2.30908.0)
17 | - PromisesObjC (< 3.0, >= 1.2)
18 | - GoogleMLKit/FaceDetection (6.0.0):
19 | - GoogleMLKit/MLKitCore
20 | - MLKitFaceDetection (~> 5.0.0)
21 | - GoogleMLKit/MLKitCore (6.0.0):
22 | - MLKitCommon (~> 11.0.0)
23 | - GoogleToolboxForMac/Defines (4.2.1)
24 | - GoogleToolboxForMac/Logger (4.2.1):
25 | - GoogleToolboxForMac/Defines (= 4.2.1)
26 | - "GoogleToolboxForMac/NSData+zlib (4.2.1)":
27 | - GoogleToolboxForMac/Defines (= 4.2.1)
28 | - GoogleUtilities/Environment (7.13.3):
29 | - GoogleUtilities/Privacy
30 | - PromisesObjC (< 3.0, >= 1.2)
31 | - GoogleUtilities/Logger (7.13.3):
32 | - GoogleUtilities/Environment
33 | - GoogleUtilities/Privacy
34 | - GoogleUtilities/Privacy (7.13.3)
35 | - GoogleUtilities/UserDefaults (7.13.3):
36 | - GoogleUtilities/Logger
37 | - GoogleUtilities/Privacy
38 | - GoogleUtilitiesComponents (1.1.0):
39 | - GoogleUtilities/Logger
40 | - GTMSessionFetcher/Core (3.5.0)
41 | - integration_test (0.0.1):
42 | - Flutter
43 | - MLImage (1.0.0-beta5)
44 | - MLKitCommon (11.0.0):
45 | - GoogleDataTransport (< 10.0, >= 9.4.1)
46 | - GoogleToolboxForMac/Logger (< 5.0, >= 4.2.1)
47 | - "GoogleToolboxForMac/NSData+zlib (< 5.0, >= 4.2.1)"
48 | - GoogleUtilities/UserDefaults (< 8.0, >= 7.13.0)
49 | - GoogleUtilitiesComponents (~> 1.0)
50 | - GTMSessionFetcher/Core (< 4.0, >= 3.3.2)
51 | - MLKitFaceDetection (5.0.0):
52 | - MLKitCommon (~> 11.0)
53 | - MLKitVision (~> 7.0)
54 | - MLKitVision (7.0.0):
55 | - GoogleToolboxForMac/Logger (< 5.0, >= 4.2.1)
56 | - "GoogleToolboxForMac/NSData+zlib (< 5.0, >= 4.2.1)"
57 | - GTMSessionFetcher/Core (< 4.0, >= 3.3.2)
58 | - MLImage (= 1.0.0-beta5)
59 | - MLKitCommon (~> 11.0)
60 | - nanopb (2.30910.0):
61 | - nanopb/decode (= 2.30910.0)
62 | - nanopb/encode (= 2.30910.0)
63 | - nanopb/decode (2.30910.0)
64 | - nanopb/encode (2.30910.0)
65 | - PromisesObjC (2.4.0)
66 |
67 | DEPENDENCIES:
68 | - camera_avfoundation (from `.symlinks/plugins/camera_avfoundation/ios`)
69 | - Flutter (from `Flutter`)
70 | - flutter_liveness_detection_randomized_plugin (from `.symlinks/plugins/flutter_liveness_detection_randomized_plugin/ios`)
71 | - google_mlkit_commons (from `.symlinks/plugins/google_mlkit_commons/ios`)
72 | - google_mlkit_face_detection (from `.symlinks/plugins/google_mlkit_face_detection/ios`)
73 | - integration_test (from `.symlinks/plugins/integration_test/ios`)
74 |
75 | SPEC REPOS:
76 | trunk:
77 | - GoogleDataTransport
78 | - GoogleMLKit
79 | - GoogleToolboxForMac
80 | - GoogleUtilities
81 | - GoogleUtilitiesComponents
82 | - GTMSessionFetcher
83 | - MLImage
84 | - MLKitCommon
85 | - MLKitFaceDetection
86 | - MLKitVision
87 | - nanopb
88 | - PromisesObjC
89 |
90 | EXTERNAL SOURCES:
91 | camera_avfoundation:
92 | :path: ".symlinks/plugins/camera_avfoundation/ios"
93 | Flutter:
94 | :path: Flutter
95 | flutter_liveness_detection_randomized_plugin:
96 | :path: ".symlinks/plugins/flutter_liveness_detection_randomized_plugin/ios"
97 | google_mlkit_commons:
98 | :path: ".symlinks/plugins/google_mlkit_commons/ios"
99 | google_mlkit_face_detection:
100 | :path: ".symlinks/plugins/google_mlkit_face_detection/ios"
101 | integration_test:
102 | :path: ".symlinks/plugins/integration_test/ios"
103 |
104 | SPEC CHECKSUMS:
105 | camera_avfoundation: 04b44aeb14070126c6529e5ab82cc7c9fca107cf
106 | Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
107 | flutter_liveness_detection_randomized_plugin: d8961eea48ebce31e93c24ca6f7f87a14b66f732
108 | google_mlkit_commons: 9f155ff61a70e0fad8692a7edb5aa2dc468536d3
109 | google_mlkit_face_detection: 35c4b9a56db1acee146600be8d75c45b7a2fe6fc
110 | GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
111 | GoogleMLKit: 97ac7af399057e99182ee8edfa8249e3226a4065
112 | GoogleToolboxForMac: d1a2cbf009c453f4d6ded37c105e2f67a32206d8
113 | GoogleUtilities: ea963c370a38a8069cc5f7ba4ca849a60b6d7d15
114 | GoogleUtilitiesComponents: 679b2c881db3b615a2777504623df6122dd20afe
115 | GTMSessionFetcher: 5aea5ba6bd522a239e236100971f10cb71b96ab6
116 | integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e
117 | MLImage: 1824212150da33ef225fbd3dc49f184cf611046c
118 | MLKitCommon: afec63980417d29ffbb4790529a1b0a2291699e1
119 | MLKitFaceDetection: 7c0e8bf09ddd27105da32d088fca978a99fc30cc
120 | MLKitVision: e858c5f125ecc288e4a31127928301eaba9ae0c1
121 | nanopb: 438bc412db1928dac798aa6fd75726007be04262
122 | PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
123 |
124 | PODFILE CHECKSUM: 819463e6a0290f5a72f145ba7cde16e8b6ef0796
125 |
126 | COCOAPODS: 1.16.2
127 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 77;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
13 | 4991D568284B0C117102DD24 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B69F25746A7A91F7864D378D /* Pods_Runner.framework */; };
14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
15 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
16 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
17 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
18 | D26FFD1BC3C877A608D51594 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 26C942E844CFBFD8E4CEA993 /* Pods_RunnerTests.framework */; };
19 | /* End PBXBuildFile section */
20 |
21 | /* Begin PBXContainerItemProxy section */
22 | 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
23 | isa = PBXContainerItemProxy;
24 | containerPortal = 97C146E61CF9000F007C117D /* Project object */;
25 | proxyType = 1;
26 | remoteGlobalIDString = 97C146ED1CF9000F007C117D;
27 | remoteInfo = Runner;
28 | };
29 | /* End PBXContainerItemProxy section */
30 |
31 | /* Begin PBXCopyFilesBuildPhase section */
32 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
33 | isa = PBXCopyFilesBuildPhase;
34 | buildActionMask = 2147483647;
35 | dstPath = "";
36 | dstSubfolderSpec = 10;
37 | files = (
38 | );
39 | name = "Embed Frameworks";
40 | runOnlyForDeploymentPostprocessing = 0;
41 | };
42 | /* End PBXCopyFilesBuildPhase section */
43 |
44 | /* Begin PBXFileReference section */
45 | 003BA38B6755473DEB6CABA8 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; };
46 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
47 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
48 | 26C942E844CFBFD8E4CEA993 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
49 | 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
50 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
51 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
52 | 506D8CDC24298CFD235697DF /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; };
53 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
54 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
55 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
56 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
57 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
58 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
59 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
60 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
61 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
62 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
63 | B69F25746A7A91F7864D378D /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
64 | C48AB0E70E841C9E5A1FF8B2 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
65 | CDD5AC6AB2E0D54DB7B4A169 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
66 | D3B913BD2DA586CA991FC3E3 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
67 | EBF102D6C8CA46E223A517A4 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; };
68 | /* End PBXFileReference section */
69 |
70 | /* Begin PBXFrameworksBuildPhase section */
71 | 8C184B0435D47700AF90D783 /* Frameworks */ = {
72 | isa = PBXFrameworksBuildPhase;
73 | buildActionMask = 2147483647;
74 | files = (
75 | D26FFD1BC3C877A608D51594 /* Pods_RunnerTests.framework in Frameworks */,
76 | );
77 | runOnlyForDeploymentPostprocessing = 0;
78 | };
79 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
80 | isa = PBXFrameworksBuildPhase;
81 | buildActionMask = 2147483647;
82 | files = (
83 | 4991D568284B0C117102DD24 /* Pods_Runner.framework in Frameworks */,
84 | );
85 | runOnlyForDeploymentPostprocessing = 0;
86 | };
87 | /* End PBXFrameworksBuildPhase section */
88 |
89 | /* Begin PBXGroup section */
90 | 088181CC13A452CBEF41DB29 /* Frameworks */ = {
91 | isa = PBXGroup;
92 | children = (
93 | B69F25746A7A91F7864D378D /* Pods_Runner.framework */,
94 | 26C942E844CFBFD8E4CEA993 /* Pods_RunnerTests.framework */,
95 | );
96 | name = Frameworks;
97 | sourceTree = "";
98 | };
99 | 331C8082294A63A400263BE5 /* RunnerTests */ = {
100 | isa = PBXGroup;
101 | children = (
102 | 331C807B294A618700263BE5 /* RunnerTests.swift */,
103 | );
104 | path = RunnerTests;
105 | sourceTree = "";
106 | };
107 | 884A061E157D3DACE1EE6C72 /* Pods */ = {
108 | isa = PBXGroup;
109 | children = (
110 | D3B913BD2DA586CA991FC3E3 /* Pods-Runner.debug.xcconfig */,
111 | C48AB0E70E841C9E5A1FF8B2 /* Pods-Runner.release.xcconfig */,
112 | CDD5AC6AB2E0D54DB7B4A169 /* Pods-Runner.profile.xcconfig */,
113 | 506D8CDC24298CFD235697DF /* Pods-RunnerTests.debug.xcconfig */,
114 | 003BA38B6755473DEB6CABA8 /* Pods-RunnerTests.release.xcconfig */,
115 | EBF102D6C8CA46E223A517A4 /* Pods-RunnerTests.profile.xcconfig */,
116 | );
117 | path = Pods;
118 | sourceTree = "";
119 | };
120 | 9740EEB11CF90186004384FC /* Flutter */ = {
121 | isa = PBXGroup;
122 | children = (
123 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
124 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
125 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
126 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
127 | );
128 | name = Flutter;
129 | sourceTree = "";
130 | };
131 | 97C146E51CF9000F007C117D = {
132 | isa = PBXGroup;
133 | children = (
134 | 9740EEB11CF90186004384FC /* Flutter */,
135 | 97C146F01CF9000F007C117D /* Runner */,
136 | 97C146EF1CF9000F007C117D /* Products */,
137 | 331C8082294A63A400263BE5 /* RunnerTests */,
138 | 884A061E157D3DACE1EE6C72 /* Pods */,
139 | 088181CC13A452CBEF41DB29 /* Frameworks */,
140 | );
141 | sourceTree = "";
142 | };
143 | 97C146EF1CF9000F007C117D /* Products */ = {
144 | isa = PBXGroup;
145 | children = (
146 | 97C146EE1CF9000F007C117D /* Runner.app */,
147 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */,
148 | );
149 | name = Products;
150 | sourceTree = "";
151 | };
152 | 97C146F01CF9000F007C117D /* Runner */ = {
153 | isa = PBXGroup;
154 | children = (
155 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
156 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
157 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
158 | 97C147021CF9000F007C117D /* Info.plist */,
159 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
160 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
161 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
162 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
163 | );
164 | path = Runner;
165 | sourceTree = "";
166 | };
167 | /* End PBXGroup section */
168 |
169 | /* Begin PBXNativeTarget section */
170 | 331C8080294A63A400263BE5 /* RunnerTests */ = {
171 | isa = PBXNativeTarget;
172 | buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
173 | buildPhases = (
174 | 1A21B3ADE244CD2627474ACD /* [CP] Check Pods Manifest.lock */,
175 | 331C807D294A63A400263BE5 /* Sources */,
176 | 331C807F294A63A400263BE5 /* Resources */,
177 | 8C184B0435D47700AF90D783 /* Frameworks */,
178 | );
179 | buildRules = (
180 | );
181 | dependencies = (
182 | 331C8086294A63A400263BE5 /* PBXTargetDependency */,
183 | );
184 | name = RunnerTests;
185 | productName = RunnerTests;
186 | productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
187 | productType = "com.apple.product-type.bundle.unit-test";
188 | };
189 | 97C146ED1CF9000F007C117D /* Runner */ = {
190 | isa = PBXNativeTarget;
191 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
192 | buildPhases = (
193 | 812C25770147C0FA879D65CF /* [CP] Check Pods Manifest.lock */,
194 | 9740EEB61CF901F6004384FC /* Run Script */,
195 | 97C146EA1CF9000F007C117D /* Sources */,
196 | 97C146EB1CF9000F007C117D /* Frameworks */,
197 | 97C146EC1CF9000F007C117D /* Resources */,
198 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
199 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
200 | 92ADCB8954218860049186D9 /* [CP] Embed Pods Frameworks */,
201 | 4BC0B567789EB7E1B91C2D68 /* [CP] Copy Pods Resources */,
202 | );
203 | buildRules = (
204 | );
205 | dependencies = (
206 | );
207 | name = Runner;
208 | productName = Runner;
209 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
210 | productType = "com.apple.product-type.application";
211 | };
212 | /* End PBXNativeTarget section */
213 |
214 | /* Begin PBXProject section */
215 | 97C146E61CF9000F007C117D /* Project object */ = {
216 | isa = PBXProject;
217 | attributes = {
218 | BuildIndependentTargetsInParallel = YES;
219 | LastUpgradeCheck = 1510;
220 | ORGANIZATIONNAME = "";
221 | TargetAttributes = {
222 | 331C8080294A63A400263BE5 = {
223 | CreatedOnToolsVersion = 14.0;
224 | TestTargetID = 97C146ED1CF9000F007C117D;
225 | };
226 | 97C146ED1CF9000F007C117D = {
227 | CreatedOnToolsVersion = 7.3.1;
228 | LastSwiftMigration = 1100;
229 | };
230 | };
231 | };
232 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
233 | developmentRegion = en;
234 | hasScannedForEncodings = 0;
235 | knownRegions = (
236 | en,
237 | Base,
238 | );
239 | mainGroup = 97C146E51CF9000F007C117D;
240 | preferredProjectObjectVersion = 77;
241 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
242 | projectDirPath = "";
243 | projectRoot = "";
244 | targets = (
245 | 97C146ED1CF9000F007C117D /* Runner */,
246 | 331C8080294A63A400263BE5 /* RunnerTests */,
247 | );
248 | };
249 | /* End PBXProject section */
250 |
251 | /* Begin PBXResourcesBuildPhase section */
252 | 331C807F294A63A400263BE5 /* Resources */ = {
253 | isa = PBXResourcesBuildPhase;
254 | buildActionMask = 2147483647;
255 | files = (
256 | );
257 | runOnlyForDeploymentPostprocessing = 0;
258 | };
259 | 97C146EC1CF9000F007C117D /* Resources */ = {
260 | isa = PBXResourcesBuildPhase;
261 | buildActionMask = 2147483647;
262 | files = (
263 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
264 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
265 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
266 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
267 | );
268 | runOnlyForDeploymentPostprocessing = 0;
269 | };
270 | /* End PBXResourcesBuildPhase section */
271 |
272 | /* Begin PBXShellScriptBuildPhase section */
273 | 1A21B3ADE244CD2627474ACD /* [CP] Check Pods Manifest.lock */ = {
274 | isa = PBXShellScriptBuildPhase;
275 | buildActionMask = 2147483647;
276 | files = (
277 | );
278 | inputFileListPaths = (
279 | );
280 | inputPaths = (
281 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
282 | "${PODS_ROOT}/Manifest.lock",
283 | );
284 | name = "[CP] Check Pods Manifest.lock";
285 | outputFileListPaths = (
286 | );
287 | outputPaths = (
288 | "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
289 | );
290 | runOnlyForDeploymentPostprocessing = 0;
291 | shellPath = /bin/sh;
292 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
293 | showEnvVarsInLog = 0;
294 | };
295 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
296 | isa = PBXShellScriptBuildPhase;
297 | alwaysOutOfDate = 1;
298 | buildActionMask = 2147483647;
299 | files = (
300 | );
301 | inputPaths = (
302 | "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
303 | );
304 | name = "Thin Binary";
305 | outputPaths = (
306 | );
307 | runOnlyForDeploymentPostprocessing = 0;
308 | shellPath = /bin/sh;
309 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
310 | };
311 | 4BC0B567789EB7E1B91C2D68 /* [CP] Copy Pods Resources */ = {
312 | isa = PBXShellScriptBuildPhase;
313 | buildActionMask = 2147483647;
314 | files = (
315 | );
316 | inputFileListPaths = (
317 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
318 | );
319 | name = "[CP] Copy Pods Resources";
320 | outputFileListPaths = (
321 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
322 | );
323 | runOnlyForDeploymentPostprocessing = 0;
324 | shellPath = /bin/sh;
325 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
326 | showEnvVarsInLog = 0;
327 | };
328 | 812C25770147C0FA879D65CF /* [CP] Check Pods Manifest.lock */ = {
329 | isa = PBXShellScriptBuildPhase;
330 | buildActionMask = 2147483647;
331 | files = (
332 | );
333 | inputFileListPaths = (
334 | );
335 | inputPaths = (
336 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
337 | "${PODS_ROOT}/Manifest.lock",
338 | );
339 | name = "[CP] Check Pods Manifest.lock";
340 | outputFileListPaths = (
341 | );
342 | outputPaths = (
343 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
344 | );
345 | runOnlyForDeploymentPostprocessing = 0;
346 | shellPath = /bin/sh;
347 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
348 | showEnvVarsInLog = 0;
349 | };
350 | 92ADCB8954218860049186D9 /* [CP] Embed Pods Frameworks */ = {
351 | isa = PBXShellScriptBuildPhase;
352 | buildActionMask = 2147483647;
353 | files = (
354 | );
355 | inputFileListPaths = (
356 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
357 | );
358 | name = "[CP] Embed Pods Frameworks";
359 | outputFileListPaths = (
360 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
361 | );
362 | runOnlyForDeploymentPostprocessing = 0;
363 | shellPath = /bin/sh;
364 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
365 | showEnvVarsInLog = 0;
366 | };
367 | 9740EEB61CF901F6004384FC /* Run Script */ = {
368 | isa = PBXShellScriptBuildPhase;
369 | alwaysOutOfDate = 1;
370 | buildActionMask = 2147483647;
371 | files = (
372 | );
373 | inputPaths = (
374 | );
375 | name = "Run Script";
376 | outputPaths = (
377 | );
378 | runOnlyForDeploymentPostprocessing = 0;
379 | shellPath = /bin/sh;
380 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
381 | };
382 | /* End PBXShellScriptBuildPhase section */
383 |
384 | /* Begin PBXSourcesBuildPhase section */
385 | 331C807D294A63A400263BE5 /* Sources */ = {
386 | isa = PBXSourcesBuildPhase;
387 | buildActionMask = 2147483647;
388 | files = (
389 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
390 | );
391 | runOnlyForDeploymentPostprocessing = 0;
392 | };
393 | 97C146EA1CF9000F007C117D /* Sources */ = {
394 | isa = PBXSourcesBuildPhase;
395 | buildActionMask = 2147483647;
396 | files = (
397 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
398 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
399 | );
400 | runOnlyForDeploymentPostprocessing = 0;
401 | };
402 | /* End PBXSourcesBuildPhase section */
403 |
404 | /* Begin PBXTargetDependency section */
405 | 331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
406 | isa = PBXTargetDependency;
407 | target = 97C146ED1CF9000F007C117D /* Runner */;
408 | targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
409 | };
410 | /* End PBXTargetDependency section */
411 |
412 | /* Begin PBXVariantGroup section */
413 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
414 | isa = PBXVariantGroup;
415 | children = (
416 | 97C146FB1CF9000F007C117D /* Base */,
417 | );
418 | name = Main.storyboard;
419 | sourceTree = "";
420 | };
421 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
422 | isa = PBXVariantGroup;
423 | children = (
424 | 97C147001CF9000F007C117D /* Base */,
425 | );
426 | name = LaunchScreen.storyboard;
427 | sourceTree = "";
428 | };
429 | /* End PBXVariantGroup section */
430 |
431 | /* Begin XCBuildConfiguration section */
432 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
433 | isa = XCBuildConfiguration;
434 | buildSettings = {
435 | ALWAYS_SEARCH_USER_PATHS = NO;
436 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
437 | CLANG_ANALYZER_NONNULL = YES;
438 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
439 | CLANG_CXX_LIBRARY = "libc++";
440 | CLANG_ENABLE_MODULES = YES;
441 | CLANG_ENABLE_OBJC_ARC = YES;
442 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
443 | CLANG_WARN_BOOL_CONVERSION = YES;
444 | CLANG_WARN_COMMA = YES;
445 | CLANG_WARN_CONSTANT_CONVERSION = YES;
446 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
447 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
448 | CLANG_WARN_EMPTY_BODY = YES;
449 | CLANG_WARN_ENUM_CONVERSION = YES;
450 | CLANG_WARN_INFINITE_RECURSION = YES;
451 | CLANG_WARN_INT_CONVERSION = YES;
452 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
453 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
454 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
455 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
456 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
457 | CLANG_WARN_STRICT_PROTOTYPES = YES;
458 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
459 | CLANG_WARN_UNREACHABLE_CODE = YES;
460 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
461 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
462 | COPY_PHASE_STRIP = NO;
463 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
464 | ENABLE_NS_ASSERTIONS = NO;
465 | ENABLE_STRICT_OBJC_MSGSEND = YES;
466 | ENABLE_USER_SCRIPT_SANDBOXING = NO;
467 | GCC_C_LANGUAGE_STANDARD = gnu99;
468 | GCC_NO_COMMON_BLOCKS = YES;
469 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
470 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
471 | GCC_WARN_UNDECLARED_SELECTOR = YES;
472 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
473 | GCC_WARN_UNUSED_FUNCTION = YES;
474 | GCC_WARN_UNUSED_VARIABLE = YES;
475 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
476 | MTL_ENABLE_DEBUG_INFO = NO;
477 | SDKROOT = iphoneos;
478 | SUPPORTED_PLATFORMS = iphoneos;
479 | TARGETED_DEVICE_FAMILY = "1,2";
480 | VALIDATE_PRODUCT = YES;
481 | };
482 | name = Profile;
483 | };
484 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
485 | isa = XCBuildConfiguration;
486 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
487 | buildSettings = {
488 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
489 | CLANG_ENABLE_MODULES = YES;
490 | CODE_SIGN_IDENTITY = "Apple Development";
491 | CODE_SIGN_STYLE = Automatic;
492 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
493 | DEVELOPMENT_TEAM = Q6ZHR7WWAY;
494 | ENABLE_BITCODE = NO;
495 | INFOPLIST_FILE = Runner/Info.plist;
496 | INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
497 | LD_RUNPATH_SEARCH_PATHS = (
498 | "$(inherited)",
499 | "@executable_path/Frameworks",
500 | );
501 | MARKETING_VERSION = 1.0.5;
502 | PRODUCT_BUNDLE_IDENTIFIER = com.bagussubagja.flutterlivenessdetection;
503 | PRODUCT_NAME = "$(TARGET_NAME)";
504 | PROVISIONING_PROFILE_SPECIFIER = "";
505 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
506 | SWIFT_VERSION = 5.0;
507 | VERSIONING_SYSTEM = "apple-generic";
508 | };
509 | name = Profile;
510 | };
511 | 331C8088294A63A400263BE5 /* Debug */ = {
512 | isa = XCBuildConfiguration;
513 | baseConfigurationReference = 506D8CDC24298CFD235697DF /* Pods-RunnerTests.debug.xcconfig */;
514 | buildSettings = {
515 | BUNDLE_LOADER = "$(TEST_HOST)";
516 | "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
517 | CODE_SIGN_STYLE = Automatic;
518 | CURRENT_PROJECT_VERSION = 1;
519 | DEVELOPMENT_TEAM = Q6ZHR7WWAY;
520 | GENERATE_INFOPLIST_FILE = YES;
521 | MARKETING_VERSION = 1.0;
522 | PRODUCT_BUNDLE_IDENTIFIER = com.bagussubagja.flutterlivenessdetection;
523 | PRODUCT_NAME = "$(TARGET_NAME)";
524 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
525 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
526 | SWIFT_VERSION = 5.0;
527 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
528 | };
529 | name = Debug;
530 | };
531 | 331C8089294A63A400263BE5 /* Release */ = {
532 | isa = XCBuildConfiguration;
533 | baseConfigurationReference = 003BA38B6755473DEB6CABA8 /* Pods-RunnerTests.release.xcconfig */;
534 | buildSettings = {
535 | BUNDLE_LOADER = "$(TEST_HOST)";
536 | "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
537 | CODE_SIGN_STYLE = Automatic;
538 | CURRENT_PROJECT_VERSION = 1;
539 | DEVELOPMENT_TEAM = Q6ZHR7WWAY;
540 | GENERATE_INFOPLIST_FILE = YES;
541 | MARKETING_VERSION = 1.0;
542 | PRODUCT_BUNDLE_IDENTIFIER = com.bagussubagja.flutterlivenessdetection;
543 | PRODUCT_NAME = "$(TARGET_NAME)";
544 | SWIFT_VERSION = 5.0;
545 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
546 | };
547 | name = Release;
548 | };
549 | 331C808A294A63A400263BE5 /* Profile */ = {
550 | isa = XCBuildConfiguration;
551 | baseConfigurationReference = EBF102D6C8CA46E223A517A4 /* Pods-RunnerTests.profile.xcconfig */;
552 | buildSettings = {
553 | BUNDLE_LOADER = "$(TEST_HOST)";
554 | "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
555 | CODE_SIGN_STYLE = Automatic;
556 | CURRENT_PROJECT_VERSION = 1;
557 | DEVELOPMENT_TEAM = Q6ZHR7WWAY;
558 | GENERATE_INFOPLIST_FILE = YES;
559 | MARKETING_VERSION = 1.0;
560 | PRODUCT_BUNDLE_IDENTIFIER = com.bagussubagja.flutterlivenessdetection;
561 | PRODUCT_NAME = "$(TARGET_NAME)";
562 | SWIFT_VERSION = 5.0;
563 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
564 | };
565 | name = Profile;
566 | };
567 | 97C147031CF9000F007C117D /* Debug */ = {
568 | isa = XCBuildConfiguration;
569 | buildSettings = {
570 | ALWAYS_SEARCH_USER_PATHS = NO;
571 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
572 | CLANG_ANALYZER_NONNULL = YES;
573 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
574 | CLANG_CXX_LIBRARY = "libc++";
575 | CLANG_ENABLE_MODULES = YES;
576 | CLANG_ENABLE_OBJC_ARC = YES;
577 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
578 | CLANG_WARN_BOOL_CONVERSION = YES;
579 | CLANG_WARN_COMMA = YES;
580 | CLANG_WARN_CONSTANT_CONVERSION = YES;
581 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
582 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
583 | CLANG_WARN_EMPTY_BODY = YES;
584 | CLANG_WARN_ENUM_CONVERSION = YES;
585 | CLANG_WARN_INFINITE_RECURSION = YES;
586 | CLANG_WARN_INT_CONVERSION = YES;
587 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
588 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
589 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
590 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
591 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
592 | CLANG_WARN_STRICT_PROTOTYPES = YES;
593 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
594 | CLANG_WARN_UNREACHABLE_CODE = YES;
595 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
596 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
597 | COPY_PHASE_STRIP = NO;
598 | DEBUG_INFORMATION_FORMAT = dwarf;
599 | ENABLE_STRICT_OBJC_MSGSEND = YES;
600 | ENABLE_TESTABILITY = YES;
601 | ENABLE_USER_SCRIPT_SANDBOXING = NO;
602 | GCC_C_LANGUAGE_STANDARD = gnu99;
603 | GCC_DYNAMIC_NO_PIC = NO;
604 | GCC_NO_COMMON_BLOCKS = YES;
605 | GCC_OPTIMIZATION_LEVEL = 0;
606 | GCC_PREPROCESSOR_DEFINITIONS = (
607 | "DEBUG=1",
608 | "$(inherited)",
609 | );
610 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
611 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
612 | GCC_WARN_UNDECLARED_SELECTOR = YES;
613 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
614 | GCC_WARN_UNUSED_FUNCTION = YES;
615 | GCC_WARN_UNUSED_VARIABLE = YES;
616 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
617 | MTL_ENABLE_DEBUG_INFO = YES;
618 | ONLY_ACTIVE_ARCH = YES;
619 | SDKROOT = iphoneos;
620 | TARGETED_DEVICE_FAMILY = "1,2";
621 | };
622 | name = Debug;
623 | };
624 | 97C147041CF9000F007C117D /* Release */ = {
625 | isa = XCBuildConfiguration;
626 | buildSettings = {
627 | ALWAYS_SEARCH_USER_PATHS = NO;
628 | ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
629 | CLANG_ANALYZER_NONNULL = YES;
630 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
631 | CLANG_CXX_LIBRARY = "libc++";
632 | CLANG_ENABLE_MODULES = YES;
633 | CLANG_ENABLE_OBJC_ARC = YES;
634 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
635 | CLANG_WARN_BOOL_CONVERSION = YES;
636 | CLANG_WARN_COMMA = YES;
637 | CLANG_WARN_CONSTANT_CONVERSION = YES;
638 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
639 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
640 | CLANG_WARN_EMPTY_BODY = YES;
641 | CLANG_WARN_ENUM_CONVERSION = YES;
642 | CLANG_WARN_INFINITE_RECURSION = YES;
643 | CLANG_WARN_INT_CONVERSION = YES;
644 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
645 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
646 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
647 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
648 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
649 | CLANG_WARN_STRICT_PROTOTYPES = YES;
650 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
651 | CLANG_WARN_UNREACHABLE_CODE = YES;
652 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
653 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
654 | COPY_PHASE_STRIP = NO;
655 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
656 | ENABLE_NS_ASSERTIONS = NO;
657 | ENABLE_STRICT_OBJC_MSGSEND = YES;
658 | ENABLE_USER_SCRIPT_SANDBOXING = NO;
659 | GCC_C_LANGUAGE_STANDARD = gnu99;
660 | GCC_NO_COMMON_BLOCKS = YES;
661 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
662 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
663 | GCC_WARN_UNDECLARED_SELECTOR = YES;
664 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
665 | GCC_WARN_UNUSED_FUNCTION = YES;
666 | GCC_WARN_UNUSED_VARIABLE = YES;
667 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
668 | MTL_ENABLE_DEBUG_INFO = NO;
669 | SDKROOT = iphoneos;
670 | SUPPORTED_PLATFORMS = iphoneos;
671 | SWIFT_COMPILATION_MODE = wholemodule;
672 | SWIFT_OPTIMIZATION_LEVEL = "-O";
673 | TARGETED_DEVICE_FAMILY = "1,2";
674 | VALIDATE_PRODUCT = YES;
675 | };
676 | name = Release;
677 | };
678 | 97C147061CF9000F007C117D /* Debug */ = {
679 | isa = XCBuildConfiguration;
680 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
681 | buildSettings = {
682 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
683 | CLANG_ENABLE_MODULES = YES;
684 | CODE_SIGN_IDENTITY = "Apple Development";
685 | CODE_SIGN_STYLE = Automatic;
686 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
687 | DEVELOPMENT_TEAM = Q6ZHR7WWAY;
688 | ENABLE_BITCODE = NO;
689 | INFOPLIST_FILE = Runner/Info.plist;
690 | INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
691 | LD_RUNPATH_SEARCH_PATHS = (
692 | "$(inherited)",
693 | "@executable_path/Frameworks",
694 | );
695 | MARKETING_VERSION = 1.0.5;
696 | PRODUCT_BUNDLE_IDENTIFIER = com.bagussubagja.flutterlivenessdetection;
697 | PRODUCT_NAME = "$(TARGET_NAME)";
698 | PROVISIONING_PROFILE_SPECIFIER = "";
699 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
700 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
701 | SWIFT_VERSION = 5.0;
702 | VERSIONING_SYSTEM = "apple-generic";
703 | };
704 | name = Debug;
705 | };
706 | 97C147071CF9000F007C117D /* Release */ = {
707 | isa = XCBuildConfiguration;
708 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
709 | buildSettings = {
710 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
711 | CLANG_ENABLE_MODULES = YES;
712 | CODE_SIGN_IDENTITY = "Apple Development";
713 | CODE_SIGN_STYLE = Automatic;
714 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
715 | DEVELOPMENT_TEAM = Q6ZHR7WWAY;
716 | ENABLE_BITCODE = NO;
717 | INFOPLIST_FILE = Runner/Info.plist;
718 | INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
719 | LD_RUNPATH_SEARCH_PATHS = (
720 | "$(inherited)",
721 | "@executable_path/Frameworks",
722 | );
723 | MARKETING_VERSION = 1.0.5;
724 | PRODUCT_BUNDLE_IDENTIFIER = com.bagussubagja.flutterlivenessdetection;
725 | PRODUCT_NAME = "$(TARGET_NAME)";
726 | PROVISIONING_PROFILE_SPECIFIER = "";
727 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
728 | SWIFT_VERSION = 5.0;
729 | VERSIONING_SYSTEM = "apple-generic";
730 | };
731 | name = Release;
732 | };
733 | /* End XCBuildConfiguration section */
734 |
735 | /* Begin XCConfigurationList section */
736 | 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
737 | isa = XCConfigurationList;
738 | buildConfigurations = (
739 | 331C8088294A63A400263BE5 /* Debug */,
740 | 331C8089294A63A400263BE5 /* Release */,
741 | 331C808A294A63A400263BE5 /* Profile */,
742 | );
743 | defaultConfigurationIsVisible = 0;
744 | defaultConfigurationName = Release;
745 | };
746 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
747 | isa = XCConfigurationList;
748 | buildConfigurations = (
749 | 97C147031CF9000F007C117D /* Debug */,
750 | 97C147041CF9000F007C117D /* Release */,
751 | 249021D3217E4FDB00AE95B9 /* Profile */,
752 | );
753 | defaultConfigurationIsVisible = 0;
754 | defaultConfigurationName = Release;
755 | };
756 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
757 | isa = XCConfigurationList;
758 | buildConfigurations = (
759 | 97C147061CF9000F007C117D /* Debug */,
760 | 97C147071CF9000F007C117D /* Release */,
761 | 249021D4217E4FDB00AE95B9 /* Profile */,
762 | );
763 | defaultConfigurationIsVisible = 0;
764 | defaultConfigurationName = Release;
765 | };
766 | /* End XCConfigurationList section */
767 | };
768 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
769 | }
770 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
43 |
49 |
50 |
51 |
52 |
53 |
63 |
65 |
71 |
72 |
73 |
74 |
80 |
82 |
88 |
89 |
90 |
91 |
93 |
94 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/example/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 |
4 | @main
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/example/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/example/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/example/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CADisableMinimumFrameDurationOnPhone
6 |
7 | CFBundleDevelopmentRegion
8 | $(DEVELOPMENT_LANGUAGE)
9 | CFBundleDisplayName
10 | Flutter Liveness Detection Randomized Plugin
11 | CFBundleExecutable
12 | $(EXECUTABLE_NAME)
13 | CFBundleIdentifier
14 | $(PRODUCT_BUNDLE_IDENTIFIER)
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | flutter_liveness_detection_randomized_plugin_example
19 | CFBundlePackageType
20 | APPL
21 | CFBundleShortVersionString
22 | $(FLUTTER_BUILD_NAME)
23 | CFBundleSignature
24 | ????
25 | CFBundleVersion
26 | $(FLUTTER_BUILD_NUMBER)
27 | LSRequiresIPhoneOS
28 |
29 | UIApplicationSupportsIndirectInputEvents
30 |
31 | UILaunchStoryboardName
32 | LaunchScreen
33 | UIMainStoryboardFile
34 | Main
35 | UISupportedInterfaceOrientations
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationLandscapeLeft
39 | UIInterfaceOrientationLandscapeRight
40 |
41 | UISupportedInterfaceOrientations~ipad
42 |
43 | UIInterfaceOrientationPortrait
44 | UIInterfaceOrientationPortraitUpsideDown
45 | UIInterfaceOrientationLandscapeLeft
46 | UIInterfaceOrientationLandscapeRight
47 |
48 | NSCameraUsageDescription
49 | Camera access is required for liveness detection
50 |
51 |
52 |
--------------------------------------------------------------------------------
/example/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/example/ios/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 | import XCTest
4 |
5 |
6 | @testable import flutter_liveness_detection_randomized_plugin
7 |
8 | // This demonstrates a simple unit test of the Swift portion of this plugin's implementation.
9 | //
10 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
11 |
12 | class RunnerTests: XCTestCase {
13 |
14 | func testGetPlatformVersion() {
15 | let plugin = FlutterLivenessDetectionRandomizedPlugin()
16 |
17 | let call = FlutterMethodCall(methodName: "getPlatformVersion", arguments: [])
18 |
19 | let resultExpectation = expectation(description: "result block must be called.")
20 | plugin.handle(call) { result in
21 | XCTAssertEqual(result as! String, "iOS " + UIDevice.current.systemVersion)
22 | resultExpectation.fulfill()
23 | }
24 | waitForExpectations(timeout: 1)
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/example/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_liveness_detection_randomized_plugin/index.dart';
2 |
3 | void main() {
4 | runApp(const MaterialApp(
5 | debugShowCheckedModeBanner: false,
6 | home: HomeView(),
7 | ));
8 | }
9 |
10 | class HomeView extends StatefulWidget {
11 | const HomeView({super.key});
12 |
13 | @override
14 | State createState() => _HomeViewState();
15 | }
16 |
17 | class _HomeViewState extends State {
18 | List capturedImages = [];
19 | String? imgPath;
20 |
21 | @override
22 | void initState() {
23 | super.initState();
24 | }
25 |
26 | @override
27 | Widget build(BuildContext context) {
28 | return Scaffold(
29 | body: Center(
30 | child: ListView(
31 | shrinkWrap: true,
32 | padding: const EdgeInsets.all(12),
33 | children: [
34 | if (imgPath != null) ...[
35 | const Text(
36 | 'Result Liveness Detection',
37 | textAlign: TextAlign.center,
38 | ),
39 | const SizedBox(
40 | height: 12,
41 | ),
42 | Align(
43 | child: SizedBox(
44 | height: 100,
45 | width: 100,
46 | child: ClipRRect(
47 | borderRadius: BorderRadius.circular(20),
48 | child: Image.file(
49 | File(imgPath!),
50 | fit: BoxFit.cover,
51 | ),
52 | ),
53 | ),
54 | ),
55 | const SizedBox(
56 | height: 12,
57 | ),
58 | ],
59 | ElevatedButton.icon(
60 | icon: const Icon(Icons.camera_alt_rounded),
61 | onPressed: () async {
62 | final String? response =
63 | await FlutterLivenessDetectionRandomizedPlugin.instance
64 | .livenessDetection(
65 | context: context,
66 | config: LivenessDetectionConfig(
67 | isEnableMaxBrightness: true, // enable disable max brightness when taking face photo
68 | durationLivenessVerify: 60, // default duration value is 45 second
69 | showDurationUiText: false, // show or hide duration remaining when perfoming liveness detection
70 | startWithInfoScreen: true, // show or hide tutorial screen
71 | useCustomizedLabel: false, // set to true value for enable 'customizedLabel', set to false to use default label
72 | // provide an empty string if you want to pass the liveness challenge
73 | customizedLabel: LivenessDetectionLabelModel(
74 | blink: '', // add empty string to skip/pass this liveness challenge
75 | lookDown: '',
76 | lookLeft: '',
77 | lookRight: '',
78 | lookUp: 'Tengok Atas', // example of customize label name for liveness challenge. it will replace default 'look up'
79 | smile: null, // null value to use default label name
80 | ),
81 | ),
82 | isEnableSnackBar: true, // snackbar to notify either liveness is success or failed
83 | shuffleListWithSmileLast: true, // put 'smile' challenge always at the end of liveness challenge, if `useCustomizedLabel` is true, this automatically set to false
84 | isDarkMode: false, // enable dark/light mode
85 | showCurrentStep: true, // show number current step of liveness
86 | );
87 | if (mounted) {
88 | setState(() {
89 | imgPath = response; // result liveness
90 | });
91 | }
92 | },
93 | label: const Text('Liveness Detection System')),
94 | ],
95 | )),
96 | );
97 | }
98 | }
99 |
--------------------------------------------------------------------------------
/example/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | archive:
5 | dependency: transitive
6 | description:
7 | name: archive
8 | sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d
9 | url: "https://pub.dev"
10 | source: hosted
11 | version: "3.6.1"
12 | async:
13 | dependency: transitive
14 | description:
15 | name: async
16 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
17 | url: "https://pub.dev"
18 | source: hosted
19 | version: "2.11.0"
20 | boolean_selector:
21 | dependency: transitive
22 | description:
23 | name: boolean_selector
24 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
25 | url: "https://pub.dev"
26 | source: hosted
27 | version: "2.1.1"
28 | camera:
29 | dependency: transitive
30 | description:
31 | name: camera
32 | sha256: dfa8fc5a1adaeb95e7a54d86a5bd56f4bb0e035515354c8ac6d262e35cec2ec8
33 | url: "https://pub.dev"
34 | source: hosted
35 | version: "0.10.6"
36 | camera_android:
37 | dependency: transitive
38 | description:
39 | name: camera_android
40 | sha256: "007c57cdcace4751014071e3d42f2eb8a64a519254abed35b714223d81d66234"
41 | url: "https://pub.dev"
42 | source: hosted
43 | version: "0.10.10"
44 | camera_avfoundation:
45 | dependency: transitive
46 | description:
47 | name: camera_avfoundation
48 | sha256: "1eeb9ce7c9a397e312343fd7db337d95f35c3e65ad5a62ff637c8abce5102b98"
49 | url: "https://pub.dev"
50 | source: hosted
51 | version: "0.9.18+8"
52 | camera_platform_interface:
53 | dependency: transitive
54 | description:
55 | name: camera_platform_interface
56 | sha256: "953e7baed3a7c8fae92f7200afeb2be503ff1a17c3b4e4ed7b76f008c2810a31"
57 | url: "https://pub.dev"
58 | source: hosted
59 | version: "2.9.0"
60 | camera_web:
61 | dependency: transitive
62 | description:
63 | name: camera_web
64 | sha256: "595f28c89d1fb62d77c73c633193755b781c6d2e0ebcd8dc25b763b514e6ba8f"
65 | url: "https://pub.dev"
66 | source: hosted
67 | version: "0.3.5"
68 | characters:
69 | dependency: transitive
70 | description:
71 | name: characters
72 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
73 | url: "https://pub.dev"
74 | source: hosted
75 | version: "1.3.0"
76 | clock:
77 | dependency: transitive
78 | description:
79 | name: clock
80 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
81 | url: "https://pub.dev"
82 | source: hosted
83 | version: "1.1.1"
84 | collection:
85 | dependency: transitive
86 | description:
87 | name: collection
88 | sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
89 | url: "https://pub.dev"
90 | source: hosted
91 | version: "1.18.0"
92 | cross_file:
93 | dependency: transitive
94 | description:
95 | name: cross_file
96 | sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670"
97 | url: "https://pub.dev"
98 | source: hosted
99 | version: "0.3.4+2"
100 | crypto:
101 | dependency: transitive
102 | description:
103 | name: crypto
104 | sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855"
105 | url: "https://pub.dev"
106 | source: hosted
107 | version: "3.0.6"
108 | cupertino_icons:
109 | dependency: "direct main"
110 | description:
111 | name: cupertino_icons
112 | sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6
113 | url: "https://pub.dev"
114 | source: hosted
115 | version: "1.0.8"
116 | equatable:
117 | dependency: transitive
118 | description:
119 | name: equatable
120 | sha256: "567c64b3cb4cf82397aac55f4f0cbd3ca20d77c6c03bedbc4ceaddc08904aef7"
121 | url: "https://pub.dev"
122 | source: hosted
123 | version: "2.0.7"
124 | fake_async:
125 | dependency: transitive
126 | description:
127 | name: fake_async
128 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
129 | url: "https://pub.dev"
130 | source: hosted
131 | version: "1.3.1"
132 | file:
133 | dependency: transitive
134 | description:
135 | name: file
136 | sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c"
137 | url: "https://pub.dev"
138 | source: hosted
139 | version: "7.0.0"
140 | flutter:
141 | dependency: "direct main"
142 | description: flutter
143 | source: sdk
144 | version: "0.0.0"
145 | flutter_driver:
146 | dependency: transitive
147 | description: flutter
148 | source: sdk
149 | version: "0.0.0"
150 | flutter_lints:
151 | dependency: "direct dev"
152 | description:
153 | name: flutter_lints
154 | sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c"
155 | url: "https://pub.dev"
156 | source: hosted
157 | version: "4.0.0"
158 | flutter_liveness_detection_randomized_plugin:
159 | dependency: "direct main"
160 | description:
161 | path: ".."
162 | relative: true
163 | source: path
164 | version: "1.0.5"
165 | flutter_plugin_android_lifecycle:
166 | dependency: transitive
167 | description:
168 | name: flutter_plugin_android_lifecycle
169 | sha256: "1c2b787f99bdca1f3718543f81d38aa1b124817dfeb9fb196201bea85b6134bf"
170 | url: "https://pub.dev"
171 | source: hosted
172 | version: "2.0.26"
173 | flutter_test:
174 | dependency: "direct dev"
175 | description: flutter
176 | source: sdk
177 | version: "0.0.0"
178 | flutter_web_plugins:
179 | dependency: transitive
180 | description: flutter
181 | source: sdk
182 | version: "0.0.0"
183 | fuchsia_remote_debug_protocol:
184 | dependency: transitive
185 | description: flutter
186 | source: sdk
187 | version: "0.0.0"
188 | google_mlkit_commons:
189 | dependency: transitive
190 | description:
191 | name: google_mlkit_commons
192 | sha256: "27d626c66a181351a953eba5b6ff1ff123aadb891b4dab085b292118f039d6ac"
193 | url: "https://pub.dev"
194 | source: hosted
195 | version: "0.7.1"
196 | google_mlkit_face_detection:
197 | dependency: transitive
198 | description:
199 | name: google_mlkit_face_detection
200 | sha256: "5b597061cafe4dfa70f66adddadd19381eb88bd3312b074528c62b246392304b"
201 | url: "https://pub.dev"
202 | source: hosted
203 | version: "0.11.0"
204 | image:
205 | dependency: transitive
206 | description:
207 | name: image
208 | sha256: f31d52537dc417fdcde36088fdf11d191026fd5e4fae742491ebd40e5a8bea7d
209 | url: "https://pub.dev"
210 | source: hosted
211 | version: "4.3.0"
212 | integration_test:
213 | dependency: "direct dev"
214 | description: flutter
215 | source: sdk
216 | version: "0.0.0"
217 | leak_tracker:
218 | dependency: transitive
219 | description:
220 | name: leak_tracker
221 | sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
222 | url: "https://pub.dev"
223 | source: hosted
224 | version: "10.0.5"
225 | leak_tracker_flutter_testing:
226 | dependency: transitive
227 | description:
228 | name: leak_tracker_flutter_testing
229 | sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
230 | url: "https://pub.dev"
231 | source: hosted
232 | version: "3.0.5"
233 | leak_tracker_testing:
234 | dependency: transitive
235 | description:
236 | name: leak_tracker_testing
237 | sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
238 | url: "https://pub.dev"
239 | source: hosted
240 | version: "3.0.1"
241 | lints:
242 | dependency: transitive
243 | description:
244 | name: lints
245 | sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235"
246 | url: "https://pub.dev"
247 | source: hosted
248 | version: "4.0.0"
249 | lottie:
250 | dependency: transitive
251 | description:
252 | name: lottie
253 | sha256: a93542cc2d60a7057255405f62252533f8e8956e7e06754955669fd32fb4b216
254 | url: "https://pub.dev"
255 | source: hosted
256 | version: "2.7.0"
257 | matcher:
258 | dependency: transitive
259 | description:
260 | name: matcher
261 | sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
262 | url: "https://pub.dev"
263 | source: hosted
264 | version: "0.12.16+1"
265 | material_color_utilities:
266 | dependency: transitive
267 | description:
268 | name: material_color_utilities
269 | sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
270 | url: "https://pub.dev"
271 | source: hosted
272 | version: "0.11.1"
273 | meta:
274 | dependency: transitive
275 | description:
276 | name: meta
277 | sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
278 | url: "https://pub.dev"
279 | source: hosted
280 | version: "1.15.0"
281 | path:
282 | dependency: transitive
283 | description:
284 | name: path
285 | sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
286 | url: "https://pub.dev"
287 | source: hosted
288 | version: "1.9.0"
289 | petitparser:
290 | dependency: transitive
291 | description:
292 | name: petitparser
293 | sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27
294 | url: "https://pub.dev"
295 | source: hosted
296 | version: "6.0.2"
297 | platform:
298 | dependency: transitive
299 | description:
300 | name: platform
301 | sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"
302 | url: "https://pub.dev"
303 | source: hosted
304 | version: "3.1.5"
305 | plugin_platform_interface:
306 | dependency: transitive
307 | description:
308 | name: plugin_platform_interface
309 | sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
310 | url: "https://pub.dev"
311 | source: hosted
312 | version: "2.1.8"
313 | process:
314 | dependency: transitive
315 | description:
316 | name: process
317 | sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32"
318 | url: "https://pub.dev"
319 | source: hosted
320 | version: "5.0.2"
321 | screen_brightness:
322 | dependency: transitive
323 | description:
324 | name: screen_brightness
325 | sha256: eca7bd9d2c3c688bcad14855361cab7097839400b6b4a56f62b7ae511c709958
326 | url: "https://pub.dev"
327 | source: hosted
328 | version: "2.1.2"
329 | screen_brightness_android:
330 | dependency: transitive
331 | description:
332 | name: screen_brightness_android
333 | sha256: "6ba1b5812f66c64e9e4892be2d36ecd34210f4e0da8bdec6a2ea34f1aa42683e"
334 | url: "https://pub.dev"
335 | source: hosted
336 | version: "2.1.1"
337 | screen_brightness_ios:
338 | dependency: transitive
339 | description:
340 | name: screen_brightness_ios
341 | sha256: bfd9bfd0ac852e7aa170e7e356cc27195b2a75037b72c8c6336cf6fb2115cffb
342 | url: "https://pub.dev"
343 | source: hosted
344 | version: "2.1.1"
345 | screen_brightness_macos:
346 | dependency: transitive
347 | description:
348 | name: screen_brightness_macos
349 | sha256: "4edf330ad21078686d8bfaf89413325fbaf571dcebe1e89254d675a3f288b5b9"
350 | url: "https://pub.dev"
351 | source: hosted
352 | version: "2.1.1"
353 | screen_brightness_platform_interface:
354 | dependency: transitive
355 | description:
356 | name: screen_brightness_platform_interface
357 | sha256: "737bd47b57746bc4291cab1b8a5843ee881af499514881b0247ec77447ee769c"
358 | url: "https://pub.dev"
359 | source: hosted
360 | version: "2.1.0"
361 | screen_brightness_windows:
362 | dependency: transitive
363 | description:
364 | name: screen_brightness_windows
365 | sha256: d3518bf0f5d7a884cee2c14449ae0b36803802866de09f7ef74077874b6b2448
366 | url: "https://pub.dev"
367 | source: hosted
368 | version: "2.1.0"
369 | sky_engine:
370 | dependency: transitive
371 | description: flutter
372 | source: sdk
373 | version: "0.0.99"
374 | source_span:
375 | dependency: transitive
376 | description:
377 | name: source_span
378 | sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
379 | url: "https://pub.dev"
380 | source: hosted
381 | version: "1.10.0"
382 | stack_trace:
383 | dependency: transitive
384 | description:
385 | name: stack_trace
386 | sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
387 | url: "https://pub.dev"
388 | source: hosted
389 | version: "1.11.1"
390 | stream_channel:
391 | dependency: transitive
392 | description:
393 | name: stream_channel
394 | sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
395 | url: "https://pub.dev"
396 | source: hosted
397 | version: "2.1.2"
398 | stream_transform:
399 | dependency: transitive
400 | description:
401 | name: stream_transform
402 | sha256: ad47125e588cfd37a9a7f86c7d6356dde8dfe89d071d293f80ca9e9273a33871
403 | url: "https://pub.dev"
404 | source: hosted
405 | version: "2.1.1"
406 | string_scanner:
407 | dependency: transitive
408 | description:
409 | name: string_scanner
410 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
411 | url: "https://pub.dev"
412 | source: hosted
413 | version: "1.2.0"
414 | sync_http:
415 | dependency: transitive
416 | description:
417 | name: sync_http
418 | sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961"
419 | url: "https://pub.dev"
420 | source: hosted
421 | version: "0.3.1"
422 | term_glyph:
423 | dependency: transitive
424 | description:
425 | name: term_glyph
426 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
427 | url: "https://pub.dev"
428 | source: hosted
429 | version: "1.2.1"
430 | test_api:
431 | dependency: transitive
432 | description:
433 | name: test_api
434 | sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
435 | url: "https://pub.dev"
436 | source: hosted
437 | version: "0.7.2"
438 | typed_data:
439 | dependency: transitive
440 | description:
441 | name: typed_data
442 | sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006
443 | url: "https://pub.dev"
444 | source: hosted
445 | version: "1.4.0"
446 | vector_math:
447 | dependency: transitive
448 | description:
449 | name: vector_math
450 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
451 | url: "https://pub.dev"
452 | source: hosted
453 | version: "2.1.4"
454 | vm_service:
455 | dependency: transitive
456 | description:
457 | name: vm_service
458 | sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
459 | url: "https://pub.dev"
460 | source: hosted
461 | version: "14.2.5"
462 | web:
463 | dependency: transitive
464 | description:
465 | name: web
466 | sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
467 | url: "https://pub.dev"
468 | source: hosted
469 | version: "1.1.1"
470 | webdriver:
471 | dependency: transitive
472 | description:
473 | name: webdriver
474 | sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e"
475 | url: "https://pub.dev"
476 | source: hosted
477 | version: "3.0.3"
478 | xml:
479 | dependency: transitive
480 | description:
481 | name: xml
482 | sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226
483 | url: "https://pub.dev"
484 | source: hosted
485 | version: "6.5.0"
486 | sdks:
487 | dart: ">=3.5.3 <4.0.0"
488 | flutter: ">=3.24.0"
489 |
--------------------------------------------------------------------------------
/example/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_liveness_detection_randomized_plugin_example
2 | description: "Demonstrates how to use the flutter_liveness_detection_randomized_plugin plugin."
3 | # The following line prevents the package from being accidentally published to
4 | # pub.dev using `flutter pub publish`. This is preferred for private packages.
5 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
6 |
7 | environment:
8 | sdk: ^3.5.3
9 |
10 | # Dependencies specify other packages that your package needs in order to work.
11 | # To automatically upgrade your package dependencies to the latest versions
12 | # consider running `flutter pub upgrade --major-versions`. Alternatively,
13 | # dependencies can be manually updated by changing the version numbers below to
14 | # the latest version available on pub.dev. To see which dependencies have newer
15 | # versions available, run `flutter pub outdated`.
16 | dependencies:
17 | flutter:
18 | sdk: flutter
19 |
20 | flutter_liveness_detection_randomized_plugin:
21 | # When depending on this package from a real application you should use:
22 | # flutter_liveness_detection_randomized_plugin: ^x.y.z
23 | # See https://dart.dev/tools/pub/dependencies#version-constraints
24 | # The example app is bundled with the plugin so we use a path dependency on
25 | # the parent directory to use the current plugin's version.
26 | path: ../
27 |
28 | # The following adds the Cupertino Icons font to your application.
29 | # Use with the CupertinoIcons class for iOS style icons.
30 | cupertino_icons: ^1.0.8
31 |
32 | dev_dependencies:
33 | integration_test:
34 | sdk: flutter
35 | flutter_test:
36 | sdk: flutter
37 |
38 | # The "flutter_lints" package below contains a set of recommended lints to
39 | # encourage good coding practices. The lint set provided by the package is
40 | # activated in the `analysis_options.yaml` file located at the root of your
41 | # package. See that file for information about deactivating specific lint
42 | # rules and activating additional ones.
43 | flutter_lints: ^4.0.0
44 |
45 | # For information on the generic Dart part of this file, see the
46 | # following page: https://dart.dev/tools/pub/pubspec
47 |
48 | # The following section is specific to Flutter packages.
49 | flutter:
50 |
51 | # The following line ensures that the Material Icons font is
52 | # included with your application, so that you can use the icons in
53 | # the material Icons class.
54 | uses-material-design: true
55 |
56 | # To add assets to your application, add an assets section, like this:
57 | # assets:
58 | # - images/a_dot_burr.jpeg
59 | # - images/a_dot_ham.jpeg
60 |
61 | # An image asset can refer to one or more resolution-specific "variants", see
62 | # https://flutter.dev/to/resolution-aware-images
63 |
64 | # For details regarding adding assets from package dependencies, see
65 | # https://flutter.dev/to/asset-from-package
66 |
67 | # To add custom fonts to your application, add a fonts section here,
68 | # in this "flutter" section. Each entry in this list should have a
69 | # "family" key with the font family name, and a "fonts" key with a
70 | # list giving the asset and other descriptors for the font. For
71 | # example:
72 | # fonts:
73 | # - family: Schyler
74 | # fonts:
75 | # - asset: fonts/Schyler-Regular.ttf
76 | # - asset: fonts/Schyler-Italic.ttf
77 | # style: italic
78 | # - family: Trajan Pro
79 | # fonts:
80 | # - asset: fonts/TrajanPro.ttf
81 | # - asset: fonts/TrajanPro_Bold.ttf
82 | # weight: 700
83 | #
84 | # For details regarding fonts from package dependencies,
85 | # see https://flutter.dev/to/font-from-package
86 |
--------------------------------------------------------------------------------
/example/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility in the flutter_test package. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:flutter_liveness_detection_randomized_plugin_example/main.dart';
12 |
13 | void main() {
14 | testWidgets('Verify Platform version', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(const HomeView());
17 |
18 | // Verify that platform version is retrieved.
19 | expect(
20 | find.byWidgetPredicate(
21 | (Widget widget) => widget is Text &&
22 | widget.data!.startsWith('Running on:'),
23 | ),
24 | findsOneWidget,
25 | );
26 | });
27 | }
28 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | .vagrant/
3 | .sconsign.dblite
4 | .svn/
5 |
6 | .DS_Store
7 | *.swp
8 | profile
9 |
10 | DerivedData/
11 | build/
12 | GeneratedPluginRegistrant.h
13 | GeneratedPluginRegistrant.m
14 |
15 | .generated/
16 |
17 | *.pbxuser
18 | *.mode1v3
19 | *.mode2v3
20 | *.perspectivev3
21 |
22 | !default.pbxuser
23 | !default.mode1v3
24 | !default.mode2v3
25 | !default.perspectivev3
26 |
27 | xcuserdata
28 |
29 | *.moved-aside
30 |
31 | *.pyc
32 | *sync/
33 | Icon?
34 | .tags*
35 |
36 | /Flutter/Generated.xcconfig
37 | /Flutter/ephemeral/
38 | /Flutter/flutter_export_environment.sh
39 |
--------------------------------------------------------------------------------
/ios/Assets/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bagussubagja/flutter-liveness-detection-randomized-plugin/adddb10f2143a7eb1e12a31db15d8848b29ba39a/ios/Assets/.gitkeep
--------------------------------------------------------------------------------
/ios/Classes/FlutterLivenessDetectionRandomizedPlugin.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 |
4 | public class FlutterLivenessDetectionRandomizedPlugin: NSObject, FlutterPlugin {
5 | public static func register(with registrar: FlutterPluginRegistrar) {
6 | let channel = FlutterMethodChannel(name: "flutter_liveness_detection_randomized_plugin", binaryMessenger: registrar.messenger())
7 | let instance = FlutterLivenessDetectionRandomizedPlugin()
8 | registrar.addMethodCallDelegate(instance, channel: channel)
9 | }
10 |
11 | public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
12 | switch call.method {
13 | case "getPlatformVersion":
14 | result("iOS " + UIDevice.current.systemVersion)
15 | default:
16 | result(FlutterMethodNotImplemented)
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/ios/Resources/PrivacyInfo.xcprivacy:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | NSPrivacyTrackingDomains
6 |
7 | NSPrivacyAccessedAPITypes
8 |
9 | NSPrivacyCollectedDataTypes
10 |
11 | NSPrivacyTracking
12 |
13 | NSCameraUsageDescription
14 | Camera access is required for liveness detection
15 |
16 |
17 |
--------------------------------------------------------------------------------
/ios/flutter_liveness_detection_randomized_plugin.podspec:
--------------------------------------------------------------------------------
1 | #
2 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
3 | # Run `pod lib lint flutter_liveness_detection_randomized_plugin.podspec` to validate before publishing.
4 | #
5 | Pod::Spec.new do |s|
6 | s.name = 'flutter_liveness_detection_randomized_plugin'
7 | s.version = '0.0.1'
8 | s.summary = 'A Flutter plugin for liveness detection with randomized challenge response method'
9 | s.description = <<-DESC
10 | A Flutter plugin for liveness detection with randomized challenge response method
11 | DESC
12 | s.homepage = 'http://example.com'
13 | s.license = { :file => '../LICENSE' }
14 | s.author = { 'Your Company' => 'email@example.com' }
15 | s.source = { :path => '.' }
16 | s.source_files = 'Classes/**/*'
17 | s.dependency 'Flutter'
18 | s.platform = :ios, '12.0'
19 |
20 | # Flutter.framework does not contain a i386 slice.
21 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
22 | s.swift_version = '5.0'
23 |
24 | # If your plugin requires a privacy manifest, for example if it uses any
25 | # required reason APIs, update the PrivacyInfo.xcprivacy file to describe your
26 | # plugin's privacy impact, and then uncomment this line. For more information,
27 | # see https://developer.apple.com/documentation/bundleresources/privacy_manifest_files
28 | # s.resource_bundles = {'flutter_liveness_detection_randomized_plugin_privacy' => ['Resources/PrivacyInfo.xcprivacy']}
29 | end
30 |
--------------------------------------------------------------------------------
/lib/flutter_liveness_detection_randomized_plugin.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_liveness_detection_randomized_plugin/index.dart';
2 |
3 | class FlutterLivenessDetectionRandomizedPlugin {
4 | FlutterLivenessDetectionRandomizedPlugin._privateConstructor();
5 | static final FlutterLivenessDetectionRandomizedPlugin instance =
6 | FlutterLivenessDetectionRandomizedPlugin._privateConstructor();
7 | final List _thresholds = [];
8 |
9 | List get thresholdConfig {
10 | return _thresholds;
11 | }
12 |
13 | Future livenessDetection({
14 | required BuildContext context,
15 | required LivenessDetectionConfig config,
16 | required bool isEnableSnackBar,
17 | required bool shuffleListWithSmileLast,
18 | required bool showCurrentStep,
19 | required bool isDarkMode,
20 | }) async {
21 | final String? capturedFacePath = await Navigator.of(context).push(
22 | MaterialPageRoute(
23 | builder: (context) => LivenessDetectionView(
24 | config: config,
25 | isEnableSnackBar: isEnableSnackBar,
26 | shuffleListWithSmileLast: shuffleListWithSmileLast,
27 | showCurrentStep: showCurrentStep,
28 | isDarkMode: isDarkMode,
29 | ),
30 | ),
31 | );
32 | return capturedFacePath;
33 | }
34 |
35 | Future getPlatformVersion() {
36 | return FlutterLivenessDetectionRandomizedPluginPlatform.instance
37 | .getPlatformVersion();
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/lib/flutter_liveness_detection_randomized_plugin_method_channel.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/foundation.dart';
2 | import 'package:flutter/services.dart';
3 |
4 | import 'flutter_liveness_detection_randomized_plugin_platform_interface.dart';
5 |
6 | /// An implementation of [FlutterLivenessDetectionRandomizedPluginPlatform] that uses method channels.
7 | class MethodChannelFlutterLivenessDetectionRandomizedPlugin extends FlutterLivenessDetectionRandomizedPluginPlatform {
8 | /// The method channel used to interact with the native platform.
9 | @visibleForTesting
10 | final methodChannel = const MethodChannel('flutter_liveness_detection_randomized_plugin');
11 |
12 | @override
13 | Future getPlatformVersion() async {
14 | final version = await methodChannel.invokeMethod('getPlatformVersion');
15 | return version;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/lib/flutter_liveness_detection_randomized_plugin_platform_interface.dart:
--------------------------------------------------------------------------------
1 | import 'package:plugin_platform_interface/plugin_platform_interface.dart';
2 |
3 | import 'flutter_liveness_detection_randomized_plugin_method_channel.dart';
4 |
5 | abstract class FlutterLivenessDetectionRandomizedPluginPlatform extends PlatformInterface {
6 | /// Constructs a FlutterLivenessDetectionRandomizedPluginPlatform.
7 | FlutterLivenessDetectionRandomizedPluginPlatform() : super(token: _token);
8 |
9 | static final Object _token = Object();
10 |
11 | static FlutterLivenessDetectionRandomizedPluginPlatform _instance = MethodChannelFlutterLivenessDetectionRandomizedPlugin();
12 |
13 | /// The default instance of [FlutterLivenessDetectionRandomizedPluginPlatform] to use.
14 | ///
15 | /// Defaults to [MethodChannelFlutterLivenessDetectionRandomizedPlugin].
16 | static FlutterLivenessDetectionRandomizedPluginPlatform get instance => _instance;
17 |
18 | /// Platform-specific implementations should set this with their own
19 | /// platform-specific class that extends [FlutterLivenessDetectionRandomizedPluginPlatform] when
20 | /// they register themselves.
21 | static set instance(FlutterLivenessDetectionRandomizedPluginPlatform instance) {
22 | PlatformInterface.verifyToken(instance, _token);
23 | _instance = instance;
24 | }
25 |
26 | Future getPlatformVersion() {
27 | throw UnimplementedError('platformVersion() has not been implemented.');
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/lib/index.dart:
--------------------------------------------------------------------------------
1 | export 'dart:convert';
2 | export 'dart:io';
3 | export 'dart:async';
4 | export 'dart:math';
5 | export 'package:camera/camera.dart';
6 | export 'package:equatable/equatable.dart';
7 | export 'package:flutter/material.dart';
8 | export 'package:google_mlkit_face_detection/google_mlkit_face_detection.dart';
9 | export 'package:flutter_liveness_detection_randomized_plugin/src/models/liveness_detection_step_item.dart';
10 | export 'package:flutter_liveness_detection_randomized_plugin/src/models/liveness_detection_config.dart';
11 | export 'package:flutter_liveness_detection_randomized_plugin/src/models/liveness_detection_threshold.dart';
12 |
13 | export 'src/core/index.dart';
14 | export './flutter_liveness_detection_randomized_plugin.dart';
15 | export './flutter_liveness_detection_randomized_plugin_method_channel.dart';
16 | export './flutter_liveness_detection_randomized_plugin_platform_interface.dart';
--------------------------------------------------------------------------------
/lib/src/core/constants/index.dart:
--------------------------------------------------------------------------------
1 | export 'liveness_detection_step_constant.dart';
--------------------------------------------------------------------------------
/lib/src/core/constants/liveness_detection_step_constant.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_liveness_detection_randomized_plugin/index.dart';
2 |
3 | List stepLiveness = [
4 | LivenessDetectionStepItem(
5 | step: LivenessDetectionStep.blink,
6 | title: "Blink 2-3 Times",
7 | ),
8 | LivenessDetectionStepItem(
9 | step: LivenessDetectionStep.lookUp,
10 | title: "Look UP",
11 | ),
12 | LivenessDetectionStepItem(
13 | step: LivenessDetectionStep.lookDown,
14 | title: "Look DOWN",
15 | ),
16 | LivenessDetectionStepItem(
17 | step: LivenessDetectionStep.lookRight,
18 | title: "Look RIGHT",
19 | ),
20 | LivenessDetectionStepItem(
21 | step: LivenessDetectionStep.lookLeft,
22 | title: "Look LEFT",
23 | ),
24 | LivenessDetectionStepItem(
25 | step: LivenessDetectionStep.smile,
26 | title: "Smile",
27 | ),
28 | ];
29 |
--------------------------------------------------------------------------------
/lib/src/core/enums/index.dart:
--------------------------------------------------------------------------------
1 | export 'liveness_detection_step.dart';
--------------------------------------------------------------------------------
/lib/src/core/enums/liveness_detection_step.dart:
--------------------------------------------------------------------------------
1 | enum LivenessDetectionStep {
2 | blink,
3 | lookRight,
4 | lookLeft,
5 | lookUp,
6 | lookDown,
7 | smile
8 | }
--------------------------------------------------------------------------------
/lib/src/core/index.dart:
--------------------------------------------------------------------------------
1 | export '../presentation/views/index.dart';
2 | export '../models/index.dart';
3 | export 'enums/index.dart';
4 | export 'utils/index.dart';
5 |
--------------------------------------------------------------------------------
/lib/src/core/utils/index.dart:
--------------------------------------------------------------------------------
1 | export 'machine_learning_kit_helper.dart';
--------------------------------------------------------------------------------
/lib/src/core/utils/machine_learning_kit_helper.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_liveness_detection_randomized_plugin/index.dart';
2 |
3 | class MachineLearningKitHelper {
4 | MachineLearningKitHelper._privateConstructor();
5 | static final MachineLearningKitHelper instance =
6 | MachineLearningKitHelper._privateConstructor();
7 |
8 | final FaceDetector faceDetector = FaceDetector(
9 | options: FaceDetectorOptions(
10 | enableContours: true,
11 | enableClassification: true,
12 | enableLandmarks: true,
13 | enableTracking: true,
14 | performanceMode: FaceDetectorMode.accurate,
15 | ),
16 | );
17 |
18 | Future> processInputImage(InputImage imgFile) async {
19 | const maxAttempts = 3;
20 |
21 | for (var attempt = 0; attempt < maxAttempts; attempt++) {
22 | final List faces = await faceDetector.processImage(imgFile);
23 | if (faces.isNotEmpty) return faces;
24 | }
25 |
26 | return [];
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/lib/src/models/index.dart:
--------------------------------------------------------------------------------
1 | export 'liveness_detection_label_model.dart';
2 | export 'liveness_detection_step_item.dart';
--------------------------------------------------------------------------------
/lib/src/models/liveness_detection_config.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_liveness_detection_randomized_plugin/src/models/liveness_detection_label_model.dart';
2 |
3 | class LivenessDetectionConfig {
4 | final bool startWithInfoScreen;
5 | final int? durationLivenessVerify;
6 | final bool showDurationUiText;
7 | final bool useCustomizedLabel;
8 | final LivenessDetectionLabelModel? customizedLabel;
9 | final bool isEnableMaxBrightness;
10 |
11 | LivenessDetectionConfig({
12 | this.startWithInfoScreen = false,
13 | this.durationLivenessVerify = 45,
14 | this.showDurationUiText = false,
15 | this.useCustomizedLabel = false,
16 | this.customizedLabel,
17 | this.isEnableMaxBrightness = true
18 | });
19 | }
20 |
--------------------------------------------------------------------------------
/lib/src/models/liveness_detection_label_model.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | LivenessDetectionLabelModel livenessDetectionLabelModelFromJson(String str) => LivenessDetectionLabelModel.fromJson(json.decode(str));
4 |
5 | String livenessDetectionLabelModelToJson(LivenessDetectionLabelModel data) => json.encode(data.toJson());
6 |
7 | class LivenessDetectionLabelModel {
8 | String? smile;
9 | String? lookUp;
10 | String? lookDown;
11 | String? lookLeft;
12 | String? lookRight;
13 | String? blink;
14 |
15 | LivenessDetectionLabelModel({
16 | this.smile,
17 | this.lookUp,
18 | this.lookDown,
19 | this.lookLeft,
20 | this.lookRight,
21 | this.blink,
22 | });
23 |
24 | factory LivenessDetectionLabelModel.fromJson(Map json) => LivenessDetectionLabelModel(
25 | smile: json["smile"],
26 | lookUp: json["lookUp"],
27 | lookDown: json["lookDown"],
28 | lookLeft: json["lookLeft"],
29 | lookRight: json["lookRight"],
30 | blink: json["blink"],
31 | );
32 |
33 | Map toJson() => {
34 | "smile": smile,
35 | "lookUp": lookUp,
36 | "lookDown": lookDown,
37 | "lookLeft": lookLeft,
38 | "lookRight": lookRight,
39 | "blink": blink,
40 | };
41 | }
42 |
--------------------------------------------------------------------------------
/lib/src/models/liveness_detection_step_item.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_liveness_detection_randomized_plugin/index.dart';
2 |
3 | class LivenessDetectionStepItem {
4 | final LivenessDetectionStep step;
5 | final String title;
6 | final double? thresholdToCheck;
7 |
8 | LivenessDetectionStepItem({
9 | required this.step,
10 | required this.title,
11 | this.thresholdToCheck,
12 | });
13 |
14 | LivenessDetectionStepItem copyWith({
15 | LivenessDetectionStep? step,
16 | String? title,
17 | double? thresholdToCheck,
18 | }) {
19 | return LivenessDetectionStepItem(
20 | step: step ?? this.step,
21 | title: title ?? this.title,
22 | thresholdToCheck: thresholdToCheck ?? this.thresholdToCheck,
23 | );
24 | }
25 | Map toMap() {
26 | final result = {};
27 |
28 | result.addAll({'step': step.index});
29 | result.addAll({'title': title});
30 | if (thresholdToCheck != null) {
31 | result.addAll({'thresholdToCheck': thresholdToCheck});
32 | }
33 |
34 | return result;
35 | }
36 |
37 | factory LivenessDetectionStepItem.fromMap(Map map) {
38 | return LivenessDetectionStepItem(
39 | step: LivenessDetectionStep.values[map['step'] ?? 0],
40 | title: map['title'] ?? '',
41 | thresholdToCheck: map['thresholdToCheck']?.toDouble(),
42 | );
43 | }
44 |
45 | String toJson() => json.encode(toMap());
46 |
47 | factory LivenessDetectionStepItem.fromJson(String source) =>
48 | LivenessDetectionStepItem.fromMap(json.decode(source));
49 |
50 | @override
51 | String toString() {
52 | return 'Liveness Detection (step: $step, title: $title, thresholdToCheck: $thresholdToCheck)';
53 | }
54 |
55 | @override
56 | bool operator ==(Object other) {
57 | if (identical(this, other)) return true;
58 |
59 | return other is LivenessDetectionStepItem &&
60 | other.step == step &&
61 | other.title == title &&
62 | other.thresholdToCheck == thresholdToCheck;
63 | }
64 |
65 | @override
66 | int get hashCode {
67 | return step.hashCode ^
68 | title.hashCode ^
69 | thresholdToCheck.hashCode;
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/lib/src/models/liveness_detection_threshold.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_liveness_detection_randomized_plugin/index.dart';
2 |
3 | abstract class LivenessDetectionThreshold extends Equatable {
4 | const LivenessDetectionThreshold();
5 | LivenessDetectionThreshold fromDict(Map map);
6 | Map toMap();
7 | @override
8 | List