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Zs=$@e3FQA(vNiU+$A*%a}
z?`XcG2jDxJ_ZQ#Md`H{4Lpf6QBDp81_KWZ6Tk#yCy1)32zO#3<7>b`eT7UyYH1eGz
z;O(rH$=QR*L%%ZcBpc=eGua?N55nD^K(8<#gl2+pN_j~b2MHs4#mcLmv%DkspS-3<
zpI1F=^9siI0s-;IN_IrA;5xm~3?3!StX}pUv0vkxMaqm+zxrg7X7(I&*N~&dEd0kD
z-FRV|g=|QuUsuh>-xCI}vD2imzYIOIdcCVV=$Bz@*u0+Bs<|L^)32nN*=wu3n%Ynw
z@1|eLG>!8ruU1pFXUfb`j>(=Gy~?Rn4QJ-c3%3T|(Frd!bI`9u&zAnyFYTqlG#&J7
zAkD(jpw|oZLNiA>;>hgp1KX7-wxC~31II47gc
zHcehD6Uxlf%+M^^uN5Wc*G%^;>D5qT{>=uxUhX%WJu^Z*(_Wq9y}npFO{Hhb>s6<9
zNi0pHXWFaVZnb)1+RS&F)xOv6&aeILcI)`k#0YE+?e)5r7J#c`3Z7x!LpTc01dx
zrdC3{Z;joZ^KN&))zB_i)I9fWedoN>Zl-6_Iz+^G&*ak2jpF07*qoM6N<$f;w%0(f|Me
literal 0
HcmV?d00001
diff --git a/kratos-flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/kratos-flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 0000000000000000000000000000000000000000..0467bf12aa4d28f374bb26596605a46dcbb3e7c8
GIT binary patch
literal 1418
zcmV;51$Fv~P)q
zKfU)WzW*n(@|xWGCA9ScMt*e9`2kdxPQ&&>|-UCa7_51w+
zLUsW@ZzZSW0y$)Hp~e9%PvP|a03ks1`~K?q{u;6NC8*{AOqIUq{CL&;p56Lf$oQGq
z^={4hPQv)y=I|4n+?>7Fim=dxt1
z2H+Dm+1+fh+IF>G0SjJMkQQre1x4|G*Z==(Ot&kCnUrL4I(rf(ucITwmuHf^hXiJT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ageset/Contents.json b/kratos-flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 0000000..0bedcf2
--- /dev/null
+++ b/kratos-flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/kratos-flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/kratos-flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838
GIT binary patch
literal 68
zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kcv6Uzs@r-FtIZ-&5|)J
Q1PU{Fy85}Sb4q9e0B4a5jsO4v
literal 0
HcmV?d00001
diff --git a/kratos-flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/kratos-flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838
GIT binary patch
literal 68
zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kcv6Uzs@r-FtIZ-&5|)J
Q1PU{Fy85}Sb4q9e0B4a5jsO4v
literal 0
HcmV?d00001
diff --git a/kratos-flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/kratos-flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 0000000000000000000000000000000000000000..9da19eacad3b03bb08bbddbbf4ac48dd78b3d838
GIT binary patch
literal 68
zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx0wlM}@Gt=>Zci7-kcv6Uzs@r-FtIZ-&5|)J
Q1PU{Fy85}Sb4q9e0B4a5jsO4v
literal 0
HcmV?d00001
diff --git a/kratos-flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/kratos-flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 0000000..89c2725
--- /dev/null
+++ b/kratos-flutter/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/kratos-flutter/ios/Runner/Base.lproj/LaunchScreen.storyboard b/kratos-flutter/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..f2e259c
--- /dev/null
+++ b/kratos-flutter/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/kratos-flutter/ios/Runner/Base.lproj/Main.storyboard b/kratos-flutter/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..f3c2851
--- /dev/null
+++ b/kratos-flutter/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/kratos-flutter/ios/Runner/Info.plist b/kratos-flutter/ios/Runner/Info.plist
new file mode 100644
index 0000000..70201f0
--- /dev/null
+++ b/kratos-flutter/ios/Runner/Info.plist
@@ -0,0 +1,51 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Kratos Flutter
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ kratos_flutter
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+ CADisableMinimumFrameDurationOnPhone
+
+ UIApplicationSupportsIndirectInputEvents
+
+
+
diff --git a/kratos-flutter/ios/Runner/Runner-Bridging-Header.h b/kratos-flutter/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/kratos-flutter/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/kratos-flutter/ios/RunnerTests/RunnerTests.swift b/kratos-flutter/ios/RunnerTests/RunnerTests.swift
new file mode 100644
index 0000000..86a7c3b
--- /dev/null
+++ b/kratos-flutter/ios/RunnerTests/RunnerTests.swift
@@ -0,0 +1,12 @@
+import Flutter
+import UIKit
+import XCTest
+
+class RunnerTests: XCTestCase {
+
+ func testExample() {
+ // If you add code to the Runner application, consider adding tests here.
+ // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
+ }
+
+}
diff --git a/kratos-flutter/lib/blocs/auth/auth_bloc.dart b/kratos-flutter/lib/blocs/auth/auth_bloc.dart
new file mode 100644
index 0000000..bfbb498
--- /dev/null
+++ b/kratos-flutter/lib/blocs/auth/auth_bloc.dart
@@ -0,0 +1,44 @@
+import 'package:bloc/bloc.dart';
+import 'package:equatable/equatable.dart';
+import 'package:freezed_annotation/freezed_annotation.dart';
+import 'package:ory_client/ory_client.dart';
+
+import '../../repositories/auth.dart';
+import '../../services/exceptions.dart';
+
+part 'auth_event.dart';
+part 'auth_state.dart';
+part 'auth_bloc.freezed.dart';
+
+class AuthBloc extends Bloc {
+ final AuthRepository repository;
+ AuthBloc({required this.repository})
+ : super(const AuthState(status: AuthStatus.uninitialized)) {
+ on(_onGetCurrentSessionInformation);
+ on(_changeAuthStatus);
+ }
+
+ _changeAuthStatus(ChangeAuthStatus event, Emitter emit) {
+ emit(state.copyWith(status: event.status));
+ }
+
+ Future _onGetCurrentSessionInformation(
+ GetCurrentSessionInformation event, Emitter emit) async {
+ try {
+ emit(state.copyWith(isLoading: true, errorMessage: null));
+ final session = await repository.getCurrentSessionInformation();
+ emit(state.copyWith(
+ isLoading: false,
+ status: AuthStatus.authenticated,
+ session: session));
+ } on CustomException catch (e) {
+ if (e.exceptionType == OryExceptionType.unauthorizedException) {
+ emit(state.copyWith(
+ status: AuthStatus.unauthenticated,
+ isLoading: false,
+ errorMessage: e.message));
+ }
+ emit(state.copyWith(isLoading: false, errorMessage: e.message));
+ }
+ }
+}
diff --git a/kratos-flutter/lib/blocs/auth/auth_bloc.freezed.dart b/kratos-flutter/lib/blocs/auth/auth_bloc.freezed.dart
new file mode 100644
index 0000000..02acfd8
--- /dev/null
+++ b/kratos-flutter/lib/blocs/auth/auth_bloc.freezed.dart
@@ -0,0 +1,198 @@
+// coverage:ignore-file
+// GENERATED CODE - DO NOT MODIFY BY HAND
+// ignore_for_file: type=lint
+// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
+
+part of 'auth_bloc.dart';
+
+// **************************************************************************
+// FreezedGenerator
+// **************************************************************************
+
+T _$identity(T value) => value;
+
+final _privateConstructorUsedError = UnsupportedError(
+ 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
+
+/// @nodoc
+mixin _$AuthState {
+ AuthStatus get status => throw _privateConstructorUsedError;
+ Session? get session => throw _privateConstructorUsedError;
+ bool get isLoading => throw _privateConstructorUsedError;
+ String? get errorMessage => throw _privateConstructorUsedError;
+
+ @JsonKey(ignore: true)
+ $AuthStateCopyWith get copyWith =>
+ throw _privateConstructorUsedError;
+}
+
+/// @nodoc
+abstract class $AuthStateCopyWith<$Res> {
+ factory $AuthStateCopyWith(AuthState value, $Res Function(AuthState) then) =
+ _$AuthStateCopyWithImpl<$Res, AuthState>;
+ @useResult
+ $Res call(
+ {AuthStatus status,
+ Session? session,
+ bool isLoading,
+ String? errorMessage});
+}
+
+/// @nodoc
+class _$AuthStateCopyWithImpl<$Res, $Val extends AuthState>
+ implements $AuthStateCopyWith<$Res> {
+ _$AuthStateCopyWithImpl(this._value, this._then);
+
+ // ignore: unused_field
+ final $Val _value;
+ // ignore: unused_field
+ final $Res Function($Val) _then;
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? status = null,
+ Object? session = freezed,
+ Object? isLoading = null,
+ Object? errorMessage = freezed,
+ }) {
+ return _then(_value.copyWith(
+ status: null == status
+ ? _value.status
+ : status // ignore: cast_nullable_to_non_nullable
+ as AuthStatus,
+ session: freezed == session
+ ? _value.session
+ : session // ignore: cast_nullable_to_non_nullable
+ as Session?,
+ isLoading: null == isLoading
+ ? _value.isLoading
+ : isLoading // ignore: cast_nullable_to_non_nullable
+ as bool,
+ errorMessage: freezed == errorMessage
+ ? _value.errorMessage
+ : errorMessage // ignore: cast_nullable_to_non_nullable
+ as String?,
+ ) as $Val);
+ }
+}
+
+/// @nodoc
+abstract class _$$_AuthStateCopyWith<$Res> implements $AuthStateCopyWith<$Res> {
+ factory _$$_AuthStateCopyWith(
+ _$_AuthState value, $Res Function(_$_AuthState) then) =
+ __$$_AuthStateCopyWithImpl<$Res>;
+ @override
+ @useResult
+ $Res call(
+ {AuthStatus status,
+ Session? session,
+ bool isLoading,
+ String? errorMessage});
+}
+
+/// @nodoc
+class __$$_AuthStateCopyWithImpl<$Res>
+ extends _$AuthStateCopyWithImpl<$Res, _$_AuthState>
+ implements _$$_AuthStateCopyWith<$Res> {
+ __$$_AuthStateCopyWithImpl(
+ _$_AuthState _value, $Res Function(_$_AuthState) _then)
+ : super(_value, _then);
+
+ @pragma('vm:prefer-inline')
+ @override
+ $Res call({
+ Object? status = null,
+ Object? session = freezed,
+ Object? isLoading = null,
+ Object? errorMessage = freezed,
+ }) {
+ return _then(_$_AuthState(
+ status: null == status
+ ? _value.status
+ : status // ignore: cast_nullable_to_non_nullable
+ as AuthStatus,
+ session: freezed == session
+ ? _value.session
+ : session // ignore: cast_nullable_to_non_nullable
+ as Session?,
+ isLoading: null == isLoading
+ ? _value.isLoading
+ : isLoading // ignore: cast_nullable_to_non_nullable
+ as bool,
+ errorMessage: freezed == errorMessage
+ ? _value.errorMessage
+ : errorMessage // ignore: cast_nullable_to_non_nullable
+ as String?,
+ ));
+ }
+}
+
+/// @nodoc
+
+class _$_AuthState implements _AuthState {
+ const _$_AuthState(
+ {required this.status,
+ this.session,
+ this.isLoading = false,
+ this.errorMessage});
+
+ @override
+ final AuthStatus status;
+ @override
+ final Session? session;
+ @override
+ @JsonKey()
+ final bool isLoading;
+ @override
+ final String? errorMessage;
+
+ @override
+ String toString() {
+ return 'AuthState(status: $status, session: $session, isLoading: $isLoading, errorMessage: $errorMessage)';
+ }
+
+ @override
+ bool operator ==(dynamic other) {
+ return identical(this, other) ||
+ (other.runtimeType == runtimeType &&
+ other is _$_AuthState &&
+ (identical(other.status, status) || other.status == status) &&
+ (identical(other.session, session) || other.session == session) &&
+ (identical(other.isLoading, isLoading) ||
+ other.isLoading == isLoading) &&
+ (identical(other.errorMessage, errorMessage) ||
+ other.errorMessage == errorMessage));
+ }
+
+ @override
+ int get hashCode =>
+ Object.hash(runtimeType, status, session, isLoading, errorMessage);
+
+ @JsonKey(ignore: true)
+ @override
+ @pragma('vm:prefer-inline')
+ _$$_AuthStateCopyWith<_$_AuthState> get copyWith =>
+ __$$_AuthStateCopyWithImpl<_$_AuthState>(this, _$identity);
+}
+
+abstract class _AuthState implements AuthState {
+ const factory _AuthState(
+ {required final AuthStatus status,
+ final Session? session,
+ final bool isLoading,
+ final String? errorMessage}) = _$_AuthState;
+
+ @override
+ AuthStatus get status;
+ @override
+ Session? get session;
+ @override
+ bool get isLoading;
+ @override
+ String? get errorMessage;
+ @override
+ @JsonKey(ignore: true)
+ _$$_AuthStateCopyWith<_$_AuthState> get copyWith =>
+ throw _privateConstructorUsedError;
+}
diff --git a/kratos-flutter/lib/blocs/auth/auth_event.dart b/kratos-flutter/lib/blocs/auth/auth_event.dart
new file mode 100644
index 0000000..8a13813
--- /dev/null
+++ b/kratos-flutter/lib/blocs/auth/auth_event.dart
@@ -0,0 +1,21 @@
+part of 'auth_bloc.dart';
+
+@immutable
+sealed class AuthEvent extends Equatable {
+ @override
+ List