Skip to content

Releases: material-foundation/cocoapods-catalog-by-convention

v2.5.2

11 Aug 15:33
Compare
Choose a tag to compare

This patch release includes performance improvements and support for macCatalyst apps.

v2.5.1

25 Jul 00:47
Compare
Choose a tag to compare

Fix a runtime crash that occurred when the PhotoFoundation framework was included in an app.

Source changes

v2.5.0

24 May 20:56
Compare
Choose a tag to compare

There is now a new NSDictionary property in CBCNode called metadata. It is meant to store all the information regarding an example
rather than using separate methods as previously done. With that said, we offer backwards compatibility and still allow the usage of methods to provide example information.

Before:

+ (NSArray *)catalogBreadcrumbs {
  return @[ @"Activity Indicator", @"Activity Indicator" ];
}

+ (NSString *)catalogDescription {
  return @"Activity Indicator is a visual indication of an app loading content. It can display how "
         @"long an operation will take or visualize an unspecified wait time.";
}

+ (BOOL)catalogIsPrimaryDemo {
  return YES;
}

+ (BOOL)catalogIsPresentable {
  return YES;
}

After:

+ (NSDictionary *)catalogMetadata {
  return @{@"breadcrumbs": @[ @"Activity Indicator", @"Activity Indicator" ],
           @"description": @"Activity Indicator is a visual indication of an app loading content. It can display how "
           @"long an operation will take or visualize an unspecified wait time.",
           @"primaryDemo": @YES,
           @"presentable": @YES};
}

Source changes

API changes

CBCBreadcrumbs

new constant: CBCBreadcrumbs

CBCNode

new property: metadata in CBCNode

removed property: nodeDescription in CBCNode

modified method: -exampleDescription in CBCNode

Type of change: Swift declaration
From: func exampleDescription() -> String
To: func exampleDescription() -> String?

modified method: -exampleDescription in CBCNode

Type of change: Declaration
From: - (nonnull NSString *)exampleDescription;
To: - (nullable NSString *)exampleDescription;

CBCRelatedInfo

new constant: CBCRelatedInfo

CBCIsDebug

new constant: CBCIsDebug

CBCIsPresentable

new constant: CBCIsPresentable

CBCIsPrimaryDemo

new constant: CBCIsPrimaryDemo

CBCDescription

new constant: CBCDescription

CBCStoryboardName

new constant: CBCStoryboardName

v2.4.1

22 Dec 20:55
Compare
Choose a tag to compare

Add exampleRelatedInfo to the CBCNode header for external invocation.

Source changes

v2.4.0

22 Dec 15:16
Compare
Choose a tag to compare
  • Now you can add the method catalogRelatedInfo that returns an NSURL to your example, if you wish to link to related information and resources.
  • A performance improvement when fetching all viable classes to build the navigation tree.

Source changes

v2.3.1

15 Dec 22:25
Compare
Choose a tag to compare

minor bug fix introduced in 2.3.0 that returns wrong boolean values.

Source changes

v2.3.0

15 Dec 19:34
Compare
Choose a tag to compare

This minor release adds two new functionalities that support our new Dragons app.

New features

  • It's now possible to call CBCCreatePresentableNavigationTree to create a navigation tree that only consists of examples that implement the catalogIsPresentable method and return YES to it.

  • CBCNode now has a new property called debugLeaf which is also a CBCNode. If an example implements the catalogIsDebug method and returns YES, then that example will become the debugLeaf. When the debugLeaf is set, then in the Dragons app it will become the initial view controller in the navigation.

NOTE: If there are multiple examples that return YES to catalogIsDebug then the last class that is parsed while going through the hierarchy is the one to be set as the debugLeaf.

Source changes

Non-source changes

v2.2.0

04 Oct 15:11
Compare
Choose a tag to compare

This minor release introduces support for Carthage.

New features

It's now possible to define multiple paths to a single example. Simply return an array of arrays
of breadcrumbs from the catalogBreadcrumbs implementation.

Source changes

Non-source changes

v2.1.1

15 May 18:41
Compare
Choose a tag to compare
  • Fixed a crashing bug on iOS 10.3.1.

Release 2.1.0

22 Mar 21:35
Compare
Choose a tag to compare

2.1.0

  • Add tvOS as a platform.