Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

uploadNativeSymbols and autoUploadNativeSymbols options behaviour

Open
#1,183 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
50/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
android, kotlin

Research direction

Start by tracing how the uploadNativeSymbols and autoUploadNativeSymbols options configure the uploadSentryNativeSymbolsForAppArm64Release task and the post-build execution. Compare assembleAppArm64Release with manually invoking the upload task, and confirm that conditional production versus nightly behavior matches the proposed option semantics.

Written by the indexing model from the issue text.

Description

Android Feature
Problem Statement

As I understood those options works as following:
uploadNativeSymbols option adds and configure a gradle task to upload symbols with --no-upload arg.
autoUploadNativeSymbols works as a switch for --no-upload, if auto is enabled, so --no-upload omitted.
This is not quite convenient for case when you want conditional upload: upload for production builds and ignore for nightly builds. Now I am using additional gradle parameter and define a function:

fun isUploadEnabled(): Boolean {
    return project.hasProperty("uploadNativeSymbols") && 
           project.property("uploadNativeSymbols").toString().toBoolean()
}

sentry {
    uploadNativeSymbols.set(isUploadEnabled())
}

gradlew assembleAppReleaseArm64 -p uploadNativeSymbols

Solution Brainstorm

I suggest the following behaviour:
uploadNativeSymbols = true creates gradle tasks but not invoke the upload cmd. If I have to, I'll call it manually:

gradlew assembleAppArm64Release
gradlew uploadSentryNativeSymbolsForAppArm64Release

autoUploadNativeSymbols is responsible for automatic execution of uploadSentryNativeSymbols* task as post build step.

Sorry If I missed something.
Best Regards.

Dominant language
Kotlin
Stars
184
Forks
41
Avg merge
1d 21h
Merged PRs (30d)
20

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/sentry-android-gradle-plugin

All issues in getsentry/sentry-android-gradle-plugin

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.