Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1462,10 +1462,10 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
abseil: a05cc83bf02079535e17169a73c5be5ba47f714b
BoringSSL-GRPC: dded2a44897e45f28f08ae87a55ee4bcd19bc508
cloud_firestore: aef3217af294cd35afda47e63112d306f4c9a2e2
cloud_firestore: 07742f115155e19201e77b4cafb155011892d7b7
Firebase: 1fe1c0a7d9aaea32efe01fbea5f0ebd8d70e53a2
firebase_auth: e37065f3f80ff90580c13ad0e5a48e3bb8d2ad77
firebase_core: 432718558359a8c08762151b5f49bb0f093eb6e0
firebase_auth: ad485af7f854ba5f86634f81725b22b37f317883
firebase_core: 2d4534e7b489907dcede540c835b48981d890943
FirebaseAppCheckInterop: f23709c9ce92d810aa53ff4ce12ad3e666a3c7be
FirebaseAuth: c4146bdfdc87329f9962babd24dae89373f49a32
FirebaseAuthInterop: ac22ed402c2f4e3a8c63ebd3278af9a06073c1be
Expand All @@ -1476,22 +1476,22 @@ SPEC CHECKSUMS:
FirebaseFirestoreInternal: 97a2bb5f16951c77753c860d3519379702ab6f8a
FirebaseSharedSwift: d2475748a2d2a36242ed13baa34b2acda846c925
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_secure_storage: d33dac7ae2ea08509be337e775f6b59f1ff45f12
fluttertoast: 21eecd6935e7064cc1fcb733a4c5a428f3f24f0f
flutter_secure_storage: 1ed9476fba7e7a782b22888f956cce43e2c62f13
fluttertoast: 2c67e14dce98bbdb200df9e1acf610d7a6264ea1
GoogleUtilities: 26a3abef001b6533cf678d3eb38fd3f614b7872d
"gRPC-C++": cc207623316fb041a7a3e774c252cf68a058b9e8
gRPC-Core: 860978b7db482de8b4f5e10677216309b5ff6330
GTMSessionFetcher: 75b671f9e551e4c49153d4c4f8659ef4f559b970
image_picker_ios: c560581cceedb403a6ff17f2f816d7fea1421fc1
kakao_flutter_sdk_common: 3dc8492c202af7853585d151490b1c5c6b7576cb
image_picker_ios: 7fe1ff8e34c1790d6fff70a32484959f563a928a
kakao_flutter_sdk_common: 600d55b532da0bd37268a529e1add49302477710
leveldb-library: cc8b8f8e013647a295ad3f8cd2ddf49a6f19be19
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564
RecaptchaInterop: 11e0b637842dfb48308d242afc3f448062325aba
screen_protector: 6f92086bd2f2f4b54f54913289b9d1310610140b
screen_protector: 3d90d44ac886b25335aebd93230b454aef45794a
ScreenProtectorKit: 83a6281b02c7a5902ee6eac4f5045f674e902ae4
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
sign_in_with_apple: f3bf75217ea4c2c8b91823f225d70230119b8440
shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7
sign_in_with_apple: c5dcc141574c8c54d5ac99dd2163c0c72ad22418

PODFILE CHECKSUM: f8c2dcdfb50bb67645580d28a6bf814fca30bdec

Expand Down
28 changes: 28 additions & 0 deletions lib/core/utills/network/profile_api_service.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import 'dart:developer';

import 'package:code_l/auth/data/datasources/local/login_local_datasource.dart';
import 'package:dio/dio.dart';

import '../../../sign_up/data/models/request/profile_request.dart';

class ProfileApiService {
final Dio _dio;

ProfileApiService(this._dio);

Future<Response> profile(ProfileRequest request) async {
final token = await LoginLocalDataSource.loadToken();
log(request.toJson().toString());
final response = await _dio.post(
'/v1/member/profile',
data: request.toJson(),
options: Options(
headers: {
'Authorization': '$token',
},
),
);
log(response.statusCode.toString());
return response;
}
}
6 changes: 4 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ import 'package:code_l/auth/presentation/pages/identity/identity_verification_pa
import 'package:code_l/auth/presentation/pages/login/login_page.dart';
import 'package:code_l/auth/presentation/pages/terms_and_conditions/terms_and_condition_page.dart';
import 'package:code_l/sign_up/presentation/pages/pending_approval/pending_approval_page.dart';
import 'package:code_l/sign_up/presentation/pages/profile_image/profile_face_image_page.dart';
import 'package:code_l/sign_up/presentation/pages/profile_image/profile_image_page.dart';
import 'package:code_l/sign_up/presentation/pages/profile_interest/profile_intereset_page.dart';
import 'package:code_l/sign_up/presentation/pages/profile_name/profile_name_page.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
Expand Down Expand Up @@ -71,8 +73,8 @@ class InitialRouteLoader extends StatelessWidget {
return switch (snapshot.data!) {
SignUpState.SIGNUP => const PhoneVerificationPage(),
SignUpState.IDENTIFY => const TermsAndConditionPage(),
SignUpState.CODE_SURVEY => const ProfileInterestPage(),
SignUpState.CODE_PROFILE_IMAGE => const ProfileImagePage(),
SignUpState.CODE_SURVEY => const ProfileImagePage(),
SignUpState.CODE_PROFILE_IMAGE => const ProfileFaceImagePage(),
SignUpState.PENDING => const PendingApprovalPage(),
SignUpState.DONE => const LoginPage(), // todo home
SignUpState.NONE => const LoginPage(),
Expand Down
1 change: 1 addition & 0 deletions lib/sign_up/data/datasources/local/drink_options.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
final drinkOptions = ['음주는 안해요', '약속 있을 때만 먹어요', '음주를 즐기는 매니아', '금주중'];
22 changes: 22 additions & 0 deletions lib/sign_up/data/datasources/local/interest_options.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
final List<String> interestOptions = [
'게임 🎮',
'방탈출/보드게임 🎲',
'야외활동 🚴',
'운동 🏋️',
'독서 & 글쓰기 📚✍️',
'음악 & 악기 🎵🎸',
'영화 🎬',
'캠핑 🏕️',
'OTT/드라마 📺',
'여행 ✈',
'요리 🍳',
'맛집 탐방 🍽',
'패션 & 뷰티 👗💄',
'쇼핑 🛍',
'동물 🐶🐱',
'IT기술 💻',
'댄스 & 퍼포먼스 💃🕺',
'인테리어 & DIY 🏠🔨',
'사지 & 영상 제작 🎥',
'전시관람 🖼',
];
14 changes: 14 additions & 0 deletions lib/sign_up/data/datasources/local/job_options.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
final List<Map<String, String>> jobList = [
{'label': '직장인', 'image': 'assets/icons/ic_job_office_worker.png'},
{'label': '학생', 'image': 'assets/icons/ic_job_student.png'},
{'label': '취준생', 'image': 'assets/icons/ic_job_seeker.png'},
{'label': '프리랜서', 'image': 'assets/icons/ic_job_freelancer.png'},
{'label': '자영업자', 'image': 'assets/icons/ic_job_self_employed.png'},
{'label': '공무원', 'image': 'assets/icons/ic_job_government_employee.png'},
{'label': '서비스직', 'image': 'assets/icons/ic_job_servicer.png'},
{'label': '의료인', 'image': 'assets/icons/ic_job_healthcare.png'},
{'label': '교육자', 'image': 'assets/icons/ic_job_educator.png'},
{'label': '엔터테이너', 'image': 'assets/icons/ic_job_entertainer.png'},
{'label': '크리에이터', 'image': 'assets/icons/ic_job_creator.png'},
{'label': '기타', 'image': 'assets/icons/ic_job_etc.png'},
];
41 changes: 41 additions & 0 deletions lib/sign_up/data/datasources/local/love_style.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
final List<String> relationshipStyles = [
'천천히 알아가는 스타일 ⏳',
'만나면 운명이라고 믿는 직진형 💫',
'안정적이고 신뢰감 있는 연애 선호 🏡',
'서로의 성장과 자립을 중요시하는 스타일 🌱',
'항상 새롭고 설레는 연애를 추구하는 스타일 💃',
];

final List<String> communicationStyles = [
'하루 종일 연락하는 스타일 📲',
'중요한 순간에만 연락하는 스타일 🕰',
'전화보다 톡을 선호하는 스타일 💬',
'하루 한 통이라도 진심을 담는 스타일 💌',
'상대가 필요할 때 항상 먼저 연락하는 스타일 🙋‍♂️',
];

final List<String> dateStyles = [
'집에서 함께 영화 보는 홈 데이트 🏠',
'맛집 탐방하고 새로운 곳 찾기 🍔',
'야외활동이나 스포츠 즐기기 🚴‍♂️',
'문화생활 (전시회, 공연 등) 즐기기 🎭',
'계획적이고 철저한 데이트 스케줄러 📅',
'즉흥적으로 놀러 가는 스타일 🌍',
];

final List<String> conflictResolutionStyles = [
'바로 대화해서 푸는 직설형💬',
'시간이 지난 후 차분하게 이야기하는 스타일🤫',
'상대방의 입장을 먼저 이해하는 배려형🤝',
'잘못을 빠르게 인정하고 사과하는 솔직형🙇‍♂️',
'화가 나도 조용히 마음을 가라앉히는 침착형🧘‍♀️',
];

final List<String> affectionExpressions = [
'표현을 잘하는 직진형 💬',
'은근하게 마음을 전하는 무뚝뚝형 😎',
'말보다는 행동으로 표현하는 실천파 🚶‍♂',
'애교 많고 귀여운 스타일 🥰',
'진지하고 깊이 있는 스타일 🤔',
'다정다감한 배려형 💕',
];
6 changes: 6 additions & 0 deletions lib/sign_up/data/datasources/local/mbti_options.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
final mbtiOptions = const [
['E', 'I'],
['N', 'S'],
['T', 'F'],
['P', 'J'],
];
Loading