Skip to content

Commit

Permalink
Fixed getCorrectedTimestampSeconds timeout, set `blockTamperDetecti…
Browse files Browse the repository at this point in the history
…on` to true by default in `KeyriDetectionsConfig`
  • Loading branch information
AndrewKuliahin96 committed Apr 11, 2024
1 parent f70af18 commit d26bd41
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 291 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.8.3

- Fixed `getCorrectedTimestampSeconds` timeout
- Set `blockTamperDetection` to true by default in `KeyriDetectionsConfig`

## 1.8.2

- Deprecated Keyri constructor with `blockEmulatorDetection` param
Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ android {

dependencies {
// Keyri
implementation 'com.keyri:keyrisdk:4.3.0-alpha05'
implementation 'com.keyri:scanner:4.3.0-alpha05'
implementation 'com.keyri:keyrisdk:4.3.0'
implementation 'com.keyri:scanner:4.3.0'

// Gson
implementation 'com.google.code.gson:gson:2.10.1'
Expand Down
281 changes: 0 additions & 281 deletions example/pubspec.lock

This file was deleted.

2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: keyri_example
version: 1.8.2
version: 1.8.3
description: Demonstrates how to use the Keyri plugin.
publish_to: 'none'

Expand Down
2 changes: 1 addition & 1 deletion ios/keyri_v3.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Pod::Spec.new do |spec|
spec.public_header_files = 'Classes/**/*.h'

spec.dependency 'Flutter'
spec.dependency 'keyri-pod', '~> 4.6.0-alpha05'
spec.dependency 'keyri-pod', '~> 4.6.0-alpha06'

# Flutter.framework does not contain a i386 slice.
spec.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
Expand Down
2 changes: 1 addition & 1 deletion lib/keyri.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class Keyri {
}

/// Call it to get timestamp synchronized with NTP.
/// Returns Future of [Long] object or error.
/// Returns Future of [int] or error.
Future<int> getCorrectedTimestampSeconds() {
return KeyriPlatform.instance.getCorrectedTimestampSeconds();
}
Expand Down
8 changes: 4 additions & 4 deletions lib/keyri_detections_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
/// blockEmulatorDetection - set this param to false if you want to deny run your app on emulators, true by default.
/// blockRootDetection - set this param to true if you want to allow running your app without rooted device check, false by default.
/// blockDangerousAppsDetection - set this param to true if you want to allow running your app without dangerous apps check, false by default.
/// blockTamperDetection - set this param to true if you want to allow running your app without tamper detection check, false by default.
/// blockTamperDetection - set this param to true if you want to allow running your app without tamper detection check, true by default.
/// blockSwizzleDetection - set this param to true if you want to allow running your app without swizzle detection check, false by default.
class KeyriDetectionsConfig {
bool blockEmulatorDetection = true;
bool blockRootDetection = true;
bool blockDangerousAppsDetection = true;
bool blockRootDetection = false;
bool blockDangerousAppsDetection = false;
bool blockTamperDetection = true;
bool blockSwizzleDetection = true;
bool blockSwizzleDetection = false;

KeyriDetectionsConfig(
{bool? blockEmulatorDetection,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: keyri_v3
description: Keyri QR Login plugin for Flutter. Provides Keyri SDK capabilities for secure and passwordless login.
version: 1.8.2
version: 1.8.3
homepage: https://keyri.com

environment:
Expand Down

0 comments on commit d26bd41

Please sign in to comment.