Skip to content

major!: Standardise variable names from central source #114

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

Merged
merged 16 commits into from
Feb 13, 2025
Merged

Conversation

SMadani
Copy link
Contributor

@SMadani SMadani commented Feb 11, 2025

This PR refactors the way snippet variables are loaded and their names. Not only are the names now standardised based on product for consistency with other SDK / cURL snippets, but also declared in a single place rather than loaded individually each file. Whilst this requires eager initialisation and all variables to be declared to run any single snippet, it simplifies management of variables as they are all located in a single file, just as in the Kotlin SDK code snippets. Here the com.vonage.quickstart.Util class is reused to load the variables, again using the dotenv plugin to load this from the .env file.

@SMadani SMadani marked this pull request as ready for review February 12, 2025 18:44
@SMadani SMadani merged commit ea2ca0b into main Feb 13, 2025
10 checks passed
@SMadani SMadani deleted the variables branch February 13, 2025 10:11
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.

1 participant