generated from nventive/Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from nventive/dev/keta/deploy
Integrate the CI for continous deployment to pub.dev
- Loading branch information
Showing
8 changed files
with
73 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
## 0.2.0 | ||
## 1.0.0 | ||
|
||
- First stable deployment. | ||
|
||
## 0.2.1 | ||
|
||
- Setup CI pipeline for deployment to dart pub hub. | ||
|
||
## 0.0.1 | ||
|
||
- Implementing `RequestsSignatureInterceptor`. | ||
- Setup CI pipeline for deployment to dart pub hub. | ||
- Setup CI pipeline for validating that changes are valid. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import 'package:requests_signature_dart/requests_signature_dart.dart'; | ||
import 'package:requests_signature_dart/src/client/requests_signature_options.dart'; | ||
import 'package:dio/dio.dart'; | ||
|
||
void main() { | ||
// Instantiate Dio client. | ||
final dio = Dio(); | ||
|
||
// Define signature options. | ||
final signatureOptions = RequestsSignatureOptions( | ||
clientId: 'your_client_id', // Your unique client ID | ||
clientSecret: 'your_client_secret', // Your client secret key | ||
headerName: | ||
'X-Request-Signature', // Name of the custom header for the signature | ||
signaturePattern: | ||
'{ClientId}:{Nonce}:{Timestamp}:{SignatureBody}', // Pattern for the signature header value | ||
clockSkew: Duration( | ||
seconds: 30), // Clock skew duration (30 seconds in this example) | ||
disableAutoRetryOnClockSkew: | ||
false, // Disable auto retry on clock skew if set to true | ||
); | ||
|
||
// Instantiate interceptor. | ||
final interceptor = RequestsSignatureInterceptor( | ||
signatureOptions, | ||
dio, | ||
); | ||
|
||
// Add interceptor to Dio client. | ||
dio.interceptors.add(interceptor); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters