Commit 1c263125 authored by Việt Anh's avatar Việt Anh

init

parents
Pipeline #7852 failed with stages
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/
# IntelliJ related
*.iml
*.ipr
*.iws
.idea/
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/
# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/
# Symbolication related
app.*.symbols
# Obfuscation related
app.*.map.json
# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled.
version:
revision: f72efea43c3013323d1b95cff571f3c1caa37583
channel: stable
project_type: app
# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: f72efea43c3013323d1b95cff571f3c1caa37583
base_revision: f72efea43c3013323d1b95cff571f3c1caa37583
- platform: android
create_revision: f72efea43c3013323d1b95cff571f3c1caa37583
base_revision: f72efea43c3013323d1b95cff571f3c1caa37583
- platform: ios
create_revision: f72efea43c3013323d1b95cff571f3c1caa37583
base_revision: f72efea43c3013323d1b95cff571f3c1caa37583
# User provided section
# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
Hello everyone - which visited this place.
This is vnpt's ekyc project being used as the third integrated library for the TCCTXH's app.
Therefore, I respectfully request all friends and brothers who visit this place to please do not delete it.
Sincerely and thank you very much!
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at
# https://dart-lang.github.io/linter/lints/index.html.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
**/*.keystore
**/*.jks
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.vnpt.ic.sample.integrate.ekyc.sampleintegrateekyc"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
aaptOptions {
noCompress "bic"
}
}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
// setup configuration for sdk eKYC
implementation project(':ekyc')
implementation 'androidx.multidex:multidex:2.0.0'
implementation 'androidx.exifinterface:exifinterface:1.0.0'
implementation 'com.google.code.gson:gson:2.8.2'
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
implementation "androidx.constraintlayout:constraintlayout:2.0.4"
implementation 'androidx.appcompat:appcompat:1.6.1'
}
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vnpt.ic.sample.integrate.ekyc.sampleintegrateekyc">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vnpt.ic.sample.integrate.ekyc.sampleintegrateekyc">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE" />
<!-- android:maxSdkVersion="32" /> -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<application
android:label="sampleintegrateekyc"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
</manifest>
package com.vnpt.ic.sample.integrate.ekyc.sampleintegrateekyc
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONObject
import org.json.JSONTokener
object JsonUtil {
fun prettify(json: String): String? {
return try {
when (detectJsonRoot(json)) {
0 -> JSONObject(json).toString(4)
1 -> JSONArray(json).toString(4)
else -> null
}
} catch (e: JSONException) {
null
}
}
private fun detectJsonRoot(json: String): Int {
return try {
when (JSONTokener(json).nextValue()) {
is JSONObject -> 0
is JSONArray -> 1
else -> 2
}
} catch (e: JSONException) {
2
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vnpt.ic.sample.integrate.ekyc.sampleintegrateekyc">
<!-- The INTERNET permission is required for development. Specifically,
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
buildscript {
ext.kotlin_version = '1.7.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
configurations.maybeCreate("default")
artifacts.add("default", file('ekyc_sdk-release-v3.2.9.aar'))
\ No newline at end of file
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
include ':app'
include ':ekyc'
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
def properties = new Properties()
assert localPropertiesFile.exists()
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
**/dgph
*.mode1v3
*.mode2v3
*.moved-aside
*.pbxuser
*.perspectivev3
**/*sync/
.sconsign.dblite
.tags*
**/.vagrant/
**/DerivedData/
Icon?
**/Pods/
**/.symlinks/
profile
xcuserdata
**/.generated/
Flutter/App.framework
Flutter/Flutter.framework
Flutter/Flutter.podspec
Flutter/Generated.xcconfig
Flutter/ephemeral/
Flutter/app.flx
Flutter/app.zip
Flutter/flutter_assets/
Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*
# Exceptions to above rules.
!default.mode1v3
!default.mode2v3
!default.pbxuser
!default.perspectivev3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>App</string>
<key>CFBundleIdentifier</key>
<string>io.flutter.flutter.app</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>App</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>11.0</string>
</dict>
</plist>
#include "Generated.xcconfig"
#include "Generated.xcconfig"
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Profile"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Runner.xcodeproj">
</FileRef>
</Workspace>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>
This diff is collapsed.
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@3x.png",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@3x.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@3x.png",
"scale" : "3x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@3x.png",
"scale" : "3x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@1x.png",
"scale" : "1x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@1x.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@1x.png",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@2x.png",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "Icon-App-83.5x83.5@2x.png",
"scale" : "2x"
},
{
"size" : "1024x1024",
"idiom" : "ios-marketing",
"filename" : "Icon-App-1024x1024@1x.png",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
{
"images" : [
{
"idiom" : "universal",
"filename" : "LaunchImage.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "LaunchImage@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "LaunchImage@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
# Launch Screen Assets
You can customize the launch screen with your own desired assets by replacing the image files in this directory.
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.
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
<viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
</imageView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
<resources>
<image name="LaunchImage" width="168" height="185"/>
</resources>
</document>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
</dependencies>
<scenes>
<!--Flutter View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AvailableLibraries</key>
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-x86_64-simulator</string>
<key>LibraryPath</key>
<string>ICSdkEKYC.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>ICSdkEKYC.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
//
// ICEKYCSavedData.h
// ICSdkEKYC
//
// Created by Minh Nguyễn on 9/1/20.
// Copyright © 2020 Minh Nguyễn. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface ICEKYCSavedData : NSObject
+ (ICEKYCSavedData *)shared;
@property (nonatomic) NSString *authorization; // bo SD : SDAuthorization => authorization
@property (nonatomic) NSString *tokenId; // bo SD : SDTokenId => tokenId
@property (nonatomic) NSString *tokenKey; // bo SD : SDTokenKey => tokenKey
@property (nonatomic) BOOL isPrintLogRequest; // bo SD : SDTokenKey => tokenKey
- (void) resetOrInitAllData;
// Dữ liệu bóc tách thông tin OCR
@property (nonatomic) NSString *ocrResult; // trả ra ngoài jsonInfo => infoResult (ocrResult)
// Giá trị các ngưỡng cắt ảnh giấy tờ.
@property (nonatomic) NSString *cropedParam; // trả ra ngoài
// Dữ liệu kiểm tra ảnh giấy tờ MẶT TRƯỚC chụp trực tiếp hay không
@property (nonatomic) NSString *livenessCardFrontResult; // trả ra ngoài // jsonCheckLivenessFrontCard livenessCardFrontResult
// Dữ liệu kiểm tra ảnh giấy tờ MẶT SAU chụp trực tiếp hay không
@property (nonatomic) NSString *livenessCardBackResult; // trả ra ngoài // jsonCheckLivenessBackCard livenessCardBackResult
// Dữ liệu việc QUÉT mã QR
@property (nonatomic) NSString *scanQRCodeResult; // trả ra ngoài scanQRCode=>scanQRCodeResult
// Dữ liệu thực hiện SO SÁNH khuôn mặt
@property (nonatomic) NSString *compareFaceResult; // trả ra ngoài // jsonCompareFace =>compareFaceResult
// Dữ liệu kiểm tra ảnh CHÂN DUNG chụp trực tiếp hay không
@property (nonatomic) NSString *livenessFaceResult; // trả ra ngoài //jsonLivenessFace livenessFaceResult
// Dữ liệu XÁC THỰC ảnh CHÂN DUNG và SỐ GIẤY TỜ
@property (nonatomic) NSString *verifyFaceResult; // trả ra ngoài //jsonVerifyFace verifyFaceResult
// Dữ liệu kiểm tra ảnh CHÂN DUNG có bị che mặt hay không
@property (nonatomic) NSString *maskedFaceResult; // trả ra ngoài // jsonCheckMask maskedFaceResult
// Dữ liệu kết quả đăng ký thông tin KHUÔN MẶT
@property (nonatomic) NSString *addFaceResult; // trả ra ngoài //jsonAddFace addFaceResult
// Dữ liệu kết quả đăng ký thông tin THẺ
@property (nonatomic) NSString *addCardIDResult; // trả ra ngoài //jsonAddFace addFaceResult
// Dữ liệu thực hiện TÌM KIẾM khuôn mặt
@property (nonatomic) NSString *searchFaceResult; // trả ra ngoài //jsonSearchFace searchFaceResult
// Dữ liệu đoạn mã khi ứng dụng bật chức năng WaterMark
@property (nonatomic) NSString *tokenWaterMark; // trả ra ngoài
// Dữ liệu để xác định cách giao dịch (yêu cầu) cùng nằm trong cùng một phiên
@property (nonatomic) NSString *clientSessionResult; // trả ra ngoài SDClientSession => clientSessionResult
@property (nonatomic) NSString *versionICEkycSdk; // trả ra ngoài
@property (nonatomic) NSString *networkProblem; // trả ra ngoài
// ảnh mã qr
@property (nonatomic) UIImage *imageQRCode; // trả ra ngoài
@property (nonatomic) NSURL *pathImageQRCode; // trả ra ngoài
@property (nonatomic) UIImage *imageCropedQRCode; // trả ra ngoài
@property (nonatomic) NSURL *pathImageCropedQRCode; // trả ra ngoài
@property (nonatomic) NSString *hashImageQRCode; // trả ra ngoài
// ảnh mặt trước
@property (nonatomic) UIImage *imageFront; // trả ra ngoài
@property (nonatomic) NSURL *pathImageFront; // trả ra ngoài
@property (nonatomic) UIImage *imageCropedFront; // trả ra ngoài
@property (nonatomic) NSURL *pathImageCropedFront; // trả ra ngoài
@property (nonatomic) NSString *hashImageFront; // trả ra ngoài
// ảnh mặt sau
@property (nonatomic) UIImage *imageBack; // trả ra ngoài
@property (nonatomic) NSURL *pathImageBack; // trả ra ngoài
@property (nonatomic) UIImage *imageCropedBack; // trả ra ngoài
@property (nonatomic) NSURL *pathImageCropedBack; // trả ra ngoài
@property (nonatomic) NSString *hashImageBack; // trả ra ngoài
// ảnh mặt thẳng
@property (nonatomic) UIImage *imageFace; // trả ra ngoài
@property (nonatomic) NSURL *pathImageFace; // trả ra ngoài
@property (nonatomic) UIImage *imageCropedFace; // trả ra ngoài
@property (nonatomic) NSURL *pathImageCropedFace; // trả ra ngoài
@property (nonatomic) NSString *hashImageFace; // trả ra ngoài
// ảnh mặt quay trái
// ảnh mặt quay phải
// ảnh xa
@property (nonatomic) UIImage *imageFaceFar; // trả ra ngoài
@property (nonatomic) NSURL *pathImageFaceFar; // trả ra ngoài
@property (nonatomic) UIImage *imageCropedFaceFar; // trả ra ngoài
@property (nonatomic) NSURL *pathImageCropedFaceFar; // trả ra ngoài
@property (nonatomic) NSString *hashImageFar; // trả ra ngoài
// ảnh gần
@property (nonatomic) UIImage *imageFaceNear; // trả ra ngoài
@property (nonatomic) NSURL *pathImageFaceNear; // trả ra ngoài
@property (nonatomic) UIImage *imageCropedFaceNear; // trả ra ngoài
@property (nonatomic) NSURL *pathImageCropedFaceNear; // trả ra ngoài
@property (nonatomic) NSString *hashImageNear; // trả ra ngoài
// dữ liệu thực hiện quét chụp chân dung
@property (nonatomic) NSString *hashLogData; // trả ra ngoài
// record video
@property (nonatomic) NSURL *pathVideoRecordScanQRCode; // trả ra ngoài
@property (nonatomic) NSURL *pathVideoRecordDocument; // trả ra ngoài
@property (nonatomic) NSURL *pathVideoRecordFace; // trả ra ngoài
@end
NS_ASSUME_NONNULL_END
//
// ICEkycBaseViewController.h
// ManmoSearch
//
// Created by Jessy on 7/6/20.
// Copyright © 2020 Manmo Company. All rights reserved.
//
#import <UIKit/UIKit.h>
#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
#define SCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.width)
#define SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height)
@interface ICEkycBaseViewController: UIViewController
@property NSBundle* bundleSDK;
- (NSString *)convertObjectToString:(id) object;
- (CGFloat)sizeScaleIpad:(CGFloat)size;
- (CGFloat)sizeScale:(CGFloat)size;
- (CGFloat)heightScale:(CGFloat)height;
- (CGFloat)fontSizeScale:(NSInteger)size;
- (UIColor *)UIColorFromRGB:(int)rgbValue alpha:(CGFloat)alpha;
- (CGFloat)getLabelHeight:(UILabel*)label width:(CGFloat) width;
- (CGFloat)getStatusBarHeight;
- (CGFloat)getBottomPadding;
- (NSString *)setICEkycLocalizedString:(NSString *)key inputLanguage:(NSString*)inputLanguage;
@end
//
// ICEkycCameraInteractor.h
// ICSdkEKYC
//
// Created by MinhMinh on 08/12/2022.
// Copyright © 2022 iOS Team IC - VNPT IT. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ICEkycCameraProtocols.h"
NS_ASSUME_NONNULL_BEGIN
@interface ICEkycCameraInteractor : NSObject<ICEkycCameraInteractorInputProtocol>
@property (nonatomic, weak, nullable) id<ICEkycCameraInteractorOutputProtocol> output;
@end
NS_ASSUME_NONNULL_END
//
// ICEkycCameraPresenter.h
// ICSdkEKYC
//
// Created by MinhMinh on 08/12/2022.
// Copyright © 2022 iOS Team IC - VNPT IT. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ICEkycCameraProtocols.h"
NS_ASSUME_NONNULL_BEGIN
@interface ICEkycCameraPresenter : NSObject<ICEkycCameraInteractorOutputProtocol, ICEkycCameraPresenterProtocol>
@property (nonatomic, weak, nullable) id<ICEkycCameraViewProtocol> view;
@property (nonatomic) id<ICEkycCameraInteractorInputProtocol> interactor;
@property (nonatomic) id<ICEkycCameraWireframeProtocol> router;
- (instancetype)initWithInterface:(id<ICEkycCameraViewProtocol>)interface
interactor:(id<ICEkycCameraInteractorInputProtocol>)interactor
router:(id<ICEkycCameraWireframeProtocol>)router;
- (void) gotoPopupCloseSDK;
// 1. thực hiện tải ảnh MẶT TRƯỚC (Chụp giấy tờ) lên máy chủ
- (void) callApiUploadFrontImage:(UIImage *)image cropedImage:(UIImage *)cropedImage path:(NSURL *)path title:(NSString *)title description:(NSString *)description;
// 2. thực hiện tải ảnh MẶT SAU (Chụp giấy tờ) lên máy chủ
- (void) callApiUploadBackImage:(UIImage *)image cropedImage:(UIImage *)cropedImage path:(NSURL *)path title:(NSString *)title description:(NSString *)description;
// 3. thực hiện tải ảnh CHÂN DUNG THẲNG (Chụp chân dung 1 hướng hoặc xoay mặt) lên máy chủ
- (void) callApiUploadFaceImage:(UIImage *)image cropedImage:(UIImage *)cropedImage path:(NSURL *)path title:(NSString *)title description:(NSString *)description;
// 4. thực hiện tải ảnh CHÂN DUNG QUAY TRÁI (Chụp chân dung xoay mặt) lên máy chủ
// 5. thực hiện tải ảnh CHÂN DUNG QUAY PHẢI (Chụp chân dung xoay mặt) lên máy chủ
// 6. thực hiện tải ảnh CHÂN DUNG XA (Chụp chân dung Oval) lên máy chủ
- (void) callApiUploadFarFaceImage:(UIImage *)image cropedImage:(UIImage *)cropedImage path:(NSURL *)path title:(NSString *)title description:(NSString *)description;
// 7. thực hiện tải ảnh CHÂN DUNG GẦN (Chụp chân dung Oval) lên máy chủ
- (void) callApiUploadNearFaceImage:(UIImage *)image cropedImage:(UIImage *)cropedImage path:(NSURL *)path title:(NSString *)title description:(NSString *)description;
// 8. thực hiện tải dữ liệu QUÉT 3 CHIỀU (Chụp chân dung Oval) lên máy chủ
- (void) callApiUploadLogData:(NSData *)logData path:(NSURL *)path title:(NSString *)title description:(NSString *)description;
// 9. thực hiện BÓC TÁCH THÔNG TIN GIẤY TỜ MẶT TRƯỚC (Chụp giấy tờ)
- (void) callApiGetInfoFrontCard:(NSString *)front cropParam:(NSString *)cropParam type:(NSString *)type validate:(BOOL)validate;
// 10. thực hiện BÓC TÁCH THÔNG TIN GIẤY TỜ MẶT SAU (Chụp giấy tờ)
- (void) callApiGetInfoBackCard:(NSString *)back cropParam:(NSString *)cropParam type:(NSString *)type validate:(BOOL)validate;
// 11. thực hiện BÓC TÁCH THÔNG TIN GIẤY TỜ MẶT TRƯỚC VÀ MẶT SAU (Chụp giấy tờ)
- (void) callApiGetInformationCard:(NSString *)front back:(NSString *)back cropParam:(NSString *)cropParam type:(NSString *)type validate:(BOOL)validate;
// 12. thực hiện KIỂM TRA GIẤY TỜ MẶT TRƯỚC ĐƯỢC CHỤP TRỰC TIẾP HOẶC KHÔNG
- (void) callApiCheckLivenessFrontCard:(NSString *)card cropParam:(NSString *)cropParam;
// 13. thực hiện KIỂM TRA GIẤY TỜ MẶT SAU ĐƯỢC CHỤP TRỰC TIẾP HOẶC KHÔNG
- (void) callApiCheckLivenessBackCard:(NSString *)card cropParam:(NSString *)cropParam;
// 14. thực hiện SO SÁNH ẢNH CHÂN DUNG ở GIẤY TỜ MẶT TRƯỚC với ẢNH CHÂN DUNG vừa chụp
- (void) callApiCompareImageCard:(NSString *)front face:(NSString *)face;
// 15. thực hiện SO SÁNH ẢNH CHÂN DUNG đầy đủ (có thể lấy từ ảnh thẻ NFC) với ẢNH CHÂN DUNG vừa chụp (compare-general)
- (void) callApiCompareFaceOne:(NSString *)faceOne faceTwo:(NSString *)faceTwo thresLevel:(NSString *)thresLevel;
// 16. thực hiện KIỂM TRA KHUÔN MẶT ĐƯỢC CHỤP TRỰC TIẾP HOẶC KHÔNG
- (void) callApiCheckLivenessFace:(NSString *)face modeLiveness:(ModeCheckLivenessFace)modeLiveness;
// 17. thực hiện KIỂM TRA KHUÔN MẶT ĐƯỢC CHỤP TRỰC TIẾP HOẶC KHÔNG KIỂU 3 CHIỀU
- (void) callApiCheckLiveness3DScanImageNear:(NSString *)imageNear imageFar:(NSString *)imageFar logData:(NSString *)logData modeLiveness:(ModeCheckLivenessFace)modeLiveness;
// 18. thực hiện KIỂM TRA KHUÔN MẶT CÓ BỊ CHE HAY KHÔNG
- (void) callApiCheckMaskFace:(NSString *)face;
// 19. thực hiện ĐĂNG KÝ THÔNG TIN CÁ NHÂN
- (void) callApiAddFaceWithInformation:(NSDictionary *)information;
- (void) callApiAddCardIDWithInformation:(NSDictionary *)information;
// 20. thực hiện XÁC THỰC THÔNG TIN CÁ NHÂN
- (void) callApiVerifyFace:(NSString *)face idCard:(NSString *)idCard type:(NSString *)type unit:(NSString *)unit;
// 21. thực hiện TÌM KIẾM THÔNG TIN CÁ NHÂN
- (void) callApiSearchFace:(NSString *)face threshold:(NSInteger )threshold maxResult:(NSInteger )maxResult unit:(NSString *)unit uuidUnit:(NSString *)uuidUnit;
// thực hiện CÀI ĐẶT LẠI thông tin ICEKYCSavedData
- (void) resetICEKYCSavedData;
//
- (void) saveClientSession:(NSString *)clientSession;
// thực hiện CÀI ĐẶT CÁC THÔNG TIN ẢNH cho ICEKYCSavedData Khi isTurnOffCallService
- (void) saveQRCode:(NSString *)qrCode image:(UIImage *)image cropedImage:(UIImage *)cropedImage path:(NSURL *)path;
- (void) saveFrontImage:(UIImage *)image cropedImage:(UIImage *)cropedImage path:(NSURL *)path;
- (void) saveBackImage:(UIImage *)image cropedImage:(UIImage *)cropedImage path:(NSURL *)path;
//
- (void) saveStraightFaceImage:(UIImage *)image cropedImage:(UIImage *)cropedImage path:(NSURL *)path;
//
- (void) saveFarImage:(UIImage *)farImage cropedFar:(UIImage *)cropedFar nearImage:(UIImage *)nearImage cropedNear:(UIImage *)cropedNear path:(NSURL *)path;
@end
NS_ASSUME_NONNULL_END
//
// ICEkycCameraRouter.h
// ICSdkEKYC
//
// Created by MinhMinh on 08/12/2022.
// Copyright © 2022 iOS Team IC - VNPT IT. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ICEkycCameraProtocols.h"
#import "ICEkycCameraViewController.h"
@interface ICEkycCameraRouter : NSObject<ICEkycCameraWireframeProtocol>
@property (nonatomic, weak) ICEkycCameraViewController *viewController;
+ (UIViewController *)createModule;
@end
//
// ICSdkEKYC.h
// ICSdkEKYC
//
// Created by MinhMinh on 08/12/2022.
//
#import <Foundation/Foundation.h>
//! Project version number for ICSdkEKYC.
FOUNDATION_EXPORT double ICSdkEKYCVersionNumber;
//! Project version string for ICSdkEKYC.
FOUNDATION_EXPORT const unsigned char ICSdkEKYCVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <ICSdkEKYC/PublicHeader.h>
#import <ICSdkEKYC/ICEkycCameraRouter.h>
#import <ICSdkEKYC/ICEkycCameraViewController.h>
#import <ICSdkEKYC/ICEkycCameraInteractor.h>
#import <ICSdkEKYC/ICEkycCameraPresenter.h>
#import <ICSdkEKYC/ICEkycCameraProtocols.h>
#import <ICSdkEKYC/ICEKYCSavedData.h>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment