Skip to content

Update AGP and dependencies#19

Open
juangardi21 wants to merge 1 commit intomainfrom
task/ANDROID-17464-update-agp
Open

Update AGP and dependencies#19
juangardi21 wants to merge 1 commit intomainfrom
task/ANDROID-17464-update-agp

Conversation

@juangardi21
Copy link
Copy Markdown

🎟️ Jira ticket

ANDROID-17464

🥅 What's the goal?

Migrate the Gradle plugin from deprecated AGP internal APIs to the modern stable APIs, ensuring compatibility with newer AGP versions.

🚧 How do we do it?

  • Replace TestedExtension with AndroidComponentsExtension + ApplicationAndroidComponentsExtension (new variant API) to resolve applicationId and adb path.
  • Collect applicationId per variant at configuration time using onVariants {} as a lazy Provider<String>.
  • Remove all ddmlib usage (IDevice, FileListingService, CollectingOutputReceiver) in DeviceFileManager and replace with direct adb subprocess calls via ProcessBuilder.

📘 Documentation changes?

  • No docs to update nor create

🧪 How can I test this?

Run the connected Android tests with and without record mode to verify snapshots are pulled and reports are generated correctly.

  • 🖼️ Screenshots/Videos

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant