nativescript-community / nativescript-community/sentry

Cannot set sentryGradleVersion

Open
#29 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
18
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Hello!

I wanna set sentryGradleVersion to latest.

My App_Resources/platforms/Android/before-plugins.gradle:

project.ext { sentryGradleVersion = '5.9.0' }

But when I build the app, sentry-plugin sets version to 4.3.0, the default value.

In plugin's file sentry/platforms/android/buildscript.gradle there is a line:

def sentryGradleVersion = hasProperty("sentryGradleVersion") ? sentryGradleVersion : "4.3.0"

Should hasProperty be project.hasProperty and sentryGradleVersion project.sentryGradleVersion, like in include.graddle?

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with sentry/platforms/android/buildscript.gradle and compare its sentryGradleVersion lookup with include.graddle. Check how App_Resources/platforms/Android/before-plugins.gradle exposes the property during the build. Done means the configured 5.9.0 value is used instead of the default 4.3.0.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, groovy
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.