Skip to content

Commit 6d1598d

Browse files
committed
Remove QuickCode limiting functionality
1 parent 92d63e9 commit 6d1598d

File tree

47 files changed

+197
-1125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+197
-1125
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ android {
3636
}
3737

3838
dependencies {
39-
implementation "com.miracl:trust-sdk-android:1.6.0"
39+
implementation "com.miracl:trust-sdk-android:1.8.1"
4040
}
4141
}

android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pluginManagement {
2424

2525
plugins {
2626
id "com.android.application" version "7.2.0" apply false
27-
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
27+
id "org.jetbrains.kotlin.android" version "2.2.20" apply false
2828
}
2929

3030
rootProject.name = 'flutter_miracl_sdk'

android/src/main/kotlin/com/miracl/trust/flutter_miracl_sdk/Extensions.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ internal val QuickCodeException.flutterExceptionCodeRepresentation: MQuickCodeEx
6464
get() = when (this) {
6565
is QuickCodeException.GenerationFail -> MQuickCodeExceptionCode.GENERATION_FAIL
6666
QuickCodeException.InvalidPin -> MQuickCodeExceptionCode.INVALID_PIN
67-
QuickCodeException.LimitedQuickCodeGeneration -> MQuickCodeExceptionCode.LIMITED_QUICK_CODE_GENERATION
6867
QuickCodeException.PinCancelled -> MQuickCodeExceptionCode.PIN_CANCELLED
6968
QuickCodeException.Revoked -> MQuickCodeExceptionCode.REVOKED
7069
QuickCodeException.UnsuccessfulAuthentication -> MQuickCodeExceptionCode.UNSUCCESSFUL_AUTHENTICATION

android/src/main/kotlin/com/miracl/trust/flutter_miracl_sdk/Pigeon.kt

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,7 @@ enum class MQuickCodeExceptionCode(val raw: Int) {
205205
UNSUCCESSFUL_AUTHENTICATION(1),
206206
PIN_CANCELLED(2),
207207
INVALID_PIN(3),
208-
LIMITED_QUICK_CODE_GENERATION(4),
209-
GENERATION_FAIL(5);
208+
GENERATION_FAIL(4);
210209

211210
companion object {
212211
fun ofRaw(raw: Int): MQuickCodeExceptionCode? {
@@ -348,7 +347,6 @@ data class MAuthenticationSessionDetails (
348347
val verificationCustomText: String,
349348
val identityTypeLabel: String,
350349
val quickCodeEnabled: Boolean,
351-
val limitQuickCodeRegistration: Boolean,
352350
val identityType: MIdentityType,
353351
val accessId: String
354352
)
@@ -365,10 +363,9 @@ data class MAuthenticationSessionDetails (
365363
val verificationCustomText = pigeonVar_list[7] as String
366364
val identityTypeLabel = pigeonVar_list[8] as String
367365
val quickCodeEnabled = pigeonVar_list[9] as Boolean
368-
val limitQuickCodeRegistration = pigeonVar_list[10] as Boolean
369-
val identityType = pigeonVar_list[11] as MIdentityType
370-
val accessId = pigeonVar_list[12] as String
371-
return MAuthenticationSessionDetails(userId, projectName, projectLogoURL, projectId, pinLength, verificationMethod, verificationURL, verificationCustomText, identityTypeLabel, quickCodeEnabled, limitQuickCodeRegistration, identityType, accessId)
366+
val identityType = pigeonVar_list[10] as MIdentityType
367+
val accessId = pigeonVar_list[11] as String
368+
return MAuthenticationSessionDetails(userId, projectName, projectLogoURL, projectId, pinLength, verificationMethod, verificationURL, verificationCustomText, identityTypeLabel, quickCodeEnabled, identityType, accessId)
372369
}
373370
}
374371
fun toList(): List<Any?> {
@@ -383,7 +380,6 @@ data class MAuthenticationSessionDetails (
383380
verificationCustomText,
384381
identityTypeLabel,
385382
quickCodeEnabled,
386-
limitQuickCodeRegistration,
387383
identityType,
388384
accessId,
389385
)
@@ -412,7 +408,6 @@ data class MSigningSessionDetails (
412408
val verificationCustomText: String,
413409
val identityTypeLabel: String,
414410
val quickCodeEnabled: Boolean,
415-
val limitQuickCodeRegistration: Boolean,
416411
val identityType: MIdentityType,
417412
val sessionId: String,
418413
val signingHash: String,
@@ -433,14 +428,13 @@ data class MSigningSessionDetails (
433428
val verificationCustomText = pigeonVar_list[7] as String
434429
val identityTypeLabel = pigeonVar_list[8] as String
435430
val quickCodeEnabled = pigeonVar_list[9] as Boolean
436-
val limitQuickCodeRegistration = pigeonVar_list[10] as Boolean
437-
val identityType = pigeonVar_list[11] as MIdentityType
438-
val sessionId = pigeonVar_list[12] as String
439-
val signingHash = pigeonVar_list[13] as String
440-
val signingDescription = pigeonVar_list[14] as String
441-
val status = pigeonVar_list[15] as MSigningSessionStatus
442-
val expireTime = pigeonVar_list[16] as Long
443-
return MSigningSessionDetails(userId, projectName, projectLogoURL, projectId, pinLength, verificationMethod, verificationURL, verificationCustomText, identityTypeLabel, quickCodeEnabled, limitQuickCodeRegistration, identityType, sessionId, signingHash, signingDescription, status, expireTime)
431+
val identityType = pigeonVar_list[10] as MIdentityType
432+
val sessionId = pigeonVar_list[11] as String
433+
val signingHash = pigeonVar_list[12] as String
434+
val signingDescription = pigeonVar_list[13] as String
435+
val status = pigeonVar_list[14] as MSigningSessionStatus
436+
val expireTime = pigeonVar_list[15] as Long
437+
return MSigningSessionDetails(userId, projectName, projectLogoURL, projectId, pinLength, verificationMethod, verificationURL, verificationCustomText, identityTypeLabel, quickCodeEnabled, identityType, sessionId, signingHash, signingDescription, status, expireTime)
444438
}
445439
}
446440
fun toList(): List<Any?> {
@@ -455,7 +449,6 @@ data class MSigningSessionDetails (
455449
verificationCustomText,
456450
identityTypeLabel,
457451
quickCodeEnabled,
458-
limitQuickCodeRegistration,
459452
identityType,
460453
sessionId,
461454
signingHash,

android/src/main/kotlin/com/miracl/trust/flutter_miracl_sdk/SdkHandler.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@ class SdkHandler {
367367
it.value.verificationCustomText,
368368
it.value.identityTypeLabel,
369369
it.value.quickCodeEnabled,
370-
it.value.limitQuickCodeRegistration,
371370
MIdentityType.ofRaw(it.value.identityType.ordinal) ?: MIdentityType.EMAIL,
372371
it.value.accessId
373372
)
@@ -412,7 +411,6 @@ class SdkHandler {
412411
it.value.verificationCustomText,
413412
it.value.identityTypeLabel,
414413
it.value.quickCodeEnabled,
415-
it.value.limitQuickCodeRegistration,
416414
MIdentityType.ofRaw(it.value.identityType.ordinal) ?: MIdentityType.EMAIL,
417415
it.value.accessId
418416
)
@@ -457,7 +455,6 @@ class SdkHandler {
457455
it.value.verificationCustomText,
458456
it.value.identityTypeLabel,
459457
it.value.quickCodeEnabled,
460-
it.value.limitQuickCodeRegistration,
461458
MIdentityType.ofRaw(it.value.identityType.ordinal) ?: MIdentityType.EMAIL,
462459
it.value.accessId
463460
)
@@ -616,7 +613,6 @@ class SdkHandler {
616613
it.value.verificationCustomText,
617614
it.value.identityTypeLabel,
618615
it.value.quickCodeEnabled,
619-
it.value.limitQuickCodeRegistration,
620616
MIdentityType.ofRaw(it.value.identityType.ordinal) ?: MIdentityType.EMAIL,
621617
it.value.sessionId,
622618
it.value.signingHash,
@@ -665,7 +661,6 @@ class SdkHandler {
665661
it.value.verificationCustomText,
666662
it.value.identityTypeLabel,
667663
it.value.quickCodeEnabled,
668-
it.value.limitQuickCodeRegistration,
669664
MIdentityType.ofRaw(it.value.identityType.ordinal) ?: MIdentityType.EMAIL,
670665
it.value.sessionId,
671666
it.value.signingHash,

example/android/settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pluginManagement {
1919
plugins {
2020
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
2121
id("com.android.application") version "8.7.0" apply false
22-
id("org.jetbrains.kotlin.android") version "1.8.22" apply false
22+
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
2323
}
2424

2525
include(":app")

example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/pubspec.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ packages:
55
dependency: transitive
66
description:
77
name: async
8-
sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
8+
sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "2.13.0"
11+
version: "2.12.0"
1212
boolean_selector:
1313
dependency: transitive
1414
description:
@@ -53,10 +53,10 @@ packages:
5353
dependency: transitive
5454
description:
5555
name: fake_async
56-
sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
56+
sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc"
5757
url: "https://pub.dev"
5858
source: hosted
59-
version: "1.3.3"
59+
version: "1.3.2"
6060
flutter:
6161
dependency: "direct main"
6262
description: flutter
@@ -99,10 +99,10 @@ packages:
9999
dependency: transitive
100100
description:
101101
name: leak_tracker
102-
sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0"
102+
sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec
103103
url: "https://pub.dev"
104104
source: hosted
105-
version: "10.0.9"
105+
version: "10.0.8"
106106
leak_tracker_flutter_testing:
107107
dependency: transitive
108108
description:
@@ -256,10 +256,10 @@ packages:
256256
dependency: transitive
257257
description:
258258
name: vm_service
259-
sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02
259+
sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14"
260260
url: "https://pub.dev"
261261
source: hosted
262-
version: "15.0.0"
262+
version: "14.3.1"
263263
sdks:
264264
dart: ">=3.7.0-0 <4.0.0"
265265
flutter: ">=3.27.0"

integration_test_app/android/settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pluginManagement {
1919
plugins {
2020
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
2121
id("com.android.application") version "8.7.0" apply false
22-
id("org.jetbrains.kotlin.android") version "1.8.22" apply false
22+
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
2323
}
2424

2525
include(":app")

0 commit comments

Comments
 (0)