feat: BLoC tests complets + sécurité production + freerasp 7.5.1 migration

## Tests BLoC (Task P2.4 Mobile)
- 25 nouveaux fichiers *_bloc_test.dart + mocks générés (build_runner)
- Features couvertes : authentication, admin_users, adhesions, backup,
  communication/messaging, contributions, dashboard, finance (approval/budget),
  events, explore/network, feed, logs_monitoring, notifications, onboarding,
  organizations (switcher/types/CRUD), profile, reports, settings, solidarity
- ~380 tests, > 80% coverage BLoCs

## Sécurité Production (Task P2.2)
- lib/core/security/app_integrity_service.dart (freerasp 7.5.1)
- Migration API breaking changes freerasp 7.5.1 :
  - onRootDetected → onPrivilegedAccess
  - onDebuggerDetected → onDebug
  - onSignatureDetected → onAppIntegrity
  - onHookDetected → onHooks
  - onEmulatorDetected → onSimulator
  - onUntrustedInstallationSourceDetected → onUnofficialStore
  - onDeviceBindingDetected → onDeviceBinding
  - onObfuscationIssuesDetected → onObfuscationIssues
  - Talsec.start() split → start() + attachListener()
  - const AndroidConfig/IOSConfig → final (constructors call ConfigVerifier)
  - supportedAlternativeStores → supportedStores

## Pubspec
- bloc_test: ^9.1.7 → ^10.0.0 (compat flutter_bloc ^9.0.0)
- freerasp 7.5.1

## Config
- android/app/build.gradle : ajustements release
- lib/core/config/environment.dart : URLs API actualisées
- lib/main.dart + app_router : intégrations sécurité/BLoC

## Cleanup
- Suppression docs intermédiaires (TACHES_*.md, TASK_*_COMPLETION_REPORT.md,
  TESTS_UNITAIRES_PROGRESS.md)
- .g.dart régénérés (json_serializable)
- .mocks.dart régénérés (mockito)

## Résultat
- 142 fichiers, +27 596 insertions
- Toutes les tâches P2 mobile complétées

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
dahoud
2026-04-21 12:42:35 +00:00
parent 33f5b5a707
commit 37db88672b
142 changed files with 27599 additions and 16068 deletions

View File

@@ -17,9 +17,11 @@ EvenementModel _$EvenementModelFromJson(Map<String, dynamic> json) =>
adresse: json['adresse'] as String?,
ville: json['ville'] as String?,
codePostal: json['codePostal'] as String?,
type: $enumDecodeNullable(_$TypeEvenementEnumMap, json['type']) ??
type:
$enumDecodeNullable(_$TypeEvenementEnumMap, json['type']) ??
TypeEvenement.autre,
statut: $enumDecodeNullable(_$StatutEvenementEnumMap, json['statut']) ??
statut:
$enumDecodeNullable(_$StatutEvenementEnumMap, json['statut']) ??
StatutEvenement.planifie,
maxParticipants: (json['maxParticipants'] as num?)?.toInt(),
participantsActuels: (json['participantsActuels'] as num?)?.toInt() ?? 0,
@@ -29,14 +31,14 @@ EvenementModel _$EvenementModelFromJson(Map<String, dynamic> json) =>
organisationNom: json['organisationNom'] as String?,
priorite:
$enumDecodeNullable(_$PrioriteEvenementEnumMap, json['priorite']) ??
PrioriteEvenement.moyenne,
PrioriteEvenement.moyenne,
estPublic: json['estPublic'] as bool? ?? true,
inscriptionRequise: json['inscriptionRequise'] as bool? ?? false,
cout: (json['cout'] as num?)?.toDouble(),
devise: json['devise'] as String? ?? 'XOF',
tags:
(json['tags'] as List<dynamic>?)?.map((e) => e as String).toList() ??
const [],
const [],
imageUrl: json['imageUrl'] as String?,
documentUrl: json['documentUrl'] as String?,
notes: json['notes'] as String?,