Loading mobile/src/common/contexts/data_context.tsx +7 −3 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ import { StateDataSourceProd } from "../../infrastructure/datasource/prod/state_ import { ProfileRepository } from "../../profile/domain/repositories/profile_repository"; import { ProfileDataSourceDev } from "../../profile/infrastructure/datasources/dev/profile_datasource"; import { ProfileRepositoryImpl } from "../../profile/infrastructure/repositories/profile_repository"; import { ActivityDatasourceProd } from "../../infrastructure/datasource/prod/activity_datasource"; type DataContextType = { statesRepository: StateRepository | null; Loading @@ -41,11 +42,14 @@ const DataContext = createContext<DataContextType>({ }); export const DataContextProvider = ({ children }: DataContextProviderProps) => { const statesDataSource = new StateDataSourceDev(); //const statesDataSource = new StateDataSourceDev(); const statesDataSource = new StateDataSourceProd(); const statesRepository = new StateRepositoryImpl(statesDataSource); const authDataSource = new AuthDataSourceDev(); //const authDataSource = new AuthDataSourceDev(); const authDataSource = new AuthDatasourceProd(); const authRepository = new AuthRepositoryImpl(authDataSource); const activityDataSource = new ActivityDatasourceDev(); //const activityDataSource = new ActivityDatasourceDev(); const activityDataSource = new ActivityDatasourceProd(); const activityRepository = new ActivityRepositoryDev(activityDataSource); const travelDatasource = new TravelDatasourceDev(); const travelRepository = new TravelRepositoryImpl(travelDatasource); Loading Loading
mobile/src/common/contexts/data_context.tsx +7 −3 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ import { StateDataSourceProd } from "../../infrastructure/datasource/prod/state_ import { ProfileRepository } from "../../profile/domain/repositories/profile_repository"; import { ProfileDataSourceDev } from "../../profile/infrastructure/datasources/dev/profile_datasource"; import { ProfileRepositoryImpl } from "../../profile/infrastructure/repositories/profile_repository"; import { ActivityDatasourceProd } from "../../infrastructure/datasource/prod/activity_datasource"; type DataContextType = { statesRepository: StateRepository | null; Loading @@ -41,11 +42,14 @@ const DataContext = createContext<DataContextType>({ }); export const DataContextProvider = ({ children }: DataContextProviderProps) => { const statesDataSource = new StateDataSourceDev(); //const statesDataSource = new StateDataSourceDev(); const statesDataSource = new StateDataSourceProd(); const statesRepository = new StateRepositoryImpl(statesDataSource); const authDataSource = new AuthDataSourceDev(); //const authDataSource = new AuthDataSourceDev(); const authDataSource = new AuthDatasourceProd(); const authRepository = new AuthRepositoryImpl(authDataSource); const activityDataSource = new ActivityDatasourceDev(); //const activityDataSource = new ActivityDatasourceDev(); const activityDataSource = new ActivityDatasourceProd(); const activityRepository = new ActivityRepositoryDev(activityDataSource); const travelDatasource = new TravelDatasourceDev(); const travelRepository = new TravelRepositoryImpl(travelDatasource); Loading