Skip to content

Conversation

@MiSikora
Copy link
Contributor

@MiSikora MiSikora commented Dec 3, 2025

Description

Currently, our builds upload data to our main Android Sentry project. Since we decided to split Android, Automotive, and Wear apps into separate ones, this now needs to be handled in the build system.

Our Sentry configuration is stored in the sentry.properties file. However, this file lives in the root project. I wasn’t able to find anything in the Sentry documentation indicating whether it’s possible to have multiple such files one in each sub-project or to define per-project properties within the root file.

To address this, I propose configuring everything through the Gradle plugin. This change will need to be accompanied by an update to the mobile-secrets repo to add the necessary properties. I can do it once we agree on the approach and sync the modifications in both repositories.

Relates to: https://linear.app/a8c/issue/AINFRA-1610/

Testing Instructions

I'm not sure if it is possible to test it really until we create a release build. But if anyone has an idea I'd like to know.

@MiSikora MiSikora added this to the 8.2 milestone Dec 3, 2025
Copilot AI review requested due to automatic review settings December 3, 2025 08:53
@MiSikora MiSikora requested a review from a team as a code owner December 3, 2025 08:53
@MiSikora MiSikora added the [Type] Tooling Related to the Gradle build scripts and the setup or maintenance of the project build process. label Dec 3, 2025
@MiSikora MiSikora requested review from geekygecko and removed request for a team December 3, 2025 08:53
@MiSikora MiSikora requested a review from a team December 3, 2025 08:53
autoInstallation.enabled = false
includeDependenciesReport = false
ignoredBuildTypes = setOf("debug", "debugProd")
ignoredBuildTypes = setOf("debug", "debugProd", "prototype")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an unrelated change but I forgot to exclude prototype builds from Sentry uploads.

@dangermattic
Copy link
Collaborator

1 Error
🚫 This PR is tagged with do not merge label(s).

Generated by 🚫 Danger

Copilot finished reviewing on behalf of MiSikora December 3, 2025 08:55
Copy link
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 migrates Sentry configuration from a single sentry.properties file to per-project Gradle configuration, enabling separate Sentry projects for Android, Automotive, and Wear applications.

Key Changes

  • Added Sentry configuration properties (auth token, org, and project names) to dependencies.gradle.kts
  • Configured project-specific Sentry project names in each application module's build file
  • Renamed configureSentry() to applyCommonSentryConfiguration() and added auth token and org configuration
  • Added "prototype" to ignored build types for Sentry uploads

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
dependencies.gradle.kts Adds five new Sentry-related properties from secret properties: auth token, org, and three project names
build.gradle.kts Renames Sentry configuration function, adds auth token and org properties, includes "prototype" in ignored build types, removes unused import
app/build.gradle.kts Configures Android project-specific Sentry project name
automotive/build.gradle.kts Configures Automotive project-specific Sentry project name
wear/build.gradle.kts Configures Wear project-specific Sentry project name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Area] Tooling do not merge [Type] Tooling Related to the Gradle build scripts and the setup or maintenance of the project build process.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants