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

[1.x] Better Environments #759

Merged
merged 9 commits into from
Nov 7, 2022
Merged

[1.x] Better Environments #759

merged 9 commits into from
Nov 7, 2022

Conversation

armiol
Copy link
Collaborator

@armiol armiol commented Nov 4, 2022

This changeset is a transfer of #733 to v1 branch.

Please note, this is a breaking API change.

In particular:

  • environment-related types were moved under io.spine.environment package;
  • Production was renamed to DefaultMode;
  • it is now possible to check whether the environment is enabled; see EnvironmentType.enabled();
  • it is also possible to configure a callback executed upon the environment type detection; see EnvironmentType.onDetected(...);
  • the API for the custom environment types was changed; see io.spine.environment.CustomEnvironmentType and its documentation for more detail.

Addresses #752.

@armiol armiol self-assigned this Nov 4, 2022
@armiol armiol merged commit 7e1af2f into v1 Nov 7, 2022
@armiol armiol deleted the better-environment-1x branch November 7, 2022 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant