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.
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:
gradlew assembleAppReleaseArm64 -p uploadNativeSymbolsSolution 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:
autoUploadNativeSymbols is responsible for automatic execution of uploadSentryNativeSymbols* task as post build step.
Sorry If I missed something.
Best Regards.