Skip to content

Target screen for in-app #123

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

Draft
wants to merge 20 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
43cd139
feat(utils): utility function to get optional int from bundle
comfrt1k Apr 28, 2025
24af467
feat(in-app): optional params for alert dialog
comfrt1k Apr 28, 2025
0c71b01
feat(in-app): base in-app dialog
comfrt1k Apr 28, 2025
f6401c4
feat(in-app): optional params for top sheet dialog in-app dialog
comfrt1k Apr 28, 2025
d81a996
feat(in-app): base in app container
comfrt1k Apr 28, 2025
0b8f6db
feat(in-app): optional params for bottom sheet dialog
comfrt1k Apr 28, 2025
b0856bc
fix(in-app): top dialog image paddings
comfrt1k Apr 28, 2025
1841e89
feat(in-app): alert dialog with base in-app dialog
comfrt1k Apr 28, 2025
76eb8a3
feat(in-app): bottom sheet dialog with base in-app dialog
comfrt1k Apr 28, 2025
51da9fa
feat(in-app): use consts for in-app
comfrt1k Apr 28, 2025
58e42e7
chore(in-app): rename base dialog file
comfrt1k Apr 28, 2025
bef7f48
feat(in-app): use base in-app for full screen dialog
comfrt1k Apr 28, 2025
9e01c22
feat(in-app): make params optional for full screen dialog
comfrt1k Apr 28, 2025
f7a62da
refactor(in-app): create directories for each dialog
comfrt1k Apr 28, 2025
5ccce27
refactor(in-app): move containers from dialog
comfrt1k Apr 28, 2025
877d4e1
fix(in-app): full screen dialog size
comfrt1k Apr 28, 2025
106fd7f
refactor(in-app): rename positive/negative/accept to confirm/decline
comfrt1k Apr 28, 2025
206b0f5
feat(in-app): target screen in PopupDto
comfrt1k Apr 28, 2025
8744e19
feat(in-app): track current fragment
comfrt1k Apr 28, 2025
2479e32
feat(deps): add navigation deps
comfrt1k Apr 28, 2025
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
3 changes: 3 additions & 0 deletions personalization-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ dependencies {
implementation("androidx.test:rules:1.6.1")
implementation("androidx.test.ext:junit:1.2.1")

implementation("androidx.navigation:navigation-fragment-ktx:2.7.5")
implementation("androidx.navigation:navigation-ui-ktx:2.7.5")

implementation("com.google.android.gms:play-services-ads-identifier:17.0.0")

kapt 'com.google.dagger:dagger-compiler:2.48'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,54 +13,54 @@ interface InAppNotificationManager {
fun showAlertDialog(
title: String,
message: String,
imageUrl: String,
buttonPositiveText: String,
buttonNegativeText: String,
buttonPositiveColor: Int,
buttonNegativeColor: Int,
onPositiveClick: () -> Unit
imageUrl: String? = null,
buttonConfirmText: String? = null,
buttonDeclineText: String? = null,
buttonConfirmColor: Int? = null,
buttonDeclineColor: Int? = null,
onConfirmClick: (() -> Unit)? = null
)

fun showFullScreenDialog(
title: String,
message: String,
imageUrl: String?,
buttonPositiveColor: Int,
buttonNegativeColor: Int,
buttonPositiveText: String,
buttonNegativeText: String,
onPositiveClick: () -> Unit
imageUrl: String? = null,
buttonConfirmText: String? = null,
buttonDeclineText: String? = null,
buttonConfirmColor: Int? = null,
buttonDeclineColor: Int? = null,
onConfirmClick: (() -> Unit)? = null
)

fun showBottomSheetDialog(
fun showBottomDialog(
title: String,
message: String,
imageUrl: String?,
buttonPositiveText: String,
buttonNegativeText: String?,
buttonPositiveColor: Int,
buttonNegativeColor: Int,
onPositiveClick: () -> Unit
imageUrl: String? = null,
buttonConfirmText: String? = null,
buttonDeclineText: String? = null,
buttonConfirmColor: Int? = null,
buttonDeclineColor: Int? = null,
onConfirmClick: (() -> Unit)? = null
)

fun showTopSheetDialog(
fun showTopDialog(
title: String,
message: String,
imageUrl: String?,
buttonPositiveText: String,
buttonNegativeText: String?,
buttonPositiveColor: Int,
buttonNegativeColor: Int,
onPositiveClick: () -> Unit
imageUrl: String? = null,
buttonConfirmText: String? = null,
buttonDeclineText: String? = null,
buttonConfirmColor: Int? = null,
buttonDeclineColor: Int? = null,
onConfirmClick: (() -> Unit)? = null
)

fun showSnackBar(
view: View,
message: String,
buttonPositiveText: String,
buttonNegativeText: String,
onPositiveClick: () -> Unit,
onNegativeClick: () -> Unit
buttonConfirmText: String,
buttonDeclineText: String,
onConfirmClick: () -> Unit,
onDeclineClick: () -> Unit
)

}
Loading
Loading