Skip to content

Commit

Permalink
Use conditional imports for umbrella header
Browse files Browse the repository at this point in the history
  • Loading branch information
mrackwitz committed Dec 29, 2015
1 parent 135de5d commit 3ea4051
Showing 1 changed file with 17 additions and 29 deletions.
46 changes: 17 additions & 29 deletions src/MRProgress.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,35 @@
// Copyright (c) 2013 Marius Rackwitz. All rights reserved.
//

#ifdef COCOAPODS_POD_AVAILABLE_MRProgress

#ifdef COCOAPODS_POD_AVAILABLE_MRProgress_ActivityIndicator
#import "MRActivityIndicatorView.h"
#endif

#ifdef COCOAPODS_POD_AVAILABLE_MRProgress_Blur
#import "MRBlurView.h"
#import "UIImage+MRImageEffects.h"
#if __has_include(<MRProgress/MRActivityIndicatorView.h>)
#import <MRProgress/MRActivityIndicatorView.h>
#endif

#ifdef COCOAPODS_POD_AVAILABLE_MRProgress_Circular
#import "MRCircularProgressView.h"
#if __has_include(<MRProgress/MRBlurView.h>)
#import <MRProgress/MRBlurView.h>
#import <MRProgress/UIImage+MRImageEffects.h>
#endif

#ifdef COCOAPODS_POD_AVAILABLE_MRProgress_Icons
#import "MRIconView.h"
#if __has_include(<MRProgress/MRCircularProgressView.h>)
#import <MRProgress/MRCircularProgressView.h>
#endif

#ifdef COCOAPODS_POD_AVAILABLE_MRProgress_MessageInterceptor
#import "MRMessageInterceptor.h"
#if __has_include(<MRProgress/MRIconView.h>)
#import <MRProgress/MRIconView.h>
#endif

#ifdef COCOAPODS_POD_AVAILABLE_MRProgress_NavigationBarProgress
#import "MRNavigationBarProgressView.h"
#if __has_include(<MRProgress/MRMessageInterceptor.h>)
#import <MRProgress/MRMessageInterceptor.h>
#endif

#ifdef COCOAPODS_POD_AVAILABLE_MRProgress_Overlay
#import "MRProgressOverlayView.h"
#if __has_include(<MRProgress/MRNavigationBarProgressView.h>)
#import <MRProgress/MRNavigationBarProgressView.h>
#endif

#ifdef COCOAPODS_POD_AVAILABLE_MRProgress_WeakProxy
#import "MRWeakProxy.h"
#if __has_include(<MRProgress/MRProgressOverlayView.h>)
#import <MRProgress/MRProgressOverlayView.h>
#endif

#else

#import "MRActivityIndicatorView.h"
#import "MRCircularProgressView.h"
#import "MRIconView.h"
#import "MRNavigationBarProgressView.h"
#import "MRProgressOverlayView.h"

#if __has_include(<MRProgress/MRWeakProxy.h>)
#import <MRProgress/MRWeakProxy.h>
#endif

0 comments on commit 3ea4051

Please sign in to comment.