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

Add IntRange annotations to applicable configuration so that Android Studio can warn users #1808

Conversation

hannah-smartbear
Copy link
Contributor

Added an @IntRange annotation to any configuration options that had hard limits on integer ranges, so that Android Studio can warn users when they try to set a configuration option to a number outside the range of options without them having to read the code, documentation or experience a runtime warning.
Tested this by building the library with my changes locally and checking if the example app gave me a warning in android studio when I set a configuration option to be outside the range.

@bugsnagbot
Copy link
Collaborator

bugsnagbot commented Feb 13, 2023

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1921.31 1696.73
arm64_v8a 680.33 459.15
armeabi_v7a 614.8 393.62
x86 754.04 532.86
x86_64 725.38 504.19

Generated by 🚫 Danger

@hannah-smartbear hannah-smartbear force-pushed the PLAT-8699/add-int-range-annotations-to-applicable-configuration branch from 3799f32 to 6e357e5 Compare February 13, 2023 16:00
CHANGELOG.md Outdated
@@ -1,5 +1,12 @@
# Changelog

## TBD

### Bug fixes
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
### Bug fixes
### Enhancements

Copy link
Contributor

@lemnik lemnik left a comment

Choose a reason for hiding this comment

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

LGTM

@lemnik lemnik force-pushed the PLAT-8699/add-int-range-annotations-to-applicable-configuration branch from 00a81f9 to b646c27 Compare February 14, 2023 15:49
@hannah-smartbear hannah-smartbear force-pushed the PLAT-8699/add-int-range-annotations-to-applicable-configuration branch from b646c27 to 087c3cb Compare February 14, 2023 16:37
@hannah-smartbear hannah-smartbear merged commit 33a04cf into next Feb 15, 2023
@hannah-smartbear hannah-smartbear deleted the PLAT-8699/add-int-range-annotations-to-applicable-configuration branch February 15, 2023 13:52
@lemnik lemnik mentioned this pull request Mar 23, 2023
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.

None yet

3 participants