Move app intro to :feature:intro (#3348)

This commit is contained in:
Phil Oliver 2025-10-04 21:15:55 -04:00 committed by GitHub
parent 8562073d44
commit dcbf664f38
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 50 additions and 12 deletions

View file

@ -197,6 +197,7 @@ dependencies {
implementation(projects.core.service)
implementation(projects.core.strings)
implementation(projects.core.ui)
implementation(projects.feature.intro)
implementation(projects.feature.map)
implementation(projects.feature.node)

View file

@ -32,7 +32,6 @@
<ID>ComposableParamOrder:NodeDetailScreen.kt$NodeActionButton</ID>
<ID>ComposableParamOrder:NodeDetailScreen.kt$NodeDetailList</ID>
<ID>ComposableParamOrder:PaxMetrics.kt$PaxMetricsChart</ID>
<ID>ComposableParamOrder:PermissionScreenLayout.kt$PermissionScreenLayout</ID>
<ID>ComposableParamOrder:PowerMetrics.kt$PowerMetricsChart</ID>
<ID>ComposableParamOrder:QuickChat.kt$OutlinedTextFieldWithCounter</ID>
<ID>ComposableParamOrder:Share.kt$ShareScreen</ID>
@ -281,7 +280,6 @@
<ID>ParameterNaming:MessageList.kt$onUnreadChanged</ID>
<ID>ParameterNaming:NodeDetailScreen.kt$onFirmwareSelected</ID>
<ID>ParameterNaming:UsbDevices.kt$onDeviceSelected</ID>
<ID>ParameterNaming:WelcomeScreen.kt$onGetStarted</ID>
<ID>PreviewPublic:Channel.kt$ModemPresetInfoPreview</ID>
<ID>PreviewPublic:EmptyStateContent.kt$EmptyStateContentPreview</ID>
<ID>PreviewPublic:MapReportingPreference.kt$MapReportingPreview</ID>

View file

@ -41,12 +41,12 @@ import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.geeksville.mesh.model.UIViewModel
import com.geeksville.mesh.ui.MainScreen
import com.geeksville.mesh.ui.intro.AppIntroductionScreen
import dagger.hilt.android.AndroidEntryPoint
import org.meshtastic.core.datastore.UiPreferencesDataSource
import org.meshtastic.core.navigation.DEEP_LINK_BASE_URI
import org.meshtastic.core.ui.theme.AppTheme
import org.meshtastic.core.ui.theme.MODE_DYNAMIC
import org.meshtastic.feature.intro.AppIntroductionScreen
import timber.log.Timber
import javax.inject.Inject

View file

@ -75,6 +75,7 @@ dependencies {
kover(projects.core.navigation)
kover(projects.core.network)
kover(projects.core.prefs)
kover(projects.feature.intro)
kover(projects.feature.map)
kover(projects.feature.node)
}

View file

@ -0,0 +1,29 @@
/*
* Copyright (c) 2025 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
plugins {
alias(libs.plugins.kover)
alias(libs.plugins.meshtastic.android.library)
alias(libs.plugins.meshtastic.android.library.compose)
}
android { namespace = "org.meshtastic.feature.intro" }
dependencies {
implementation(projects.core.strings)
implementation(libs.accompanist.permissions)
}

View file

@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<SmellBaseline>
<ManuallySuppressedIssues/>
<CurrentIssues>
<ID>ComposableParamOrder:PermissionScreenLayout.kt$PermissionScreenLayout</ID>
<ID>ParameterNaming:WelcomeScreen.kt$onGetStarted</ID>
</CurrentIssues>
</SmellBaseline>

View file

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.geeksville.mesh.ui.intro
package org.meshtastic.feature.intro
import android.Manifest
import android.content.Intent

View file

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.geeksville.mesh.ui.intro
package org.meshtastic.feature.intro
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer

View file

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.geeksville.mesh.ui.intro
package org.meshtastic.feature.intro
import androidx.annotation.StringRes
import androidx.compose.ui.graphics.vector.ImageVector

View file

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.geeksville.mesh.ui.intro
package org.meshtastic.feature.intro
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Spacer

View file

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.geeksville.mesh.ui.intro
package org.meshtastic.feature.intro
import android.content.Context
import androidx.annotation.StringRes

View file

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.geeksville.mesh.ui.intro
package org.meshtastic.feature.intro
import android.content.Intent
import android.net.Uri

View file

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.geeksville.mesh.ui.intro
package org.meshtastic.feature.intro
import android.content.Intent
import android.net.Uri

View file

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.geeksville.mesh.ui.intro
package org.meshtastic.feature.intro
import androidx.annotation.StringRes
import androidx.compose.foundation.gestures.detectTapGestures

View file

@ -15,7 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package com.geeksville.mesh.ui.intro
package org.meshtastic.feature.intro
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer

View file

@ -31,6 +31,7 @@ include(
":core:service",
":core:strings",
":core:ui",
":feature:intro",
":feature:map",
":feature:node",
":mesh_service_example",