Skip to content

Commit

Permalink
Add iOS and OSX Framework project/targets
Browse files Browse the repository at this point in the history
This enables developers to embed Masonry into their apps by simplying dragging and dropping `Masonry.framework` into their project without a strong dependency on CocoaPods. It requires no binary distribution.

By adding this target (and no additional configuration files), we also implcitly add support for [Carthage](https://github.com/Carthage/Carthage), a new Cocoa dependency manager that leverages the power of frameworks to make dependency management easier.
  • Loading branch information
erichoracek committed Apr 8, 2015
1 parent 924b70a commit e3944ba
Show file tree
Hide file tree
Showing 7 changed files with 604 additions and 73 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ before_install:

script:
- xctool -workspace 'Masonry.xcworkspace' -scheme 'Masonry iOS Tests' -configuration Debug -sdk iphonesimulator8.1 clean build test ARCHS=i386 VALID_ARCHS=i386 ONLY_ACTIVE_ARCH=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES
- xctool -workspace 'Masonry.xcworkspace' -scheme 'Masonry iOS' -configuration Debug -sdk iphonesimulator8.1 clean build ARCHS=i386 VALID_ARCHS=i386 ONLY_ACTIVE_ARCH=NO
- xctool -workspace 'Masonry.xcworkspace' -scheme 'Masonry OSX' -configuration Debug clean build

after_success:
- ./script/coveralls.sh
517 changes: 517 additions & 0 deletions Masonry.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?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>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>E430861F-D80D-40F7-BD85-FE97E606F3EA</string>
<key>IDESourceControlProjectName</key>
<string>Masonry</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>6FC4832245A6A8E50F2A782F20A8B58A46BD1FEB</key>
<string>github.com:erichoracek/Masonry.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>Masonry/Masonry.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>6FC4832245A6A8E50F2A782F20A8B58A46BD1FEB</key>
<string>../../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>github.com:erichoracek/Masonry.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>6FC4832245A6A8E50F2A782F20A8B58A46BD1FEB</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>6FC4832245A6A8E50F2A782F20A8B58A46BD1FEB</string>
<key>IDESourceControlWCCName</key>
<string>Masonry</string>
</dict>
</array>
</dict>
</plist>
76 changes: 3 additions & 73 deletions Masonry.xcworkspace/contents.xcworkspacedata

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

26 changes: 26 additions & 0 deletions Masonry/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>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.cloudling.$(PRODUCT_NAME:rfc1034identifier)</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>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
8 changes: 8 additions & 0 deletions Masonry/Masonry.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
// Copyright (c) 2013 cloudling. All rights reserved.
//

#import <Foundation/Foundation.h>

//! Project version number for Masonry.
FOUNDATION_EXPORT double MasonryVersionNumber;

//! Project version string for Masonry.
FOUNDATION_EXPORT const unsigned char MasonryVersionString[];

#import "MASUtilities.h"
#import "View+MASAdditions.h"
#import "View+MASShorthandAdditions.h"
Expand Down

0 comments on commit e3944ba

Please sign in to comment.