From 8d8d2fd01d00bde9927459a8b5801ff9eeba51cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20S?= Date: Wed, 25 May 2022 19:13:21 +0200 Subject: [PATCH 01/12] done --- .idea/inspectionProfiles/Project_Default.xml | 3 +- .../java/ch/epfl/sweng/rps/CacheTests.kt | 81 +++++++-------- .../ch/epfl/sweng/rps/LoadingActivityTest.kt | 2 +- .../java/ch/epfl/sweng/rps/LoginPageTest.kt | 8 +- .../ui/onboarding/OnBoardingActivityTest.kt | 7 +- .../java/ch/epfl/sweng/rps/LoadingActivity.kt | 87 ++++++++-------- .../java/ch/epfl/sweng/rps/LoginActivity.kt | 50 +++++----- .../java/ch/epfl/sweng/rps/MainActivity.kt | 20 ---- .../sweng/rps/auth/FirebaseAuthenticator.kt | 3 +- .../sweng/rps/models/xbstract/AbstractUser.kt | 12 +-- .../rps/models/xbstract/ComputerPlayer.kt | 8 +- .../ch/epfl/sweng/rps/persistence/Cache.kt | 99 ++++++++++++------- .../sweng/rps/persistence/PrivateStorage.kt | 34 ++----- .../ch/epfl/sweng/rps/persistence/Storage.kt | 14 ++- .../epfl/sweng/rps/remote/FirebaseHelper.kt | 13 +-- .../sweng/rps/ui/game/MatchmakingFragment.kt | 2 +- .../ui/leaderboard/LeaderBoardViewModel.kt | 2 +- .../rps/ui/onboarding/OnBoardingActivity.kt | 61 ++++++------ .../sweng/rps/ui/profile/ProfileFragment.kt | 49 +++++---- .../sweng/rps/ui/profile/ProfileViewModel.kt | 20 ++-- .../sweng/rps/ui/settings/SettingsActivity.kt | 4 +- .../rps/ui/statistics/StatisticsViewModel.kt | 2 +- .../main/java/ch/epfl/sweng/rps/utils/L.kt | 4 +- app/src/main/res/layout/activity_login.xml | 68 +++++++++---- app/src/main/res/values/strings.xml | 2 + 25 files changed, 339 insertions(+), 316 deletions(-) diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 78596612..43344c8a 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -2,7 +2,7 @@