Skip to content

Commit

Permalink
feat: Added onboarding (#46)
Browse files Browse the repository at this point in the history
* Added onboarding

* resolve comments

* resolve comments

* resolve comments again?
  • Loading branch information
SolMendiola authored Dec 13, 2022
1 parent df7c4f7 commit 4646628
Show file tree
Hide file tree
Showing 61 changed files with 776 additions and 806 deletions.
Binary file added assets/images/1.5x/onboarding_branding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/1.5x/onboarding_describeApp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/1.5x/onboarding_favourite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/1.5x/onboarding_gestures.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/1.5x/onboarding_logo_app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/2.0x/onboarding_branding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/2.0x/onboarding_describeApp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/2.0x/onboarding_favourite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/2.0x/onboarding_gestures.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/2.0x/onboarding_logo_app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/3.0x/onboarding_branding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/3.0x/onboarding_describeApp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/3.0x/onboarding_favourite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/3.0x/onboarding_gestures.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/3.0x/onboarding_logo_app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/4.0x/onboarding_branding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/4.0x/onboarding_describeApp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/4.0x/onboarding_favourite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/4.0x/onboarding_gestures.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/4.0x/onboarding_logo_app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/onboarding_branding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/onboarding_describeApp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/onboarding_favourite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/onboarding_gestures.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/onboarding_logo_app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 4e8f8b2be68aeea4c0d5beb6ff1e79fface1d048

COCOAPODS: 1.10.2
COCOAPODS: 1.11.3
2 changes: 1 addition & 1 deletion ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1161,4 +1161,4 @@
/* End XCConfigurationList section */
};
rootObject = 97C146E61CF9000F007C117D /* Project object */;
}
}
12 changes: 4 additions & 8 deletions lib/core/di/di_repository_module.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
import 'package:fluttips/core/repository/session_repository.dart';
import 'package:fluttips/core/repository/tip_repository.dart';
import 'package:fluttips/core/source/local_source/auth_local_source.dart';
import 'package:fluttips/core/source/remote_source/auth_remote_source.dart';
import 'package:fluttips/core/source/common/auth_interceptor.dart';
import 'package:fluttips/core/source/common/http_service.dart';
import 'package:fluttips/core/source/remote_source/tip_remote_source.dart';
import 'package:get_it/get_it.dart';

import 'package:fluttips/core/source/database.dart';
import 'package:fluttips/core/source/local_source/session_local_source.dart';

class RepositoryDiModule {
RepositoryDiModule._privateConstructor();
Expand All @@ -29,20 +26,19 @@ class RepositoryDiModule {
extension _GetItUseCaseDiModuleExtensions on GetIt {
void _setupProvidersAndUtils() {
registerLazySingleton(FlutterSecureStorage.new);
registerLazySingleton(() => HttpServiceDio([AuthInterceptor(get())]));
registerLazySingleton(() => HttpServiceDio([]));
registerSingletonAsync(
() => $FloorAppDatabase.databaseBuilder('database.db').build(),
);
}

void _setupRepositories() {
registerLazySingleton(() => SessionRepository(get(), get(), get()));
registerLazySingleton(() => SessionRepository());
registerLazySingleton(() => TipRepository(get(), get(), get()));
}

void _setupSources() {
registerLazySingleton(() => AuthLocalSource(get()));
registerLazySingleton(() => AuthRemoteSource(get()));
registerLazySingleton(() => SessionLocalSource(get()));
registerLazySingleton(() => TipRemoteSource(get()));
registerLazySingleton(() => get<AppDatabase>().amountLocalSource);
registerLazySingleton(() => get<AppDatabase>().tipsLocalSource);
Expand Down
1 change: 0 additions & 1 deletion lib/core/model/authentication_status.dart

This file was deleted.

4 changes: 4 additions & 0 deletions lib/core/model/onboarding_status.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
enum AppSessionStatus {
notOnboarded,
onboarded,
}
30 changes: 0 additions & 30 deletions lib/core/model/service/auth_models.dart

This file was deleted.

Loading

0 comments on commit 4646628

Please sign in to comment.