feat: feature 多模块骨架

This commit is contained in:
AndyChen1024
2026-09-03 19:03:35 +08:00
parent 3a5f1ed679
commit 5ae53cd86d
28 changed files with 245 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
plugins {
alias(libs.plugins.mcl.android.feature)
}
android {
namespace = "com.mingyuan.android_client.feature.profile"
}

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest />

View File

@@ -0,0 +1,18 @@
package com.mingyuan.android_client.feature.profile
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
/** Navigation route for this feature, referenced by the app-level NavHost. */
const val PROFILE_ROUTE = "profile"
@Composable
fun ProfileScreen(modifier: Modifier = Modifier) {
Box(modifier = modifier.fillMaxSize(), contentAlignment = Alignment.Center) {
Text(text = "Profile")
}
}

View File

@@ -0,0 +1,8 @@
package com.mingyuan.android_client.feature.profile
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class ProfileViewModel @Inject constructor() : ViewModel()