-
Notifications
You must be signed in to change notification settings - Fork 93
Multi-target Support #79
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
* Added a Sites folder from which you can get the settings for any new target * Set up a target for Udemy which would compile a version specific for Udemy * Changed the name of ViewController to WSViewController to match source code * Cleaned up code a bit
* Separate app icon for each target * Menu customizations based on app title * Removed hardcoded application window size and position and set it to be saved based on last values
* Added a WSBaseSettings class to allow having all the default settings there with the ability to override for each target via a sub-class * Added a WSBaseSettings sub-class named Settings as a singleton so that it can be accessed easily from anywhere - also providing for future features
* Added ability to remember the last location in the app and go back to it on re-launch
* Enabled automatic code signing
* Renamed WSMediaKeysSupport.swift to WSApplication.swift and changed the name of the underlying class as well to be consistent * Fixed needing to specify the module/target name for the NSPrincipalClass in each copy of Info.plist
* Reorganized code into folders * Added a separate icon for menu bar * Removed separate view for popup and re-used the one from the main app * Fixed a couple of typos in Credits.rtf * Renamed Info.plist files as per target and moved those to the project root * Removed unused code files
|
Thanks, I will run some testing and then merge it. |
| var fake = true | ||
|
|
||
| // The URL to start with - the last page you were on or the base URL | ||
| func startURL() -> String { |
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 needs to be a setting, so users can enable/disable them.
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 will fix this in a separate pull request.
Now, instead of creating a new version of the repo for each site, you can simply add a new target and add the target specific files (just a copy of Settings and Info.plist) to the Sites sub-folder and compile the app. This way, you can maintain multiple apps for different sites in the same codebase.