Skip to content

Conversation

@FahimF
Copy link
Contributor

@FahimF FahimF commented Dec 9, 2017

  • 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

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.

* 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
@0xWDG 0xWDG assigned 0xWDG and FahimF Jan 4, 2018
@0xWDG 0xWDG added this to the v0.2.5 milestone Jan 4, 2018
@0xWDG
Copy link
Collaborator

0xWDG commented Jan 4, 2018

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 {
Copy link
Collaborator

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.

Copy link
Collaborator

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.

@0xWDG 0xWDG merged commit 939df3e into djyde:master Jan 4, 2018
0xWDG added a commit that referenced this pull request Jan 4, 2018
0xWDG added a commit that referenced this pull request Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants