Skip to content

Commit ea36d05

Browse files
authored
Merge pull request #17 from MapSee-Lab/20260128_#14_맵시_PRD에_맞는_기능_구현_확인_점검_필요
20260128 #14 맵시 prd에 맞는 기능 구현 확인 점검 필요
2 parents 5fda53d + 5dc9ce5 commit ea36d05

File tree

18 files changed

+86
-151
lines changed

18 files changed

+86
-151
lines changed

ios/fastlane/Fastfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ platform :ios do
5959
upload_to_testflight(
6060
api_key: api_key,
6161
ipa: ipa_path,
62-
changelog: release_notes,
62+
changelog: release_notes.dup,
6363
localized_build_info: {
64-
"ko" => { whats_new: release_notes },
65-
"en-US" => { whats_new: release_notes }
64+
"ko" => { whats_new: release_notes.dup },
65+
"en-US" => { whats_new: release_notes.dup }
6666
},
6767
skip_waiting_for_build_processing: ENV["SKIP_WAITING_FOR_BUILD_PROCESSING"] == "true",
6868
distribute_external: false,

lib/core/constants/api_endpoints.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ class ApiEndpoints {
5757
static const String onboardingTerms = '/api/members/onboarding/terms';
5858

5959
/// 온보딩: 생년월일
60-
static const String onboardingBirthDate = '/api/members/onboarding/birth-date';
60+
static const String onboardingBirthDate =
61+
'/api/members/onboarding/birth-date';
6162

6263
/// 온보딩: 성별
6364
static const String onboardingGender = '/api/members/onboarding/gender';

lib/core/network/auth_interceptor.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ class AuthInterceptor extends Interceptor {
1515
final Ref _ref;
1616

1717
/// 인증이 필요 없는 경로 목록
18-
static const _publicPaths = [
19-
'/api/auth/sign-in',
20-
'/api/auth/reissue',
21-
];
18+
static const _publicPaths = ['/api/auth/sign-in', '/api/auth/reissue'];
2219

2320
AuthInterceptor(this._ref);
2421

lib/core/network/error_interceptor.dart

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ class ErrorInterceptor extends Interceptor {
2525
debugPrint(' Status: ${err.response?.statusCode}');
2626

2727
// DioException을 유지하되, error 필드에 AppException을 담아서 전달
28-
handler.next(DioException(
29-
requestOptions: err.requestOptions,
30-
response: err.response,
31-
type: err.type,
32-
error: exception,
33-
message: exception.message,
34-
));
28+
handler.next(
29+
DioException(
30+
requestOptions: err.requestOptions,
31+
response: err.response,
32+
type: err.type,
33+
error: exception,
34+
message: exception.message,
35+
),
36+
);
3537
}
3638

3739
/// DioException을 AppException으로 변환
@@ -65,7 +67,8 @@ class ErrorInterceptor extends Interceptor {
6567
String? serverMessage;
6668
String? serverCode;
6769
if (responseData is Map<String, dynamic>) {
68-
serverMessage = responseData['message'] as String? ??
70+
serverMessage =
71+
responseData['message'] as String? ??
6972
responseData['error'] as String?;
7073
serverCode = responseData['code'] as String?;
7174
}

lib/core/network/token_refresh_interceptor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class TokenRefreshInterceptor extends Interceptor {
3131

3232
/// 갱신 완료 대기 중인 요청들
3333
final List<({RequestOptions options, ErrorInterceptorHandler handler})>
34-
_pendingRequests = [];
34+
_pendingRequests = [];
3535

3636
TokenRefreshInterceptor(this._ref, this._mainDio, this._refreshDio);
3737

lib/core/network/token_storage.dart

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ class TokenStorage {
2929
final FlutterSecureStorage _storage;
3030

3131
TokenStorage({FlutterSecureStorage? storage})
32-
: _storage = storage ??
33-
const FlutterSecureStorage(
34-
aOptions: AndroidOptions(encryptedSharedPreferences: true),
35-
iOptions: IOSOptions(accessibility: KeychainAccessibility.first_unlock),
36-
);
32+
: _storage =
33+
storage ??
34+
const FlutterSecureStorage(
35+
aOptions: AndroidOptions(encryptedSharedPreferences: true),
36+
iOptions: IOSOptions(
37+
accessibility: KeychainAccessibility.first_unlock,
38+
),
39+
);
3740

3841
// ============================================
3942
// Access Token

lib/features/auth/data/datasources/auth_remote_datasource.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ class AuthRemoteDataSource {
3636
/// Throws: DioException (network errors), AppException (converted errors)
3737
Future<SignInResponse> signIn(SignInRequest request) async {
3838
debugPrint('🔐 Calling sign-in API...');
39-
debugPrint(' Firebase ID Token length: ${request.firebaseIdToken.length}');
39+
debugPrint(
40+
' Firebase ID Token length: ${request.firebaseIdToken.length}',
41+
);
4042

4143
final response = await _dio.post(
4244
ApiEndpoints.signIn,

lib/features/auth/data/repositories/auth_repository_impl.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ class AuthRepositoryImpl implements AuthRepository {
6161
requiresOnboarding: response.requiresOnboarding,
6262
onboardingStep: response.onboardingStep,
6363
);
64-
debugPrint('✅ Onboarding state saved: requiresOnboarding=${response.requiresOnboarding}');
64+
debugPrint(
65+
'✅ Onboarding state saved: requiresOnboarding=${response.requiresOnboarding}',
66+
);
6567

6668
return response;
6769
}

lib/features/auth/presentation/pages/login_page.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ class LoginPage extends ConsumerWidget {
2222
/// Google 로그인을 수행하고 에러 발생 시 SnackBar를 표시합니다.
2323
Future<void> _handleGoogleSignIn(BuildContext context, WidgetRef ref) async {
2424
// AuthNotifier로 로그인 수행 (백엔드 응답 포함)
25-
final signInResponse = await ref.read(authNotifierProvider.notifier).signInWithGoogle();
25+
final signInResponse = await ref
26+
.read(authNotifierProvider.notifier)
27+
.signInWithGoogle();
2628

2729
// 에러 체크 및 SnackBar 표시
2830
if (!context.mounted) return;
@@ -56,7 +58,9 @@ class LoginPage extends ConsumerWidget {
5658
/// Apple 로그인을 수행하고 에러 발생 시 SnackBar를 표시합니다.
5759
Future<void> _handleAppleSignIn(BuildContext context, WidgetRef ref) async {
5860
// AuthNotifier로 로그인 수행 (백엔드 응답 포함)
59-
final signInResponse = await ref.read(authNotifierProvider.notifier).signInWithApple();
61+
final signInResponse = await ref
62+
.read(authNotifierProvider.notifier)
63+
.signInWithApple();
6064

6165
// 에러 체크 및 SnackBar 표시
6266
if (!context.mounted) return;

lib/features/auth/presentation/pages/splash_page.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'package:flutter/foundation.dart';
21
import 'package:flutter/material.dart';
32
import 'package:flutter_riverpod/flutter_riverpod.dart';
43
import 'package:go_router/go_router.dart';

0 commit comments

Comments
 (0)