Skip to content

Commit

Permalink
[feat] : #113 MainAcitivty Presentation Layer로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
SsongSik committed Jun 2, 2023
1 parent aaac2dc commit 685babc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
android:theme="@style/Theme.Myongsik_android"
android:usesCleartextTraffic="true">
<activity
android:name=".base.MainActivity"
android:name="com.myongsik.presentation.view.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import android.view.ViewGroup
import androidx.activity.OnBackPressedCallback
import androidx.fragment.app.Fragment
import androidx.viewbinding.ViewBinding
import com.myongsik.myongsikandroid.databinding.ItemLoadStateBinding
import com.myongsik.myongsikandroid.databinding.ItemLoadingProgressbarBinding
import com.myongsik.myongsikandroid.util.ItemLoadingProgressbarDialog

abstract class BaseFragment<T : ViewBinding> : Fragment() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ import androidx.work.NetworkType
import androidx.work.OneTimeWorkRequestBuilder
import androidx.work.WorkManager
import com.myongsik.myongsikandroid.R
import com.myongsik.myongsikandroid.alarm.UpdateWidgetWorker
import com.myongsik.myongsikandroid.data.type.WidgetType
import com.myongsik.myongsikandroid.data.type.toWidgetType
import com.myongsik.myongsikandroid.presentation.widget.MenuWidget

object CommonUtil {
fun hideKeyboard(activity: Activity) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
package com.myongsik.myongsikandroid.base
package com.myongsik.presentation.view

import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.NavigationUI
import com.myongsik.myongsikandroid.R
import com.myongsik.myongsikandroid.databinding.ActivityMainBinding
import com.myongsik.myongsikandroid.util.Constant
import com.myongsik.myongsikandroid.util.MyongsikApplication
import com.myongsik.presentation.databinding.ActivityMainBinding
import dagger.hilt.android.AndroidEntryPoint

//DataStore 싱글톤으로 생성
//private val Context.dataStore by preferencesDataStore(DATASTORE_NAME)

@AndroidEntryPoint
class MainActivity : AppCompatActivity() {
private val binding: ActivityMainBinding by lazy {
Expand Down

0 comments on commit 685babc

Please sign in to comment.