Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MYID Public Code
MyID Flutter SDK
Commits
a19c06e8
Commit
a19c06e8
authored
Aug 25, 2023
by
Javokhir
Browse files
1.0.6 version
parent
b8ca6ab3
Changes
20
Show whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
a19c06e8
## 1.0.6
*
Upgrade Android SDK to 2.2.3.
*
Upgrade iOS SDK to 2.2.1.
## 1.0.5
## 1.0.5
*
Update README.md
*
Update README.md
...
...
README.md
View file @
a19c06e8
...
@@ -9,9 +9,9 @@ MyID SDK flutter plugin.
...
@@ -9,9 +9,9 @@ MyID SDK flutter plugin.
-
[
SDK error codes
](
#sdk-error-codes
)
-
[
SDK error codes
](
#sdk-error-codes
)
-
[
Theme
](
#theme
)
-
[
Theme
](
#theme
)
Android SDK:
`2.2.
1
`
Android SDK:
`2.2.
3
`
iOS SDK:
`2.2.
0
`
iOS SDK:
`2.2.
1
`
## Project adjustments
## Project adjustments
...
@@ -46,7 +46,7 @@ Add descriptions for camera permission to `ios/YourProjectName/Info.plist`:
...
@@ -46,7 +46,7 @@ Add descriptions for camera permission to `ios/YourProjectName/Info.plist`:
clientId:
clientId
,
clientId:
clientId
,
passportData:
'AB1234567'
,
passportData:
'AB1234567'
,
dateOfBirth:
'01.09.1991'
,
dateOfBirth:
'01.09.1991'
,
buildMode:
MyIdBuildMode
.
DEBUG
buildMode:
MyIdBuildMode
.
PRODUCTION
),
),
iosAppearance:
MyIdIOSAppearance
(),
iosAppearance:
MyIdIOSAppearance
(),
);
);
...
@@ -98,7 +98,7 @@ and **[ELLIPSE](images/screen04.jpg)** types.
...
@@ -98,7 +98,7 @@ and **[ELLIPSE](images/screen04.jpg)** types.
## Theme
## Theme
For
[
**Android**
](
https://gitlab.
aigroup
.uz/myid-public-code/myid-sample-android/-/blob/
2.1.7
/CUSTOMIZATION.md
#ui-customization
)
For
[
**Android**
](
https://gitlab.
myid
.uz/myid-public-code/myid-sample-android/-/blob/
master
/CUSTOMIZATION.md
)
For
**iOS**
theme config use
`MyIdIOSAppearance`
class and its properties.
For
**iOS**
theme config use
`MyIdIOSAppearance`
class and its properties.
...
...
android/build.gradle
View file @
a19c06e8
group
"uz.aigroup.myid"
group
"uz.aigroup.myid"
version
"1.0.
5
"
version
"1.0.
6
"
buildscript
{
buildscript
{
ext
.
kotlin_version
=
"1.7.21"
ext
.
kotlin_version
=
"1.7.21"
...
@@ -27,6 +27,7 @@ apply plugin: "com.android.library"
...
@@ -27,6 +27,7 @@ apply plugin: "com.android.library"
apply
plugin:
"kotlin-android"
apply
plugin:
"kotlin-android"
android
{
android
{
namespace
"uz.aigroup.myid"
compileSdk
33
compileSdk
33
compileOptions
{
compileOptions
{
...
@@ -48,5 +49,5 @@ android {
...
@@ -48,5 +49,5 @@ android {
}
}
dependencies
{
dependencies
{
implementation
(
"uz.myid.sdk.capture:myid-capture-sdk:2.2.
1
"
)
implementation
(
"uz.myid.sdk.capture:myid-capture-sdk:2.2.
3
"
)
}
}
\ No newline at end of file
android/src/main/AndroidManifest.xml
View file @
a19c06e8
<manifest
package=
"uz.aigroup.myid"
/>
<manifest
/>
\ No newline at end of file
\ No newline at end of file
android/src/main/kotlin/uz/aigroup/myid/MyIdSdk.kt
View file @
a19c06e8
...
@@ -88,8 +88,8 @@ class MyIdSdk(
...
@@ -88,8 +88,8 @@ class MyIdSdk(
else
->
MyIdResidentType
.
RESIDENT
else
->
MyIdResidentType
.
RESIDENT
}
}
locale
=
when
(
config
.
fetch
(
"locale"
).
uppercase
())
{
locale
=
when
(
config
.
fetch
(
"locale"
).
uppercase
())
{
"ENG"
->
Locale
(
"en"
)
"ENG
LISH
"
->
Locale
(
"en"
)
"RUS"
->
Locale
(
"ru"
)
"RUS
SIAN
"
->
Locale
(
"ru"
)
else
->
Locale
(
"uz"
)
else
->
Locale
(
"uz"
)
}
}
cameraShape
=
when
(
config
.
fetch
(
"cameraShape"
).
uppercase
())
{
cameraShape
=
when
(
config
.
fetch
(
"cameraShape"
).
uppercase
())
{
...
...
example/android/app/src/main/res/drawable/myid_logo.xml
0 → 100644
View file @
a19c06e8
<vector
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:width=
"134dp"
android:height=
"28dp"
android:viewportWidth=
"115.19"
android:viewportHeight=
"24.1"
>
<path
android:fillAlpha=
"0.71"
android:fillColor=
"#3e40a4"
android:pathData=
"M87.72,16.45a4.24,4.24 0,0 1,6 -6l6.42,6.42a4.24,4.24 0,1 1,-6 6Z"
android:strokeAlpha=
"0.71"
/>
<path
android:fillAlpha=
"0.71"
android:fillColor=
"#c073cd"
android:pathData=
"M94.14,4.03a4.24,4.24 0,0 1,6 6l-6.42,6.42a4.24,4.24 0,0 1,-6 -6Z"
android:strokeAlpha=
"0.71"
/>
<path
android:fillAlpha=
"0.71"
android:fillColor=
"#3169b2"
android:pathData=
"M39.73,10.93a4.23,4.23 0,0 1,-6 5.96l-5.06,-5.08a4.23,4.23 0,1 1,6 -5.96Z"
android:strokeAlpha=
"0.71"
/>
<path
android:fillAlpha=
"0.71"
android:fillColor=
"#4654b0"
android:pathData=
"M45.53,11.1a4.24,4.24 0,0 1,6 -6l5.84,5.84a4.24,4.24 0,0 1,-6 6Z"
android:strokeAlpha=
"0.71"
/>
<path
android:fillAlpha=
"0.71"
android:fillColor=
"#ca6b4f"
android:pathData=
"M57.37,16.94a4.24,4.24 0,0 1,-6 -6l5.69,-5.69a4.24,4.24 0,0 1,6 6Z"
android:strokeAlpha=
"0.71"
/>
<path
android:fillAlpha=
"0.71"
android:fillColor=
"#28988b"
android:pathData=
"M51.37,10.95a4.24,4.24 0,0 1,6 6l-5.11,5.11a4.24,4.24 0,0 1,-6 -6Z"
android:strokeAlpha=
"0.71"
/>
<path
android:fillAlpha=
"0.71"
android:fillColor=
"#1c1f89"
android:pathData=
"M72.57,9.36a4.24,4.24 0,0 1,6 6l-6.8,6.8a4.24,4.24 0,0 1,-6 -6Z"
android:strokeAlpha=
"0.71"
/>
<path
android:fillAlpha=
"0.71"
android:fillColor=
"#fc724f"
android:pathData=
"M66.67,15.28a4.23,4.23 0,1 1,5.96 6l-0.88,0.88a4.23,4.23 0,0 1,-5.96 -6Z"
android:strokeAlpha=
"0.71"
/>
<path
android:fillAlpha=
"0.71"
android:fillColor=
"#d27081"
android:pathData=
"M100.56,10.45a4.24,4.24 0,0 1,6 6l-6.42,6.42a4.24,4.24 0,0 1,-6 -6Z"
android:strokeAlpha=
"0.71"
/>
<path
android:fillAlpha=
"0.71"
android:fillColor=
"#5e9b65"
android:pathData=
"M7.23,21.91a4.23,4.23 0,0 1,-6 -5.96l10.08,-10.1a4.23,4.23 0,1 1,6 5.96Z"
android:strokeAlpha=
"0.71"
/>
<path
android:fillAlpha=
"0.71"
android:fillColor=
"#a4d74c"
android:pathData=
"M106.56,10.45a4.24,4.24 0,1 1,-6 6l-6.42,-6.42a4.24,4.24 0,0 1,6 -6Z"
android:strokeAlpha=
"0.71"
/>
<path
android:fillAlpha=
"0.71"
android:fillColor=
"#3169b2"
android:pathData=
"M25.99,20.51a4.23,4.23 0,1 1,-6 -5.96l8.68,-8.7a4.23,4.23 0,1 1,6 5.96Z"
android:strokeAlpha=
"0.71"
/>
<path
android:fillAlpha=
"0.71"
android:fillColor=
"#71d1d8"
android:pathData=
"M25.98,14.55a4.23,4.23 0,1 1,-6 5.96l-8.68,-8.7a4.23,4.23 0,1 1,6 -5.96Z"
android:strokeAlpha=
"0.71"
/>
<path
android:fillAlpha=
"0.71"
android:fillColor=
"#5e85c8"
android:pathData=
"M100.14,22.86a4.24,4.24 0,0 1,-6 -6l13.8,-13.81a4.24,4.24 0,0 1,6 6Z"
android:strokeAlpha=
"0.71"
/>
<path
android:fillAlpha=
"0.71"
android:fillColor=
"#a40e8f"
android:pathData=
"M82.53,5.42a1.05,1.05 0,0 0,1.45 0l0,0 0,0 0.02,-0.02a1.03,1.03 0,0 0,0.3 -0.73h0.01a1.04,1.04 0,0 0,-0.3 -0.73l0,0a1.05,1.05 0,0 0,-1.46 0l-0.02,0.02 0,0 -0.05,0.05a1.06,1.06 0,0 0,0.05 1.41l0,0 0,0ZM83.25,9.36a4.66,4.66 0,0 1,-3.3 -1.37l0,0 0,0a4.66,4.66 0,0 1,-0.12 -6.47c0.04,-0.04 0.08,-0.09 0.12,-0.13l0,0 0.03,-0.03a4.67,4.67 0,0 1,6.6 0l0,0 0,0a4.65,4.65 0,0 1,1.36 3.29h0.01a4.66,4.66 0,0 1,-1.37 3.3l-0.02,0.02 0,0A4.66,4.66 0,0 1,83.25 9.36Z"
android:strokeAlpha=
"0.71"
/>
</vector>
example/android/app/src/main/res/font/myid_bold.otf
0 → 100644
View file @
a19c06e8
File added
example/android/app/src/main/res/font/myid_medium.otf
0 → 100644
View file @
a19c06e8
File added
example/android/app/src/main/res/font/myid_regular.otf
0 → 100644
View file @
a19c06e8
File added
example/android/app/src/main/res/values/colors.xml
0 → 100644
View file @
a19c06e8
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<resources>
<color
name=
"myidColorError"
>
#FF5722
</color>
<color
name=
"myidColorPrimary"
>
#4CAF50
</color>
<color
name=
"myidColorSecondary"
>
#00BCD4
</color>
<color
name=
"myidPrimaryButtonColor"
>
#4CAF50
</color>
<color
name=
"myidPrimaryButtonColorDisabled"
>
#1A000000
</color>
<color
name=
"myidPrimaryButtonTextColor"
>
#FFFFFF
</color>
<color
name=
"myidPrimaryButtonTextColorDisabled"
>
#59000000
</color>
</resources>
example/android/app/src/main/res/values/dimens.xml
0 → 100644
View file @
a19c06e8
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen
name=
"myidButtonCornerRadius"
>
16dp
</dimen>
</resources>
\ No newline at end of file
example/android/build.gradle
View file @
a19c06e8
...
@@ -6,7 +6,7 @@ buildscript {
...
@@ -6,7 +6,7 @@ buildscript {
}
}
dependencies
{
dependencies
{
classpath
"com.android.tools.build:gradle:7.1.
2
"
classpath
"com.android.tools.build:gradle:7.1.
3
"
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
}
}
...
...
example/android/gradle.properties
View file @
a19c06e8
org.gradle.jvmargs
=
-Xmx
1536
M
org.gradle.jvmargs
=
-Xmx
2048
M
android.useAndroidX
=
true
android.useAndroidX
=
true
android.enableJetifier
=
true
android.enableJetifier
=
true
example/ios/Podfile.lock
deleted
100644 → 0
View file @
b8ca6ab3
PODS:
- Flutter (1.0.0)
- myid (0.0.1):
- Flutter
- MyIdSDK
- MyIdSDK (1.0.1)
DEPENDENCIES:
- Flutter (from `Flutter`)
- myid (from `.symlinks/plugins/myid/ios`)
SPEC REPOS:
trunk:
- MyIdSDK
EXTERNAL SOURCES:
Flutter:
:path: Flutter
myid:
:path: ".symlinks/plugins/myid/ios"
SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
myid: 2995e101a0619a3b1908bc716885efed06356438
MyIdSDK: cd53b0d801171ec2a83935b70fd703a456619d90
PODFILE CHECKSUM: d2d0c48e19fdb89c13a2d43d11ebe4fb7ac441eb
COCOAPODS: 1.12.1
example/lib/main.dart
View file @
a19c06e8
...
@@ -31,9 +31,7 @@ class _MyAppState extends State<MyApp> {
...
@@ -31,9 +31,7 @@ class _MyAppState extends State<MyApp> {
config:
MyIdConfig
(
config:
MyIdConfig
(
// PROVIDE CLIENT_ID YOU'VE GOT FROM YOUR BACKEND
// PROVIDE CLIENT_ID YOU'VE GOT FROM YOUR BACKEND
clientId:
clientId
,
clientId:
clientId
,
passportData:
'AB1234567'
,
buildMode:
MyIdBuildMode
.
PRODUCTION
,
dateOfBirth:
'01.09.1991'
,
buildMode:
MyIdBuildMode
.
DEBUG
)
)
);
);
...
...
example/pubspec.lock
View file @
a19c06e8
...
@@ -121,7 +121,7 @@ packages:
...
@@ -121,7 +121,7 @@ packages:
path: ".."
path: ".."
relative: true
relative: true
source: path
source: path
version: "1.0.
5
"
version: "1.0.
6
"
path:
path:
dependency: transitive
dependency: transitive
description:
description:
...
...
ios/Classes/MyIdSdk.swift
View file @
a19c06e8
...
@@ -131,9 +131,9 @@ public func buildMyIdConfig(
...
@@ -131,9 +131,9 @@ public func buildMyIdConfig(
let
localeKey
=
config
[
"locale"
]
as?
String
??
""
let
localeKey
=
config
[
"locale"
]
as?
String
??
""
var
locale
=
MyIdLocale
.
UZ
var
locale
=
MyIdLocale
.
UZ
if
(
localeKey
==
"RUS"
)
{
if
(
localeKey
==
"RUS
SIAN
"
)
{
locale
=
MyIdLocale
.
UZ
locale
=
MyIdLocale
.
UZ
}
else
if
(
localeKey
==
"ENG"
)
{
}
else
if
(
localeKey
==
"ENG
LISH
"
)
{
locale
=
MyIdLocale
.
EN
locale
=
MyIdLocale
.
EN
}
}
...
...
ios/myid.podspec
View file @
a19c06e8
...
@@ -4,14 +4,14 @@
...
@@ -4,14 +4,14 @@
#
#
Pod
::
Spec
.
new
do
|
s
|
Pod
::
Spec
.
new
do
|
s
|
s
.
name
=
'myid'
s
.
name
=
'myid'
s
.
version
=
'
0
.0.
1
'
s
.
version
=
'
1
.0.
6
'
s
.
summary
=
'
A new F
lutter plugin.'
s
.
summary
=
'
MyID f
lutter plugin.'
s
.
description
=
<<-
DESC
s
.
description
=
<<-
DESC
A new Flutter plugin.
A new Flutter plugin.
DESC
DESC
s
.
homepage
=
'https://pub.dev/packages/myid'
s
.
homepage
=
'https://pub.dev/packages/myid'
s
.
license
=
{
:file
=>
'../LICENSE'
}
s
.
license
=
{
:file
=>
'../LICENSE'
}
s
.
author
=
{
'
Your Company'
=>
'email@example.com
'
}
s
.
author
=
{
'
MyID'
=>
'https://myid.uz/
'
}
s
.
source
=
{
:path
=>
'.'
}
s
.
source
=
{
:path
=>
'.'
}
s
.
source_files
=
'Classes/**/*'
s
.
source_files
=
'Classes/**/*'
s
.
dependency
'Flutter'
s
.
dependency
'Flutter'
...
...
lib/myid_config.g.dart
View file @
a19c06e8
...
@@ -128,9 +128,9 @@ const _$MyIdResidentTypeEnumMap = {
...
@@ -128,9 +128,9 @@ const _$MyIdResidentTypeEnumMap = {
};
};
const
_$MyIdLocaleEnumMap
=
{
const
_$MyIdLocaleEnumMap
=
{
MyIdLocale
.
UZBEK
:
'UZB'
,
MyIdLocale
.
UZBEK
:
'UZB
EK
'
,
MyIdLocale
.
ENGLISH
:
'ENG'
,
MyIdLocale
.
ENGLISH
:
'ENG
LISH
'
,
MyIdLocale
.
RUSSIAN
:
'RUS'
,
MyIdLocale
.
RUSSIAN
:
'RUS
SIAN
'
,
};
};
const
_$MyIdCameraShapeEnumMap
=
{
const
_$MyIdCameraShapeEnumMap
=
{
...
...
pubspec.yaml
View file @
a19c06e8
name
:
myid
name
:
myid
description
:
MyID SDK plugin for Flutter. Package supports iOS and Android to verify users identity.
description
:
MyID SDK plugin for Flutter. Package supports iOS and Android to verify users identity.
version
:
1.0.
5
version
:
1.0.
6
homepage
:
https://pub.dev/packages/myid
homepage
:
https://pub.dev/packages/myid
repository
:
https://pub.dev/packages/myid
repository
:
https://pub.dev/packages/myid
issue_tracker
:
https://gitlab.aigroup.uz/myid-public-code/myid-sample-flutter/-/issues
issue_tracker
:
https://gitlab.aigroup.uz/myid-public-code/myid-sample-flutter/-/issues
environment
:
environment
:
sdk
:
"
>=2.17.6
<
3
.0.0"
sdk
:
"
>=2.17.6
<
4
.0.0"
flutter
:
"
>=2.5.0"
flutter
:
"
>=2.5.0"
dependencies
:
dependencies
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment