Skip to content

Commit 552de4f

Browse files
author
Emanuel Muroni
authored
Merge pull request #412 from 0xPolygonID/develop
SDK Release 2.3.1 PR
2 parents 5f806b4 + 382656d commit 552de4f

File tree

156 files changed

+1871
-1434
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+1871
-1434
lines changed

.gitguardian.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
3+
secret:
4+
ignored_paths:
5+
- 'lib/constants.dart'
6+
- .gitignore
7+
- '**/README.md'

.github/workflows/polygonid_flutter_sdk.yml

Lines changed: 0 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ jobs:
3535

3636
- name: Clean, dependencies and generate for Example
3737
env:
38-
ENV_POLYGON_MUMBAI: ${{ secrets.ENV_POLYGON_MUMBAI }}
39-
ENV_POLYGON_MAINNET: ${{ secrets.ENV_POLYGON_MUMBAI }}
4038
DEFAULT_ENV: ${{ secrets.DEFAULT_ENV }}
4139
STACKTRACE_ENCRYPTION_KEY: ${{ secrets.STACKTRACE_ENCRYPTION }}
4240
PINATA_GATEWAY: ${{ secrets.PINATA_GATEWAY }}
@@ -57,114 +55,6 @@ jobs:
5755
with:
5856
token: ${{ secrets.CODECOV_TOKEN }}
5957

60-
# job responsible for running Flutter tests on iOS devices
61-
ios:
62-
# needs: common
63-
# Creates a build matrix for your jobs. You can define different variations of an environment to run each job
64-
strategy:
65-
matrix:
66-
device:
67-
# The available simulators are listed by the "xcrun xctrace list devices" command
68-
- "iPhone 13 Pro Max Simulator (16.2)" # the name of the simulator could be different depending on the macos version you are using
69-
# if one of the jobs in the matrix expansion fails, the rest of the jobs will be cancelled
70-
fail-fast: true
71-
runs-on: macos-latest # or macos-latest if you prefer, but be aware that the available simulators could be different if you run a different version
72-
steps:
73-
- name: checkout
74-
uses: actions/checkout@v3
75-
76-
- name: Setup Flutter SDK
77-
uses: subosito/flutter-action@v2
78-
with:
79-
flutter-version: '3.19.3'
80-
channel: 'stable'
81-
cache: true
82-
# instead of "channel: stable", you could be more precise by specifying the exact version of Flutter you're using:
83-
# flutter-version: '<FLUTTER_VERSION>'
84-
85-
- name: Verify Flutter version
86-
run: flutter --version
87-
88-
- name: Clean, dependencies and generate for SDK
89-
run: flutter clean&&flutter pub get&&dart run build_runner build --delete-conflicting-outputs
90-
91-
- name: Clean, dependencies and generate for Example
92-
env:
93-
ENV_POLYGON_MUMBAI: ${{ secrets.ENV_POLYGON_MUMBAI }}
94-
ENV_POLYGON_MAINNET: ${{ secrets.ENV_POLYGON_MUMBAI }}
95-
run: cd example&&flutter clean&&flutter pub get&&dart run build_runner build --delete-conflicting-outputs
96-
97-
- name: "List all simulators"
98-
run: "xcrun xctrace list devices"
99-
- name: "Start Simulator"
100-
# the command "xcrun simctl boot" expects a device identifier
101-
# the assignment of the UDID variable consists of retrieving the ID of the simulator
102-
# by extracting it from the command "xcrun xctrace list devices"
103-
run: |
104-
UDID=$(xcrun xctrace list devices | grep "^${{ matrix.device }}" | awk '{gsub(/[()]/,""); print $NF}')
105-
echo $UDID
106-
xcrun simctl boot "${UDID:?No Simulator with this name found}"
107-
108-
#- name: Run integration tests
109-
# run: cd example&&flutter test integration_test/libpolygonid_test.dart --verbose
110-
111-
# job responsible for running Flutter tests on Android devices
112-
# android:
113-
# needs: common
114-
# runs-on: macos-latest
115-
# strategy:
116-
# matrix:
117-
# api-level: [ 32 ] #[ 21, 23, 29, 32 ]
118-
# target: [ google_apis ] #[ default, google_apis ]
119-
# if one of the jobs in the matrix expansion fails, the rest of the jobs will be cancelled
120-
# fail-fast: true
121-
# steps:
122-
# - name: Setup Java
123-
# uses: actions/setup-java@v3
124-
# with:
125-
# distribution: 'zulu'
126-
# java-version: "12.x"
127-
# cache: 'gradle'
128-
129-
# - name: Gradle cache
130-
# uses: gradle/gradle-build-action@v2
131-
132-
# - name: AVD cache
133-
# uses: actions/cache@v3
134-
# id: avd-cache
135-
# with:
136-
# path: |
137-
# ~/.android/avd/*
138-
# ~/.android/adb*
139-
# key: avd-${{ matrix.api-level }}
140-
141-
# - name: create AVD and generate snapshot for caching
142-
# if: (github.base_ref == 'develop' || github.base_ref == 'main') && steps.avd-cache.outputs.cache-hit != 'true'
143-
# uses: reactivecircus/android-emulator-runner@v2
144-
# with:
145-
# api-level: ${{ matrix.api-level }}
146-
# target: ${{ matrix.target }}
147-
# force-avd-creation: false
148-
# emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
149-
# disable-animations: false
150-
# arch: x86_64
151-
# profile: Nexus 6
152-
# script: echo "Generated AVD snapshot for caching."
153-
154-
#- name: Run integration tests
155-
# if: github.base_ref == 'develop' || github.base_ref == 'main'
156-
# more info on https://github.com/ReactiveCircus/android-emulator-runner
157-
# uses: reactivecircus/android-emulator-runner@v2
158-
# with:
159-
# api-level: ${{ matrix.api-level }}
160-
# target: ${{ matrix.target }}
161-
# force-avd-creation: false
162-
# emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
163-
# disable-animations: true
164-
# arch: x86_64
165-
# profile: Nexus 6
166-
# script: cd example&&flutter test integration_test/libpolygonid_test.dart --verbose
167-
16858
# job responsible for publishing the package to pub.dev
16959
# enable it once published for the first time on pub.dev otherwise it will fail
17060
#publish:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 2.3.1
2+
- Added support for LinkedMultiQuery Circuit
3+
- Problem report message object
4+
- Fix for $exists operator
5+
- Fix for linked proofs
6+
- Fix for refresh credential while creating a proof with an expired credential (refresh service is needed)
7+
18
## 2.3.0
29
- New operators for circuit V3 beta 1
310
- On-chain credential fetch

LICENSE-APACHE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
Copyright (C) 2023 ZKID Labs AG
21
Apache License
32
Version 2.0, January 2004
43
http://www.apache.org/licenses/

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
# Polygon ID Flutter SDK
66

7-
[![pub package](https://img.shields.io/badge/pub-2.3.0-blueviolet)](https://pub.dev/packages/polygonid_flutter_sdk)
7+
[![pub package](https://img.shields.io/badge/pub-2.3.1-blueviolet)](https://pub.dev/packages/polygonid_flutter_sdk)
88
[![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)
99
[![codecov](https://codecov.io/gh/iden3/polygonid-flutter-sdk/branch/develop/graph/badge.svg?token=0SI0XWGXKL)](https://codecov.io/gh/iden3/polygonid-flutter-sdk)
1010
[![license](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/iden3/polygonid-flutter-sdk/blob/master/LICENSE-APACHE)
1111
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/iden3/polygonid-flutter-sdk/blob/master/LICENSE-MIT)
1212

1313
# Breaking change
14-
The content of the QR code provided by the Issuer or Verifier will change with the actual release of the [Issuer node](https://github.com/0xPolygonID/issuer-node/releases/tag/v2.3.0).
14+
The content of the QR code provided by the Issuer or Verifier will change with the actual release of the [Issuer node](https://github.com/0xPolygonID/issuer-node/releases/tag/v2.3.1).
1515
Please check the [IDEN3MESSAGE_PARSER.md](IDEN3MESSAGE_PARSER.md) file for more information on how to parse the new QR code content.
1616

1717
## Description
@@ -57,7 +57,7 @@ import 'package:polygonid_flutter_sdk/sdk/polygon_id_sdk.dart';
5757
5858
Future<void> main() async {
5959
await PolygonIdSdk.init(
60-
env: EnvEntity.v1(
60+
env: EnvEntity(
6161
pushUrl: 'https://push-staging.polygonid.com/api/v1',
6262
ipfsUrl:
6363
"https://[YOUR-IPFS-API-KEY]:[YOUR-IPFS-API-KEY-SECRET]@ipfs.infura.io:5001",

android/sdk.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
ext {
2-
sdkVersion = '2.3.0'
2+
sdkVersion = '2.3.1'
33
}

android/src/main/jniLibs/arm64-v8a/libpolygonid.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ extern GoUint8 PLGNAtomicQueryV3Inputs(char** jsonResponse, char* in, char* cfg,
182182
// credentialAtomicQueryV3OnChain circuit with optional selective disclosure.
183183
//
184184
extern GoUint8 PLGNAtomicQueryV3OnChainInputs(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);
185+
186+
// PLGNALinkedMultiQueryInputs returns the inputs for the
187+
// linkedMultiQuery10-beta.1 circuit.
188+
//
189+
extern GoUint8 PLGNALinkedMultiQueryInputs(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);
185190
extern void PLGNFreeStatus(PLGNStatus* status);
186191
extern GoUint8 PLGNCleanCache(PLGNStatus** status);
187192
extern GoUint8 PLGNCacheCredentials(char* in, char* cfg, PLGNStatus** status);
33.3 KB
Binary file not shown.
Binary file not shown.

android/src/main/jniLibs/armeabi-v7a/libpolygonid.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ extern GoUint8 PLGNAtomicQueryV3Inputs(char** jsonResponse, char* in, char* cfg,
182182
// credentialAtomicQueryV3OnChain circuit with optional selective disclosure.
183183
//
184184
extern GoUint8 PLGNAtomicQueryV3OnChainInputs(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);
185+
186+
// PLGNALinkedMultiQueryInputs returns the inputs for the
187+
// linkedMultiQuery10-beta.1 circuit.
188+
//
189+
extern GoUint8 PLGNALinkedMultiQueryInputs(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);
185190
extern void PLGNFreeStatus(PLGNStatus* status);
186191
extern GoUint8 PLGNCleanCache(PLGNStatus** status);
187192
extern GoUint8 PLGNCacheCredentials(char* in, char* cfg, PLGNStatus** status);

0 commit comments

Comments
 (0)