Skip to content

Commit

Permalink
[fix]: devInfo 모듈 삭제 - 순환참조 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
kangyuri1114 committed Apr 1, 2024
1 parent 451689a commit 6b50884
Show file tree
Hide file tree
Showing 20 changed files with 36 additions and 30 deletions.
1 change: 0 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ dependencies {
implementation(project(":core:designsystem"))
implementation(project(":core:common"))
implementation(project(":feature:projects"))
implementation(project(":feature:devInfo"))
implementation(project(":feature:mypage"))

KotlinDependencies.run {
Expand Down
4 changes: 0 additions & 4 deletions feature/devInfo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ dependencies {
implementation(project(":domain"))
implementation(project(":core:designsystem"))
implementation(project(":core:common"))
implementation(project(":feature:projects"))


KotlinDependencies.run {
Expand Down Expand Up @@ -73,9 +72,6 @@ dependencies {
}

implementation(MaterialDesignDependencies.materialDesign)
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.11.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")

TestDependencies.run {
testImplementation(jUnit)
Expand Down
2 changes: 1 addition & 1 deletion feature/devInfo/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<application>
<activity
android:name=".DevDetailActivity"
android:name="com.zucchini.projects.DevDetailActivity"
android:exported="false"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
Expand Down
1 change: 0 additions & 1 deletion feature/projects/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ dependencies {
implementation(project(":domain"))
implementation(project(":core:designsystem"))
implementation(project(":core:common"))
implementation(project(":feature:devInfo"))
implementation(project(":feature:mypage"))

KotlinDependencies.run {
Expand Down
6 changes: 6 additions & 0 deletions feature/projects/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
android:exported="false"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />

<activity
android:name="com.zucchini.projects.DevDetailActivity"
android:exported="false"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.zucchini.feature.devInfo
package com.zucchini.projects

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.zucchini.feature.devInfo.adapter.DevDetailProjectAdapter
import com.zucchini.feature.devInfo.databinding.ActivityDevDetailBinding
import com.zucchini.feature.projects.databinding.ActivityDevDetailBinding
import com.zucchini.projects.adapter.DevDetailProjectAdapter

class DevDetailActivity : AppCompatActivity() {
private lateinit var binding: ActivityDevDetailBinding
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
package com.zucchini.feature.devInfo
package com.zucchini.projects

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.GridLayoutManager
import com.zucchini.common.NavigationProvider
import com.zucchini.feature.devInfo.adapter.DeveloperInfoAdapter
import com.zucchini.feature.devInfo.databinding.FragmentDevInfoBinding
import javax.inject.Inject
import com.zucchini.feature.projects.databinding.FragmentDevInfoBinding
import com.zucchini.projects.adapter.DeveloperInfoAdapter

class DevInfoFragment : Fragment() {
private var _binding: FragmentDevInfoBinding? = null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.zucchini.feature.devInfo
package com.zucchini.projects

import com.zucchini.domain.model.DevDetailProjectInfo
import com.zucchini.feature.projects.R

object DevProjectsDummy {
val devProjectsInfoList = listOf(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.zucchini.feature.devInfo
package com.zucchini.projects

import com.zucchini.domain.model.DeveloperInfo
import com.zucchini.feature.projects.R

object DeveloperInfoDummy {
val developerInfoList = listOf(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.zucchini.feature.devInfo.adapter
package com.zucchini.projects.adapter

import android.content.Intent
import android.view.LayoutInflater
Expand All @@ -7,9 +7,9 @@ import androidx.core.content.ContextCompat.startActivity
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.zucchini.domain.model.DevDetailProjectInfo
import com.zucchini.feature.devInfo.DevDetailActivity
import com.zucchini.feature.devInfo.R
import com.zucchini.feature.devInfo.databinding.ItemDevDetailProjectsBinding
import com.zucchini.feature.projects.R
import com.zucchini.feature.projects.databinding.ItemDevDetailProjectsBinding
import com.zucchini.projects.DevDetailActivity
import com.zucchini.view.ItemDiffCallback

class DevDetailProjectAdapter :
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.zucchini.feature.devInfo.adapter
package com.zucchini.projects.adapter

import android.content.Intent
import android.view.LayoutInflater
Expand All @@ -7,9 +7,9 @@ import androidx.core.content.ContextCompat.startActivity
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.zucchini.domain.model.DeveloperInfo
import com.zucchini.feature.devInfo.DevDetailActivity
import com.zucchini.feature.devInfo.R
import com.zucchini.feature.devInfo.databinding.ItemDeveloperBinding
import com.zucchini.feature.projects.R
import com.zucchini.feature.projects.databinding.ItemDeveloperBinding
import com.zucchini.projects.DevDetailActivity
import com.zucchini.view.ItemDiffCallback

class DeveloperInfoAdapter :
Expand Down Expand Up @@ -38,7 +38,8 @@ class DeveloperInfoAdapter :
fun bind(developerInfo: DeveloperInfo) {
binding.run {
ivProjectProfile.setImageResource(
developerInfo.image ?: R.drawable.developer_default_image,
developerInfo.image
?: R.drawable.developer_default_image,
)
tvDeveloperName.text = developerInfo.name
tvDeveloperField.text = developerInfo.field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".DevDetailActivity">
tools:context="com.zucchini.projects.DevDetailActivity">

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".DevInfoFragment">
tools:context="com.zucchini.projects.DevInfoFragment">

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_top_app_bar"
Expand Down
2 changes: 1 addition & 1 deletion feature/projects/src/main/res/navigation/nav_graph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<fragment
android:id="@+id/devinfo_dest"
android:name="com.zucchini.feature.devInfo.DevInfoFragment"
android:name="com.zucchini.projects.DevInfoFragment"
android:label="DevInfo Fragment" />
<fragment
android:id="@+id/projects_dest"
Expand Down
6 changes: 6 additions & 0 deletions feature/projects/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@
<string name="tv_sort_recent">최신순</string>
<string name="tv_sort_high_check">조회수 높은순</string>
<string name="tv_sort_low_check">조회수 낮은순</string>
<string name="top_app_bar_developer">개발자 찾기</string>
<string name="dev_detail_top_bar">개발자 상세 페이지</string>
<string name="github">Github</string>
<string name="kakao_id">카카오톡 아이디</string>
<string name="email">이메일</string>
<string name="tv_navigate_to_project"><u>프로젝트 보러가기&#8599;</u></string>
</resources>
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ include(":app")
include(":domain")
include(":data")
include(":feature")
include(":feature:devInfo")
include(":feature:mypage")
include(":feature:projects")
include(":core:designsystem")
Expand Down

0 comments on commit 6b50884

Please sign in to comment.