Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
Tom Baranes committed Feb 18, 2016
0 parents commit 22f0ffa
Showing 21 changed files with 3,477 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Xcode
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
*.hmap
*.xccheckout
*.xcworkspace
*.lock

#CocoaPods
Pods

#Seeds
Seeds

#OSX ReleaseAutomation
scripts/osx_build/*
31 changes: 31 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
language: objective-c
osx_image: xcode7.2
notifications:
email: false
env:
global:
- PROJECT=Demo/AdaptiveSpaceItem Demo.xcodeproj
- OSX_SCHEME="AdaptiveSpaceItem Demo"
- OSX_SDK=macosx10.11
matrix:
- DESTINATION="arch=x86_64" SCHEME="$OSX_SCHEME" SDK="$OSX_SDK" RUN_TESTS="NO" BUILD_EXAMPLE="YES" POD_LINT="NO"

script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks

# Build Framework in Debug and Run Tests if specified
- if [ $RUN_TESTS == "YES" ]; then
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO test | xcpretty -c;
fi

# Build Example in Debug if specified
- if [ $BUILD_EXAMPLE == "YES" ]; then
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO build | xcpretty -c;
fi

# Run `pod lib lint` if specified
- if [ $POD_LINT == "YES" ]; then
pod lib lint;
fi
23 changes: 23 additions & 0 deletions AdaptiveSpaceItem.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Pod::Spec.new do |s|

# ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

s.name = "AdaptiveSpaceItem"
s.version = "1.0"
s.summary = "A NSToolbarItem which will create space to center the next toolbar item"
s.description = "A NSToolbarItem sublclass which will create space to center the next toolbar item"
s.homepage = "https://github.com/recisio/AdaptiveSpaceItem"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "Recisio" => "[email protected]" }
s.source = { :git => "https://github.com/recisio/AdaptiveSpaceItem.git", :tag => "#{s.version}" }

# ――― Spec tech ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

s.ios.deployment_target = '8.0'
s.tvos.deployment_target = '9.0'
s.osx.deployment_target = '10.10'

s.requires_arc = true
s.source_files = 'Source/*.swift'

end
276 changes: 276 additions & 0 deletions AdaptiveSpaceItem/AdaptiveSpaceItem.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,276 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
E24C8F851C761258000EEF6B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E24C8F841C761258000EEF6B /* AppDelegate.swift */; };
E24C8F871C761258000EEF6B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E24C8F861C761258000EEF6B /* Assets.xcassets */; };
E24C8F8A1C761258000EEF6B /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = E24C8F881C761258000EEF6B /* MainMenu.xib */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
E24C8F811C761258000EEF6B /* AdaptiveSpaceItem.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AdaptiveSpaceItem.app; sourceTree = BUILT_PRODUCTS_DIR; };
E24C8F841C761258000EEF6B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
E24C8F861C761258000EEF6B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
E24C8F891C761258000EEF6B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
E24C8F8B1C761258000EEF6B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
E24C8F7E1C761258000EEF6B /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
E24C8F781C761258000EEF6B = {
isa = PBXGroup;
children = (
E24C8F831C761258000EEF6B /* AdaptiveSpaceItem */,
E24C8F821C761258000EEF6B /* Products */,
);
sourceTree = "<group>";
};
E24C8F821C761258000EEF6B /* Products */ = {
isa = PBXGroup;
children = (
E24C8F811C761258000EEF6B /* AdaptiveSpaceItem.app */,
);
name = Products;
sourceTree = "<group>";
};
E24C8F831C761258000EEF6B /* AdaptiveSpaceItem */ = {
isa = PBXGroup;
children = (
E24C8F841C761258000EEF6B /* AppDelegate.swift */,
E24C8F861C761258000EEF6B /* Assets.xcassets */,
E24C8F881C761258000EEF6B /* MainMenu.xib */,
E24C8F8B1C761258000EEF6B /* Info.plist */,
);
path = AdaptiveSpaceItem;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
E24C8F801C761258000EEF6B /* AdaptiveSpaceItem */ = {
isa = PBXNativeTarget;
buildConfigurationList = E24C8F8E1C761258000EEF6B /* Build configuration list for PBXNativeTarget "AdaptiveSpaceItem" */;
buildPhases = (
E24C8F7D1C761258000EEF6B /* Sources */,
E24C8F7E1C761258000EEF6B /* Frameworks */,
E24C8F7F1C761258000EEF6B /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = AdaptiveSpaceItem;
productName = AdaptiveSpaceItem;
productReference = E24C8F811C761258000EEF6B /* AdaptiveSpaceItem.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
E24C8F791C761258000EEF6B /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0720;
LastUpgradeCheck = 0720;
ORGANIZATIONNAME = Recisio;
TargetAttributes = {
E24C8F801C761258000EEF6B = {
CreatedOnToolsVersion = 7.2.1;
};
};
};
buildConfigurationList = E24C8F7C1C761258000EEF6B /* Build configuration list for PBXProject "AdaptiveSpaceItem" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = E24C8F781C761258000EEF6B;
productRefGroup = E24C8F821C761258000EEF6B /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
E24C8F801C761258000EEF6B /* AdaptiveSpaceItem */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
E24C8F7F1C761258000EEF6B /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E24C8F871C761258000EEF6B /* Assets.xcassets in Resources */,
E24C8F8A1C761258000EEF6B /* MainMenu.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
E24C8F7D1C761258000EEF6B /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E24C8F851C761258000EEF6B /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
E24C8F881C761258000EEF6B /* MainMenu.xib */ = {
isa = PBXVariantGroup;
children = (
E24C8F891C761258000EEF6B /* Base */,
);
name = MainMenu.xib;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
E24C8F8C1C761258000EEF6B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.11;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
E24C8F8D1C761258000EEF6B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.11;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
};
name = Release;
};
E24C8F8F1C761258000EEF6B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = AdaptiveSpaceItem/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.recisio.AdaptiveSpaceItem;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
E24C8F901C761258000EEF6B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = AdaptiveSpaceItem/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.recisio.AdaptiveSpaceItem;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
E24C8F7C1C761258000EEF6B /* Build configuration list for PBXProject "AdaptiveSpaceItem" */ = {
isa = XCConfigurationList;
buildConfigurations = (
E24C8F8C1C761258000EEF6B /* Debug */,
E24C8F8D1C761258000EEF6B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
E24C8F8E1C761258000EEF6B /* Build configuration list for PBXNativeTarget "AdaptiveSpaceItem" */ = {
isa = XCConfigurationList;
buildConfigurations = (
E24C8F8F1C761258000EEF6B /* Debug */,
E24C8F901C761258000EEF6B /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = E24C8F791C761258000EEF6B /* Project object */;
}
27 changes: 27 additions & 0 deletions AdaptiveSpaceItem/AdaptiveSpaceItem/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// AppDelegate.swift
// AdaptiveSpaceItem
//
// Created by Tom Baranes on 18/02/16.
// Copyright © 2016 Recisio. All rights reserved.
//

import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {

@IBOutlet weak var window: NSWindow!


func applicationDidFinishLaunching(aNotification: NSNotification) {
// Insert code here to initialize your application
}

func applicationWillTerminate(aNotification: NSNotification) {
// Insert code here to tear down your application
}


}

Loading

0 comments on commit 22f0ffa

Please sign in to comment.