generated from NOW-SOPT-ANDROID/now-sopt-android-template
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[6차 세미나/xml] : 도전 과제 & [7차 세미나/xml] : 필수 과제 #19
Open
Eonji-sw
wants to merge
57
commits into
develop-xml
Choose a base branch
from
feat/week_xml6-multimodule
base: develop-xml
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
9d3da36
[MOD] : liveData -> flow 적용
Eonji-sw d5ef589
[DEL] : multi module 적용
Eonji-sw 2ff1259
[FEAT] : module 구현(DI-Hilt)
Eonji-sw c84148a
[DEL] : multi module 적용
Eonji-sw ef7811f
[FEAT] : mainApplication 구현(이동)
Eonji-sw 6e4088e
[FEAT] : app 모듈 manifest 구현(이동)
Eonji-sw bebba8a
[FEAT] : app 모듈 build gradle 구현
Eonji-sw dd497cc
[FEAT] : app 모듈 proguard-rules 생성
Eonji-sw e9c9584
[FEAT] : core-ui 모듈 gitignore 생성
Eonji-sw 9421311
[FEAT] : core-ui 모듈 build gradle 구현
Eonji-sw 405e86e
[FEAT] : core-ui 모듈 test file 생성
Eonji-sw 2b0bbb0
[FEAT] : core-ui 모듈 base 구현(이동)
Eonji-sw c50519a
[FEAT] : core-ui 모듈 util 구현(이동)
Eonji-sw 38cd2a3
[FEAT] : core-ui 모듈 view 구현(이동)
Eonji-sw a17c755
[FEAT] : data 모듈 gitignore 생성
Eonji-sw ab72c22
[FEAT] : data 모듈 build gradle 구현
Eonji-sw d84796d
[FEAT] : data 모듈 test file 생성
Eonji-sw 909cb75
[FEAT] : data-local 모듈 test file 생성
Eonji-sw 24b9830
[FEAT] : data-remote 모듈 test file 생성
Eonji-sw 7e00649
[FEAT] : domain 모듈 test file 생성
Eonji-sw 9ccb4af
[FEAT] : feature 모듈 test file 생성
Eonji-sw aee8c04
[FEAT] : data-local 모듈 gitignore 생성
Eonji-sw 3323c09
[FEAT] : data-remote 모듈 gitignore 생성
Eonji-sw 9b170c5
[FEAT] : domain 모듈 gitignore 생성
Eonji-sw c0f1d87
[FEAT] : feature 모듈 gitignore 생성
Eonji-sw 254db4f
[FEAT] : data-local 모듈 build gradle 구현
Eonji-sw 4b4f423
[FEAT] : data-remote 모듈 build gradle 구현
Eonji-sw caec6c7
[FEAT] : domain 모듈 build gradle 구현
Eonji-sw 798167e
[FEAT] : feature 모듈 build gradle 구현
Eonji-sw 9849aec
[FEAT] : feature 모듈 proguard-rules 생성
Eonji-sw a272c6d
[ADD] : project build gradle 수정
Eonji-sw 85f8269
[ADD] : project settings gradle 수정
Eonji-sw 465d3d4
[FEAT] : version catalog 구현
Eonji-sw 163a8ef
[FEAT] : data 모듈 datasource 구현
Eonji-sw b6a501d
[FEAT] : data 모듈 dto 구현(이동)
Eonji-sw 26305c8
[FEAT] : data 모듈 repository impl 구현
Eonji-sw ff61756
[FEAT] : data-local 모듈 data source impl 구현
Eonji-sw 514a08b
[FEAT] : data-remote 모듈 api service 구현(이동)
Eonji-sw e761fe5
[FEAT] : data-remote 모듈 data source impl 구현
Eonji-sw c48823c
[RENAME] : keyStorage -> apiKeyStorage 파일명 변경
Eonji-sw a1bed6c
[FEAT] : domain 모듈 entity 구현
Eonji-sw ab9a6c4
[FEAT] : domain 모듈 repository 구현
Eonji-sw 901cb71
[FEAT] : domain 모듈 manifest 구현
Eonji-sw 5872398
[FEAT] : feature 모듈 manifest 구현
Eonji-sw 68c49e0
[UI] : feature 모듈 res 구현(이동)
Eonji-sw 8ab38de
[MOD] : import 변경
Eonji-sw 51e58d3
[DEL] : 필요없는 코드 제거
Eonji-sw 8a350c4
[FEAT] : feature 모듈 클아 + 모듈화 적용
Eonji-sw 9042550
[ADD] : build gradle 추가 및 정리
Eonji-sw 26e2594
[MOD] : 코드 정리
Eonji-sw 3fd68ea
[MOD] : 코드 정리
Eonji-sw 9c3268e
[MOD] : 코드 정리
Eonji-sw 0e7f649
[MOD] : 코드 정리
Eonji-sw 87fcd62
[MOD] : 코드 정리
Eonji-sw 25a3f29
[MOD] : User -> UserEntity 호출 변경
Eonji-sw 2aadaf5
[MOD] : User -> UserEntity 호출 변경
Eonji-sw 22cae42
[MOD] : 코드 정리
Eonji-sw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties | ||
|
||
plugins { | ||
alias(libs.plugins.android.application) | ||
alias(libs.plugins.kotlin.android) | ||
id("kotlin-parcelize") | ||
id("kotlin-kapt") | ||
alias(libs.plugins.dagger.hilt) | ||
alias(libs.plugins.kotlinx.serialization) | ||
} | ||
|
||
android { | ||
namespace = "com.sopt.now" | ||
compileSdk = 34 | ||
|
||
defaultConfig { | ||
applicationId = "com.sopt.now" | ||
minSdk= 28 | ||
targetSdk = 34 | ||
versionCode = 1 | ||
versionName = "1.0" | ||
|
||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
|
||
buildConfigField("String", "AUTH_BASE_URL", getApiKey("base.auth.url")) | ||
buildConfigField("String", "USER_BASE_URL", getApiKey("base.user.url")) | ||
} | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = false | ||
proguardFiles( | ||
getDefaultProguardFile("proguard-android-optimize.txt"), | ||
"proguard-rules.pro" | ||
) | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
kotlinOptions { | ||
jvmTarget = "17" | ||
} | ||
|
||
buildFeatures { | ||
viewBinding = true | ||
dataBinding = true | ||
buildConfig = true | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(project(":feature")) | ||
implementation(project(":core-ui")) | ||
implementation(project(":domain")) | ||
implementation(project(":data")) | ||
implementation(project(":data-local")) | ||
implementation(project(":data-remote")) | ||
|
||
// 기초 AndroidX 라이브러리 ("core-ktx", "constraintlayout", "appcompat", "activity") | ||
implementation(libs.bundles.androidx) | ||
implementation(libs.security.crypto) | ||
|
||
// Json | ||
implementation(libs.kotlinx.serialization.json) | ||
|
||
// Third Party | ||
implementation(libs.retrofit2) | ||
implementation(libs.retrofit.kotlin.serialization.converter) | ||
implementation(platform(libs.okhttp.bom)) | ||
implementation(libs.okhttp) | ||
implementation(libs.okhttp.logging.interceptor) | ||
|
||
implementation(libs.coil.core) | ||
implementation(libs.timber) | ||
|
||
// Dagger hilt | ||
implementation(libs.dagger.hilt) | ||
kapt(libs.dagger.hilt.compiler) | ||
|
||
// Test | ||
testImplementation(libs.junit) | ||
androidTestImplementation(libs.bundles.androidx.android.test) | ||
} | ||
|
||
fun getApiKey(propertyKey: String): String { | ||
return gradleLocalProperties(rootDir, providers).getProperty(propertyKey) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 3 additions & 11 deletions
14
...java/com/sopt/now/core/MainApplication.kt → ...main/java/com/sopt/now/MainApplication.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.sopt.now.di | ||
|
||
import com.sopt.now.data_remote.api.AuthApiService | ||
import com.sopt.now.data_remote.api.ReqresApiService | ||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import retrofit2.Retrofit | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
object ApiModule { | ||
@Provides | ||
@Singleton | ||
fun provideSignApiService(@AuthRetrofit retrofit: Retrofit): AuthApiService = | ||
retrofit.create(AuthApiService::class.java) | ||
|
||
@Provides | ||
@Singleton | ||
fun provideReqresApiService(@ReqresRetrofit retrofit: Retrofit): ReqresApiService = | ||
retrofit.create(ReqresApiService::class.java) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.sopt.now.di | ||
|
||
import com.sopt.now.data.datasource.AuthDataSource | ||
import com.sopt.now.data.repositoryimpl.AuthRepositoryImpl | ||
import com.sopt.now.data_remote.datasourceimpl.AuthDataSourceImpl | ||
import com.sopt.now.domain.repository.AuthRepository | ||
import dagger.Binds | ||
import dagger.Module | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
object AuthModule { | ||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
interface RepositoryModule { | ||
@Binds | ||
@Singleton | ||
fun bindsAuthRepository(RepositoryImpl: AuthRepositoryImpl): AuthRepository | ||
} | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
interface DataSourceModule { | ||
@Singleton | ||
@Binds | ||
fun providesAuthDataSource(DataSourceImpl: AuthDataSourceImpl): AuthDataSource | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
각각 기능별로 분리 하는거 맞나요...??????? ㅇ....이게..... 모듈분리 맞나???????