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

[#580] Hide Compose androidx.compose.ui.tooling.PreviewActivity from the final release build #581

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

luongvo
Copy link
Member

@luongvo luongvo commented Jul 18, 2024

#580

What happened 👀

Hide Compose androidx.compose.ui.tooling.PreviewActivity from the final release build.

Insight 📝

According to the latest update https://developer.android.com/develop/ui/compose/tooling:

  • ui-tooling-preview: Contains the API definitions
  • ui-tooling: Contains the implementation and can be declared as debugImplementation

Proof Of Work 📹

No more Activity (androidx.compose.ui.tooling.PreviewActivity) is not Protected. [android:exported=true] issue from the new VAPT report ✅

Before After
Screenshot 2024-07-18 at 12 01 46 Screenshot 2024-07-18 at 12 37 49

Copy link

1 Warning
⚠️ Uh oh! Your project is under 80% coverage!

Kover report for template-compose:

🧛 Template - Compose Unit Tests Code Coverage: 61.54%

Coverage of Modified Files:

File Coverage

Modified Files Not Found In Coverage Report:

Dependencies.kt
build.gradle.kts

Codebase cunningly covered by count Shroud 🧛

Generated by 🚫 Danger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hide Compose androidx.compose.ui.tooling.PreviewActivity from the final release build
3 participants