Commit 3634559d authored by Javokhir's avatar Javokhir
Browse files

1.1.0

parent effb295c
## 1.1.0
* Upgrade Android SDK to 1.0.1.
* Upgrade iOS SDK to 2.2.3.
## 1.0.9 ## 1.0.9
* Upgrade Android SDK to 1.0.0. * Upgrade Android SDK to 1.0.0.
......
...@@ -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: `1.0.0` Android SDK: `1.0.1`
iOS SDK: `2.2.1` iOS SDK: `2.2.3`
## Project adjustments ## Project adjustments
...@@ -22,7 +22,7 @@ Update your iOS configuration files ...@@ -22,7 +22,7 @@ Update your iOS configuration files
Change `ios/Podfile` to use version 11: Change `ios/Podfile` to use version 11:
```ruby ```ruby
platform :ios, '11.0' platform :ios, '11.1'
``` ```
Add descriptions for camera permission to `ios/YourProjectName/Info.plist`: Add descriptions for camera permission to `ios/YourProjectName/Info.plist`:
......
...@@ -49,5 +49,5 @@ android { ...@@ -49,5 +49,5 @@ android {
} }
dependencies { dependencies {
implementation("uz.myid.sdk.capture:myid-flutter-capture-sdk:1.0.0") implementation("uz.myid.sdk.capture:myid-flutter-capture-sdk:1.0.1")
} }
\ No newline at end of file
...@@ -51,6 +51,8 @@ class MyIdSdk( ...@@ -51,6 +51,8 @@ class MyIdSdk(
} }
val clientId: String val clientId: String
val clientHash: String
val clientHashId: String
val passportData: String val passportData: String
val dateOfBirth: String val dateOfBirth: String
val sdkHash: String val sdkHash: String
...@@ -68,6 +70,8 @@ class MyIdSdk( ...@@ -68,6 +70,8 @@ class MyIdSdk(
try { try {
clientId = config.fetch("clientId") clientId = config.fetch("clientId")
clientHash = config.fetch("clientHash")
clientHashId = config.fetch("clientHashId")
passportData = config.fetch("passportData") passportData = config.fetch("passportData")
dateOfBirth = config.fetch("dateOfBirth") dateOfBirth = config.fetch("dateOfBirth")
sdkHash = config.fetch("sdkHash") sdkHash = config.fetch("sdkHash")
...@@ -133,6 +137,7 @@ class MyIdSdk( ...@@ -133,6 +137,7 @@ class MyIdSdk(
try { try {
val myIdConfig = MyIdConfig.builder(clientId) val myIdConfig = MyIdConfig.builder(clientId)
.withClientHash(clientHash, clientHashId)
.withPassportData(passportData) .withPassportData(passportData)
.withBirthDate(dateOfBirth) .withBirthDate(dateOfBirth)
.withSdkHash(sdkHash) .withSdkHash(sdkHash)
......
platform :ios, '11.0' platform :ios, '12.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency. # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true' ENV['COCOAPODS_DISABLE_STATS'] = 'true'
......
PODS:
- Flutter (1.0.0)
- myid (1.1.0):
- Flutter
- MyIdSDK (= 2.2.3)
- MyIdSDK (2.2.3)
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: 2a0c2bcf78211535f91eb0d3058e3296dede9fc3
MyIdSDK: 33be3ddfd25a1f0861695c46b534faf64cca9612
PODFILE CHECKSUM: 52781dfef5f5768442e4d2953d5b83f640ecec0c
COCOAPODS: 1.13.0
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8"?>
<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"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<deployment identifier="iOS"/> <deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<scenes> <scenes>
<!--Flutter View Controller--> <!--Flutter View Controller-->
...@@ -14,13 +16,14 @@ ...@@ -14,13 +16,14 @@
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/> <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides> </layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/> <rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</view> </view>
</viewController> </viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects> </objects>
<point key="canvasLocation" x="-17" y="-40"/>
</scene> </scene>
</scenes> </scenes>
</document> </document>
...@@ -102,6 +102,8 @@ public func buildMyIdConfig( ...@@ -102,6 +102,8 @@ public func buildMyIdConfig(
appearance: MyIdAppearance appearance: MyIdAppearance
) throws -> MyIdConfig { ) throws -> MyIdConfig {
let clientId = config["clientId"] as? String ?? "" let clientId = config["clientId"] as? String ?? ""
let clientHash = config["clientHash"] as? String ?? ""
let clientHashId = config["clientHashId"] as? String ?? ""
let passportData = config["passportData"] as? String ?? "" let passportData = config["passportData"] as? String ?? ""
let dateOfBirth = config["dateOfBirth"] as? String ?? "" let dateOfBirth = config["dateOfBirth"] as? String ?? ""
let sdkHash = config["sdkHash"] as? String ?? "" let sdkHash = config["sdkHash"] as? String ?? ""
...@@ -157,6 +159,8 @@ public func buildMyIdConfig( ...@@ -157,6 +159,8 @@ public func buildMyIdConfig(
let config = MyIdConfig() let config = MyIdConfig()
config.clientId = clientId config.clientId = clientId
config.clientHash = clientHash
config.clientHashId = clientHashId
config.passportData = passportData config.passportData = passportData
config.dateOfBirth = dateOfBirth config.dateOfBirth = dateOfBirth
config.sdkHash = sdkHash config.sdkHash = sdkHash
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# #
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'myid' s.name = 'myid'
s.version = '1.0.6' s.version = '1.1.0'
s.summary = 'MyID flutter plugin.' s.summary = 'MyID flutter plugin.'
s.description = <<-DESC s.description = <<-DESC
A new Flutter plugin. A new Flutter plugin.
...@@ -15,8 +15,8 @@ A new Flutter plugin. ...@@ -15,8 +15,8 @@ A new Flutter plugin.
s.source = { :path => '.' } s.source = { :path => '.' }
s.source_files = 'Classes/**/*' s.source_files = 'Classes/**/*'
s.dependency 'Flutter' s.dependency 'Flutter'
s.dependency 'MyIdSDK' s.dependency 'MyIdSDK', '2.2.3'
s.platform = :ios, '11.0' s.platform = :ios, '12.0'
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported. # Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' } s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
......
...@@ -4,6 +4,8 @@ part 'myid_config.g.dart'; ...@@ -4,6 +4,8 @@ part 'myid_config.g.dart';
class MyIdConfig { class MyIdConfig {
final String clientId; final String clientId;
final String? clientHash;
final String? clientHashId;
final String? passportData; final String? passportData;
final String? dateOfBirth; final String? dateOfBirth;
final String? sdkHash; final String? sdkHash;
...@@ -21,6 +23,8 @@ class MyIdConfig { ...@@ -21,6 +23,8 @@ class MyIdConfig {
MyIdConfig({ MyIdConfig({
required this.clientId, required this.clientId,
this.clientHash,
this.clientHashId,
this.passportData, this.passportData,
this.dateOfBirth, this.dateOfBirth,
this.sdkHash, this.sdkHash,
......
...@@ -9,6 +9,8 @@ part of 'myid_config.dart'; ...@@ -9,6 +9,8 @@ part of 'myid_config.dart';
MyIdConfig _$MyIdConfigFromJson(Map<String, dynamic> json) { MyIdConfig _$MyIdConfigFromJson(Map<String, dynamic> json) {
return MyIdConfig( return MyIdConfig(
clientId: json['clientId'] as String, clientId: json['clientId'] as String,
clientHash: json['clientHash'] as String,
clientHashId: json['clientHashId'] as String,
passportData: json['passportData'] as String, passportData: json['passportData'] as String,
dateOfBirth: json['dateOfBirth'] as String, dateOfBirth: json['dateOfBirth'] as String,
sdkHash: json['sdkHash'] as String, sdkHash: json['sdkHash'] as String,
...@@ -36,6 +38,8 @@ Map<String, dynamic> _$MyIdConfigToJson(MyIdConfig instance) { ...@@ -36,6 +38,8 @@ Map<String, dynamic> _$MyIdConfigToJson(MyIdConfig instance) {
} }
writeNotNull('clientId', instance.clientId); writeNotNull('clientId', instance.clientId);
writeNotNull('clientHash', instance.clientHash);
writeNotNull('clientHashId', instance.clientHashId);
writeNotNull('passportData', instance.passportData); writeNotNull('passportData', instance.passportData);
writeNotNull('dateOfBirth', instance.dateOfBirth); writeNotNull('dateOfBirth', instance.dateOfBirth);
writeNotNull('sdkHash', instance.sdkHash); writeNotNull('sdkHash', instance.sdkHash);
......
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.9 version: 1.1.0
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
......
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