Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
39e0a526
Commit
39e0a526
authored
Apr 01, 2012
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove EmbedReader example, it doesn't really showcase anything and some small fixes.
parent
291e2e2e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
13 additions
and
343 deletions
+13
-343
Podfile.lock
examples/AFNetworking Mac Example/Podfile.lock
+1
-1
Podfile.lock
examples/AFNetworking iOS Example/Podfile.lock
+1
-1
project.pbxproj
examples/EmbedReader/EmbedReader.xcodeproj/project.pbxproj
+0
-0
EmbedReader.xcscheme
...der.xcodeproj/xcshareddata/xcschemes/EmbedReader.xcscheme
+0
-76
contents.xcworkspacedata
...edReader/EmbedReader.xcworkspace/contents.xcworkspacedata
+0
-2
EmbedReader-Info.plist
examples/EmbedReader/EmbedReader/EmbedReader-Info.plist
+0
-38
EmbedReader-Prefix.pch
examples/EmbedReader/EmbedReader/EmbedReader-Prefix.pch
+0
-11
EmbedReaderAppDelegate.h
examples/EmbedReader/EmbedReader/EmbedReaderAppDelegate.h
+0
-21
EmbedReaderAppDelegate.m
examples/EmbedReader/EmbedReader/EmbedReaderAppDelegate.m
+0
-34
EmbedReaderViewController.h
examples/EmbedReader/EmbedReader/EmbedReaderViewController.h
+0
-22
EmbedReaderViewController.m
examples/EmbedReader/EmbedReader/EmbedReaderViewController.m
+0
-88
EmbedReaderViewController.xib
...Reader/EmbedReader/en.lproj/EmbedReaderViewController.xib
+0
-0
InfoPlist.strings
examples/EmbedReader/EmbedReader/en.lproj/InfoPlist.strings
+0
-2
MainWindow.xib
examples/EmbedReader/EmbedReader/en.lproj/MainWindow.xib
+0
-0
main.m
examples/EmbedReader/EmbedReader/main.m
+0
-16
Podfile
examples/EmbedReader/Podfile
+0
-3
Podfile.lock
examples/EmbedReader/Podfile.lock
+0
-5
Podfile.lock
examples/MacRubySample/Podfile.lock
+0
-2
config.rb
lib/cocoapods/config.rb
+10
-20
installer.rb
lib/cocoapods/installer.rb
+1
-1
No files found.
examples/AFNetworking Mac Example/Podfile.lock
View file @
39e0a526
...
...
@@ -2,7 +2,7 @@ PODS:
- AFNetworking (0.7.0):
- JSONKit
- FormatterKit (0.7.0)
- JSONKit (1.
5pre
)
- JSONKit (1.
4
)
DEPENDENCIES:
- AFNetworking (~> 0.7.0)
...
...
examples/AFNetworking iOS Example/Podfile.lock
View file @
39e0a526
...
...
@@ -2,7 +2,7 @@ PODS:
- AFNetworking (0.7.0):
- JSONKit
- FormatterKit (0.7.0)
- JSONKit (1.
5pre
)
- JSONKit (1.
4
)
DEPENDENCIES:
- AFNetworking (~> 0.7.0)
...
...
examples/EmbedReader/EmbedReader.xcodeproj/project.pbxproj
deleted
100644 → 0
View file @
291e2e2e
This diff is collapsed.
Click to expand it.
examples/EmbedReader/EmbedReader.xcodeproj/xcshareddata/xcschemes/EmbedReader.xcscheme
deleted
100644 → 0
View file @
291e2e2e
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
buildImplicitDependencies =
"YES"
>
<BuildActionEntries>
<BuildActionEntry
buildForTesting =
"YES"
buildForRunning =
"YES"
buildForProfiling =
"YES"
buildForArchiving =
"YES"
buildForAnalyzing =
"YES"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"DCFB448E136F7202004B3EE0"
BuildableName =
"EmbedReader.app"
BlueprintName =
"EmbedReader"
ReferencedContainer =
"container:EmbedReader.xcodeproj"
>
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.GDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.GDB"
shouldUseLaunchSchemeArgsEnv =
"YES"
buildConfiguration =
"Debug"
>
<Testables>
</Testables>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.GDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.GDB"
displayScaleIsEnabled =
"NO"
displayScale =
"1.00"
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Debug"
>
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"DCFB448E136F7202004B3EE0"
BuildableName =
"EmbedReader.app"
BlueprintName =
"EmbedReader"
ReferencedContainer =
"container:EmbedReader.xcodeproj"
>
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
displayScaleIsEnabled =
"NO"
displayScale =
"1.00"
shouldUseLaunchSchemeArgsEnv =
"YES"
savedToolIdentifier =
""
useCustomWorkingDirectory =
"NO"
buildConfiguration =
"Release"
>
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"DCFB448E136F7202004B3EE0"
BuildableName =
"EmbedReader.app"
BlueprintName =
"EmbedReader"
ReferencedContainer =
"container:EmbedReader.xcodeproj"
>
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration =
"Debug"
>
</AnalyzeAction>
<ArchiveAction
buildConfiguration =
"Release"
revealArchiveInOrganizer =
"YES"
>
</ArchiveAction>
</Scheme>
examples/EmbedReader/EmbedReader.xcworkspace/contents.xcworkspacedata
deleted
100644 → 0
View file @
291e2e2e
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Workspace
version=
"1.0"
><FileRef
location=
"group:EmbedReader.xcodeproj"
></FileRef><FileRef
location=
"group:Pods/Pods.xcodeproj"
></FileRef></Workspace>
\ No newline at end of file
examples/EmbedReader/EmbedReader/EmbedReader-Info.plist
deleted
100644 → 0
View file @
291e2e2e
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
en
<
/string
>
<
k
e
y
>
CFBundleDisplayName
<
/k
e
y
>
<
string
>
$
{
PRODUCT_NAME
}<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
$
{
EXECUTABLE_NAME
}<
/string
>
<
k
e
y
>
CFBundleIconFile
<
/k
e
y
>
<
string
><
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
net.sourceforge.zbar.$
{
PRODUCT_NAME:rfc1034identifier
}<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
$
{
PRODUCT_NAME
}<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.0
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1.0
<
/string
>
<
k
e
y
>
LSRequiresIPhoneOS
<
/k
e
y
>
<
tru
e
/
>
<
k
e
y
>
NSMainNibFile
<
/k
e
y
>
<
string
>
MainWindow
<
/string
>
<
k
e
y
>
UISupportedInterfaceOrientations
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
<
string
>
UIInterfaceOrientationLandscapeLeft
<
/string
>
<
string
>
UIInterfaceOrientationLandscapeRight
<
/string
>
<
/
a
rr
a
y
>
<
/
d
i
c
t
>
<
/plist
>
examples/EmbedReader/EmbedReader/EmbedReader-Prefix.pch
deleted
100644 → 0
View file @
291e2e2e
#import <Availability.h>
#ifndef __IPHONE_3_0
#warning "This project uses features only available in iPhone SDK 3.0 and later."
#endif
#ifdef __OBJC__
# import <UIKit/UIKit.h>
# import <Foundation/Foundation.h>
# import "ZBarSDK.h"
#endif
examples/EmbedReader/EmbedReader/EmbedReaderAppDelegate.h
deleted
100644 → 0
View file @
291e2e2e
//
// EmbedReaderAppDelegate.h
// EmbedReader
//
// Created by spadix on 5/2/11.
//
#import <UIKit/UIKit.h>
@class
EmbedReaderViewController
;
@interface
EmbedReaderAppDelegate
:
NSObject
<
UIApplicationDelegate
>
{
}
@property
(
nonatomic
,
retain
)
IBOutlet
UIWindow
*
window
;
@property
(
nonatomic
,
retain
)
IBOutlet
EmbedReaderViewController
*
viewController
;
@end
examples/EmbedReader/EmbedReader/EmbedReaderAppDelegate.m
deleted
100644 → 0
View file @
291e2e2e
//
// EmbedReaderAppDelegate.m
// EmbedReader
//
// Created by spadix on 5/2/11.
//
#import "EmbedReaderAppDelegate.h"
#import "EmbedReaderViewController.h"
@implementation
EmbedReaderAppDelegate
@synthesize
window
=
_window
;
@synthesize
viewController
=
_viewController
;
-
(
BOOL
)
application
:
(
UIApplication
*
)
application
didFinishLaunchingWithOptions
:
(
NSDictionary
*
)
launchOptions
{
self
.
window
.
rootViewController
=
self
.
viewController
;
[
self
.
window
makeKeyAndVisible
];
// force view class to load so it may be referenced directly from NIB
[
ZBarReaderView
class
];
return
(
YES
);
}
-
(
void
)
dealloc
{
[
_window
release
];
[
_viewController
release
];
[
super
dealloc
];
}
@end
examples/EmbedReader/EmbedReader/EmbedReaderViewController.h
deleted
100644 → 0
View file @
291e2e2e
//
// EmbedReaderViewController.h
// EmbedReader
//
// Created by spadix on 5/2/11.
//
#import <UIKit/UIKit.h>
@interface
EmbedReaderViewController
:
UIViewController
<
ZBarReaderViewDelegate
>
{
ZBarReaderView
*
readerView
;
UITextView
*
resultText
;
ZBarCameraSimulator
*
cameraSim
;
}
@property
(
nonatomic
,
retain
)
IBOutlet
ZBarReaderView
*
readerView
;
@property
(
nonatomic
,
retain
)
IBOutlet
UITextView
*
resultText
;
@end
examples/EmbedReader/EmbedReader/EmbedReaderViewController.m
deleted
100644 → 0
View file @
291e2e2e
//
// EmbedReaderViewController.m
// EmbedReader
//
// Created by spadix on 5/2/11.
//
#import "EmbedReaderViewController.h"
@implementation
EmbedReaderViewController
@synthesize
readerView
,
resultText
;
-
(
void
)
cleanup
{
[
cameraSim
release
];
cameraSim
=
nil
;
readerView
.
readerDelegate
=
nil
;
[
readerView
release
];
readerView
=
nil
;
[
resultText
release
];
resultText
=
nil
;
}
-
(
void
)
dealloc
{
[
self
cleanup
];
[
super
dealloc
];
}
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
// the delegate receives decode results
readerView
.
readerDelegate
=
self
;
// you can use this to support the simulator
if
(
TARGET_IPHONE_SIMULATOR
)
{
cameraSim
=
[[
ZBarCameraSimulator
alloc
]
initWithViewController
:
self
];
cameraSim
.
readerView
=
readerView
;
}
}
-
(
void
)
viewDidUnload
{
[
self
cleanup
];
[
super
viewDidUnload
];
}
-
(
BOOL
)
shouldAutorotateToInterfaceOrientation
:
(
UIInterfaceOrientation
)
orient
{
// auto-rotation is supported
return
(
YES
);
}
-
(
void
)
willRotateToInterfaceOrientation
:
(
UIInterfaceOrientation
)
orient
duration
:
(
NSTimeInterval
)
duration
{
// compensate for view rotation so camera preview is not rotated
[
readerView
willRotateToInterfaceOrientation
:
orient
duration
:
duration
];
}
-
(
void
)
viewDidAppear
:
(
BOOL
)
animated
{
// run the reader when the view is visible
[
readerView
start
];
}
-
(
void
)
viewWillDisappear
:
(
BOOL
)
animated
{
[
readerView
stop
];
}
-
(
void
)
readerView
:
(
ZBarReaderView
*
)
view
didReadSymbols
:
(
ZBarSymbolSet
*
)
syms
fromImage
:
(
UIImage
*
)
img
{
// do something useful with results
for
(
ZBarSymbol
*
sym
in
syms
)
{
resultText
.
text
=
sym
.
data
;
break
;
}
}
@end
examples/EmbedReader/EmbedReader/en.lproj/EmbedReaderViewController.xib
deleted
100644 → 0
View file @
291e2e2e
This diff is collapsed.
Click to expand it.
examples/EmbedReader/EmbedReader/en.lproj/InfoPlist.strings
deleted
100644 → 0
View file @
291e2e2e
/* Localized versions of Info.plist keys */
examples/EmbedReader/EmbedReader/en.lproj/MainWindow.xib
deleted
100644 → 0
View file @
291e2e2e
This diff is collapsed.
Click to expand it.
examples/EmbedReader/EmbedReader/main.m
deleted
100644 → 0
View file @
291e2e2e
//
//
main
.
m
//
EmbedReader
//
//
Created
by
spadix
on
5
/
2
/
11.
//
#
import
<
UIKit
/
UIKit
.
h
>
int
main
(
int
argc
,
char
*
argv
[])
{
NSAutoreleasePool
*
pool
=
[[
NSAutoreleasePool
alloc
]
init
];
int
retVal
=
UIApplicationMain
(
argc
,
argv
,
nil
,
nil
);
[
pool
release
];
return
retVal
;
}
examples/EmbedReader/Podfile
deleted
100644 → 0
View file @
291e2e2e
platform
:ios
dependency
'ZBarSDK'
examples/EmbedReader/Podfile.lock
deleted
100644 → 0
View file @
291e2e2e
PODS:
- ZBarSDK (1.2.2)
DEPENDENCIES:
- ZBarSDK
examples/MacRubySample/Podfile.lock
View file @
39e0a526
PODS:
- ASIHTTPRequest (1.8.1)
- ASIHTTPRequest (1.8.1)
- CocoaLumberjack (1.3.2)
- SBJson (3.0.4)
- SBJson (3.0.4)
DEPENDENCIES:
- ASIHTTPRequest
...
...
lib/cocoapods/config.rb
View file @
39e0a526
...
...
@@ -37,14 +37,7 @@ module Pod
end
def
project_podfile
unless
@project_podfile
@project_podfile
=
project_root
+
'Podfile'
# TODO this has to go, we don't support this anymore!
unless
@project_podfile
.
exist?
@project_podfile
=
project_root
.
glob
(
'*.podspec'
).
first
end
end
@project_podfile
@project_podfile
||=
project_root
+
'Podfile'
end
def
headers_symlink_root
...
...
@@ -53,24 +46,21 @@ module Pod
# Returns the spec at the pat returned from `project_podfile`.
def
rootspec
unless
@rootspec
if
project_podfile
if
project_podfile
.
basename
.
to_s
==
'Podfile'
@rootspec
=
Podfile
.
from_file
(
project_podfile
)
else
@rootspec
=
Specification
.
from_file
(
project_podfile
)
end
end
end
@rootspec
@rootspec
||=
Podfile
.
from_file
(
project_podfile
)
end
def
ios?
rootspec
.
platform
==
:ios
if
rootspec
require
'colored'
caller
.
find
{
|
line
|
line
=~
/^(.+.podspec):\d*/
}
puts
"[!] The use of `config.ios?` is deprecated and will be removed in version 0.7.
#{
" Called from:
#{
$1
}
"
if
$1
}
"
.
red
rootspec
.
target_definitions
[
:default
].
platform
==
:ios
if
rootspec
end
def
osx?
rootspec
.
platform
==
:osx
if
rootspec
require
'colored'
caller
.
find
{
|
line
|
line
=~
/^(.+.podspec):\d*/
}
puts
"[!] The use of `config.ios?` is deprecated and will be removed in version 0.7.
#{
" Called from:
#{
$1
}
"
if
$1
}
"
.
red
rootspec
.
target_definitions
[
:default
].
platform
==
:osx
if
rootspec
end
module
Mixin
...
...
lib/cocoapods/installer.rb
View file @
39e0a526
...
...
@@ -60,7 +60,7 @@ module Pod
end
if
(
should_install
&&
config
.
doc?
)
||
config
.
force_doc?
puts
"Installing Documentation for
#{
spec
}
"
.
green
if
config
.
verbose?
puts
"Installing Documentation for
#{
pod
.
specification
}
"
.
green
if
config
.
verbose?
Generator
::
Documentation
.
new
(
pod
).
generate
(
config
.
doc_install?
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment