Feat: Configurar proyecto React Native con arquitectura hexagonal y mejoras en infraestructura#1
Open
raicoacosta wants to merge 18 commits into
Open
Feat: Configurar proyecto React Native con arquitectura hexagonal y mejoras en infraestructura#1raicoacosta wants to merge 18 commits into
raicoacosta wants to merge 18 commits into
Conversation
- Added MainActivity.kt and MainApplication.kt for Android setup. - Created iOS project files including AppDelegate.swift, Info.plist, and LaunchScreen.storyboard. - Configured Xcode project settings and schemes for building and running the app. - Included assets for app icons and privacy information. - Set up React Native integration with new architecture support.
- Added MainActivity and MainApplication for Android setup. - Created iOS project structure including AppDelegate, Info.plist, and LaunchScreen storyboard. - Configured Xcode project settings and schemes for building and running the app. - Included necessary assets and privacy information for iOS. - Set up React Native delegate and factory for application lifecycle management.
…pace-from' y actualizar configuraciones de proyecto
…a gestión de errores en el repositorio de tarjetas de crédito
…ive tests - Added Money value object with methods for creation, addition, subtraction, multiplication, and comparison. - Implemented ProductNumber value object with validation and masking functionality. - Created unit tests for Money and ProductNumber to ensure correct behavior and error handling. feat: Introduce Logger interface and LoggerService implementation - Defined ILogger interface for structured logging with various log levels. - Implemented LoggerService to handle logging with context and remote capabilities. - Added emoji representation for different log levels for better visibility in console. feat: Develop use cases for credit card management - Created use cases for creating, deleting, fetching all, and fetching by ID for credit cards. - Integrated logging into use cases to track operations and errors. - Utilized Result pattern for error handling in use cases. feat: Establish CreditCard repository interfaces and implementations - Defined ICreditCardRepository interface for credit card data operations. - Implemented HttpCreditCardRepository for HTTP-based data fetching and manipulation. - Developed MockCreditCardRepository for testing and development purposes with mock data. feat: Add domain exceptions for credit card operations - Created specific exceptions for credit card domain errors to improve error handling. - Implemented validation logic for credit card attributes, including expiration date and product number. feat: Introduce Result type for functional error handling - Implemented Result class to encapsulate success and error states, facilitating cleaner error management in use cases.
…ar el reporte de cobertura de código
jjmayorgaq
approved these changes
Oct 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Resumen
Este PR establece la base del proyecto React Native con arquitectura hexagonal (Clean Architecture) y realiza mejoras críticas en la configuración del repositorio, gestión de dependencias y corrección de bugs de renderizado.
🔧 Cambios Principales
1. Configuración del Repositorio ✨
.gitignoremejorado (209 líneas).cxx/**) e iOSyarn.lock,package-lock.json,Gemfile.lock)2. Limpieza del Repositorio 🧹
android/app/.cxx/**- Archivos de build de CMake (354 archivos).watchmanconfig- Configuración no necesaria en repoios/RNTemplateHexagonal.xcworkspace/contents.xcworkspacedata- Generado automáticamente.bundle/configyios/Podfile.lock- Archivos de dependencias3. Arquitectura Hexagonal Implementada 🏗️
Domain Layer (Capa de Dominio)
CreditCardcon 12 propiedades de dominiodtoToCreditCardydtoToAllCreditCardsIGetAlleIPostApplication Layer (Capa de Aplicación)
CreditCardUseCasecon métodoexecuteGetAll()CreditCardUseCaseProvideruseCreditCardImpl()Infrastructure Layer (Capa de Infraestructura)
4. Corrección de Bugs Críticos 🐛
App.tsx - 5 bugs corregidos:
useMemo(async () => ...)→ ✅React.useEffect(() => invokeCreditcards())_(ESLint error) → ✅_creditCardsErrorindex.js(single source of truth).map()→ ✅key={creditCard.productNumber}index.js - Provider hierarchy: