Commit 977ea194 authored by Javokhir's avatar Javokhir
Browse files

iOS v2.3.1

parent a15a0baf
## 1.2.1
* 🔥 Added new ability to customize the organization logo used in the SDK flow.
## 1.2.0
* 🔨 Resolved CameraX Preview black screen: Addressed an issue causing the CameraX preview to display a black screen on specific devices.
......
......@@ -11,7 +11,7 @@ MyID SDK flutter plugin.
Android SDK: `1.1.0`
iOS SDK: `2.2.9`
iOS SDK: `2.3.1`
## Project adjustments
......@@ -120,6 +120,8 @@ For **iOS** theme config use `MyIdIOSAppearance` class and its properties.
* `buttonCornerRadius`: Defines the radius dimension of all the corners of primary buttons
* `logo`: String, that will be displayed on the input screen. If you would like to display your own logo on the top of the screen, this is the place to provide it.
## SDK error codes
The error code in the following list may appear during the call of SDK. The list below is for your
......
......@@ -2,8 +2,8 @@ PODS:
- Flutter (1.0.0)
- myid (1.1.2):
- Flutter
- MyIdSDK (= 2.2.9)
- MyIdSDK (2.2.9)
- MyIdSDK (= 2.3.1)
- MyIdSDK (2.3.1)
DEPENDENCIES:
- Flutter (from `Flutter`)
......@@ -21,8 +21,8 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
myid: 455880195dd373f70441baf3644f0c0ad3a132c8
MyIdSDK: b6929bf779782f9358817c91e5fc73d0060bf88b
myid: c8a68a3693a90c7e8b953ff6750dfbbf89e94164
MyIdSDK: 490ce14b4681b2d2e4504cac97ea1679d85f5d54
PODFILE CHECKSUM: 52781dfef5f5768442e4d2953d5b83f640ecec0c
......
......@@ -354,8 +354,10 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = 86VMSY4FK5;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = MyID;
......@@ -365,8 +367,9 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1;
PRODUCT_BUNDLE_IDENTIFIER = uz.myid.sample;
PRODUCT_BUNDLE_IDENTIFIER = uz.uzinfocom.myid;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
......@@ -490,8 +493,10 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = 86VMSY4FK5;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = MyID;
......@@ -501,8 +506,9 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1;
PRODUCT_BUNDLE_IDENTIFIER = uz.myid.sample;
PRODUCT_BUNDLE_IDENTIFIER = uz.uzinfocom.myid;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
......@@ -520,8 +526,10 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = 86VMSY4FK5;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = MyID;
......@@ -531,8 +539,9 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1;
PRODUCT_BUNDLE_IDENTIFIER = uz.myid.sample;
PRODUCT_BUNDLE_IDENTIFIER = uz.uzinfocom.myid;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
......
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "logo.svg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
<svg width="174" height="58" viewBox="0 0 174 58" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_132_10)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M66.7984 35.504H55.5334V41.3873H59.1462C58.8687 42.3884 58.2449 43.2587 57.3859 43.8429C56.5268 44.4271 55.4884 44.6874 54.4553 44.5776C50.6839 44.5776 48.6889 42.0791 48.6889 37.3128C48.6889 33.7377 49.5732 29.5854 54.0327 29.5854C55.0112 29.5029 55.986 29.7824 56.7724 30.3706C57.5588 30.9587 58.1022 31.8149 58.2996 32.7769H66.3731C65.6422 26.5866 60.2985 22.5511 54.1861 22.5511C45.993 22.5511 40.2305 28.472 40.2305 36.8915C40.2305 45.3876 45.5365 51.197 53.2628 51.197C54.7593 51.2927 56.2573 51.0325 57.6339 50.4378C59.0105 49.8431 60.2267 48.9308 61.1828 47.7755L61.452 50.5832H66.7971V35.5116L66.7984 35.504ZM68.4162 23.2026V50.5753H76.7212V40.9244H80.2585C84.1795 40.9244 84.6802 43.3083 84.9091 46.462L85.0249 47.9991C85.0538 48.8788 85.2224 49.7484 85.5242 50.5753H93.8292C93.3665 49.6577 93.1293 48.6431 93.1374 47.6155L92.8681 44.7322C92.638 42.3094 91.6379 38.6577 88.8691 37.9697C90.112 37.3588 91.1529 36.4031 91.8678 35.2169C92.5826 34.0308 92.9412 32.6642 92.9007 31.2799C92.9007 24.9374 87.4022 23.2077 83.1352 23.2077L68.4162 23.2026ZM76.7212 29.5463H80.8737C83.4486 29.5463 84.7569 30.467 84.7569 32.3124C84.7569 34.466 83.2575 35.1579 81.3353 35.1579H76.7225V29.545L76.7212 29.5463ZM107.711 22.4717C115.904 22.4717 121.397 28.277 121.397 36.8889C121.397 45.4618 115.861 51.2284 107.634 51.2284C99.2536 51.2284 93.6393 45.506 93.6393 36.8499C93.6393 28.1612 99.2133 22.4717 107.711 22.4717ZM107.595 29.2006C104.214 29.2006 102.175 32.0447 102.175 36.7343C102.175 41.6177 104.173 44.4239 107.637 44.4239C111.058 44.4239 112.904 41.6931 112.904 36.5041C112.904 31.929 110.942 29.2006 107.598 29.2006H107.595ZM147.351 23.2026H138.971V39.9646C138.971 42.8088 137.702 44.1938 135.049 44.1938C132.089 44.1938 130.858 42.8088 130.858 39.9646V23.1972H122.478V39.8436C122.478 47.1108 126.361 51.0696 134.895 51.0696C142.776 51.0696 147.351 48.0329 147.351 39.382V23.1972V23.2026ZM149.238 23.2026V50.5753H157.581V42.122H162.81C168.692 42.122 173.114 39.2376 173.114 32.9328C173.114 24.9361 167.154 23.2064 161.157 23.2064L149.238 23.2026ZM157.581 29.9299H161.464C163.925 29.9299 165.077 30.8911 165.077 32.8509C165.077 35.08 163.656 35.7354 161.618 35.7354H157.586L157.581 29.9299Z" fill="#469831"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.4168 21.9502H10.1117L-0.000976562 49.3245H8.49656L9.84254 45.4411H18.6469L19.9929 49.3245H28.4891L18.4168 21.9502ZM16.8015 39.559H11.6489C12.5723 36.7902 13.1497 34.9072 13.1497 34.9072C13.6881 33.2166 13.8416 32.5986 14.3032 30.7168C14.5683 32.1202 14.9157 33.5069 15.3436 34.8695C15.3436 34.8695 16.3048 37.9841 16.8041 39.5603L16.8015 39.559ZM35.491 29.4852V49.3232H27.8778V29.4852H35.491Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M46.7945 9.35742H44.0283V18.3946H46.7945V9.35742ZM49.8156 11.8451H47.4044V18.3946H49.917V14.7531C49.917 14.1952 50.0952 13.6098 50.7675 13.6098C51.4009 13.6098 51.5478 14.0792 51.5478 14.6124V18.3946H54.0487V14.7531C54.0487 14.1809 54.2125 13.6488 54.8862 13.6488C55.5598 13.6488 55.686 14.1691 55.686 14.7023V18.3958H58.2246V14.0911C58.2513 13.7675 58.2079 13.4419 58.0973 13.1367C57.9867 12.8314 57.8115 12.5536 57.5838 12.3223C57.356 12.0909 57.0809 11.9115 56.7774 11.7962C56.4739 11.6808 56.1491 11.6322 55.8251 11.6539C55.415 11.6372 55.0072 11.7236 54.6391 11.9054C54.271 12.0872 53.9544 12.3585 53.7183 12.6944C53.5561 12.35 53.2906 12.0646 52.9587 11.8781C52.6268 11.6916 52.245 11.6133 51.8664 11.6539C51.4642 11.634 51.0636 11.7182 50.7034 11.8984C50.3432 12.0786 50.0356 12.3488 49.8103 12.6826V11.8451H49.8156ZM61.2014 11.8451H58.7851V20.5012H61.2847V17.696C61.5108 17.9743 61.7979 18.1969 62.1237 18.3466C62.4495 18.4963 62.8054 18.5693 63.1639 18.5597C64.8389 18.5597 65.9183 17.2397 65.9183 15.1706C65.9183 13.0638 64.7895 11.68 63.0754 11.68C62.7146 11.663 62.3551 11.734 62.0278 11.8867C61.7004 12.0393 61.4151 12.2692 61.1962 12.5566V11.8463L61.2014 11.8451ZM62.3055 13.6866C63.0425 13.6866 63.4105 14.1814 63.4097 15.1706C63.4097 16.1486 63.0416 16.6543 62.3186 16.6543C61.5955 16.6543 61.2144 16.1473 61.2144 15.1824C61.2144 14.2174 61.5955 13.6866 62.3055 13.6866ZM76.1545 16.4267H73.8136C73.7081 16.6084 73.553 16.7563 73.3665 16.8531C73.1799 16.9498 72.9696 16.9916 72.7602 16.9731C72.587 16.9835 72.4136 16.9564 72.2516 16.894C72.0896 16.8317 71.9429 16.7353 71.8214 16.6114C71.6999 16.4876 71.6063 16.3393 71.5471 16.1762C71.4878 16.013 71.4643 15.8389 71.478 15.6659H76.3002V15.4748C76.3478 14.9798 76.2883 14.4804 76.1259 14.0105C75.9635 13.5405 75.7019 13.1112 75.3588 12.7512C75.0158 12.3913 74.5993 12.1093 74.1377 11.9244C73.6761 11.7396 73.1802 11.6562 72.6835 11.68C72.211 11.6555 71.7385 11.7288 71.2956 11.8952C70.8526 12.0616 70.4488 12.3176 70.1093 12.6471C69.7697 12.9766 69.5018 13.3727 69.3222 13.8104C69.1426 14.2482 69.0552 14.7182 69.0655 15.1913C69.0608 15.6651 69.156 16.1346 69.3449 16.5692C69.5339 17.0038 69.8123 17.3937 70.162 17.7135C70.5117 18.0333 70.9249 18.2757 71.3746 18.425C71.8243 18.5744 72.3004 18.6273 72.772 18.5803C73.4941 18.6362 74.2149 18.456 74.8259 18.0669C75.4369 17.6778 75.905 17.1009 76.1597 16.4229L76.1545 16.4267ZM73.8449 14.4083H71.4845C71.4886 14.2552 71.5233 14.1048 71.5864 13.9654C71.6496 13.8259 71.74 13.7005 71.8523 13.5964C71.9646 13.4924 72.0965 13.4116 72.2404 13.3593C72.3842 13.3069 72.5371 13.2838 72.69 13.2913C72.8411 13.2812 72.9926 13.3031 73.1347 13.3551C73.2769 13.4072 73.4065 13.4883 73.5154 13.5936C73.6242 13.6988 73.7097 13.8257 73.7665 13.966C73.8232 14.1064 73.8499 14.257 73.8449 14.4083ZM78.961 11.8451H76.5499V18.3946H79.0625V14.7531C79.0625 14.1952 79.2406 13.6098 79.913 13.6098C80.5476 13.6098 80.6933 14.0792 80.6933 14.6124V18.3946H83.1942V14.7531C83.1942 14.1809 83.358 13.6488 84.0317 13.6488C84.7053 13.6488 84.8315 14.1691 84.8315 14.7023V18.3958H87.3688V14.0911C87.3957 13.7675 87.3525 13.4417 87.2419 13.1364C87.1314 12.831 86.9563 12.5531 86.7284 12.3216C86.5006 12.0902 86.2255 11.9108 85.9219 11.7955C85.6183 11.6803 85.2933 11.632 84.9693 11.6539C84.5591 11.6371 84.1513 11.7236 83.7831 11.9054C83.415 12.0872 83.0985 12.3584 82.8625 12.6944C82.7003 12.35 82.4348 12.0646 82.1028 11.8781C81.7709 11.6916 81.3892 11.6133 81.0106 11.6539C80.6084 11.634 80.2078 11.7182 79.8476 11.8984C79.4874 12.0786 79.1798 12.3488 78.9545 12.6826V11.8451H78.961ZM94.7257 16.4267H92.3848C92.2793 16.6084 92.1242 16.7563 91.9376 16.8531C91.751 16.9498 91.5407 16.9916 91.3314 16.9731C91.1581 16.9835 90.9847 16.9564 90.8227 16.894C90.6608 16.8317 90.5141 16.7353 90.3925 16.6114C90.271 16.4876 90.1774 16.3393 90.1182 16.1762C90.059 16.013 90.0354 15.8389 90.0491 15.6659H94.8713V15.4748C94.9189 14.9798 94.8594 14.4804 94.697 14.0105C94.5346 13.5405 94.273 13.1112 93.9299 12.7512C93.5869 12.3913 93.1705 12.1093 92.7089 11.9244C92.2473 11.7396 91.7513 11.6562 91.2547 11.68C90.7821 11.6555 90.3096 11.7288 89.8667 11.8952C89.4238 12.0616 89.0199 12.3176 88.6804 12.6471C88.3408 12.9766 88.0729 13.3727 87.8933 13.8104C87.7137 14.2482 87.6264 14.7182 87.6367 15.1913C87.632 15.6651 87.7271 16.1346 87.9161 16.5692C88.105 17.0038 88.3834 17.3937 88.7331 17.7135C89.0828 18.0333 89.496 18.2757 89.9457 18.425C90.3954 18.5744 90.8715 18.6273 91.3431 18.5803C92.0653 18.6362 92.7861 18.456 93.397 18.0669C94.008 17.6778 94.4761 17.1009 94.7309 16.4229L94.7257 16.4267ZM92.4173 14.4083H90.0569C90.061 14.2552 90.0957 14.1048 90.1589 13.9654C90.222 13.8259 90.3124 13.7005 90.4247 13.5964C90.537 13.4924 90.6689 13.4116 90.8128 13.3593C90.9567 13.3069 91.1095 13.2838 91.2624 13.2913C91.4135 13.2812 91.565 13.3031 91.7072 13.3551C91.8493 13.4072 91.979 13.4883 92.0878 13.5936C92.1966 13.6988 92.2821 13.8257 92.3389 13.966C92.3956 14.1064 92.4224 14.257 92.4173 14.4083ZM97.5204 11.8451H95.1093V18.3946H97.6219V14.7896C97.6219 14.168 97.882 13.6853 98.5856 13.6853C99.1695 13.6853 99.4361 14.0144 99.4361 14.7258V18.3933H101.962V14.2549C101.962 12.8348 101.365 11.667 99.6012 11.667C99.2005 11.652 98.802 11.7339 98.4397 11.906C98.0774 12.0781 97.7621 12.3352 97.5204 12.6553V11.8451ZM106.837 11.8451V13.4056H105.473V15.7466C105.473 16.3968 105.537 16.648 106.312 16.648C106.486 16.6523 106.659 16.6439 106.832 16.6232V18.4438C106.261 18.4828 106.032 18.4946 105.512 18.4946C103.691 18.4946 102.973 17.9368 102.973 16.3501V13.4186H101.894V11.8581H102.973V9.83971H105.473V11.8581L106.837 11.8451ZM113.553 18.3946C113.319 17.8015 113.223 17.1627 113.273 16.527C113.273 15.5113 113.299 14.8908 113.299 14.0663C113.341 13.6597 113.279 13.2493 113.121 12.8725C112.626 11.8191 111.04 11.6539 110.025 11.6539C107.867 11.6539 106.814 12.364 106.75 13.8492H109.099C109.187 13.3407 109.416 13.1872 110.025 13.1872C110.583 13.1872 110.849 13.3656 110.849 13.7596C110.849 14.3943 109.939 14.355 109.492 14.4188C108.146 14.6099 106.446 14.7753 106.446 16.5518C106.446 17.8523 107.334 18.6092 108.819 18.6092C109.207 18.6306 109.595 18.5675 109.957 18.4247C110.318 18.2819 110.644 18.0626 110.913 17.7818C110.92 17.9887 110.954 18.1938 111.014 18.3917L113.553 18.3946ZM110.861 15.411V15.8012C110.891 16.0849 110.838 16.3714 110.709 16.6257C110.602 16.7891 110.455 16.9219 110.281 17.0109C110.108 17.0998 109.914 17.142 109.719 17.1331C109.627 17.1446 109.534 17.1357 109.446 17.1074C109.358 17.0791 109.278 17.0318 109.21 16.969C109.142 16.9061 109.089 16.8294 109.054 16.7438C109.019 16.6583 109.003 16.566 109.008 16.4737C109.008 16.1186 109.224 15.8896 109.693 15.7882C110.104 15.7352 110.501 15.606 110.864 15.4072L110.861 15.411ZM118.11 11.8451V13.4056H116.752V15.7466C116.752 16.3968 116.816 16.648 117.591 16.648C117.765 16.6523 117.939 16.6439 118.111 16.6232V18.4438C117.54 18.4828 117.311 18.4946 116.791 18.4946C114.971 18.4946 114.253 17.9368 114.253 16.3501V13.4186H113.175V11.8581H114.253V9.83971H116.752V11.8581L118.11 11.8451ZM120.675 9.35742H118.162V11.1091H120.675V9.35742ZM120.675 11.8451H118.162V18.3946H120.675V11.8451ZM124.623 11.6552C124.151 11.6203 123.678 11.6846 123.232 11.8441C122.787 12.0036 122.381 12.2549 122.039 12.5814C121.696 12.9079 121.427 13.3024 121.247 13.7396C121.067 14.1769 120.98 14.6471 120.993 15.1198C120.979 15.5908 121.063 16.0596 121.241 16.4959C121.419 16.9321 121.687 17.3261 122.026 17.6525C122.366 17.979 122.77 18.2306 123.213 18.3911C123.656 18.5516 124.128 18.6176 124.598 18.5844C125.069 18.6139 125.54 18.5445 125.982 18.3809C126.425 18.2173 126.828 17.963 127.166 17.6344C127.504 17.3059 127.77 16.9104 127.946 16.473C128.122 16.0357 128.205 15.5663 128.189 15.095C128.204 14.6284 128.121 14.1637 127.946 13.731C127.77 13.2983 127.506 12.9071 127.17 12.583C126.834 12.2588 126.434 12.0087 125.995 11.8489C125.556 11.6891 125.089 11.6231 124.623 11.6552ZM124.572 13.4761C125.511 13.4761 125.676 14.364 125.676 15.1001C125.676 15.8362 125.536 16.7908 124.597 16.7908C123.658 16.7908 123.506 15.8534 123.506 15.129C123.506 14.0249 123.861 13.4786 124.572 13.4786V13.4761ZM130.881 11.8517H128.47V18.4009H130.982V14.796C130.982 14.1743 131.242 13.692 131.947 13.692C132.531 13.692 132.798 14.0208 132.798 14.7321V18.3996H135.323V14.2616C135.323 12.8415 134.726 11.6736 132.963 11.6736C132.562 11.6586 132.164 11.7406 131.801 11.9127C131.439 12.0848 131.124 12.3416 130.882 12.6617V11.8505L130.881 11.8517ZM68.7417 9.36377H66.2291V18.4009H68.7417V9.36377Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M25.0042 18.6054C25.2534 17.7303 25.2029 16.7971 24.8608 15.954C24.5186 15.1108 23.9044 14.4064 23.1159 13.9524C22.1803 13.4174 21.0706 13.2758 20.0306 13.5584C18.9906 13.841 18.1053 14.5247 17.5692 15.4596C17.0345 16.3952 16.893 17.5049 17.1756 18.5448C17.4582 19.5847 18.1419 20.4701 19.0765 21.0064C19.6764 21.3541 20.3561 21.5403 21.0494 21.5471C21.7427 21.554 22.426 21.3812 23.0326 21.0455C23.2537 20.9246 23.4631 20.7832 23.6582 20.6238C23.7893 20.5145 23.9147 20.3988 24.034 20.2768L27.6143 22.3263C27.3673 23.201 27.4191 24.133 27.7616 24.9749C28.1041 25.8168 28.7177 26.5204 29.5052 26.9742C30.4407 27.5096 31.5505 27.6515 32.5906 27.3689C33.6307 27.0862 34.516 26.4022 35.0518 25.467C35.5869 24.5315 35.7286 23.4218 35.446 22.3818C35.1634 21.3418 34.4795 20.4566 33.5446 19.9205C32.873 19.5308 32.1027 19.3441 31.3272 19.3833C31.1971 19.3911 31.0671 19.4041 30.9371 19.4236C30.0395 19.5603 29.2126 19.9906 28.5857 20.6473L25.0068 18.5978L25.0042 18.6054ZM22.104 15.7212C22.5707 15.9895 22.9121 16.4318 23.0532 16.9512C23.1944 17.4707 23.1238 18.0248 22.857 18.4924C22.589 18.9596 22.1466 19.3017 21.6269 19.4433C21.1072 19.585 20.5525 19.5147 20.0844 19.2481C19.6173 18.9795 19.2756 18.5367 19.1343 18.0168C18.9929 17.4969 19.0633 16.9421 19.3301 16.474C19.5986 16.0069 20.0415 15.6652 20.5615 15.5241C21.0814 15.3829 21.6362 15.454 22.104 15.7212ZM32.5302 21.6903C32.9972 21.9586 33.3388 22.4012 33.48 22.921C33.6211 23.4407 33.5503 23.9954 33.2831 24.4631C33.0151 24.9303 32.5726 25.2723 32.0528 25.4137C31.533 25.5551 30.9783 25.4845 30.5105 25.2175C30.0432 24.9494 29.7014 24.5066 29.56 23.9868C29.4186 23.467 29.4891 22.9125 29.7562 22.4447C30.0247 21.9776 30.4675 21.6359 30.9875 21.4947C31.5075 21.3536 32.0623 21.4231 32.5302 21.6903Z" fill="#469831"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M28.7793 13.4029C29.457 14.009 30.3185 14.3702 31.2258 14.4287C32.1331 14.4872 33.0338 14.2396 33.7836 13.7254C34.6724 13.116 35.283 12.1789 35.4813 11.1197C35.6795 10.0604 35.4492 8.96565 34.841 8.07608C34.2313 7.18756 33.2941 6.57724 32.235 6.37901C31.1758 6.18079 30.0813 6.41087 29.1916 7.01879C28.4415 7.53221 27.8853 8.2826 27.612 9.14956C27.3387 10.0165 27.3642 10.9499 27.6843 11.8007L23.8088 14.4538C23.1305 13.8489 22.2692 13.4886 21.3623 13.4302C20.4553 13.3717 19.5549 13.6184 18.8045 14.1312C17.9161 14.7406 17.3058 15.6777 17.1075 16.7366C16.9093 17.7956 17.1393 18.8898 17.7472 19.7793C18.3566 20.6681 19.2939 21.2787 20.3531 21.477C21.4124 21.6752 22.507 21.4448 23.3966 20.8366C24.1467 20.3232 24.7029 19.5731 24.9762 18.7061C25.2494 17.8392 25.224 16.9054 24.9039 16.0546L28.7793 13.4029ZM32.6366 12.0493C32.1915 12.3525 31.6443 12.467 31.115 12.3678C30.5856 12.2686 30.1171 11.9635 29.8119 11.5197C29.5084 11.0747 29.3936 10.5277 29.4928 9.99825C29.5921 9.46877 29.8972 9.00014 30.3413 8.69521C30.7863 8.39166 31.3335 8.2769 31.863 8.37612C32.3925 8.47533 32.861 8.78041 33.1659 9.22449C33.4695 9.66915 33.5844 10.2161 33.4855 10.7453C33.3865 11.2746 33.0817 11.7428 32.6379 12.0477L32.6366 12.0493ZM22.2482 19.1602C21.8035 19.4642 21.2563 19.5795 20.7267 19.4805C20.1971 19.3815 19.7284 19.0763 19.4235 18.6322C19.1196 18.187 19.0046 17.6395 19.1039 17.1097C19.2031 16.5799 19.5084 16.1113 19.9529 15.8064C20.3979 15.5028 20.9451 15.3881 21.4746 15.4873C22.0041 15.5865 22.4726 15.8916 22.7775 16.3356C23.081 16.7814 23.1951 17.3295 23.0949 17.8593C22.9947 18.3892 22.6883 18.8576 22.243 19.1617L22.2482 19.1602Z" fill="#469831"/>
</g>
<defs>
<clipPath id="clip0_132_10">
<rect width="173.112" height="57.54" fill="white"/>
</clipPath>
</defs>
</svg>
......@@ -36,7 +36,8 @@ class _MyAppState extends State<MyApp> {
clientHash: clientHash,
clientHashId: clientHashId,
buildMode: MyIdBuildMode.PRODUCTION,
)
),
iosAppearance: const MyIdIOSAppearance()
);
error = null;
......
......@@ -10,6 +10,7 @@ public class AppearancePublic: NSObject {
public let primaryButtonTextColor: UIColor?
public let primaryButtonTextColorDisabled: UIColor?
public let buttonCornerRadius: Int?
public let logo: UIImage?
public init(
primaryColor: UIColor?,
......@@ -18,7 +19,8 @@ public class AppearancePublic: NSObject {
primaryButtonColorDisabled: UIColor?,
primaryButtonTextColor: UIColor?,
primaryButtonTextColorDisabled: UIColor?,
buttonCornerRadius: Int?
buttonCornerRadius: Int?,
logo: UIImage?
) {
self.primaryColor = primaryColor
self.errorColor = errorColor
......@@ -27,6 +29,7 @@ public class AppearancePublic: NSObject {
self.primaryButtonTextColor = primaryButtonTextColor
self.primaryButtonTextColorDisabled = primaryButtonTextColorDisabled
self.buttonCornerRadius = buttonCornerRadius
self.logo = logo
}
}
......@@ -51,7 +54,10 @@ public func loadAppearance(config: NSDictionary) throws -> AppearancePublic? {
? nil : UIColor.from(hex: jsonResult["primaryButtonTextColorDisabled"] as! String)
let buttonCornerRadius: Int? = (jsonResult["buttonCornerRadius"] == nil) ? nil : 8
let logo = (jsonResult["logo"] == nil)
? nil : UIImage(named: jsonResult["logo"] as! String)
let appearancePublic = AppearancePublic(
primaryColor: primaryColor,
errorColor: errorColor,
......@@ -59,7 +65,8 @@ public func loadAppearance(config: NSDictionary) throws -> AppearancePublic? {
primaryButtonColorDisabled: primaryButtonColorDisabled,
primaryButtonTextColor: primaryButtonTextColor,
primaryButtonTextColorDisabled: primaryButtonTextColorDisabled,
buttonCornerRadius: buttonCornerRadius
buttonCornerRadius: buttonCornerRadius,
logo: logo
)
return appearancePublic
} else {
......@@ -67,9 +74,7 @@ public func loadAppearance(config: NSDictionary) throws -> AppearancePublic? {
}
}
public func loadAppearanceFromConfig(config: NSDictionary) throws -> MyIdAppearance {
let appearancePublic = try loadAppearance(config: config)
public func loadAppearanceFromConfig(appearancePublic: AppearancePublic?) throws -> MyIdAppearance {
if let appearancePublic = appearancePublic {
let appearance = MyIdAppearance()
appearance.primaryColor = appearancePublic.primaryColor
......@@ -91,8 +96,11 @@ public func loadAppearanceFromConfig(config: NSDictionary) throws -> MyIdAppeara
public func buildMyIdConfig(
config: NSDictionary,
appearance: MyIdAppearance
appearanceConfig: NSDictionary
) throws -> MyIdConfig {
let appearancePublic = try loadAppearance(config: appearanceConfig)
let appearance = try loadAppearanceFromConfig(appearancePublic: appearancePublic)
let clientId = config["clientId"] as? String ?? ""
let clientHash = config["clientHash"] as? String ?? ""
let clientHashId = config["clientHashId"] as? String ?? ""
......@@ -155,7 +163,8 @@ public func buildMyIdConfig(
let organizationDetailsDict = config["organizationDetails"] as? NSDictionary
let organizationDetails = MyIdOrganizationDetails()
organizationDetails.phoneNumber = organizationDetailsDict?["phone"] as? String ?? ""
organizationDetails.logo = appearancePublic?.logo
let config = MyIdConfig()
config.clientId = clientId
config.clientHash = clientHash
......@@ -226,8 +235,7 @@ class MyIdSdk: NSObject, MyIdClientDelegate {
result: @escaping FlutterResult
) {
do {
let appearance = try loadAppearanceFromConfig(config: appearanceConfig)
let myidConfig = try buildMyIdConfig(config: config, appearance: appearance)
let myidConfig = try buildMyIdConfig(config: config, appearanceConfig: appearanceConfig)
MyIdClient.start(withConfig: myidConfig, withDelegate: self)
} catch let error as NSError {
......
......@@ -15,7 +15,7 @@ A new Flutter plugin.
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'MyIdSDK', '2.2.9'
s.dependency 'MyIdSDK', '2.3.1'
s.platform = :ios, '12.0'
# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
......
......@@ -87,6 +87,7 @@ class MyIdIOSAppearance {
final String? primaryButtonTextColor;
final String? primaryButtonTextColorDisabled;
final int? buttonCornerRadius;
final String? logo;
const MyIdIOSAppearance({
this.primaryColor,
......@@ -96,6 +97,7 @@ class MyIdIOSAppearance {
this.primaryButtonTextColor,
this.primaryButtonTextColorDisabled,
this.buttonCornerRadius,
this.logo,
});
factory MyIdIOSAppearance.fromJson(Map<String, dynamic> json) =>
......
......@@ -103,6 +103,7 @@ Map<String, dynamic> _$MyIdIOSAppearanceToJson(MyIdIOSAppearance instance) {
writeNotNull('primaryButtonColorDisabled', instance.primaryButtonColorDisabled);
writeNotNull('primaryButtonTextColorDisabled', instance.primaryButtonTextColorDisabled);
writeNotNull('buttonCornerRadius', instance.buttonCornerRadius);
writeNotNull('logo', instance.logo);
return val;
}
......@@ -114,6 +115,7 @@ MyIdIOSAppearance _$MyIdIOSAppearanceFromJson(Map<String, dynamic> json) {
primaryButtonColorDisabled: json['primaryButtonColorDisabled'] as String?,
primaryButtonTextColorDisabled: json['primaryButtonTextColorDisabled'] as String?,
buttonCornerRadius: json['buttonCornerRadius'] as int?,
logo: json['logo'] as String?,
);
}
......
name: myid
description: MyID SDK plugin for Flutter. Package supports iOS and Android to verify users identity.
version: 1.2.0
version: 1.2.1
homepage: https://pub.dev/packages/myid
repository: https://pub.dev/packages/myid
issue_tracker: https://gitlab.myid.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