-
Notifications
You must be signed in to change notification settings - Fork 4
Update for SDL v6.1 #6
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
Conversation
The link to DarkSky is broken in the README |
The Supporting Files folder in the Xcode directory is red. |
Works well. I think the 1000 line SmartDeviceLinkService.m file should be broken into smaller, more readable files. |
@NicoleYarroch fixed those weirdness things. I don't disagree about breaking it apart...that'll just take a lot more time. It did use to be like 1600 lines before the managers though so...progress lol. I also added some pragmas to help. |
Should we add the Pod folder to the .gitignore and add instructions to the README on how to install the SDL library via CocoaPods? |
🤷🏻♂️ We could. I've just been leaving it as is for now. |
SmartDeviceLinkService.m
Outdated
|
||
// Change which config you need based on if you want to connect to a TDK (default) or a wifi based emulator (debug) | ||
SDLLifecycleConfiguration *lifecycleConfig = [SDLLifecycleConfiguration defaultConfigurationWithAppName:@"MobileWeather" appId:@"330533107"]; | ||
SDLLifecycleConfiguration *lifecycleConfig = [SDLLifecycleConfiguration defaultConfigurationWithAppName:@"MobileWeather" fullAppId:@"330533107"]; | ||
// SDLLifecycleConfiguration *lifecycleConfig = [SDLLifecycleConfiguration debugConfigurationWithAppName:@"MobileWeather" appId:@"330533107" ipAddress:@"192.168.1.61" port:2776]; |
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.
The debug configuration is deprecated
Have you tested the app with Manticore? The primary graphic images are barely visible due to the image color being almost identical to the background color. It it possible to template the primary graphic image so it looks good when Manticore is updated to Core 5.0? |
self.manager.screenManager.textField4 = [conditions.windSpeed stringValueForUnit:speedType shortened:YES localization:self.localization]; | ||
|
||
self.manager.screenManager.primaryGraphic = [SDLArtwork artworkWithImage:[[ImageProcessor sharedProcessor] imageFromConditionImage:conditions.conditionIcon] name:conditions.conditionIcon asImageFormat:SDLArtworkImageFormatPNG]; | ||
self.manager.screenManager.primaryGraphic = [SDLArtwork artworkWithImage:[[[ImageProcessor sharedProcessor] imageFromConditionImage:conditions.conditionIcon] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate] name:conditions.conditionIcon asImageFormat:SDLArtworkImageFormatPNG]; |
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.
There is another section of the code on L444 where the primary graphic is also set. This image isn't templated.
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.
The menu icons should be templated too.
Use menu and choice set managers