Skip to content
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

Fix/proguard setup #885

Merged
merged 4 commits into from
Jul 11, 2022
Merged

Fix/proguard setup #885

merged 4 commits into from
Jul 11, 2022

Conversation

vaind
Copy link
Collaborator

@vaind vaind commented Jul 11, 2022

closes #881

@vaind vaind requested a review from bitsandfoxes as a code owner July 11, 2022 11:45
Copy link
Contributor

@bitsandfoxes bitsandfoxes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a test for this?

var gradleNew = Regex.Replace(gradle, @"(\s+consumerProguardFiles [^\r\n]*)", "$1, '" + RuleFileName + "'");
if (gradle.Length == gradleNew.Length)
{
throw new Exception($"Couldn't add Proguard rule {RuleFileName} to {_gradleScriptPath} - no `consumerProguardFiles` found.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a user gets here, how can they unblock themselves so they can build the game?
Removing sentry not being an option

Copy link
Collaborator Author

@vaind vaind Jul 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixup the file so that this passes. I know that's not perfect, but what's the alternative? Producing a build that breaks at runtime and won't capture errors is IMO worse than disabling Sentry native support for Android

@vaind vaind merged commit 5053427 into main Jul 11, 2022
@vaind vaind deleted the fix/proguard-setup branch July 11, 2022 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proguard on windows breaks gradle build due to line break
3 participants