I've noticed an inconsistency in the way our sample app handles app secrets, specifically how we're using resValue for reading FACEBOOK_APP_ID, FACEBOOK_CLIENT_TOKEN, MICROSOFT_CLIENT_ID, etc., while simultaneously using the secrets plugin for the GOOGLE_CLIENT_ID. This approach seems to diverge in methodology for handling similar types of secrets, which could potentially lead to confusion and maintenance issues down the line.
In the context of our project's goal to maintain consistency and ease of maintainability, I believe it would be beneficial to standardize the method we use for retrieving these variables. My suggestion aligns with the comments I've made in the pull request here: Pull Request #23 Comment.
To summarize my recommendation from the PR comment:
- We should adopt a single, consistent approach for managing app secrets, ideally through the
local.properties file for local development, which can then be easily overridden by CI for production builds.
- This method should apply uniformly to all external service client IDs and tokens (including
GOOGLE_CLIENT_ID, FACEBOOK_APP_ID, FACEBOOK_CLIENT_TOKEN, MICROSOFT_CLIENT_ID, etc.).
- By doing so, we'll streamline the developer experience by providing a approach to developers adopting the libraries.
I believe that adopting a uniform approach will not only simplify the codebase but also make it easier for new contributors to understand and for existing contributors to maintain. It would be great to hear your thoughts on this and discuss potential paths forward.
Thank you for considering my feedback.
I've noticed an inconsistency in the way our sample app handles app secrets, specifically how we're using
resValuefor readingFACEBOOK_APP_ID,FACEBOOK_CLIENT_TOKEN,MICROSOFT_CLIENT_ID, etc., while simultaneously using the secrets plugin for theGOOGLE_CLIENT_ID. This approach seems to diverge in methodology for handling similar types of secrets, which could potentially lead to confusion and maintenance issues down the line.In the context of our project's goal to maintain consistency and ease of maintainability, I believe it would be beneficial to standardize the method we use for retrieving these variables. My suggestion aligns with the comments I've made in the pull request here: Pull Request #23 Comment.
To summarize my recommendation from the PR comment:
local.propertiesfile for local development, which can then be easily overridden by CI for production builds.GOOGLE_CLIENT_ID,FACEBOOK_APP_ID,FACEBOOK_CLIENT_TOKEN,MICROSOFT_CLIENT_ID, etc.).I believe that adopting a uniform approach will not only simplify the codebase but also make it easier for new contributors to understand and for existing contributors to maintain. It would be great to hear your thoughts on this and discuss potential paths forward.
Thank you for considering my feedback.