Skip to content
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

Allow Customization of 'Get Started' Button in Onboarding Intro #186

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ fun NavGraphBuilder.onboardingScreenNav(
baseActions = baseActions,
onboardingData = OnboardingScreenData(
appName = "Ceres",
description = "Your Mobile framework",
getStartedButton = "GetStarted",
supportEmail = "[email protected]",
privacyPolicyLink = "https://privacy.teogor.dev",
termsOfServiceLink = "https://terms.teogor.dev",
Expand Down
19 changes: 7 additions & 12 deletions screen/ui/api/ui.api
Original file line number Diff line number Diff line change
Expand Up @@ -221,20 +221,22 @@ public final class dev/teogor/ceres/screen/ui/onboarding/OnboardingRoute : dev/t
public final class dev/teogor/ceres/screen/ui/onboarding/OnboardingScreenData {
public static final field $stable I
public fun <init> ()V
public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun areAllPermissionsGranted ()Z
public final fun component1 ()Ljava/lang/String;
public final fun component2 ()Ljava/lang/String;
public final fun component3 ()Ljava/lang/String;
public final fun component4 ()Ljava/lang/String;
public final fun component5 ()Ljava/lang/String;
public final fun component6 ()Ljava/util/List;
public final fun copy (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)Ldev/teogor/ceres/screen/ui/onboarding/OnboardingScreenData;
public static synthetic fun copy$default (Ldev/teogor/ceres/screen/ui/onboarding/OnboardingScreenData;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;ILjava/lang/Object;)Ldev/teogor/ceres/screen/ui/onboarding/OnboardingScreenData;
public final fun component6 ()Ljava/lang/String;
public final fun component7 ()Ljava/util/List;
public final fun copy (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)Ldev/teogor/ceres/screen/ui/onboarding/OnboardingScreenData;
public static synthetic fun copy$default (Ldev/teogor/ceres/screen/ui/onboarding/OnboardingScreenData;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;ILjava/lang/Object;)Ldev/teogor/ceres/screen/ui/onboarding/OnboardingScreenData;
public fun equals (Ljava/lang/Object;)Z
public final fun getAppName ()Ljava/lang/String;
public final fun getDescription ()Ljava/lang/String;
public final fun getGetStartedButton ()Ljava/lang/String;
public final fun getPermissionCategories ()Ljava/util/List;
public final fun getPrivacyPolicyLink ()Ljava/lang/String;
public final fun getSupportEmail ()Ljava/lang/String;
Expand Down Expand Up @@ -314,13 +316,6 @@ public final class dev/teogor/ceres/screen/ui/onboarding/screens/ComposableSingl
public final fun getLambda-3$ui_release ()Lkotlin/jvm/functions/Function3;
}

public final class dev/teogor/ceres/screen/ui/onboarding/screens/ComposableSingletons$IntroScreenKt {
public static final field INSTANCE Ldev/teogor/ceres/screen/ui/onboarding/screens/ComposableSingletons$IntroScreenKt;
public static field lambda-1 Lkotlin/jvm/functions/Function3;
public fun <init> ()V
public final fun getLambda-1$ui_release ()Lkotlin/jvm/functions/Function3;
}

public final class dev/teogor/ceres/screen/ui/onboarding/screens/ComposableSingletons$LegalScreenKt {
public static final field INSTANCE Ldev/teogor/ceres/screen/ui/onboarding/screens/ComposableSingletons$LegalScreenKt;
public static field lambda-1 Lkotlin/jvm/functions/Function3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ data class OnboardingScreenData(
val supportEmail: String = "%%SUPPORT_EMAIL%%",
val privacyPolicyLink: String = "%%PRIVACY_POLICY_LINK%%",
val termsOfServiceLink: String = "%%TERMS_OF_SERVICE_LINK%%",
val getStartedButton: String = "%%GET_STARTED%%",
val permissionCategories: List<PermissionCategory> = listOf(PermissionCategory()),
) {
fun areAllPermissionsGranted(): Boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fun BoxScope.IntroScreen(
modifier = Modifier.padding(bottom = 30.dp),
) {
Text(
text = "Get started",
text = data.getStartedButton,
modifier = Modifier.padding(end = 10.dp, start = 10.dp),
)
}
Expand Down
Loading