Skip to content

Commit

Permalink
Merge pull request #4 from tamojuno/develop
Browse files Browse the repository at this point in the history
Versão 1.0.2
  • Loading branch information
Osmar Filbido de Andrade Filho committed Jun 17, 2021
2 parents 06fa384 + 6870eb4 commit a0f229f
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ build/
.idea/
.vscode/
*.iml
*.lock
*.lock
android/.project

example/android/app/.project
18 changes: 14 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
## 1.0.1
#NullSafety
# Changelog

## 1.0.0
#First Version
## [Unreleased]

## [1.0.2] - 2021-06-17
### Added
- Possibility of sending dynamic token

## [1.0.1] - 2021-04-03
### Added
- NullSafety for Flutter 2

## [1.0.0] - 2020-07-22
### Added
- First Version
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
disable 'InvalidPackage'
}
dependencies {
implementation "com.github.tamojuno:direct-checkout-android:1.0.2"
implementation "com.github.tamojuno:direct-checkout-android:1.0.3"
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.61'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,14 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
switch (call.method) {
case "init":
Boolean prod = true;
final String token = call.argument("public_token");

if (call.hasArgument("prod")) {
prod = call.argument("prod");
}

InitializeDirectCheckoutListener initializeListener = new InitializeDirectCheckoutListener(result);
DirectCheckout.initialize(context, prod, initializeListener);
DirectCheckout.initialize(context, prod, token, initializeListener);
break;
case "getCardHash":
CodigoHashDirectCheckoutListener listener = new CodigoHashDirectCheckoutListener(result);
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: juno_direct_checkout
description: SDK para criptografia e validação de dados do cartão de crédito para integração com a API de pagamentos da Juno/BoletoBancário.
version: 1.0.1
description: SDK for encryption and validation of credit card data for integration with the Juno/BoletoBancário payment API.
version: 1.0.2
homepage: https://github.com/tamojuno/juno_direct_checkout_flutter

environment:
Expand Down

0 comments on commit a0f229f

Please sign in to comment.