Skip to content

Commit

Permalink
upgraded version with no panic
Browse files Browse the repository at this point in the history
  • Loading branch information
jerson committed Feb 5, 2021
1 parent aa5f180 commit aa0004e
Show file tree
Hide file tree
Showing 23 changed files with 2,966 additions and 957 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.3

- Fixed panic when invalid keys are used https://github.com/jerson/flutter-rsa/issues/13

## 1.3.2

- Tests CI and github actions for drive
Expand Down
Binary file modified android/src/main/jniLibs/arm64-v8a/librsa_bridge.so
Binary file not shown.
Binary file modified android/src/main/jniLibs/armeabi-v7a/librsa_bridge.so
Binary file not shown.
Binary file modified android/src/main/jniLibs/x86/librsa_bridge.so
Binary file not shown.
Binary file modified android/src/main/jniLibs/x86_64/librsa_bridge.so
Binary file not shown.
3 changes: 2 additions & 1 deletion example/lib/hash.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class _HashState extends State<Hash> {
key: Key("encode"),
result: _encrypted,
onPressed: (controller) async {
var encrypted = await RSA.hash(controller.text, pb.Hash.HASH_SHA512);
var encrypted =
await RSA.hash(controller.text, pb.Hash.HASH_SHA512);
setState(() {
_encrypted = encrypted;
});
Expand Down
2 changes: 1 addition & 1 deletion example/lib/main_desktop.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import 'package:fast_rsa/rsa.dart';
void main() {
RSA.bindingEnabled = false;
original_main.main();
}
}
12 changes: 6 additions & 6 deletions example/lib/shared/button_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ class _ButtonWidgetState extends State<ButtonWidget> {
),
(_loading)
? Text(
widget.result,
key: Key("loading"),
)
widget.result,
key: Key("loading"),
)
: Text(
widget.result,
key: Key("result"),
)
widget.result,
key: Key("result"),
)
],
),
);
Expand Down
12 changes: 6 additions & 6 deletions example/lib/shared/input_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ class _InputWidgetState extends State<InputWidget> {
),
(_loading)
? Text(
widget.result,
key: Key("loading"),
)
widget.result,
key: Key("loading"),
)
: Text(
widget.result,
key: Key("result"),
)
widget.result,
key: Key("result"),
)
],
),
);
Expand Down
11 changes: 2 additions & 9 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.3.1"
version: "1.3.3"
ffi:
dependency: transitive
description:
Expand Down Expand Up @@ -208,13 +208,6 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.3-nullsafety.3"
json_rpc_2:
dependency: transitive
description:
name: json_rpc_2
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.2"
logging:
dependency: transitive
description:
Expand Down Expand Up @@ -312,7 +305,7 @@ packages:
name: protobuf
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.1.1"
pub_semver:
dependency: transitive
description:
Expand Down
Binary file modified ios/librsa_bridge.a
Binary file not shown.
3 changes: 2 additions & 1 deletion ios/librsa_bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
extern "C" {
#endif

extern BytesReturn* RSABridgeCall(char* name, void* payload, int payloadSize);

extern BytesReturn* RSABridgeCall(char* p0, void* p1, int p2);

#ifdef __cplusplus
}
Expand Down
Loading

0 comments on commit aa0004e

Please sign in to comment.