Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Add flutter_miracl_sdk to `pubspec.yaml`:

```yaml
dependencies:
flutter_miracl_sdk: ^0.6.0
flutter_miracl_sdk: ^0.7.0
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ android {
}

dependencies {
implementation "com.miracl:trust-sdk-android:1.6.0"
implementation "com.miracl:trust-sdk-android:1.8.1"
}
}
2 changes: 1 addition & 1 deletion android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pluginManagement {

plugins {
id "com.android.application" version "7.2.0" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
id "org.jetbrains.kotlin.android" version "2.2.20" apply false
}

rootProject.name = 'flutter_miracl_sdk'
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ internal val QuickCodeException.flutterExceptionCodeRepresentation: MQuickCodeEx
get() = when (this) {
is QuickCodeException.GenerationFail -> MQuickCodeExceptionCode.GENERATION_FAIL
QuickCodeException.InvalidPin -> MQuickCodeExceptionCode.INVALID_PIN
QuickCodeException.LimitedQuickCodeGeneration -> MQuickCodeExceptionCode.LIMITED_QUICK_CODE_GENERATION
QuickCodeException.PinCancelled -> MQuickCodeExceptionCode.PIN_CANCELLED
QuickCodeException.Revoked -> MQuickCodeExceptionCode.REVOKED
QuickCodeException.UnsuccessfulAuthentication -> MQuickCodeExceptionCode.UNSUCCESSFUL_AUTHENTICATION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ enum class MQuickCodeExceptionCode(val raw: Int) {
UNSUCCESSFUL_AUTHENTICATION(1),
PIN_CANCELLED(2),
INVALID_PIN(3),
LIMITED_QUICK_CODE_GENERATION(4),
GENERATION_FAIL(5);
GENERATION_FAIL(4);

companion object {
fun ofRaw(raw: Int): MQuickCodeExceptionCode? {
Expand Down Expand Up @@ -348,7 +347,6 @@ data class MAuthenticationSessionDetails (
val verificationCustomText: String,
val identityTypeLabel: String,
val quickCodeEnabled: Boolean,
val limitQuickCodeRegistration: Boolean,
val identityType: MIdentityType,
val accessId: String
)
Expand All @@ -365,10 +363,9 @@ data class MAuthenticationSessionDetails (
val verificationCustomText = pigeonVar_list[7] as String
val identityTypeLabel = pigeonVar_list[8] as String
val quickCodeEnabled = pigeonVar_list[9] as Boolean
val limitQuickCodeRegistration = pigeonVar_list[10] as Boolean
val identityType = pigeonVar_list[11] as MIdentityType
val accessId = pigeonVar_list[12] as String
return MAuthenticationSessionDetails(userId, projectName, projectLogoURL, projectId, pinLength, verificationMethod, verificationURL, verificationCustomText, identityTypeLabel, quickCodeEnabled, limitQuickCodeRegistration, identityType, accessId)
val identityType = pigeonVar_list[10] as MIdentityType
val accessId = pigeonVar_list[11] as String
return MAuthenticationSessionDetails(userId, projectName, projectLogoURL, projectId, pinLength, verificationMethod, verificationURL, verificationCustomText, identityTypeLabel, quickCodeEnabled, identityType, accessId)
}
}
fun toList(): List<Any?> {
Expand All @@ -383,7 +380,6 @@ data class MAuthenticationSessionDetails (
verificationCustomText,
identityTypeLabel,
quickCodeEnabled,
limitQuickCodeRegistration,
identityType,
accessId,
)
Expand Down Expand Up @@ -412,7 +408,6 @@ data class MSigningSessionDetails (
val verificationCustomText: String,
val identityTypeLabel: String,
val quickCodeEnabled: Boolean,
val limitQuickCodeRegistration: Boolean,
val identityType: MIdentityType,
val sessionId: String,
val signingHash: String,
Expand All @@ -433,14 +428,13 @@ data class MSigningSessionDetails (
val verificationCustomText = pigeonVar_list[7] as String
val identityTypeLabel = pigeonVar_list[8] as String
val quickCodeEnabled = pigeonVar_list[9] as Boolean
val limitQuickCodeRegistration = pigeonVar_list[10] as Boolean
val identityType = pigeonVar_list[11] as MIdentityType
val sessionId = pigeonVar_list[12] as String
val signingHash = pigeonVar_list[13] as String
val signingDescription = pigeonVar_list[14] as String
val status = pigeonVar_list[15] as MSigningSessionStatus
val expireTime = pigeonVar_list[16] as Long
return MSigningSessionDetails(userId, projectName, projectLogoURL, projectId, pinLength, verificationMethod, verificationURL, verificationCustomText, identityTypeLabel, quickCodeEnabled, limitQuickCodeRegistration, identityType, sessionId, signingHash, signingDescription, status, expireTime)
val identityType = pigeonVar_list[10] as MIdentityType
val sessionId = pigeonVar_list[11] as String
val signingHash = pigeonVar_list[12] as String
val signingDescription = pigeonVar_list[13] as String
val status = pigeonVar_list[14] as MSigningSessionStatus
val expireTime = pigeonVar_list[15] as Long
return MSigningSessionDetails(userId, projectName, projectLogoURL, projectId, pinLength, verificationMethod, verificationURL, verificationCustomText, identityTypeLabel, quickCodeEnabled, identityType, sessionId, signingHash, signingDescription, status, expireTime)
}
}
fun toList(): List<Any?> {
Expand All @@ -455,7 +449,6 @@ data class MSigningSessionDetails (
verificationCustomText,
identityTypeLabel,
quickCodeEnabled,
limitQuickCodeRegistration,
identityType,
sessionId,
signingHash,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ class SdkHandler {
it.value.verificationCustomText,
it.value.identityTypeLabel,
it.value.quickCodeEnabled,
it.value.limitQuickCodeRegistration,
MIdentityType.ofRaw(it.value.identityType.ordinal) ?: MIdentityType.EMAIL,
it.value.accessId
)
Expand Down Expand Up @@ -412,7 +411,6 @@ class SdkHandler {
it.value.verificationCustomText,
it.value.identityTypeLabel,
it.value.quickCodeEnabled,
it.value.limitQuickCodeRegistration,
MIdentityType.ofRaw(it.value.identityType.ordinal) ?: MIdentityType.EMAIL,
it.value.accessId
)
Expand Down Expand Up @@ -457,7 +455,6 @@ class SdkHandler {
it.value.verificationCustomText,
it.value.identityTypeLabel,
it.value.quickCodeEnabled,
it.value.limitQuickCodeRegistration,
MIdentityType.ofRaw(it.value.identityType.ordinal) ?: MIdentityType.EMAIL,
it.value.accessId
)
Expand Down Expand Up @@ -616,7 +613,6 @@ class SdkHandler {
it.value.verificationCustomText,
it.value.identityTypeLabel,
it.value.quickCodeEnabled,
it.value.limitQuickCodeRegistration,
MIdentityType.ofRaw(it.value.identityType.ordinal) ?: MIdentityType.EMAIL,
it.value.sessionId,
it.value.signingHash,
Expand Down Expand Up @@ -665,7 +661,6 @@ class SdkHandler {
it.value.verificationCustomText,
it.value.identityTypeLabel,
it.value.quickCodeEnabled,
it.value.limitQuickCodeRegistration,
MIdentityType.ofRaw(it.value.identityType.ordinal) ?: MIdentityType.EMAIL,
it.value.sessionId,
it.value.signingHash,
Expand Down
2 changes: 1 addition & 1 deletion example/android/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pluginManagement {
plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.7.0" apply false
id("org.jetbrains.kotlin.android") version "1.8.22" apply false
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
}

include(":app")

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ packages:
dependency: transitive
description:
name: async
sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63
url: "https://pub.dev"
source: hosted
version: "2.13.0"
version: "2.12.0"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -53,10 +53,10 @@ packages:
dependency: transitive
description:
name: fake_async
sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc"
url: "https://pub.dev"
source: hosted
version: "1.3.3"
version: "1.3.2"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -76,7 +76,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.6.0"
version: "0.7.0"
flutter_test:
dependency: "direct dev"
description: flutter
Expand All @@ -99,10 +99,10 @@ packages:
dependency: transitive
description:
name: leak_tracker
sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0"
sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec
url: "https://pub.dev"
source: hosted
version: "10.0.9"
version: "10.0.8"
leak_tracker_flutter_testing:
dependency: transitive
description:
Expand Down Expand Up @@ -256,10 +256,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02
sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14"
url: "https://pub.dev"
source: hosted
version: "15.0.0"
version: "14.3.1"
sdks:
dart: ">=3.7.0-0 <4.0.0"
flutter: ">=3.27.0"
2 changes: 1 addition & 1 deletion integration_test_app/android/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pluginManagement {
plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.7.0" apply false
id("org.jetbrains.kotlin.android") version "1.8.22" apply false
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
}

include(":app")

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion integration_test_app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.6.0"
version: "0.7.0"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down
10 changes: 5 additions & 5 deletions ios/MIRACLTrust.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@
<key>BinaryPath</key>
<string>MIRACLTrust.framework/MIRACLTrust</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>MIRACLTrust.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>MIRACLTrust.framework/MIRACLTrust</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>MIRACLTrust.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,6 @@ SWIFT_PROTOCOL("_TtP11MIRACLTrust14SessionDetails_")
@property (nonatomic, readonly, copy) NSString * _Nonnull identityTypeLabel;
/// Whether the QuickCode is enabled for the project or not.
@property (nonatomic, readonly) BOOL quickCodeEnabled;
/// Flag indicating whether registration with QuickCode is allowed for identities registered also with QuickCode.
@property (nonatomic, readonly) BOOL limitQuickCodeRegistration;
/// Identity type which will be used for identity verification.
@property (nonatomic, readonly) enum IdentityType identityType;
@end
Expand All @@ -374,7 +372,6 @@ SWIFT_CLASS("_TtC11MIRACLTrust28AuthenticationSessionDetails")
@property (nonatomic, readonly, copy) NSString * _Nonnull verificationCustomText;
@property (nonatomic, readonly, copy) NSString * _Nonnull identityTypeLabel;
@property (nonatomic, readonly) BOOL quickCodeEnabled;
@property (nonatomic, readonly) BOOL limitQuickCodeRegistration;
@property (nonatomic, readonly) enum IdentityType identityType;
/// Identifier of the authentication session.
@property (nonatomic, readonly, copy) NSString * _Nonnull accessId;
Expand Down Expand Up @@ -498,8 +495,6 @@ SWIFT_CLASS("_TtC11MIRACLTrust18CrossDeviceSession")
@property (nonatomic, readonly, copy) NSString * _Nonnull identityTypeLabel;
/// Indicates whether <a href="https://miracl.com/resources/docs/guides/built-in-user-verification/quickcode/">QuickCode</a> is enabled for the project or not.
@property (nonatomic, readonly) BOOL quickCodeEnabled;
/// Indicates whether registration with QuickCode is allowed for identities registered also with QuickCode.
@property (nonatomic, readonly) BOOL limitQuickCodeRegistration;
/// Identity type which will be used for identity verification.
@property (nonatomic, readonly) enum IdentityType identityType;
/// Identifier of the session.
Expand All @@ -508,7 +503,7 @@ SWIFT_CLASS("_TtC11MIRACLTrust18CrossDeviceSession")
@property (nonatomic, readonly, copy) NSString * _Nonnull sessionDescription;
/// Hash of the transaction that needs to be signed if any.
@property (nonatomic, readonly, copy) NSString * _Nonnull signingHash;
- (nonnull instancetype)initWithUserId:(NSString * _Nonnull)userId projectName:(NSString * _Nonnull)projectName projectLogoURL:(NSString * _Nonnull)projectLogoURL projectId:(NSString * _Nonnull)projectId pinLength:(NSInteger)pinLength verificationMethod:(enum VerificationMethod)verificationMethod verificationURL:(NSString * _Nonnull)verificationURL verificationCustomText:(NSString * _Nonnull)verificationCustomText identityTypeLabel:(NSString * _Nonnull)identityTypeLabel quickCodeEnabled:(BOOL)quickCodeEnabled limitQuickCodeRegistration:(BOOL)limitQuickCodeRegistration identityType:(enum IdentityType)identityType sessionId:(NSString * _Nonnull)sessionId sessionDescription:(NSString * _Nonnull)sessionDescription signingHash:(NSString * _Nonnull)signingHash OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithUserId:(NSString * _Nonnull)userId projectName:(NSString * _Nonnull)projectName projectLogoURL:(NSString * _Nonnull)projectLogoURL projectId:(NSString * _Nonnull)projectId pinLength:(NSInteger)pinLength verificationMethod:(enum VerificationMethod)verificationMethod verificationURL:(NSString * _Nonnull)verificationURL verificationCustomText:(NSString * _Nonnull)verificationCustomText identityTypeLabel:(NSString * _Nonnull)identityTypeLabel quickCodeEnabled:(BOOL)quickCodeEnabled identityType:(enum IdentityType)identityType sessionId:(NSString * _Nonnull)sessionId sessionDescription:(NSString * _Nonnull)sessionDescription signingHash:(NSString * _Nonnull)signingHash OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
Expand Down Expand Up @@ -919,7 +914,6 @@ SWIFT_CLASS("_TtC11MIRACLTrust21SigningSessionDetails")
@property (nonatomic, readonly, copy) NSString * _Nonnull verificationCustomText;
@property (nonatomic, readonly, copy) NSString * _Nonnull identityTypeLabel;
@property (nonatomic, readonly) BOOL quickCodeEnabled;
@property (nonatomic, readonly) BOOL limitQuickCodeRegistration;
@property (nonatomic, readonly) enum IdentityType identityType;
/// Identifier of the signing session.
@property (nonatomic, readonly, copy) NSString * _Nonnull sessionId;
Expand Down
Binary file not shown.
Binary file not shown.
Loading