Skip to content

Conversation

@Lytvynenko-Danylo
Copy link
Contributor

Purpose of this PR

Testing status

  • No tests have been added.
  • Includes unit tests.
  • Includes performance tests.
  • Includes integration tests.

Manual testing status

Comments to reviewers

Copy link
Contributor

@stan-osipov stan-osipov left a 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Package runtime settings location path.
/// Library settings folder path.

{
// Only applicable while in the editor.
#if UNITY_EDITOR
var path = Path.Combine(asset.SettingsFilePath);
Copy link
Contributor

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);
Copy link
Contributor

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?

Comment on lines +15 to +19
public LocalProjectSettings(string packageName, string settingsFileName = null)
{
PackageName = packageName;
SettingsFileName = settingsFileName == null ? settingsFileName : GetType().Name;
}
Copy link
Contributor

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.

Copy link
Contributor

@stan-osipov stan-osipov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor chnage request

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.

3 participants