Skip to content

Commit

Permalink
Fixed use_frameworks! with dummy example app
Browse files Browse the repository at this point in the history
  • Loading branch information
k06a committed May 23, 2016
1 parent bc643a3 commit 2f7c19c
Show file tree
Hide file tree
Showing 46 changed files with 1,121 additions and 329 deletions.
6 changes: 2 additions & 4 deletions DeluxeInjection.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/k06a/DeluxeInjection.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/k06a'

s.platform = :ios, '7.0'
s.requires_arc = true
s.ios.deployment_target = '8.0'

s.source_files = 'Pod/Classes/**/*'
s.public_header_files = 'Pod/Classes/DeluxeInjection.h'
s.source_files = 'DeluxeInjection/Classes/**/*'
s.dependency 'RuntimeRoutines'
end
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.
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.
File renamed without changes.
278 changes: 249 additions & 29 deletions Example/DeluxeInjection.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0730"
LastUpgradeVersion = "0720"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
15 changes: 15 additions & 0 deletions Example/DeluxeInjection/DIAppDelegate.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// DIAppDelegate.h
// DeluxeInjection
//
// Created by Anton Bukov on 05/23/2016.
// Copyright (c) 2016 Anton Bukov. All rights reserved.
//

@import UIKit;

@interface DIAppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end
45 changes: 45 additions & 0 deletions Example/DeluxeInjection/DIAppDelegate.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//
// DIAppDelegate.m
// DeluxeInjection
//
// Created by Anton Bukov on 05/23/2016.
// Copyright (c) 2016 Anton Bukov. All rights reserved.
//

#import "DIAppDelegate.h"

@implementation DIAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application
{
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

@end
45 changes: 45 additions & 0 deletions Example/DeluxeInjection/DeluxeInjection-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?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>en</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</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>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Example/DeluxeInjection/DeluxeInjection-Prefix.pch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// Prefix header
//
// The contents of this file are implicitly included at the beginning of every source file.
//

#import <Availability.h>

#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif

#ifdef __OBJC__
@import UIKit;
@import Foundation;
#endif
2 changes: 2 additions & 0 deletions Example/DeluxeInjection/en.lproj/InfoPlist.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* Localized versions of Info.plist keys */

17 changes: 17 additions & 0 deletions Example/DeluxeInjection/main.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// main.m
// DeluxeInjection
//
// Created by Anton Bukov on 05/23/2016.
// Copyright (c) 2016 Anton Bukov. All rights reserved.
//

@import UIKit;
#import "DIAppDelegate.h"

int main(int argc, char * argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([DIAppDelegate class]));
}
}
7 changes: 5 additions & 2 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!

target 'DeluxeInjection_Tests' do
target 'DeluxeInjection_Example' do
pod 'DeluxeInjection', :path => '../'

target 'DeluxeInjection_Tests' do
inherit! :search_paths
end
end
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
DeluxeInjection: 3402ea17cac8fb0dbcb316753c36406076bfde22
DeluxeInjection: f94ac6a292c35a5ad2cef96bf0a61d6a155a0fa1
RuntimeRoutines: 2b79a691652c63061de81982b4a524cb3b323cf3

PODFILE CHECKSUM: 095b1b2a21b7a2eaf9b786c4cf1f3c391bbf4c94
PODFILE CHECKSUM: 81c90c6c2ec9754827499be4f3481cecc117ffe0

COCOAPODS: 1.0.0
6 changes: 2 additions & 4 deletions Example/Pods/Local Podspecs/DeluxeInjection.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2f7c19c

Please sign in to comment.