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

Allow changing typography in the compose module #831

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

penn5
Copy link
Contributor

@penn5 penn5 commented Jan 20, 2023

When using import androidx.compose.material3 and ProGuard, I was receiving this error:

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/material/MaterialTheme;
    at com.mikepenz.aboutlibraries.ui.compose.SharedLibrariesKt.Library(Unknown Source:95)

By making this a parameter, I can override it from my code so that androidx.compose.material.MaterialTheme is never accessed. I did try adding keep rules to R8 but it doesn't seem to fix the issue. Since there is not even any reflection, I don't know why it's broken in the first place.

(sorry about the added newline at the EOF, silly github web added it)

When using import androidx.compose.material3 and ProGuard, I was receiving this error:
```
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/material/MaterialTheme;
    at com.mikepenz.aboutlibraries.ui.compose.SharedLibrariesKt.Library(Unknown Source:95)
```

By making this a parameter, I can override it from my code so that androidx.compose.material.MaterialTheme is never accessed. I did try adding keep rules to R8 but it doesn't seem to fix the issue. Since there is not even any reflection, I don't know why it's broken in the first place.
@mikepenz
Copy link
Owner

Thank you very much for the PR and improvement.

@mikepenz mikepenz merged commit f3bf8c2 into mikepenz:develop Jan 25, 2023
@mikepenz mikepenz changed the title Allow changing typography Allow changing typography in the compose module Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants