Skip to content

Commit

Permalink
Merge pull request #224 from hossain-khan/223-added-kodee
Browse files Browse the repository at this point in the history
223 added kodee
  • Loading branch information
hossain-khan authored Jan 25, 2025
2 parents befd055 + 18a32e8 commit 0d666b0
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,14 @@ class AboutAppPresenter
@Composable
override fun present(): AboutAppScreen.State {
val uriHandler = LocalUriHandler.current
val appVersion = "v${BuildConfig.VERSION_NAME} (${BuildConfig.GIT_COMMIT_HASH})"
val appVersion =
buildString {
append("v")
append(BuildConfig.VERSION_NAME)
append(" (")
append(BuildConfig.GIT_COMMIT_HASH)
append(")")
}

LaunchedImpressionEffect {
analytics.logScreenView(AboutAppScreen::class)
Expand Down Expand Up @@ -175,11 +182,23 @@ fun AboutAppScreen(
state.eventSink(AboutAppScreen.Event.OpenGitHubProject)
}, modifier = Modifier.align(Alignment.CenterHorizontally)) { Text("View Source") }
}
Text(
text = "Version: ${state.appVersion}",
style = MaterialTheme.typography.labelMedium,
modifier = Modifier.align(Alignment.CenterHorizontally).padding(bottom = 16.dp),
)
Column(modifier = Modifier.fillMaxWidth()) {
if (BuildConfig.DEBUG) {
// For fun, show Kodee in debug build
Image(
painter = painterResource(id = R.drawable.kodee_sharing_love),
contentDescription = "Kotlin Kodee Mascot",
modifier =
Modifier
.align(Alignment.CenterHorizontally),
)
}
Text(
text = "Version: ${state.appVersion}",
style = MaterialTheme.typography.labelMedium,
modifier = Modifier.align(Alignment.CenterHorizontally).padding(bottom = 16.dp),
)
}
}
}
}
Expand Down
54 changes: 54 additions & 0 deletions app/src/main/res/drawable/kodee_sharing_love.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="200dp"
android:height="200dp"
android:viewportWidth="800"
android:viewportHeight="800">
<!--
Source: https://kotlinlang.org/docs/kotlin-brand-assets.html#create-your-group-s-profile-picture-for-different-platforms
-->

<path
android:fillColor="#7F52FF"
android:pathData="M217,450.9c-1.7,0 -3.4,-0.1 -5.1,-0.2c-24.2,-1.8 -52.6,-17.2 -60.1,-55c-2.2,-10.9 -0.7,-21.9 0.7,-32.5c3,-22.9 3.6,-33.5 -14.6,-43.7c-9.2,-5.1 -12.4,-16.7 -7.3,-25.9c5.1,-9.2 16.7,-12.4 25.9,-7.3c18.1,10.1 29.4,24.1 33.6,41.6c3.5,14.3 1.7,28 0.1,40.2c-1,7.9 -2,15.3 -1.1,20.2c1.4,6.9 6.6,23 25.6,24.4c7.8,0.6 14.2,-2 19.8,-7.9c5.2,-5.6 8.3,-12.9 9,-17.3c1.6,-10.4 11.3,-17.5 21.7,-15.9c10.4,1.6 17.5,11.3 15.9,21.7C277.4,417.9 255.1,450.9 217,450.9z" />

<path
android:fillColor="#7F52FF"
android:pathData="M185.8,564.3c-4.9,0 -9.7,-1.9 -13.4,-5.6c-7.4,-7.4 -7.4,-19.4 0,-26.9l22.6,-22.6c3.6,-3.6 8.4,-5.6 13.4,-5.6c0,0 0,0 0,0c5,0 9.9,2 13.4,5.6c17.4,17.4 49.9,19.7 72.8,14.5c21.1,-4.8 59.2,-21.1 78.1,-75.6c3.4,-9.9 14.2,-15.2 24.2,-11.7c9.9,3.4 15.2,14.2 11.7,24.2c-9.7,28 -24.6,51 -44.3,68.6c-17.4,15.5 -38.5,26.4 -61.2,31.6c-33.2,7.6 -68.3,2.4 -93.1,-12.8l-10.8,10.8C195.6,562.5 190.7,564.3 185.8,564.3z" />

<path
android:fillColor="#7F52FF"
android:pathData="M414.8,675.6h-33.1c-5.8,0 -11.2,-2.6 -14.8,-7.1c-3.6,-4.5 -5,-10.4 -3.7,-16.1l46.4,-204.2c2.3,-10.2 12.5,-16.6 22.7,-14.3c10.2,2.3 16.6,12.5 14.3,22.7l-41.1,181h9.3c10.5,0 19,8.5 19,19S425.3,675.6 414.8,675.6z" />

<path
android:fillColor="#7F52FF"
android:pathData="M283.1,481.4l256.9,-18c20,-1.4 35.1,-18.8 33.7,-38.8l-14.2,-203.1c-2.3,-32.5 -40.7,-48.5 -65.4,-27.3L406.2,270c-5,4.3 -12.2,4.8 -17.7,1.2l-97.4,-62.7c-27.4,-17.7 -63.3,3.5 -61,36.1l14.2,203.1C245.8,467.7 263.1,482.8 283.1,481.4z" />

<path
android:fillColor="#FF000000"
android:pathData="M527.5,444.7L293.3,461c-15.4,1.1 -28.8,-10.6 -29.9,-26l-7.2,-103.7c-1.1,-15.4 10.6,-28.8 26,-29.9l234.2,-16.3c15.4,-1.1 28.8,10.6 29.9,26l7.2,103.7C554.5,430.3 542.9,443.7 527.5,444.7z" />

<path
android:fillColor="#FFFFFF"
android:pathData="M345.1,337.7c17,0 31.1,13.3 32.3,30.2c0.6,8.6 -2.2,17 -7.9,23.5s-13.6,10.5 -22.2,11.1c-0.8,0.1 -1.5,0.1 -2.3,0.1c-17,0 -31.2,-13.3 -32.3,-30.2c-0.6,-8.6 2.2,-17 7.9,-23.5s13.6,-10.5 22.2,-11.1C343.5,337.7 344.3,337.7 345.1,337.7C345.1,337.7 345.1,337.7 345.1,337.7M345.1,319.7c-1.2,0 -2.3,0 -3.5,0.1c-27.8,1.9 -48.8,26 -46.9,53.8c1.8,26.6 24,47 50.3,47c1.2,0 2.3,0 3.5,-0.1c27.8,-1.9 48.8,-26 46.9,-53.8C393.5,340.1 371.3,319.7 345.1,319.7L345.1,319.7z" />

<path
android:fillColor="#FFFFFF"
android:pathData="M463.7,329.5c17,0 31.1,13.3 32.3,30.2c0.6,8.6 -2.2,17 -7.9,23.5c-5.7,6.5 -13.6,10.5 -22.2,11.1c-0.8,0.1 -1.5,0.1 -2.3,0.1c-17,0 -31.2,-13.3 -32.3,-30.2c-0.6,-8.6 2.2,-17 7.9,-23.5s13.6,-10.5 22.2,-11.1C462.2,329.6 463,329.5 463.7,329.5C463.7,329.5 463.7,329.5 463.7,329.5M463.7,311.5c-1.2,0 -2.3,0 -3.5,0.1c-27.8,1.9 -48.8,26 -46.9,53.8c1.8,26.6 24,47 50.3,47c1.2,0 2.3,0 3.5,-0.1c27.8,-1.9 48.8,-26 46.9,-53.8C512.2,331.9 490,311.5 463.7,311.5L463.7,311.5z" />

<path
android:fillColor="#FFFFFF"
android:pathData="M386.2,424.9c7,2.8 15,3.5 22.4,2.8c7.8,-0.7 15.6,-2.6 22.3,-6.7c2,-1.2 3,-4.1 1.6,-6.2c-1.3,-2 -4,-2.9 -6.2,-1.6c-1.4,0.9 -2.9,1.6 -4.5,2.3c0.7,-0.3 0.2,-0.1 -0.2,0.1c-0.4,0.2 -0.9,0.3 -1.3,0.5c-0.8,0.3 -1.6,0.5 -2.4,0.8c-1.7,0.5 -3.4,0.9 -5.1,1.2c-0.5,0.1 -1,0.2 -1.5,0.3c-0.1,0 -1.4,0.2 -0.3,0.1c-0.9,0.1 -1.9,0.2 -2.8,0.3c-3.6,0.3 -7.1,0.2 -10.7,-0.2c-0.9,-0.1 0.8,0.1 -0.4,-0.1c-0.4,-0.1 -0.8,-0.1 -1.2,-0.2c-0.8,-0.1 -1.6,-0.3 -2.4,-0.5c-1.6,-0.4 -3.3,-0.9 -4.8,-1.6c-2.2,-0.9 -5,1 -5.5,3.1C382.5,422 383.9,424 386.2,424.9L386.2,424.9z" />

<path
android:fillColor="#F44336"
android:pathData="M578,427.4c-14.9,-1.8 -28.9,4.3 -37.8,15C534,430 521.8,420.7 507,419c-23.4,-2.8 -44.7,13.9 -47.5,37.4c-5.6,47.2 47.8,90 66.7,103.6c21.5,-8.7 83.6,-37.8 89.2,-85C618.2,451.5 601.4,430.2 578,427.4z" />

<path
android:fillColor="#FF000000"
android:pathData="M526,561.6l-0.7,-0.5c-9.5,-6.8 -27.7,-21 -42.8,-39.4c-18.7,-22.8 -27,-44.9 -24.5,-65.5c2.9,-24.2 24.9,-41.6 49.1,-38.7c14.1,1.7 26.5,10 33.4,22.4c9.6,-10.4 23.5,-15.6 37.7,-13.9c24.2,2.9 41.6,24.9 38.7,49.1c-2.5,20.7 -15.7,40.2 -39.2,57.9c-19,14.4 -40.1,23.9 -50.9,28.3L526,561.6zM501.9,420.2c-20.6,0 -38.4,15.4 -40.9,36.3c-5.5,46.2 47.8,88.9 65.4,101.7c20.2,-8.3 82,-37.3 87.5,-83.5c2.7,-22.6 -13.5,-43.1 -36.1,-45.8l0,0c-13.9,-1.6 -27.5,3.8 -36.5,14.5l-1.5,1.8l-1,-2.1c-6.2,-12.5 -18.2,-21 -32.1,-22.7C505.1,420.3 503.5,420.2 501.9,420.2z" />

<path
android:fillColor="#7F52FF"
android:pathData="M575.2,572.1c-4.9,0 -9.7,-1.9 -13.4,-5.6l-18.7,-18.7c-7.4,-7.4 -7.4,-19.5 0,-26.9s19.5,-7.4 26.9,0l18.7,18.7c7.4,7.4 7.4,19.5 0,26.9C585,570.2 580.1,572.1 575.2,572.1z" />

</vector>

0 comments on commit 0d666b0

Please sign in to comment.