-
Notifications
You must be signed in to change notification settings - Fork 21
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
Move Assets to RuuviLocalization #1847
Conversation
Motivation: avoid duplicate assets, easy to import compile time safe usage
case .weatherProvider: | ||
dataSourceIconView.image = RuuviAssets.weatherProviderImage | ||
dataSourceIconView.image = RuuviAsset.iconWeatherstation.image |
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.
This can be a separate card but I think we don't need this anymore since virtual sensors are dead.
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.
removed
case .heartbeat: | ||
dataSourceIconView.image = RuuviAssets.heartbeatImage | ||
dataSourceIconView.image = RuuviAsset.iconBluetoothConnected.image | ||
case .log: | ||
dataSourceIconView.image = RuuviAssets.heartbeatImage | ||
dataSourceIconView.image = RuuviAsset.iconBluetoothConnected.image |
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.
Could have been combined, not sure why I did not do it. 😂
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.
merged
case .weatherProvider: | ||
dataSourceIconView.image = RuuviAssets.weatherProviderImage | ||
dataSourceIconView.image = RuuviAsset.iconWeatherstation.image |
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.
Can be removed.
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.
removed
case .heartbeat: | ||
dataSourceIconView.image = RuuviAssets.heartbeatImage | ||
dataSourceIconView.image = RuuviAsset.iconBluetoothConnected.image | ||
case .log: | ||
dataSourceIconView.image = RuuviAssets.heartbeatImage | ||
dataSourceIconView.image = RuuviAsset.iconBluetoothConnected.image |
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.
Merge cases?
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.
merged
dataSourceIconView.image = RuuviAssets.heartbeatImage | ||
dataSourceIconView.image = RuuviAsset.iconBluetoothConnected.image | ||
case .log: | ||
dataSourceIconView.image = RuuviAssets.heartbeatImage | ||
dataSourceIconView.image = RuuviAsset.iconBluetoothConnected.image |
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.
Merge cases?
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.
merged
case .weatherProvider: | ||
dataSourceIconView.image = RuuviAssets.weatherProviderImage | ||
dataSourceIconView.image = RuuviAsset.iconWeatherstation.image |
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.
Can be removed?
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.
removed
case .heartbeat: | ||
dataSourceIconView.image = RuuviAssets.heartbeatImage | ||
dataSourceIconView.image = RuuviAsset.iconBluetoothConnected.image | ||
case .log: | ||
dataSourceIconView.image = RuuviAssets.heartbeatImage | ||
dataSourceIconView.image = RuuviAsset.iconBluetoothConnected.image |
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.
Merge cases?
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.
merged
case .weatherProvider: | ||
dataSourceIconView.image = RuuviAssets.weatherProviderImage | ||
dataSourceIconView.image = RuuviAsset.iconWeatherstation.image |
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.
Remove?
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.
removed
"idiom" : "universal", | ||
"filename" : "info_icon.png" | ||
"filename" : "web-ruuvi-eye-nega.pdf", | ||
"idiom" : "universal" |
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.
Is this correct icon?
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.
removed this icon as not used
|
||
// swiftlint:disable identifier_name line_length nesting type_body_length type_name | ||
public enum RuuviAsset { | ||
public enum Resources { |
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.
I would rename it OnboardingResources since they group the onboarding assets.
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.
renamed
|
Motivation: avoid duplicate assets, easy to import compile time safe usage