Skip to content

feat(android-edge-to-edge-support): add enable(), disable() and getInsets() methods#498

Merged
robingenz merged 6 commits into
mainfrom
32678912312
Apr 28, 2025
Merged

feat(android-edge-to-edge-support): add enable(), disable() and getInsets() methods#498
robingenz merged 6 commits into
mainfrom
32678912312

Conversation

@robingenz
Copy link
Copy Markdown
Member

Pull request checklist

Please check if your PR fulfills the following requirements:

  • The changes have been tested successfully.
  • A changeset has been created (npm run changeset).
  • I have read and followed the pull request guidelines.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds new methods (enable, disable, and getInsets) to support Android edge‐to‐edge mode in the plugin. Key changes include:

  • Updating the TypeScript definitions and documentation to expose the new API.
  • Adding corresponding implementations in the Android native code.
  • Updating the example app (JavaScript and HTML) to demonstrate the new functionalities.

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/android-edge-to-edge-support/src/definitions.ts Added new interface methods and the GetInsetsResult interface.
packages/android-edge-to-edge-support/example/src/js/script.js Updated the demo code to add event listeners for enable, disable, and getInsets.
packages/android-edge-to-edge-support/example/src/index.html Replaced the old button with new buttons for the new methods.
packages/android-edge-to-edge-support/android/src/main/java/io/capawesome/capacitorjs/plugins/androidedgetoedgesupport/EdgeToEdgePlugin.java Introduced new PluginMethods for enable, disable, and getInsets.
packages/android-edge-to-edge-support/android/src/main/java/io/capawesome/capacitorjs/plugins/androidedgetoedgesupport/EdgeToEdge.java Added native implementations for the new methods and insets management.
packages/android-edge-to-edge-support/README.md Updated documentation to include the new API methods.
.changeset/unlucky-ads-rest.md Added a changeset file to describe the new features.
Files not reviewed (1)
  • packages/android-edge-to-edge-support/example/package-lock.json: Language not supported

@robingenz robingenz requested a review from Copilot April 28, 2025 08:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for Android edge-to-edge functionality by introducing three new methods: enable(), disable(), and getInsets(). The changes update both the plugin definitions and implementations (TypeScript, Java, and JavaScript) as well as the documentation and example UI.

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/android-edge-to-edge-support/src/definitions.ts Added new method signatures and a new GetInsetsResult interface
packages/android-edge-to-edge-support/example/src/js/script.js Updated the example integration with event listeners for the new methods
packages/android-edge-to-edge-support/example/src/index.html Added new buttons for enabling/disabling and retrieving insets
packages/android-edge-to-edge-support/android/src/main/java/io/capawesome/capacitorjs/plugins/androidedgetoedgesupport/EdgeToEdgePlugin.java Introduced PluginMethods for enable(), disable(), and getInsets()
packages/android-edge-to-edge-support/android/src/main/java/io/capawesome/capacitorjs/plugins/androidedgetoedgesupport/EdgeToEdge.java Implemented the new edge-to-edge functionalities and inset manipulation
packages/android-edge-to-edge-support/README.md Updated documentation to include the new API methods and interfaces
.changeset/unlucky-ads-rest.md Recorded the minor version update and summary of the feature changes
Files not reviewed (1)
  • packages/android-edge-to-edge-support/example/package-lock.json: Language not supported

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 28, 2025

Open in StackBlitz

@capawesome-team/capacitor-android-battery-optimization

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome-team/capacitor-android-battery-optimization@498

@capawesome/capacitor-android-dark-mode-support

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-android-dark-mode-support@498

@capawesome/capacitor-android-edge-to-edge-support

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-android-edge-to-edge-support@498

@capawesome-team/capacitor-android-foreground-service

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome-team/capacitor-android-foreground-service@498

@capawesome/capacitor-app-review

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-app-review@498

@capawesome/capacitor-app-shortcuts

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-app-shortcuts@498

@capawesome/capacitor-app-update

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-app-update@498

@capawesome/capacitor-asset-manager

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-asset-manager@498

@capawesome/capacitor-background-task

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-background-task@498

@capawesome/capacitor-badge

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-badge@498

@capawesome/capacitor-cloudinary

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-cloudinary@498

@capawesome-team/capacitor-datetime-picker

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome-team/capacitor-datetime-picker@498

@capawesome-team/capacitor-file-opener

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome-team/capacitor-file-opener@498

@capawesome/capacitor-file-picker

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-file-picker@498

@capawesome/capacitor-live-update

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-live-update@498

@capawesome/capacitor-managed-configurations

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-managed-configurations@498

@capawesome/capacitor-photo-editor

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-photo-editor@498

@capawesome/capacitor-posthog

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-posthog@498

@capawesome/capacitor-screen-orientation

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-screen-orientation@498

@capawesome/capacitor-screenshot

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-screenshot@498

@capawesome/capacitor-torch

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-torch@498

commit: e5a0be7

robingenz and others added 4 commits April 28, 2025 10:36
…/capawesome/capacitorjs/plugins/androidedgetoedgesupport/EdgeToEdge.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…/java/io/capawesome/capacitorjs/plugins/androidedgetoedgesupport/EdgeToEdge.java

This reverts commit 5ac8a2e.
@robingenz robingenz merged commit abb0d1e into main Apr 28, 2025
4 checks passed
@robingenz robingenz deleted the 32678912312 branch April 28, 2025 09:42
@github-actions github-actions Bot mentioned this pull request Apr 28, 2025
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants