Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Created a podspec file for use with cocoa pods #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions DB5.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Pod::Spec.new do |s|
s.name = 'DB5'
s.version = '1.0'
s.license = 'MIT'
s.summary = 'App Configuration via Plist'
s.homepage = 'https://github.com/quartermaster/DB5/'
s.authors = { 'Brent Simmons' => '@brentsimmons' }
s.source = { :git => 'https://github.com/quartermaster/DB5.git', :tag => '1.0' }
s.source_files = 'Source/*.{h,m}'
s.requires_arc = true

s.ios.deployment_target = '5.0'
s.ios.frameworks = 'CoreGraphics,UIKit,Foundation'

end
1 change: 1 addition & 0 deletions Source/VSThemeLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
@property (nonatomic, strong, readonly) VSTheme *defaultTheme;
@property (nonatomic, strong, readonly) NSArray *themes;

+ (VSThemeLoader *) instance;
- (VSTheme *)themeNamed:(NSString *)themeName;

@end
10 changes: 10 additions & 0 deletions Source/VSThemeLoader.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ @interface VSThemeLoader ()

@implementation VSThemeLoader

+ (VSThemeLoader *) instance
{
static VSThemeLoader *_sharedInstance = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
_sharedInstance = [[self alloc] init];
});

return _sharedInstance;
}

- (id)init {

Expand Down