Skip to content

Commit

Permalink
Final Release
Browse files Browse the repository at this point in the history
  • Loading branch information
MoazSalem committed Jul 13, 2023
1 parent f27faa2 commit 92baa1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Bloc/ble_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class BleBloc extends Bloc<BleEvent, BleState> {
// if there were no keys before, generate new ones
// but if there was keys make sure to use the old ones
keys +=
"${chosenDevices[i].id}||${box.get("Keys", defaultValue: "") == "" || !box.get("Keys").contains(chosenDevices[i].id) ? encrypt.Key.fromSecureRandom(32).base64 : searchKeys(chosenDevices[i].id)}";
"${chosenDevices[i].id}||${box.get("Keys", defaultValue: "") == "" || !box.get("Keys").contains(chosenDevices[i].id) ? encrypt.Key.fromSecureRandom(16).base64 : searchKeys(chosenDevices[i].id)}";
vectors +=
"${chosenDevices[i].id}||${box.get("Vectors", defaultValue: "") == "" || !box.get("Vectors").contains(chosenDevices[i].id) ? encrypt.IV.fromSecureRandom(16).base64 : searchVectors(chosenDevices[i].id)}";
// device can have multiple uuids
Expand Down Expand Up @@ -293,7 +293,7 @@ class BleBloc extends Bloc<BleEvent, BleState> {
? key = box.get("Keys").split(",")[i].split("||")[1]
: null;
}
key == "" ? key = encrypt.Key.fromSecureRandom(32).base64 : null;
key == "" ? key = encrypt.Key.fromSecureRandom(16).base64 : null;
return key;
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.1.8
version: 1.2.0

environment:
sdk: '>=2.19.1 <3.0.0'
Expand Down

0 comments on commit 92baa1f

Please sign in to comment.