prod 웹앱(spin.special-partners.com)을 감싸는 네이티브 셸. 화면 개발 없음. - InAppWebView: 쿠키/캐시 영속·UA(spinApp) 태그·풀투리프레시·외부링크 분기·오프라인 화면 - Android 하드웨어 뒤로가기(웹 히스토리→더블탭 종료), navy 스플래시/상태바 - 파일/카메라 업로드 권한(Android/iOS), 생체인증 잠금(local_auth) - FCM 푸시(firebase_messaging) — 설정 전 자동 비활성, 토큰은 웹 세션으로 /api/devices 등록 - prod URL 고정(app_config.dart) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
15 lines
598 B
Dart
15 lines
598 B
Dart
/// 앱 전역 설정.
|
|
class AppConfig {
|
|
/// 웹뷰가 로드할 prod 웹앱 URL (고정).
|
|
static const String baseUrl = "https://spin.special-partners.com";
|
|
|
|
/// 웹앱이 "앱 안에서 실행 중"임을 감지하도록 UA에 덧붙이는 토큰.
|
|
/// (웹: navigator.userAgent 에 spinApp 포함 → safe-area 등 보정)
|
|
static const String userAgentTag = "spinApp/1.0";
|
|
|
|
/// 백그라운드 후 이 시간 이상 지나 재진입하면 생체인증 잠금을 요구.
|
|
static const Duration lockGracePeriod = Duration(minutes: 1);
|
|
|
|
static Uri get baseUri => Uri.parse(baseUrl);
|
|
}
|