-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Local project settings singleton #9
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
base: master
Are you sure you want to change the base?
Conversation
stan-osipov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor changes requested.
| public const string SettingsPath = "Assets/Plugins/StansAssets/Settings"; | ||
|
|
||
| /// <summary> | ||
| /// Package runtime settings location path. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// Package runtime settings location path. | |
| /// Library settings folder path. |
| { | ||
| // Only applicable while in the editor. | ||
| #if UNITY_EDITOR | ||
| var path = Path.Combine(asset.SettingsFilePath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we use Path.Combine here?
| StreamReader reader = null; | ||
| try | ||
| { | ||
| reader = new StreamReader(asset.SettingsFilePath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And not using Path.Combine here?
| public LocalProjectSettings(string packageName, string settingsFileName = null) | ||
| { | ||
| PackageName = packageName; | ||
| SettingsFileName = settingsFileName == null ? settingsFileName : GetType().Name; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need it and where do we use it?
Plus seems like we should have ILocalProjectSettings & StansAssetsLocalProjectSettings that holds basic path implementations like $"{Application.dataPath}/{PackagesConfig.LibraryPath}/{PackageName}"; ets.
stan-osipov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor chnage request
Purpose of this PR
Testing status
Manual testing status
Comments to reviewers