From d36a4d063c4a37640cc37f6fcf3fa53eea2547dd Mon Sep 17 00:00:00 2001 From: Diogo Guimaraes Date: Wed, 30 Mar 2016 14:39:11 +0100 Subject: [PATCH 1/2] Add carthage support --- Onboard Framework/Info.plist | 26 ++ Onboard Framework/Onboard.h | 10 + .../Onboard.xcodeproj/project.pbxproj | 306 ++++++++++++++++++ .../xcshareddata/xcschemes/Onboard.xcscheme | 80 +++++ 4 files changed, 422 insertions(+) create mode 100644 Onboard Framework/Info.plist create mode 100644 Onboard Framework/Onboard.h create mode 100644 Onboard Framework/Onboard.xcodeproj/project.pbxproj create mode 100644 Onboard Framework/Onboard.xcodeproj/xcshareddata/xcschemes/Onboard.xcscheme diff --git a/Onboard Framework/Info.plist b/Onboard Framework/Info.plist new file mode 100644 index 0000000..d3de8ee --- /dev/null +++ b/Onboard Framework/Info.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSPrincipalClass + + + diff --git a/Onboard Framework/Onboard.h b/Onboard Framework/Onboard.h new file mode 100644 index 0000000..d7324a0 --- /dev/null +++ b/Onboard Framework/Onboard.h @@ -0,0 +1,10 @@ +#import +#import "OnboardingContentViewController.h" +#import "OnboardingContentViewController_Private.h" +#import "OnboardingViewController.h" + +//! Project version number for Onboard. +FOUNDATION_EXPORT double OnboardVersionNumber; + +//! Project version string for Onboard. +FOUNDATION_EXPORT const unsigned char OnboardVersionString[]; diff --git a/Onboard Framework/Onboard.xcodeproj/project.pbxproj b/Onboard Framework/Onboard.xcodeproj/project.pbxproj new file mode 100644 index 0000000..d9711f5 --- /dev/null +++ b/Onboard Framework/Onboard.xcodeproj/project.pbxproj @@ -0,0 +1,306 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + BC5388B91CAC0D4800D57B29 /* OnboardingContentViewController_Private.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5388B41CAC0D4800D57B29 /* OnboardingContentViewController_Private.h */; settings = {ATTRIBUTES = (Public, ); }; }; + BC5388BA1CAC0D4800D57B29 /* OnboardingContentViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5388B51CAC0D4800D57B29 /* OnboardingContentViewController.h */; settings = {ATTRIBUTES = (Public, ); }; }; + BC5388BB1CAC0D4800D57B29 /* OnboardingContentViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BC5388B61CAC0D4800D57B29 /* OnboardingContentViewController.m */; }; + BC5388BC1CAC0D4800D57B29 /* OnboardingViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5388B71CAC0D4800D57B29 /* OnboardingViewController.h */; settings = {ATTRIBUTES = (Public, ); }; }; + BC5388BD1CAC0D4800D57B29 /* OnboardingViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BC5388B81CAC0D4800D57B29 /* OnboardingViewController.m */; }; + BC5388C11CAC0DED00D57B29 /* Onboard.h in Headers */ = {isa = PBXBuildFile; fileRef = BC5388C01CAC0DED00D57B29 /* Onboard.h */; settings = {ATTRIBUTES = (Public, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + BC2029201CAC0BC9006EB1F3 /* Onboard.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Onboard.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + BC5388B21CAC0C1A00D57B29 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + BC5388B41CAC0D4800D57B29 /* OnboardingContentViewController_Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OnboardingContentViewController_Private.h; path = ../../Source/OnboardingContentViewController_Private.h; sourceTree = ""; }; + BC5388B51CAC0D4800D57B29 /* OnboardingContentViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OnboardingContentViewController.h; path = ../../Source/OnboardingContentViewController.h; sourceTree = ""; }; + BC5388B61CAC0D4800D57B29 /* OnboardingContentViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OnboardingContentViewController.m; path = ../../Source/OnboardingContentViewController.m; sourceTree = ""; }; + BC5388B71CAC0D4800D57B29 /* OnboardingViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OnboardingViewController.h; path = ../../Source/OnboardingViewController.h; sourceTree = ""; }; + BC5388B81CAC0D4800D57B29 /* OnboardingViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OnboardingViewController.m; path = ../../Source/OnboardingViewController.m; sourceTree = ""; }; + BC5388C01CAC0DED00D57B29 /* Onboard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Onboard.h; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + BC20291C1CAC0BC9006EB1F3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + BC2029161CAC0BC9006EB1F3 = { + isa = PBXGroup; + children = ( + BC5388C01CAC0DED00D57B29 /* Onboard.h */, + BC5388B21CAC0C1A00D57B29 /* Info.plist */, + BC5388A71CAC0C1100D57B29 /* Source */, + BC2029211CAC0BC9006EB1F3 /* Products */, + ); + sourceTree = ""; + }; + BC2029211CAC0BC9006EB1F3 /* Products */ = { + isa = PBXGroup; + children = ( + BC2029201CAC0BC9006EB1F3 /* Onboard.framework */, + ); + name = Products; + sourceTree = ""; + }; + BC5388A71CAC0C1100D57B29 /* Source */ = { + isa = PBXGroup; + children = ( + BC5388B41CAC0D4800D57B29 /* OnboardingContentViewController_Private.h */, + BC5388B51CAC0D4800D57B29 /* OnboardingContentViewController.h */, + BC5388B61CAC0D4800D57B29 /* OnboardingContentViewController.m */, + BC5388B71CAC0D4800D57B29 /* OnboardingViewController.h */, + BC5388B81CAC0D4800D57B29 /* OnboardingViewController.m */, + ); + path = Source; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + BC20291D1CAC0BC9006EB1F3 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + BC5388C11CAC0DED00D57B29 /* Onboard.h in Headers */, + BC5388BA1CAC0D4800D57B29 /* OnboardingContentViewController.h in Headers */, + BC5388B91CAC0D4800D57B29 /* OnboardingContentViewController_Private.h in Headers */, + BC5388BC1CAC0D4800D57B29 /* OnboardingViewController.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + BC20291F1CAC0BC9006EB1F3 /* Onboard */ = { + isa = PBXNativeTarget; + buildConfigurationList = BC2029281CAC0BC9006EB1F3 /* Build configuration list for PBXNativeTarget "Onboard" */; + buildPhases = ( + BC20291B1CAC0BC9006EB1F3 /* Sources */, + BC20291C1CAC0BC9006EB1F3 /* Frameworks */, + BC20291D1CAC0BC9006EB1F3 /* Headers */, + BC20291E1CAC0BC9006EB1F3 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Onboard; + productName = Onboard; + productReference = BC2029201CAC0BC9006EB1F3 /* Onboard.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + BC2029171CAC0BC9006EB1F3 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0730; + ORGANIZATIONNAME = "Mike Amaral"; + TargetAttributes = { + BC20291F1CAC0BC9006EB1F3 = { + CreatedOnToolsVersion = 7.3; + }; + }; + }; + buildConfigurationList = BC20291A1CAC0BC9006EB1F3 /* Build configuration list for PBXProject "Onboard" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = BC2029161CAC0BC9006EB1F3; + productRefGroup = BC2029211CAC0BC9006EB1F3 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + BC20291F1CAC0BC9006EB1F3 /* Onboard */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + BC20291E1CAC0BC9006EB1F3 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + BC20291B1CAC0BC9006EB1F3 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + BC5388BB1CAC0D4800D57B29 /* OnboardingContentViewController.m in Sources */, + BC5388BD1CAC0D4800D57B29 /* OnboardingViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + BC2029261CAC0BC9006EB1F3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + 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[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + 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; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + BC2029271CAC0BC9006EB1F3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + 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[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + 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; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + BC2029291CAC0BC9006EB1F3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "$(SRCROOT)/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.MikeAmaral.Onboard; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + BC20292A1CAC0BC9006EB1F3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = "$(SRCROOT)/Info.plist"; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.MikeAmaral.Onboard; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + BC20291A1CAC0BC9006EB1F3 /* Build configuration list for PBXProject "Onboard" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BC2029261CAC0BC9006EB1F3 /* Debug */, + BC2029271CAC0BC9006EB1F3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + BC2029281CAC0BC9006EB1F3 /* Build configuration list for PBXNativeTarget "Onboard" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + BC2029291CAC0BC9006EB1F3 /* Debug */, + BC20292A1CAC0BC9006EB1F3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = BC2029171CAC0BC9006EB1F3 /* Project object */; +} diff --git a/Onboard Framework/Onboard.xcodeproj/xcshareddata/xcschemes/Onboard.xcscheme b/Onboard Framework/Onboard.xcodeproj/xcshareddata/xcschemes/Onboard.xcscheme new file mode 100644 index 0000000..8c9e3ac --- /dev/null +++ b/Onboard Framework/Onboard.xcodeproj/xcshareddata/xcschemes/Onboard.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 3241a4e2cdfaead68588dcdeab36c6097db5a236 Mon Sep 17 00:00:00 2001 From: Diogo Guimaraes Date: Wed, 30 Mar 2016 14:56:46 +0100 Subject: [PATCH 2/2] Update readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a504ddb..e1d0822 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ #Onboard [![Build Status](https://travis-ci.org/mamaral/Onboard.svg?branch=master)](https://travis-ci.org/mamaral/Onboard) +[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org) ![Badge w/ Version](https://img.shields.io/cocoapods/v/Onboard.svg) @@ -63,7 +64,7 @@ let onboardingVC = OnboardingViewController(backgroundImage: UIImage(named: "bac let bundle = NSBundle.mainBundle() let moviePath = bundle.pathForResource("yourVid", ofType: "mp4") let movieURL = NSURL(fileURLWithPath: moviePath!) - + let onboardingVC = OnboardingViewController(backgroundVideoURL: movieUrl, contents: [firstPage, secondPage, thirdPage]) ```