File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed
app/src/test/java/com/xpeho/xpeapp/utils Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ package com.xpeho.xpeapp.utils
2+
3+ /* *
4+ * Version de test de CrashlyticsUtils qui ne fait rien
5+ * pour éviter les problèmes avec Firebase dans les tests unitaires
6+ */
7+ object CrashlyticsUtils {
8+
9+ /* *
10+ * Enregistre un événement personnalisé dans Crashlytics
11+ */
12+ fun logEvent (message : String ) {
13+ // Do nothing in tests
14+ }
15+
16+ /* *
17+ * Enregistre une exception non fatale dans Crashlytics
18+ */
19+ fun recordException (exception : Throwable ) {
20+ // Do nothing in tests
21+ }
22+
23+ /* *
24+ * Définit un identifiant utilisateur pour les crash reports
25+ */
26+ fun setUserId (userId : String ) {
27+ // Do nothing in tests
28+ }
29+
30+ /* *
31+ * Ajoute une clé-valeur personnalisée aux crash reports
32+ */
33+ fun setCustomKey (key : String , value : String ) {
34+ // Do nothing in tests
35+ }
36+
37+ /* *
38+ * Définit le screen/écran actuel pour contextualiser les erreurs
39+ */
40+ fun setCurrentScreen (screenName : String ) {
41+ // Do nothing in tests
42+ }
43+
44+ /* *
45+ * Définit la feature/fonctionnalité actuelle
46+ */
47+ fun setCurrentFeature (featureName : String ) {
48+ // Do nothing in tests
49+ }
50+
51+ /* *
52+ * Définit le contexte utilisateur (connecté/déconnecté)
53+ */
54+ fun setUserContext (isLoggedIn : Boolean , userRole : String = "") {
55+ // Do nothing in tests
56+ }
57+ }
You can’t perform that action at this time.
0 commit comments