-
-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting proguard uuid dynamically #1333
Comments
thanks for reporting @lwasyl dup of #1236 please read the issue and there's a workaround for it, you are on the right track though. |
@marandaneto I saw that issue, but it specifically referred to non-Android app. Big chunk of my doubts is related to the fact that the default android processor already does whatever the workaround suggests, in particular setting the debug meta images iff |
it just adds to the list if one already exists, so being Android or non Android app, it'd work the same way: Lines 218 to 237 in 0b8a6da
|
Ah, that's right. Well then the last question is, should I check for my custom image and only add it if it's not present, because |
both would work, the later is ideal |
I'm using
SentryAndroid
and I'd like to set the proguard uuid dynamically from code. The reason is that apparently the Gradle plugin doesn't always work, and adding a.properties
file with the ID is not convenient. I want to generate the uuid from the application id + version code, and these information are trivial to get in code, much less to figure out during the build, put in a file, put file in proper source sets and make sure I didn't break Gradle's caching. Ideally I'd want something likeI understand it's not that easy right now so I'm willing to use some less-public, unsupported API that can break in the future, but will work now. From what I see the proguard uuid value is currently stored somewhere in
event.debugMeta.images
and I'd need to set it there, but I'm not sure:DefaultAndroidEventProcessor
doesn't override the value I setRight now my guess is that I should be able to do:
and if I don't put the Sentry .properties file anywhere, then
DefaultAndroidEventProcessor
won't put proguard key entry at all so mycurrentProguardId
would be used?The text was updated successfully, but these errors were encountered: