🪐 Ceres is a comprehensive Android development framework designed to streamline your app development process. Powered by the latest technologies like Jetpack Compose, Hilt, Coroutines, and Flow, Ceres empowers developers to build modern and efficient Android applications.
This pull request introduces the core-common module, which includes utility functions for working with Compose and Android Context. The key additions are:
KeepScreenOnKt provides the KeepScreenOn Composable function, which allows users to keep the screen on within a Composable based on a provided predicate. This utility helps manage screen wake locks in Compose-based apps.
ContextUtilsKt offers the following functions:
getActivity(Context): Retrieves the associated Activity from a given Context.
getActivity(Composer, Int): Retrieves the associated Activity from a Composer using a resource ID.
These utility functions enhance the flexibility and usability of Compose-based projects by simplifying common tasks related to Context and screen wake lock management.
This pull request introduces the core-common module, which includes utility functions for working with Compose and Android Context. The key additions are:
KeepScreenOnKt
provides theKeepScreenOn
Composable function, which allows users to keep the screen on within a Composable based on a provided predicate. This utility helps manage screen wake locks in Compose-based apps.ContextUtilsKt
offers the following functions:getActivity(Context)
: Retrieves the associated Activity from a given Context.getActivity(Composer, Int)
: Retrieves the associated Activity from a Composer using a resource ID.These utility functions enhance the flexibility and usability of Compose-based projects by simplifying common tasks related to Context and screen wake lock management.
closes #143