Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for the Android AppFunctions API (Android 14+, API 36+) to the Essentials app, enabling system-level automation and device control through a new
AppFunctionService. It adds a comprehensive set of AppFunctions for device actions, automations, and status queries, with all necessary service declarations, DTOs, and integration points. ProGuard rules and dependencies are updated accordingly.AppFunctions Integration and Service Implementation
EssentialsAppFunctionServiceand abstract base classBaseEssentialsAppFunctionServiceimplementing a wide range of AppFunctions for device control (flashlight, sound mode, battery saver, AOD, notification lighting, freeze tags, automations, etc.), with detailed KDoc documentation for each function.AndroidManifest.xmlwith required permissions, schema, and metadata properties for AppFunctions.AppFunctionAvailabilityManagerto update AppFunction availability on supported devices, invoked during app initialization inEssentialsApp. [1] [2]Data Transfer Objects (DTOs) for AppFunctions
AppFunctionResult,AutomationSummary,CreateAutomationParams, and others to support function parameters and responses. [1] [2] [3]Build and ProGuard Configuration
build.gradle.ktsto includeandroidx.appfunctionsdependencies and KSP compiler.proguard-rules.proto keep new AppFunctions and related classes for correct operation in release builds.