Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to depend on modified sentry-android source code? #2539

Unanswered
fzyzcjy asked this question in Q&A
Discussion options

Description

Hi thanks for the Sentry! I want to modify sentry android code a little bit and then use it in my project. The question is how can I do that? As sentry-java even depends on sentry-native, I guess there should be some automation that can be used to make the usage easy, instead of manually compiling everything and push them to maven etc.

You must be logged in to vote

Replies: 1 comment

Comment options

I guess it depends on your modifications. If they do not involve NDK/sentry-native changes, you could simply keep them, and only replace the affected modules using Gradle dependency substitution. Assuming your changes are in sentry-android-core, you could do:

configurations.all {
 resolutionStrategy.dependencySubstitution {
 substitute module("io.sentry:sentry-android-core") using project(":custom-sentry-android-core") because "we have a critical bugfix and Sentry has not released it yet"
 }
}
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2536 on February 14, 2023 11:05.

AltStyle によって変換されたページ (->オリジナル) /