Skip to content

Commit

Permalink
release 2.2.8 (#334)
Browse files Browse the repository at this point in the history
* updated dependencies

* updated injector

* updated polygonidlib to v2.1.1

* fixing selective disclosure

* fix wrong proof type claims returned in the get claims use case

* improve performance

* cache schema

* updated c-lib for iOS and Android

* added double as valid query value type

* get schema with Dio and caching it, checking if result type Map or String

* added DateTime check on String query value

* fixed problem with nested keys

* added the method to clean schema cache manually

* update ios libraries with ASM and parallelization, some fixes in ffasm and fr and fq

* logger() instead of print()

* Stacktrace stream manager

* stacktrace step as stream and complete stacktrace as string

* error trace

* stacktrace/error reporting, added more events

* changed name to StacktraceManager and added more stacktrace

* cleaned params passed to stacktrace from the usecases

* hive db used to persist the stacktrace

* removed deprecated logger level trace v and wtf

* resolve flutter analyzer issues

* increment sdk version number

* hotfix bug with sembast [2] codec signature error

* SDK improvements

* parallelization and execution time tracking in debug mode

* fixed bug with new version of encrypt library

* removed caching of DB

* closing database after a transaction

* profiles storing

* profiles did connections storing

* hotfix bug with sembast [2] codec signature error

* Removed the possibility of exposing sensitive data if stacktrace is enabled

* Moved stacktrace and error to dedicated class

* fix errorHandling dependency injection, get the method sync instead of async

* added challenge to authenticate method, needed if we want to add to the proof the challenge when we are trying to authenticate with on-chain circuits

* new libpolygonid library

* throw exception if wrong schema format

* added a message string to Invalid proof reqeuest exception

* added utc format to _isDateTime check

* removed did check from test ( not used actually )

---------

Co-authored-by: Raul J <[email protected]>
Co-authored-by: Dmytro Sukhyi <[email protected]>
  • Loading branch information
3 people authored Oct 17, 2023
1 parent c65578c commit ea76f85
Show file tree
Hide file tree
Showing 181 changed files with 4,817 additions and 1,744 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 2.2.8
- Improved performance on iOS devices
- Schema caching
- Complete support for querying nested fields of credentials
- Complete support on double and date time type fields
- Added system to check last error happened on the SDK
- Added stacktrace system (disabled by default)

## 2.1.1
- Proof type support hotfix

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Polygon ID Flutter SDK

[![pub package](https://img.shields.io/badge/pub-2.2.7-blueviolet)](https://pub.dev/packages/polygonid_flutter_sdk)
[![pub package](https://img.shields.io/badge/pub-2.2.8-blueviolet)](https://pub.dev/packages/polygonid_flutter_sdk)
[![build](https://github.com/iden3/polygonid-flutter-sdk/workflows/polygonid_flutter_sdk/badge.svg)](https://github.com/iden3/polygonid-flutter-sdk/actions?query=workflow%3Apolygonid_flutter_sdk)
[![codecov](https://codecov.io/gh/iden3/polygonid-flutter-sdk/branch/develop/graph/badge.svg?token=0SI0XWGXKL)](https://codecov.io/gh/iden3/polygonid-flutter-sdk)
[![license](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/iden3/polygonid-flutter-sdk/blob/master/LICENSE-APACHE)
Expand All @@ -30,7 +30,7 @@ If you want to test a specific branch of the repository, pull `polygonid_flutter
dependencies:
polygonid_flutter_sdk:
git:
url: ssh://[email protected]/iden3/polygonid-flutter-sdk.git
url: ssh://[email protected]/0xPolygonID/polygonid-flutter-sdk.git
ref: branchPathName
```

Expand Down
Binary file modified android/src/main/jniLibs/arm64-v8a/libpolygonid.so
Binary file not shown.
Binary file modified android/src/main/jniLibs/armeabi-v7a/libpolygonid.so
Binary file not shown.
Binary file modified android/src/main/jniLibs/x86/libpolygonid.so
Binary file not shown.
Binary file modified android/src/main/jniLibs/x86_64/libpolygonid.so
Binary file not shown.
1 change: 1 addition & 0 deletions example/integration_test/app_real_data_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ void main() {
await widgetTester
.tap(find.byKey(CustomWidgetsKeys.authScreenButtonConnect));
await widgetTester.pumpAndSettle();

key.currentState?.pop(iden3Message);
await widgetTester.pumpAndSettle();

Expand Down
14 changes: 7 additions & 7 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1300;
LastUpgradeCheck = 1430;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down Expand Up @@ -469,15 +469,15 @@
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = JHD5NWPZ36;
DEVELOPMENT_TEAM = 6K7H9274Q6;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.iden3.polygonid-flutter-sdk.example";
PRODUCT_BUNDLE_IDENTIFIER = "com.polygonid.polygonid-flutter-sdk.example";
PRODUCT_NAME = "$(TARGET_NAME)";
STRIP_STYLE = "non-global";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down Expand Up @@ -603,15 +603,15 @@
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = JHD5NWPZ36;
DEVELOPMENT_TEAM = 6K7H9274Q6;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.iden3.polygonid-flutter-sdk.example";
PRODUCT_BUNDLE_IDENTIFIER = "com.polygonid.polygonid-flutter-sdk.example";
PRODUCT_NAME = "$(TARGET_NAME)";
STRIP_STYLE = "non-global";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand All @@ -629,15 +629,15 @@
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = JHD5NWPZ36;
DEVELOPMENT_TEAM = 6K7H9274Q6;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.iden3.polygonid-flutter-sdk.example";
PRODUCT_BUNDLE_IDENTIFIER = "com.polygonid.polygonid-flutter-sdk.example";
PRODUCT_NAME = "$(TARGET_NAME)";
STRIP_STYLE = "non-global";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
8 changes: 4 additions & 4 deletions example/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
</array>
<key>NSCameraUsageDescription</key>
<string>This app needs camera access to scan QR codes for authentication, claim offers and proof requests</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This app needs photo library access to upload qr code images</string>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
Expand All @@ -49,9 +53,5 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>NSPhotoLibraryUsageDescription</key>
<string>This app needs photo library access to upload qr code images</string>
</dict>
</plist>
22 changes: 4 additions & 18 deletions example/lib/src/common/app_logger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,28 @@ class AppLogger implements PolygonIdSdkLogger {
@override
void d(message, [error, StackTrace? stackTrace]) {
if (kDebugMode) {
_logger.d(message, error, stackTrace);
_logger.d(message, error: error, stackTrace: stackTrace);
}
}

@override
void e(message, [error, StackTrace? stackTrace]) {
if (kDebugMode) {
_logger.e(message, error, stackTrace);
_logger.e(message, error: error, stackTrace: stackTrace);
}
}

@override
void i(message, [error, StackTrace? stackTrace]) {
if (kDebugMode) {
_logger.i(message, error, stackTrace);
}
}

@override
void v(message, [error, StackTrace? stackTrace]) {
if (kDebugMode) {
_logger.v(message, error, stackTrace);
_logger.i(message, error: error, stackTrace: stackTrace);
}
}

@override
void w(message, [error, StackTrace? stackTrace]) {
if (kDebugMode) {
_logger.w(message, error, stackTrace);
}
}

@override
void wtf(message, [error, StackTrace? stackTrace]) {
if (kDebugMode) {
_logger.wtf(message, error, stackTrace);
_logger.w(message, error: error, stackTrace: stackTrace);
}
}
}
2 changes: 1 addition & 1 deletion example/lib/src/presentation/navigations/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Routes {

///
static WidgetBuilder _qrCodeScannerRoute() {
return (BuildContext context) => const QRCodeScannerPage();
return (BuildContext context) => const QRViewExample();
}

///
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'package:country_code/country_code.dart';
import 'package:country_list/country_list.dart';
import 'package:intl/intl.dart';
import 'package:polygonid_flutter_sdk/common/domain/domain_logger.dart';
import 'package:polygonid_flutter_sdk/common/mappers/from_mapper.dart';
Expand Down
1 change: 1 addition & 0 deletions example/lib/src/presentation/ui/home/home_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class HomeBloc extends Bloc<HomeEvent, HomeState> {
try {
PrivateIdentityEntity identity =
await _polygonIdSdk.identity.addIdentity();
print("identity: ${identity.privateKey}");
await SecureStorage.write(
key: SecureStorageKeys.privateKey, value: identity.privateKey);
emit(HomeState.loaded(identifier: identity.did));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*
import 'dart:math';
import 'dart:ui';
import 'dart:ui' as ui;
Expand Down Expand Up @@ -96,3 +97,4 @@ class BarcodeDetectorPainter extends CustomPainter {
oldDelegate.barcodes != barcodes;
}
}
*/
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*
import 'dart:io';
import 'package:camera/camera.dart';
Expand Down Expand Up @@ -345,23 +346,24 @@ class _CameraViewState extends State<CameraView> {
final planeData = image.planes.map(
(Plane plane) {
return InputImagePlaneMetadata(
return InputImageMetadata(
bytesPerRow: plane.bytesPerRow,
height: plane.height,
width: plane.width,
size: imageSize,
rotation: imageRotation,
format: inputImageFormat,
);
},
).toList();
final inputImageData = InputImageData(
final inputImageData = InputImageMetadata(
size: imageSize,
imageRotation: imageRotation,
inputImageFormat: inputImageFormat,
planeData: planeData,
rotation: imageRotation,
format: inputImageFormat,
bytesPerRow: image.planes.first.bytesPerRow,
);
final inputImage =
InputImage.fromBytes(bytes: bytes, inputImageData: inputImageData);
InputImage.fromBytes(bytes: bytes, metadata: inputImageData);
widget.onImage(inputImage);
}
Expand Down Expand Up @@ -459,3 +461,4 @@ class _CameraViewState extends State<CameraView> {
});
}
}
*/
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*
import 'dart:io';
import 'dart:ui';
Expand Down Expand Up @@ -34,3 +35,4 @@ double translateY(
return y * size.height / absoluteImageSize.height;
}
}
*/
Loading

0 comments on commit ea76f85

Please sign in to comment.