forked from NorthStar/routable-ios
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'addTestsForExtraParams'
* addTestsForExtraParams: Update to XCTest, add tests for extraParams, fix bug where extraParams were not updated for cached url Fixed spacing Adds extraParams to openUrl to allow more robust data passing through routing when a controller decides to open an url Fixed a type Mainly an accent change to use Objective-C style. fixes clayallsopp#26 Objective-C specific syntax fixes: Verbose naming of methods, adhering to naming conventions Passive return for nil values No need to synthesize Eliminate nil checks through ‘==‘ Eliminate more ‘new’ as allocation and initialization should be separated. Use custom initialization for dictionaries and arrays for safer type Separation of allocation and initialization: no more allocating memory when we don’t have to. Completely backward compatible Other caveats that came with idiomatic Objective-C Safer setObject:forKey: by having early returns if there is no explicit format (to prevent crash) Simplified logic in conditions Simplified(?) loops through routes using faster enumeration with blocks Add explicit factory class methods for constructions Add default routerOptions Want to do (but didn't/haven't) to adhere to usual Objective-C style Want to get rid of custom new (newRouter) Want to have better error handling; no more exception throwing so we get verbose debugging info Want to simplify controllerForRouterParams and routerParamsForUrl more Want to get rid of register_name by defining selector macros Want to replace property shouldOpenAsRootViewController in routerOptions into root’ with getter ‘isRoot’ to parallel modal Not sure: routerOptions: want to not have wrappers around setters but users might want to keep DSL-style chaining. Not sure: should I fix spacing more? Not sure: should callback in options be overridden, ever? Functionality \todo: have both call back and ‘open’ in options. -- [clayallsopp#24] Example App has essential buttons hidden under nav bar.
- Loading branch information
Showing
5 changed files
with
395 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.