Skip to content

Commit

Permalink
[friends-native] vivid_ios api 제거 (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
ars-ki-00 authored Dec 1, 2024
1 parent de0f33f commit 446957a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 20 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import { ColorRepository } from '../repositories/colorRepository';
import { ColorService } from '../usecases/colorService';

export const createColorService = ({
repositories: [colorRepository],
}: {
repositories: [ColorRepository];
}): ColorService => {
export const createColorService = (): ColorService => {
return {
getColorPalette: () => colorRepository.getColorPalette().then((res) => res.colors),
getColorPalette: () => [
{ fg: '#ffffff', bg: '#e54459' },
{ fg: '#ffffff', bg: '#f58d3d' },
{ fg: '#ffffff', bg: '#fac52d' },
{ fg: '#ffffff', bg: '#a6d930' },
{ fg: '#ffffff', bg: '#2bc366' },
{ fg: '#ffffff', bg: '#1bd0c9' },
{ fg: '#ffffff', bg: '#1d99e9' },
{ fg: '#ffffff', bg: '#4f48c4' },
{ fg: '#ffffff', bg: '#af56b3' },
],
};
};
3 changes: 1 addition & 2 deletions apps/friends-react-native/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { themeContext } from './app/contexts/ThemeContext';
import { getThemeValues } from './app/styles/theme';
import { ClientFeature } from './entities/feature';
import { createAssetService } from './infrastructures/createAssetService';
import { createColorRepository } from './infrastructures/createColorRepository';
import { createColorService } from './infrastructures/createColorService';
import { createCourseBookService } from './infrastructures/createCourseBookService';
import { createFetchClient } from './infrastructures/createFetchClient';
Expand Down Expand Up @@ -46,7 +45,7 @@ export const Main = ({
const friendRepository = createFriendRepository(fetchClient);
const assetService = createAssetService({ baseUrl: ASSET_URL });
const timetableViewService = createTimetableViewService();
const colorService = createColorService({ repositories: [createColorRepository({ clients: [fetchClient] })] });
const colorService = createColorService();
const friendService = createFriendService({ repositories: [friendRepository] });
const courseBookService = createCourseBookService();
const nativeEventService = createNativeEventService();
Expand Down
2 changes: 1 addition & 1 deletion apps/friends-react-native/src/usecases/colorService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Color } from '../entities/color';

export type ColorService = {
getColorPalette: () => Promise<Color[]>;
getColorPalette: () => Color[];
};

0 comments on commit 446957a

Please sign in to comment.