Skip to content
Open
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release

# 민감한 정보가 포함된 파일
lib/config/secrets.dart
2 changes: 1 addition & 1 deletion android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
android {
namespace = "com.example.heafit"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
ndkVersion = "27.0.12077973"

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
Expand Down
24 changes: 24 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- 인터넷 권한 추가 -->
<uses-permission android:name="android.permission.INTERNET"/>

<application
android:label="heafit"
android:name="${applicationName}"
Expand All @@ -25,12 +28,25 @@
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>

<!-- Google 로그인 플러그인을 위한 설정 -->
<activity
android:name="io.flutter.plugins.googlesignin.GoogleSignInActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="false"/>

<!-- Google Play 서비스 버전 메타데이터 -->
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>

<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>

<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
Expand All @@ -41,5 +57,13 @@
<action android:name="android.intent.action.PROCESS_TEXT"/>
<data android:mimeType="text/plain"/>
</intent>

<!-- 구글 계정 선택 다이얼로그를 표시하기 위한 쿼리 -->
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="https" />
</intent>
<!-- 구글 서비스 패키지 쿼리 -->
<package android:name="com.google.android.gms" />
</queries>
</manifest>
Binary file added assets/images/category/Bibimbap .png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/category/Book.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/category/Bus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/category/Clothes .png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/category/Coffee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/category/Exhibition .png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/category/Jjajangmyeon .png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/category/Laptop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/category/Makeup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/category/Movie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/category/Performance .png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/category/Spaghetti.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/category/Sushi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/category/Tteokbokki.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/category/subway.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/change-cal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/like-category.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/use-al.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logo/heafit-logo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions lib/config/secrets.dart.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/// 비밀 API 키 및 클라이언트 ID를 관리하는 클래스
/// 이 파일은 예시 템플릿입니다. 실제 사용을 위해 secrets.dart로 복사한 후 실제 값을 입력하세요.
class Secrets {
/// 구글 OAuth 클라이언트 ID
/// GCP 콘솔에서 발급받은 Android 클라이언트 ID를 여기에 입력
static const String googleClientId = 'YOUR_OAUTH_CLIENT_ID_HERE.apps.googleusercontent.com';
}
7 changes: 6 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ import 'package:get/get.dart';
import 'package:hive_flutter/hive_flutter.dart';
import 'package:heafit/screens/splash_screen.dart';
import 'package:heafit/constants/theme.dart';
import 'package:heafit/services/google_auth_service.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();

// Hive 초기화
await Hive.initFlutter();

// Google Auth Service 초기화
final googleAuthService = GoogleAuthService();
await googleAuthService.init();

runApp(const MyApp());
}

Expand All @@ -23,7 +28,7 @@ class MyApp extends StatelessWidget {
debugShowCheckedModeBanner: false,
theme: AppTheme.lightTheme,
darkTheme: AppTheme.darkTheme,
themeMode: ThemeMode.system, // 시스템 설정에 따라 테마 적용
themeMode: ThemeMode.light, // 항상 라이트 테마 적용
home: const SplashScreen(),
);
}
Expand Down
Loading