Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
Moved shared Code into VBBFramework
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Oberhoff authored and Dennis Oberhoff committed May 2, 2018
1 parent 7b8f439 commit 7d99bc7
Show file tree
Hide file tree
Showing 32 changed files with 469 additions and 166 deletions.
20 changes: 11 additions & 9 deletions Podfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@

inhibit_all_warnings!
use_frameworks!
platform :osx, '10.10'
inhibit_all_warnings!
use_frameworks!

def shared_pods
abstract_target :VBBPods do
pod 'Realm', '~> 3.0'
end

target :VBB do
platform :osx, '10.10'
shared_pods
end
target "VBBFramework" do
end
target "VBBNow" do
end
target "VBB" do
end

target :'VBBNow' do
platform :osx, '10.10'
shared_pods
end
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ SPEC REPOS:
SPEC CHECKSUMS:
Realm: 0378021c424e4e2bd6a0e63b27881e929d9b9ad1

PODFILE CHECKSUM: 0659b0fcf8f2023d2a64244573dcc93b65104e5c
PODFILE CHECKSUM: 00724fc89fc2e1afc489017376f07793bc80e893

COCOAPODS: 1.5.0
538 changes: 393 additions & 145 deletions VBB.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions VBBFramework/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2018 Dennis Oberhoff. All rights reserved.</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
//

@import CoreLocation;
#import "VBBStationParser.h"
#import "VBBDepatureParser.h"
#import "VBBLocation.h"

@interface VBBNetworkManager : NSObject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
@import MapKit;

#import "VBBNetworkManager.h"
#import "VBBStationParser.h"
#import "VBBDepatureParser.h"

@interface VBBNetworkManager ()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

@import Foundation;
@import CoreLocation;
#import "VBBLocation.h"
@import Realm;

#import <Realm/Realm.h>
#import "VBBLocation.h"

@interface VBBPersistanceManager : NSObject

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion VBB/VBBStation.h → VBBFramework/Model/VBBStation.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
// Copyright (c) 2015 Dennis Oberhoff. All rights reserved.
//

#import <Realm/Realm.h>
@import Realm;

#import "VBBDepature.h"
#import "VBBLine.h"
#import "VBBLocation.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions VBBFramework/VBBFramework.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// VBBFramework.h
// VBBFramework
//
// Created by Dennis Oberhoff on 02.05.18.
// Copyright © 2018 Dennis Oberhoff. All rights reserved.
//

#import <Cocoa/Cocoa.h>

//! Project version number for VBBFramework.
FOUNDATION_EXPORT double VBBFrameworkVersionNumber;

//! Project version string for VBBFramework.
FOUNDATION_EXPORT const unsigned char VBBFrameworkVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <VBBFramework/PublicHeader.h>

#import <VBBFramework/VBBNetworkManager.h>
#import <VBBFramework/VBBPersistanceManager.h>

#import <VBBFramework/VBBStation.h>
#import <VBBFramework/VBBDepature.h>
#import <VBBFramework/VBBLine.h>
#import <VBBFramework/VBBLocation.h>
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
// Copyright (c) 2015 Dennis Oberhoff. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "VBBPersistanceManager.h"
@import Cocoa;
@import VBBFramework;

@interface VBBListRowViewController : NSViewController

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
// Copyright (c) 2015 Dennis Oberhoff. All rights reserved.
//

@import Realm;
@import VBBFramework;
#import <VBBFramework/VBBFramework.h>

#import "VBBListRowViewController.h"
#import "VBBStation.h"

@interface VBBListRowViewController ()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
// Copyright (c) 2015 Dennis Oberhoff. All rights reserved.
//

@import VBBFramework;
@import CoreLocation;
@import NotificationCenter;
@import QuartzCore;

#import "VBBTodayViewController.h"
#import "VBBListRowViewController.h"
#import "VBBNetworkManager.h"
#import "VBBLocation.h"

typedef void (^didUpdateLocationBlock)(CLLocation *location);
typedef void (^didChangeAuthorizationStatus)(CLAuthorizationStatus status);
Expand Down

0 comments on commit 7d99bc7

Please sign in to comment.