Skip to content

Commit

Permalink
Merge pull request #375 from 0xPolygonID/develop
Browse files Browse the repository at this point in the history
Release v2.2.9
  • Loading branch information
plusema86 authored Jan 29, 2024
2 parents 5a2ae7a + 5e6e70a commit c374ec4
Show file tree
Hide file tree
Showing 188 changed files with 5,955 additions and 1,986 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/autoclose_stale_issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Close stale issues and PR'
on:
schedule:
- cron: '00 05 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
stale-issue-message: 'This issue is stale because it has been open 20 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
close-issue-message: 'This issue was closed because it has been stalled for 10 days with no activity.'
days-before-stale: 20
days-before-close: 10
days-before-pr-stale: -1
days-before-pr-close: -1
15 changes: 8 additions & 7 deletions .github/workflows/polygonid_flutter_sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,12 @@ jobs:
# script: cd example&&flutter test integration_test/libpolygonid_test.dart --verbose

# job responsible for publishing the package to pub.dev
publish:
needs: [ common ] #, ios , android ]
runs-on: ubuntu-latest
steps:
- name: Publish dry run
if: github.base_ref == 'main'
run: flutter pub publish --dry-run
# enable it once published for the first time on pub.dev otherwise it will fail
#publish:
# needs: [ common ] #, ios , android ]
# runs-on: ubuntu-latest
# steps:
# - name: Publish dry run
# if: github.base_ref == 'main'
# run: flutter pub publish --dry-run

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 2.2.9
- Multiple circuits download and circuit V3 support
- Credential rawValue field on the claimDTO and claimEntity
- Credential refresh service
- Credential DisplayType capability
- Minor fixes

## 2.2.8+2
- Fixed protocol library method for revocation status check

Expand Down
2 changes: 1 addition & 1 deletion 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.8+2-blueviolet)](https://pub.dev/packages/polygonid_flutter_sdk)
[![pub package](https://img.shields.io/badge/pub-2.2.9-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 Down
2 changes: 1 addition & 1 deletion android/sdk.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ext {
sdkVersion = '2.2.6'
sdkVersion = '2.2.9'
}
12 changes: 12 additions & 0 deletions android/src/main/jniLibs/arm64-v8a/libpolygonid.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,19 @@ extern GoUint8 PLGNAtomicQuerySigV2OnChainInputs(char** jsonResponse, char* in,
// }
//
extern GoUint8 PLGNAtomicQueryMtpV2OnChainInputs(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);

// PLGNAtomicQueryV3Inputs returns the inputs for the credentialAtomicQueryV3
// circuit with optional selective disclosure.
//
extern GoUint8 PLGNAtomicQueryV3Inputs(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);

// PLGNAtomicQueryV3OnChainInputs returns the inputs for the
// credentialAtomicQueryV3OnChain circuit with optional selective disclosure.
//
extern GoUint8 PLGNAtomicQueryV3OnChainInputs(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);
extern void PLGNFreeStatus(PLGNStatus* status);
extern GoUint8 PLGNCleanCache(PLGNStatus** status);
extern GoUint8 PLGNCacheCredentials(char* in, char* cfg, PLGNStatus** status);

#ifdef __cplusplus
}
Expand Down
Binary file modified android/src/main/jniLibs/arm64-v8a/libpolygonid.so
Binary file not shown.
Binary file modified android/src/main/jniLibs/arm64-v8a/libwitnesscalc_authV2.so
100755 → 100644
Binary file not shown.
Binary file modified android/src/main/jniLibs/arm64-v8a/libwitnesscalc_credentialAtomicQueryMTPV2.so
100755 → 100644
Binary file not shown.
Binary file modified android/src/main/jniLibs/arm64-v8a/libwitnesscalc_credentialAtomicQueryMTPV2OnChain.so
100755 → 100644
Binary file not shown.
Binary file modified android/src/main/jniLibs/arm64-v8a/libwitnesscalc_credentialAtomicQuerySigV2.so
100755 → 100644
Binary file not shown.
Binary file modified android/src/main/jniLibs/arm64-v8a/libwitnesscalc_credentialAtomicQuerySigV2OnChain.so
100755 → 100644
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern "C" {
*
*/

extern int
int
witnesscalc_credentialAtomicQueryMTPV2(
const char *circuit_buffer, unsigned long circuit_size,
const char *json_buffer, unsigned long json_size,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern "C" {
*
*/

extern int
int
witnesscalc_credentialAtomicQueryMTPV2OnChain(
const char *circuit_buffer, unsigned long circuit_size,
const char *json_buffer, unsigned long json_size,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern "C" {
*
*/

extern int
int
witnesscalc_credentialAtomicQuerySigV2(
const char *circuit_buffer, unsigned long circuit_size,
const char *json_buffer, unsigned long json_size,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern "C" {
*
*/

extern int
int
witnesscalc_credentialAtomicQuerySigV2OnChain(
const char *circuit_buffer, unsigned long circuit_size,
const char *json_buffer, unsigned long json_size,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#ifndef WITNESSCALC_CREDENTIALATOMICQUERYV3_H
#define WITNESSCALC_CREDENTIALATOMICQUERYV3_H


#ifdef __cplusplus
extern "C" {
#endif

#define WITNESSCALC_OK 0x0
#define WITNESSCALC_ERROR 0x1
#define WITNESSCALC_ERROR_SHORT_BUFFER 0x2

/**
*
* @return error code:
* WITNESSCALC_OK - in case of success.
* WITNESSCALC_ERROR - in case of an error.
*
* On success wtns_buffer is filled with witness data and
* wtns_size contains the number bytes copied to wtns_buffer.
*
* If wtns_buffer is too small then the function returns WITNESSCALC_ERROR_SHORT_BUFFER
* and the minimum size for wtns_buffer in wtns_size.
*
*/

int
witnesscalc_credentialAtomicQueryV3(
const char *circuit_buffer, unsigned long circuit_size,
const char *json_buffer, unsigned long json_size,
char *wtns_buffer, unsigned long *wtns_size,
char *error_msg, unsigned long error_msg_maxsize);

#ifdef __cplusplus
}
#endif


#endif // WITNESSCALC_CREDENTIALATOMICQUERYV3_H
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#ifndef WITNESSCALC_CREDENTIALATOMICQUERYV3ONCHAIN_H
#define WITNESSCALC_CREDENTIALATOMICQUERYV3ONCHAIN_H


#ifdef __cplusplus
extern "C" {
#endif

#define WITNESSCALC_OK 0x0
#define WITNESSCALC_ERROR 0x1
#define WITNESSCALC_ERROR_SHORT_BUFFER 0x2

/**
*
* @return error code:
* WITNESSCALC_OK - in case of success.
* WITNESSCALC_ERROR - in case of an error.
*
* On success wtns_buffer is filled with witness data and
* wtns_size contains the number bytes copied to wtns_buffer.
*
* If wtns_buffer is too small then the function returns WITNESSCALC_ERROR_SHORT_BUFFER
* and the minimum size for wtns_buffer in wtns_size.
*
*/

int
witnesscalc_credentialAtomicQueryV3OnChain(
const char *circuit_buffer, unsigned long circuit_size,
const char *json_buffer, unsigned long json_size,
char *wtns_buffer, unsigned long *wtns_size,
char *error_msg, unsigned long error_msg_maxsize);

#ifdef __cplusplus
}
#endif


#endif // WITNESSCALC_CREDENTIALATOMICQUERYV3ONCHAIN_H
12 changes: 12 additions & 0 deletions android/src/main/jniLibs/armeabi-v7a/libpolygonid.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,19 @@ extern GoUint8 PLGNAtomicQuerySigV2OnChainInputs(char** jsonResponse, char* in,
// }
//
extern GoUint8 PLGNAtomicQueryMtpV2OnChainInputs(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);

// PLGNAtomicQueryV3Inputs returns the inputs for the credentialAtomicQueryV3
// circuit with optional selective disclosure.
//
extern GoUint8 PLGNAtomicQueryV3Inputs(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);

// PLGNAtomicQueryV3OnChainInputs returns the inputs for the
// credentialAtomicQueryV3OnChain circuit with optional selective disclosure.
//
extern GoUint8 PLGNAtomicQueryV3OnChainInputs(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);
extern void PLGNFreeStatus(PLGNStatus* status);
extern GoUint8 PLGNCleanCache(PLGNStatus** status);
extern GoUint8 PLGNCacheCredentials(char* in, char* cfg, PLGNStatus** status);

#ifdef __cplusplus
}
Expand Down
Loading

0 comments on commit c374ec4

Please sign in to comment.