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
81c54f30
Commit
81c54f30
authored
Sep 25, 2011
by
Joshua Weinberg
Committed by
Eloy Duran
Oct 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow for framework style imports and adjust the sample to match
parent
1fcca9fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
8 deletions
+28
-8
AFGowallaAPIClient.h
examples/AFNetworking Example/Classes/AFGowallaAPIClient.h
+1
-1
NearbySpotsViewController.m
...g Example/Classes/Controllers/NearbySpotsViewController.m
+3
-3
project.rb
lib/cocoapods/xcode/project.rb
+24
-4
No files found.
examples/AFNetworking Example/Classes/AFGowallaAPIClient.h
View file @
81c54f30
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
// THE SOFTWARE.
// THE SOFTWARE.
#import <Foundation/Foundation.h>
#import <Foundation/Foundation.h>
#import "AFRestClient.h"
#import "AF
Networking/AF
RestClient.h"
extern
NSString
*
const
kAFGowallaClientID
;
extern
NSString
*
const
kAFGowallaClientID
;
extern
NSString
*
const
kAFGowallaBaseURLString
;
extern
NSString
*
const
kAFGowallaBaseURLString
;
...
...
examples/AFNetworking Example/Classes/Controllers/NearbySpotsViewController.m
View file @
81c54f30
...
@@ -26,9 +26,9 @@
...
@@ -26,9 +26,9 @@
#import "SpotTableViewCell.h"
#import "SpotTableViewCell.h"
#import "TTTLocationFormatter.h"
#import "
FormatterKit/
TTTLocationFormatter.h"
#import "AFImageCache.h"
#import "AF
Networking/AF
ImageCache.h"
#import "UIImageView+AFNetworking.h"
#import "
AFNetworking/
UIImageView+AFNetworking.h"
@interface
NearbySpotsViewController
()
@interface
NearbySpotsViewController
()
@property
(
readwrite
,
nonatomic
,
retain
)
NSArray
*
nearbySpots
;
@property
(
readwrite
,
nonatomic
,
retain
)
NSArray
*
nearbySpots
;
...
...
lib/cocoapods/xcode/project.rb
View file @
81c54f30
...
@@ -61,7 +61,7 @@ module Pod
...
@@ -61,7 +61,7 @@ module Pod
# Working around a bug in Xcode 4.2 betas, remove this once the Xcode bug is fixed:
# Working around a bug in Xcode 4.2 betas, remove this once the Xcode bug is fixed:
# https://github.com/alloy/cocoapods/issues/13
# https://github.com/alloy/cocoapods/issues/13
#add_file_to_list('PBXHeadersBuildPhase', build_file_uuid)
#add_file_to_list('PBXHeadersBuildPhase', build_file_uuid)
add_file_to_list
(
'PBXCopyFilesBuildPhase'
,
build_file_uuid
)
add_file_to_list
(
'PBXCopyFilesBuildPhase'
,
build_file_uuid
,
group
)
else
else
extra
=
compiler_flags
?
{
"settings"
=>
{
"COMPILER_FLAGS"
=>
compiler_flags
}}
:
{}
extra
=
compiler_flags
?
{
"settings"
=>
{
"COMPILER_FLAGS"
=>
compiler_flags
}}
:
{}
build_file_uuid
=
add_build_file
(
file_ref_uuid
,
extra
)
build_file_uuid
=
add_build_file
(
file_ref_uuid
,
extra
)
...
@@ -78,7 +78,7 @@ module Pod
...
@@ -78,7 +78,7 @@ module Pod
"children"
=>
[]
"children"
=>
[]
})
})
add_object_to_group
(
group_uuid
,
'Pods'
)
add_object_to_group
(
group_uuid
,
'Pods'
)
group_uuid
add_copy_header_build_phase
(
name
)
end
end
def
create_in
(
pods_root
)
def
create_in
(
pods_root
)
...
@@ -113,8 +113,28 @@ module Pod
...
@@ -113,8 +113,28 @@ module Pod
}))
}))
end
end
def
add_file_to_list
(
isa
,
build_file_uuid
)
def
add_copy_header_build_phase
(
name
)
object_uuid
,
object
=
objects_by_isa
(
isa
).
first
phase_uuid
=
add_object
({
"isa"
=>
"PBXCopyFilesBuildPhase"
,
"buildActionMask"
=>
"2147483647"
,
"dstPath"
=>
"$(PUBLIC_HEADERS_FOLDER_PATH)/
#{
name
}
"
,
"dstSubfolderSpec"
=>
"16"
,
"files"
=>
[],
"name"
=>
"Copy
#{
name
}
Public Headers"
,
"runOnlyForDeploymentPostprocessing"
=>
"0"
,
})
object_uuid
,
object
=
objects_by_isa
(
'PBXNativeTarget'
).
first
object
[
'buildPhases'
]
<<
phase_uuid
end
def
add_file_to_list
(
isa
,
build_file_uuid
,
name
=
nil
)
isa_objects
=
objects_by_isa
(
isa
)
object_uuid
,
object
=
isa_objects
.
first
if
name
!=
nil
object_uuid
,
object
=
isa_objects
.
select
{
|
_
,
object
|
object
[
'name'
].
include?
name
}.
first
end
object
[
'files'
]
<<
build_file_uuid
object
[
'files'
]
<<
build_file_uuid
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