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

Declare AdaptyErrorCode static variables as constant #110

Open
jezsung opened this issue Jun 25, 2024 · 1 comment
Open

Declare AdaptyErrorCode static variables as constant #110

jezsung opened this issue Jun 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jezsung
Copy link

jezsung commented Jun 25, 2024

The AdaptyErrorCode variables are currently declared as static final.

This makes it impossible to use the error codes with the switch expression.

I suggest the following code changes to all static variables:

class AdaptyErrorCode {
  static final int unknown = 0;
  // to
  static const int unknown = 0;
...
@x401om
Copy link
Collaborator

x401om commented Jul 10, 2024

Hi @jezsung! That seems to be a good enhancement. I think we will implement that in the next release. Thank you!

@x401om x401om added the enhancement New feature or request label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants