Commit a95205bf authored by Javokhir's avatar Javokhir
Browse files

1.1.3 version

parent d04f1bc7
## 1.1.3
* Upgrade Android SDK to 1.0.3.
## 1.1.2
* Downgrade iOS version to 11.0.
## 1.1.1
* Added enhanced security measures.
......
......@@ -9,9 +9,9 @@ MyID SDK flutter plugin.
- [SDK error codes](#sdk-error-codes)
- [Theme](#theme)
Android SDK: `1.0.1`
Android SDK: `1.0.3`
iOS SDK: `2.2.3`
iOS SDK: `2.2.4`
## Project adjustments
......@@ -22,7 +22,7 @@ Update your iOS configuration files
Change `ios/Podfile` to use version 11:
```ruby
platform :ios, '12.0'
platform :ios, '11.0'
```
Add descriptions for camera permission to `ios/YourProjectName/Info.plist`:
......
......@@ -49,5 +49,5 @@ android {
}
dependencies {
implementation("uz.myid.sdk.capture:myid-flutter-capture-sdk:1.0.1")
implementation("uz.myid.sdk.capture:myid-flutter-capture-sdk:1.0.3")
}
\ No newline at end of file
......@@ -64,8 +64,8 @@ class MyIdSdkActivityListener(
override fun onUserExited() {
if (flutterResult != null) {
flutterResult?.error(
"cancel",
"User exited by clicking the back button.",
"error",
"User canceled flow",
null
)
flutterResult = null
......@@ -81,9 +81,7 @@ class MyIdSdkActivityListener(
this ?: return null
return try {
"data:image/png;base64,${
Base64.encodeToString(toByteArray(format), Base64.DEFAULT)
}"
"${Base64.encodeToString(toByteArray(format), Base64.DEFAULT)}"
} catch (_: Throwable) {
null
}
......
platform :ios, '12.0'
platform :ios, '11.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
......
PODS:
- Flutter (1.0.0)
- myid (1.1.0):
- myid (1.1.2):
- Flutter
- MyIdSDK (= 2.2.3)
- MyIdSDK (2.2.3)
- MyIdSDK (= 2.2.4)
- MyIdSDK (2.2.4)
DEPENDENCIES:
- Flutter (from `Flutter`)
......@@ -21,9 +21,9 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
myid: 2a0c2bcf78211535f91eb0d3058e3296dede9fc3
MyIdSDK: 33be3ddfd25a1f0861695c46b534faf64cca9612
myid: 3eef8e42f430e395372f2a9280f3395ad2338e82
MyIdSDK: 81e6f467bfceb78fd6e03e97a62d8d643c01763a
PODFILE CHECKSUM: 52781dfef5f5768442e4d2953d5b83f640ecec0c
PODFILE CHECKSUM: d2d0c48e19fdb89c13a2d43d11ebe4fb7ac441eb
COCOAPODS: 1.13.0
......@@ -9,11 +9,11 @@
/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
4CB38EC71A5DADB1D9E5DFA0 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 341AF9A5434798AE77EC65E4 /* Pods_Runner.framework */; };
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
C5A9C66D91C166954B91BB29 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 977957A71A7809B128CED6E9 /* Pods_Runner.framework */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
......@@ -32,21 +32,21 @@
/* Begin PBXFileReference section */
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
341AF9A5434798AE77EC65E4 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
3FC57563957BA70C45D94EE2 /* 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 = "<group>"; };
71CA7B7CCDC1859F7D7AB6BE /* 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 = "<group>"; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
79229C380206E0251F3FF4E1 /* 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 = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
977957A71A7809B128CED6E9 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
BD6EAA0784C754E3ACC71057 /* 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 = "<group>"; };
9C7900D88DBF38C174D972B9 /* 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 = "<group>"; };
E42AF6753931F6F00A044C95 /* 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 = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
......@@ -54,17 +54,17 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
C5A9C66D91C166954B91BB29 /* Pods_Runner.framework in Frameworks */,
4CB38EC71A5DADB1D9E5DFA0 /* Pods_Runner.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
2C67626D0F9625F2DF31E8EE /* Frameworks */ = {
0FF28304673FE78084307DD0 /* Frameworks */ = {
isa = PBXGroup;
children = (
977957A71A7809B128CED6E9 /* Pods_Runner.framework */,
341AF9A5434798AE77EC65E4 /* Pods_Runner.framework */,
);
name = Frameworks;
sourceTree = "<group>";
......@@ -87,7 +87,7 @@
97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */,
FFA603FC1876BA156097024C /* Pods */,
2C67626D0F9625F2DF31E8EE /* Frameworks */,
0FF28304673FE78084307DD0 /* Frameworks */,
);
sourceTree = "<group>";
};
......@@ -117,9 +117,9 @@
FFA603FC1876BA156097024C /* Pods */ = {
isa = PBXGroup;
children = (
3FC57563957BA70C45D94EE2 /* Pods-Runner.debug.xcconfig */,
BD6EAA0784C754E3ACC71057 /* Pods-Runner.release.xcconfig */,
71CA7B7CCDC1859F7D7AB6BE /* Pods-Runner.profile.xcconfig */,
E42AF6753931F6F00A044C95 /* Pods-Runner.debug.xcconfig */,
79229C380206E0251F3FF4E1 /* Pods-Runner.release.xcconfig */,
9C7900D88DBF38C174D972B9 /* Pods-Runner.profile.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
......@@ -131,14 +131,14 @@
isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
32F772E926BB96F572940E29 /* [CP] Check Pods Manifest.lock */,
A4472B902DF23FADB445A353 /* [CP] Check Pods Manifest.lock */,
9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
ABE00AF80C493E77B69E1A68 /* [CP] Embed Pods Frameworks */,
B959ADAFB215D37925C388D3 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
......@@ -197,57 +197,57 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
32F772E926BB96F572940E29 /* [CP] Check Pods Manifest.lock */ = {
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
buildActionMask = 12;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
name = "Thin Binary";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
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";
showEnvVarsInLog = 0;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n";
};
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 12;
files = (
);
inputPaths = (
);
name = "Thin Binary";
name = "Run Script";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin\n";
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n";
};
9740EEB61CF901F6004384FC /* Run Script */ = {
A4472B902DF23FADB445A353 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 12;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
name = "Run Script";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n";
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";
showEnvVarsInLog = 0;
};
ABE00AF80C493E77B69E1A68 /* [CP] Embed Pods Frameworks */ = {
B959ADAFB215D37925C388D3 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
......
......@@ -26,15 +26,20 @@ class _MyAppState extends State<MyApp> {
try {
const clientId = 'client_id';
const clientHash = 'client_hash';
const clientHashId = 'client_hash_id';
final myIdResult = await MyIdClient.start(
config: MyIdConfig(
// PROVIDE CLIENT_ID YOU'VE GOT FROM YOUR BACKEND
// PROVIDE CLIENT_ID, CLIENT_HASH and CLIENT_HASH_ID. YOU'VE GOT FROM YOUR BACKEND
clientId: clientId,
clientHash: clientHash,
clientHashId: clientHashId,
buildMode: MyIdBuildMode.PRODUCTION,
)
);
error = null;
result = myIdResult;
} catch (e) {
error = e.toString();
......
......@@ -121,7 +121,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.1.0"
version: "1.1.2"
path:
dependency: transitive
description:
......
......@@ -198,7 +198,7 @@ class MyIdSdk: NSObject, MyIdClientDelegate {
func onUserExited() {
if let fResult = flutterResult {
fResult(FlutterError(code: "cancel", message: "User canceled flow", details: nil))
fResult(FlutterError(code: "error", message: "User canceled flow", details: nil))
}
}
......
......@@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'myid'
s.version = '1.1.0'
s.version = '1.1.2'
s.summary = 'MyID flutter plugin.'
s.description = <<-DESC
A new Flutter plugin.
......@@ -15,8 +15,8 @@ A new Flutter plugin.
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'MyIdSDK', '2.2.3'
s.platform = :ios, '12.0'
s.dependency 'MyIdSDK', '2.2.4'
s.platform = :ios, '11.0'
# 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' }
......
name: myid
description: MyID SDK plugin for Flutter. Package supports iOS and Android to verify users identity.
version: 1.1.1
version: 1.1.3
homepage: https://pub.dev/packages/myid
repository: https://pub.dev/packages/myid
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