diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d2dcf7f --- /dev/null +++ b/.gitignore @@ -0,0 +1,32 @@ +# OS X +.DS_Store + +# Xcode +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +profile +*.moved-aside +DerivedData +*.hmap +*.ipa + +# Bundler +.bundle + +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control +# +# Note: if you ignore the Pods directory, make sure to uncomment +# `pod install` in .travis.yml +# +# Pods/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8676fc7 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +# reference: http://www.objc.io/issue-6/travis-ci.html + +language: objective-c +# before_install: cd Example && pod install && cd - +script: +- xctool test -workspace Example/BUMPMessanger-Core.xcworkspace -scheme BUMPMessanger-Core -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO diff --git a/BUMPMessanger-Core.podspec b/BUMPMessanger-Core.podspec new file mode 100644 index 0000000..6941988 --- /dev/null +++ b/BUMPMessanger-Core.podspec @@ -0,0 +1,38 @@ +# +# Be sure to run `pod lib lint BUMPMessanger-Core.podspec' to ensure this is a +# valid spec and remove all comments before submitting the spec. +# +# Any lines starting with a # are optional, but encouraged +# +# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html +# + +Pod::Spec.new do |s| + s.name = "BUMPMessanger-Core" + s.version = "0.1.0" + s.summary = "A short description of BUMPMessanger-Core." + s.description = <<-DESC + An optional longer description of BUMPMessanger-Core + + * Markdown format. + * Don't worry about the indent, we strip it! + DESC + s.homepage = "https://github.com//BUMPMessanger-Core" + # s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2" + s.license = 'MIT' + s.author = { "Anton Ulyanov" => "rumburu@gmail.com" } + s.source = { :git => "https://github.com//BUMPMessanger-Core.git", :tag => s.version.to_s } + # s.social_media_url = 'https://twitter.com/' + + s.platform = :ios, '7.0' + s.requires_arc = true + + s.source_files = 'Pod/Classes' + s.resource_bundles = { + 'BUMPMessanger-Core' => ['Pod/Assets/*.png'] + } + + # s.public_header_files = 'Pod/Classes/**/*.h' + # s.frameworks = 'UIKit', 'MapKit' + # s.dependency 'AFNetworking', '~> 2.3' +end diff --git a/Example/BUMPMessanger-Core.xcodeproj/project.pbxproj b/Example/BUMPMessanger-Core.xcodeproj/project.pbxproj new file mode 100644 index 0000000..c7942e2 --- /dev/null +++ b/Example/BUMPMessanger-Core.xcodeproj/project.pbxproj @@ -0,0 +1,919 @@ + + + + + archiveVersion + 1 + classes + + objectVersion + 46 + objects + + 2172AE651D0231ACF98C6EBF + + includeInIndex + 1 + isa + PBXFileReference + name + BUMPMessanger-Core.podspec + path + ../BUMPMessanger-Core.podspec + sourceTree + <group> + + 6003F581195388D10070C39A + + children + + 60FF7A9C1954A5C5007DD14C + 6003F5B5195388D20070C39A + 6003F58C195388D20070C39A + 6003F58B195388D20070C39A + + isa + PBXGroup + sourceTree + <group> + + 6003F582195388D10070C39A + + attributes + + CLASSPREFIX + BM + LastUpgradeCheck + 0510 + ORGANIZATIONNAME + Anton Ulyanov + TargetAttributes + + 6003F5AD195388D20070C39A + + TestTargetID + 6003F589195388D20070C39A + + + + buildConfigurationList + 6003F585195388D10070C39A + compatibilityVersion + Xcode 3.2 + developmentRegion + English + hasScannedForEncodings + 0 + isa + PBXProject + knownRegions + + en + Base + + mainGroup + 6003F581195388D10070C39A + productRefGroup + 6003F58B195388D20070C39A + projectDirPath + + projectReferences + + projectRoot + + targets + + 6003F5AD195388D20070C39A + + + 6003F585195388D10070C39A + + buildConfigurations + + 6003F5BD195388D20070C39A + 6003F5BE195388D20070C39A + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + 6003F58A195388D20070C39A + + explicitFileType + wrapper.application + includeInIndex + 0 + isa + PBXFileReference + path + BUMPMessanger-Core.app + sourceTree + BUILT_PRODUCTS_DIR + + 6003F58B195388D20070C39A + + children + + 6003F58A195388D20070C39A + 6003F5AE195388D20070C39A + + isa + PBXGroup + name + Products + sourceTree + <group> + + 6003F58C195388D20070C39A + + children + + 6003F58D195388D20070C39A + 6003F58F195388D20070C39A + 6003F591195388D20070C39A + 6003F5AF195388D20070C39A + + isa + PBXGroup + name + Frameworks + sourceTree + <group> + + 6003F58D195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + wrapper.framework + name + Foundation.framework + path + System/Library/Frameworks/Foundation.framework + sourceTree + SDKROOT + + 6003F58E195388D20070C39A + + fileRef + 6003F58D195388D20070C39A + isa + PBXBuildFile + + 6003F58F195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + wrapper.framework + name + CoreGraphics.framework + path + System/Library/Frameworks/CoreGraphics.framework + sourceTree + SDKROOT + + 6003F590195388D20070C39A + + fileRef + 6003F58F195388D20070C39A + isa + PBXBuildFile + + 6003F591195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + wrapper.framework + name + UIKit.framework + path + System/Library/Frameworks/UIKit.framework + sourceTree + SDKROOT + + 6003F592195388D20070C39A + + fileRef + 6003F591195388D20070C39A + isa + PBXBuildFile + + 6003F595195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + text.plist.xml + path + BUMPMessanger-Core-Info.plist + sourceTree + <group> + + 6003F596195388D20070C39A + + children + + 6003F597195388D20070C39A + + isa + PBXVariantGroup + name + InfoPlist.strings + sourceTree + <group> + + 6003F597195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + text.plist.strings + name + en + path + en.lproj/InfoPlist.strings + sourceTree + <group> + + 6003F598195388D20070C39A + + fileRef + 6003F596195388D20070C39A + isa + PBXBuildFile + + 6003F599195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + path + main.m + sourceTree + <group> + + 6003F59A195388D20070C39A + + fileRef + 6003F599195388D20070C39A + isa + PBXBuildFile + + 6003F59B195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + path + BUMPMessanger-Core-Prefix.pch + sourceTree + <group> + + 6003F59D195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + path + BMAppDelegate.m + sourceTree + <group> + + 6003F59E195388D20070C39A + + fileRef + 6003F59D195388D20070C39A + isa + PBXBuildFile + + 6003F59F195388D20070C39A + + children + + 6003F5A0195388D20070C39A + + isa + PBXVariantGroup + name + Main_iPhone.storyboard + sourceTree + <group> + + 6003F5A0195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + file.storyboard + name + Base + path + Base.lproj/Main_iPhone.storyboard + sourceTree + <group> + + 6003F5A1195388D20070C39A + + fileRef + 6003F59F195388D20070C39A + isa + PBXBuildFile + + 6003F5A2195388D20070C39A + + children + + 6003F5A3195388D20070C39A + + isa + PBXVariantGroup + name + Main_iPad.storyboard + sourceTree + <group> + + 6003F5A3195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + file.storyboard + name + Base + path + Base.lproj/Main_iPad.storyboard + sourceTree + <group> + + 6003F5A4195388D20070C39A + + fileRef + 6003F5A2195388D20070C39A + isa + PBXBuildFile + + 6003F5A6195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + path + BMViewController.m + sourceTree + <group> + + 6003F5A7195388D20070C39A + + fileRef + 6003F5A6195388D20070C39A + isa + PBXBuildFile + + 6003F5A8195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + folder.assetcatalog + path + Images.xcassets + sourceTree + <group> + + 6003F5A9195388D20070C39A + + fileRef + 6003F5A8195388D20070C39A + isa + PBXBuildFile + + 6003F5AA195388D20070C39A + + buildActionMask + 2147483647 + files + + 6003F5BC195388D20070C39A + + isa + PBXSourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 6003F5AB195388D20070C39A + + buildActionMask + 2147483647 + files + + 6003F5B0195388D20070C39A + 6003F5B2195388D20070C39A + 6003F5B1195388D20070C39A + + isa + PBXFrameworksBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 6003F5AC195388D20070C39A + + buildActionMask + 2147483647 + files + + 6003F5BA195388D20070C39A + + isa + PBXResourcesBuildPhase + runOnlyForDeploymentPostprocessing + 0 + + 6003F5AD195388D20070C39A + + buildConfigurationList + 6003F5C2195388D20070C39A + buildPhases + + 6003F5AA195388D20070C39A + 6003F5AB195388D20070C39A + 6003F5AC195388D20070C39A + + buildRules + + dependencies + + isa + PBXNativeTarget + name + BUMPMessanger-Core + productName + BUMPMessanger-CoreTests + productReference + 6003F5AE195388D20070C39A + productType + com.apple.product-type.bundle.unit-test + + 6003F5AE195388D20070C39A + + explicitFileType + wrapper.cfbundle + includeInIndex + 0 + isa + PBXFileReference + path + Tests.xctest + sourceTree + BUILT_PRODUCTS_DIR + + 6003F5AF195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + wrapper.framework + name + XCTest.framework + path + Library/Frameworks/XCTest.framework + sourceTree + DEVELOPER_DIR + + 6003F5B0195388D20070C39A + + fileRef + 6003F5AF195388D20070C39A + isa + PBXBuildFile + + 6003F5B1195388D20070C39A + + fileRef + 6003F58D195388D20070C39A + isa + PBXBuildFile + + 6003F5B2195388D20070C39A + + fileRef + 6003F591195388D20070C39A + isa + PBXBuildFile + + 6003F5B5195388D20070C39A + + children + + 6003F5BB195388D20070C39A + 6003F5B6195388D20070C39A + + isa + PBXGroup + path + Tests + sourceTree + <group> + + 6003F5B6195388D20070C39A + + children + + 6003F5B7195388D20070C39A + 6003F5B8195388D20070C39A + 606FC2411953D9B200FFA9A0 + + isa + PBXGroup + name + Supporting Files + sourceTree + <group> + + 6003F5B7195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + text.plist.xml + path + Tests-Info.plist + sourceTree + <group> + + 6003F5B8195388D20070C39A + + children + + 6003F5B9195388D20070C39A + + isa + PBXVariantGroup + name + InfoPlist.strings + sourceTree + <group> + + 6003F5B9195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + text.plist.strings + name + en + path + en.lproj/InfoPlist.strings + sourceTree + <group> + + 6003F5BA195388D20070C39A + + fileRef + 6003F5B8195388D20070C39A + isa + PBXBuildFile + + 6003F5BB195388D20070C39A + + isa + PBXFileReference + lastKnownFileType + sourcecode.c.objc + path + Tests.m + sourceTree + <group> + + 6003F5BC195388D20070C39A + + fileRef + 6003F5BB195388D20070C39A + isa + PBXBuildFile + + 6003F5BD195388D20070C39A + + 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__DUPLICATE_METHOD_MATCH + YES + CODE_SIGN_IDENTITY[sdk=iphoneos*] + iPhone Developer + COPY_PHASE_STRIP + NO + GCC_C_LANGUAGE_STANDARD + gnu99 + GCC_DYNAMIC_NO_PIC + NO + GCC_OPTIMIZATION_LEVEL + 0 + GCC_PREPROCESSOR_DEFINITIONS + + DEBUG=1 + $(inherited) + + GCC_SYMBOLS_PRIVATE_EXTERN + NO + 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 + 7.1 + ONLY_ACTIVE_ARCH + YES + SDKROOT + iphoneos + TARGETED_DEVICE_FAMILY + 1,2 + + isa + XCBuildConfiguration + name + Debug + + 6003F5BE195388D20070C39A + + 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__DUPLICATE_METHOD_MATCH + YES + CODE_SIGN_IDENTITY[sdk=iphoneos*] + iPhone Developer + COPY_PHASE_STRIP + YES + ENABLE_NS_ASSERTIONS + NO + GCC_C_LANGUAGE_STANDARD + gnu99 + 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 + 7.1 + SDKROOT + iphoneos + TARGETED_DEVICE_FAMILY + 1,2 + VALIDATE_PRODUCT + YES + + isa + XCBuildConfiguration + name + Release + + 6003F5C0195388D20070C39A + + buildSettings + + ASSETCATALOG_COMPILER_APPICON_NAME + AppIcon + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME + LaunchImage + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + BUMPMessanger-Core/BUMPMessanger-Core-Prefix.pch + INFOPLIST_FILE + BUMPMessanger-Core/BUMPMessanger-Core-Info.plist + PRODUCT_NAME + $(TARGET_NAME) + WRAPPER_EXTENSION + app + + isa + XCBuildConfiguration + name + Debug + + 6003F5C1195388D20070C39A + + buildSettings + + ASSETCATALOG_COMPILER_APPICON_NAME + AppIcon + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME + LaunchImage + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + BUMPMessanger-Core/BUMPMessanger-Core-Prefix.pch + INFOPLIST_FILE + BUMPMessanger-Core/BUMPMessanger-Core-Info.plist + PRODUCT_NAME + $(TARGET_NAME) + WRAPPER_EXTENSION + app + + isa + XCBuildConfiguration + name + Release + + 6003F5C2195388D20070C39A + + buildConfigurations + + 6003F5C3195388D20070C39A + 6003F5C4195388D20070C39A + + defaultConfigurationIsVisible + 0 + defaultConfigurationName + Release + isa + XCConfigurationList + + 6003F5C3195388D20070C39A + + buildSettings + + FRAMEWORK_SEARCH_PATHS + + $(SDKROOT)/Developer/Library/Frameworks + $(inherited) + $(DEVELOPER_FRAMEWORKS_DIR) + + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + Tests/Tests-Prefix.pch + GCC_PREPROCESSOR_DEFINITIONS + + DEBUG=1 + $(inherited) + + INFOPLIST_FILE + Tests/Tests-Info.plist + PRODUCT_NAME + $(TARGET_NAME) + TEST_HOST + $(BUNDLE_LOADER) + WRAPPER_EXTENSION + xctest + + isa + XCBuildConfiguration + name + Debug + + 6003F5C4195388D20070C39A + + buildSettings + + FRAMEWORK_SEARCH_PATHS + + $(SDKROOT)/Developer/Library/Frameworks + $(inherited) + $(DEVELOPER_FRAMEWORKS_DIR) + + GCC_PRECOMPILE_PREFIX_HEADER + YES + GCC_PREFIX_HEADER + Tests/Tests-Prefix.pch + INFOPLIST_FILE + Tests/Tests-Info.plist + PRODUCT_NAME + $(TARGET_NAME) + TEST_HOST + $(BUNDLE_LOADER) + WRAPPER_EXTENSION + xctest + + isa + XCBuildConfiguration + name + Release + + 606FC2411953D9B200FFA9A0 + + isa + PBXFileReference + lastKnownFileType + sourcecode.c.h + path + Tests-Prefix.pch + sourceTree + <group> + + 60FF7A9C1954A5C5007DD14C + + children + + 2172AE651D0231ACF98C6EBF + AA792295505177623E1DF899 + D8C7E121C02F09BA45B6E856 + + isa + PBXGroup + name + Podspec Metadata + sourceTree + <group> + + AA792295505177623E1DF899 + + includeInIndex + 1 + isa + PBXFileReference + name + README.md + path + ../README.md + sourceTree + <group> + + D8C7E121C02F09BA45B6E856 + + includeInIndex + 1 + isa + PBXFileReference + name + LICENSE + path + ../LICENSE + sourceTree + <group> + + + rootObject + 6003F582195388D10070C39A + + diff --git a/Example/BUMPMessanger-Core.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/BUMPMessanger-Core.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..83bd2b6 --- /dev/null +++ b/Example/BUMPMessanger-Core.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Example/BUMPMessanger-Core.xcodeproj/xcshareddata/xcschemes/BUMPMessanger-Core.xcscheme b/Example/BUMPMessanger-Core.xcodeproj/xcshareddata/xcschemes/BUMPMessanger-Core.xcscheme new file mode 100644 index 0000000..14a3f03 --- /dev/null +++ b/Example/BUMPMessanger-Core.xcodeproj/xcshareddata/xcschemes/BUMPMessanger-Core.xcscheme @@ -0,0 +1,96 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/BUMPMessanger-Core/BUMPMessanger-Core-Info.plist b/Example/BUMPMessanger-Core/BUMPMessanger-Core-Info.plist new file mode 100644 index 0000000..b72f059 --- /dev/null +++ b/Example/BUMPMessanger-Core/BUMPMessanger-Core-Info.plist @@ -0,0 +1,49 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIMainStoryboardFile + Main_iPhone + UIMainStoryboardFile~ipad + Main_iPad + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Example/BUMPMessanger-Core/BUMPMessanger-Core-Prefix.pch b/Example/BUMPMessanger-Core/BUMPMessanger-Core-Prefix.pch new file mode 100644 index 0000000..82a2bb4 --- /dev/null +++ b/Example/BUMPMessanger-Core/BUMPMessanger-Core-Prefix.pch @@ -0,0 +1,16 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#import + +#ifndef __IPHONE_5_0 +#warning "This project uses features only available in iOS SDK 5.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/Example/BUMPMessanger-Core/Base.lproj/Main_iPad.storyboard b/Example/BUMPMessanger-Core/Base.lproj/Main_iPad.storyboard new file mode 100644 index 0000000..c1a704a --- /dev/null +++ b/Example/BUMPMessanger-Core/Base.lproj/Main_iPad.storyboard @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/BUMPMessanger-Core/Base.lproj/Main_iPhone.storyboard b/Example/BUMPMessanger-Core/Base.lproj/Main_iPhone.storyboard new file mode 100644 index 0000000..df4b51a --- /dev/null +++ b/Example/BUMPMessanger-Core/Base.lproj/Main_iPhone.storyboard @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/BUMPMessanger-Core/CPDAppDelegate.h b/Example/BUMPMessanger-Core/CPDAppDelegate.h new file mode 100644 index 0000000..af86938 --- /dev/null +++ b/Example/BUMPMessanger-Core/CPDAppDelegate.h @@ -0,0 +1,15 @@ +// +// BMAppDelegate.h +// BUMPMessanger-Core +// +// Created by CocoaPods on 11/19/2014. +// Copyright (c) 2014 Anton Ulyanov. All rights reserved. +// + +#import + +@interface BMAppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/Example/BUMPMessanger-Core/CPDAppDelegate.m b/Example/BUMPMessanger-Core/CPDAppDelegate.m new file mode 100644 index 0000000..9d70e45 --- /dev/null +++ b/Example/BUMPMessanger-Core/CPDAppDelegate.m @@ -0,0 +1,46 @@ +// +// BMAppDelegate.m +// BUMPMessanger-Core +// +// Created by CocoaPods on 11/19/2014. +// Copyright (c) 2014 Anton Ulyanov. All rights reserved. +// + +#import "BMAppDelegate.h" + +@implementation BMAppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + // Override point for customization after application launch. + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/Example/BUMPMessanger-Core/CPDViewController.h b/Example/BUMPMessanger-Core/CPDViewController.h new file mode 100644 index 0000000..0c491a3 --- /dev/null +++ b/Example/BUMPMessanger-Core/CPDViewController.h @@ -0,0 +1,13 @@ +// +// BMViewController.h +// BUMPMessanger-Core +// +// Created by Anton Ulyanov on 11/19/2014. +// Copyright (c) 2014 Anton Ulyanov. All rights reserved. +// + +#import + +@interface BMViewController : UIViewController + +@end diff --git a/Example/BUMPMessanger-Core/CPDViewController.m b/Example/BUMPMessanger-Core/CPDViewController.m new file mode 100644 index 0000000..f4d603f --- /dev/null +++ b/Example/BUMPMessanger-Core/CPDViewController.m @@ -0,0 +1,29 @@ +// +// BMViewController.m +// BUMPMessanger-Core +// +// Created by Anton Ulyanov on 11/19/2014. +// Copyright (c) 2014 Anton Ulyanov. All rights reserved. +// + +#import "BMViewController.h" + +@interface BMViewController () + +@end + +@implementation BMViewController + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/Example/BUMPMessanger-Core/Images.xcassets/AppIcon.appiconset/Contents.json b/Example/BUMPMessanger-Core/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..f697f61 --- /dev/null +++ b/Example/BUMPMessanger-Core/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,53 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/Example/BUMPMessanger-Core/Images.xcassets/LaunchImage.launchimage/Contents.json b/Example/BUMPMessanger-Core/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..4458b40 --- /dev/null +++ b/Example/BUMPMessanger-Core/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,51 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "iphone", + "subtype" : "retina4", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "1x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "1x" + }, + { + "orientation" : "portrait", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "ipad", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/Example/BUMPMessanger-Core/en.lproj/InfoPlist.strings b/Example/BUMPMessanger-Core/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/Example/BUMPMessanger-Core/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/Example/BUMPMessanger-Core/main.m b/Example/BUMPMessanger-Core/main.m new file mode 100644 index 0000000..f86df88 --- /dev/null +++ b/Example/BUMPMessanger-Core/main.m @@ -0,0 +1,18 @@ +// +// main.m +// BUMPMessanger-Core +// +// Created by Anton Ulyanov on 11/19/2014. +// Copyright (c) 2014 Anton Ulyanov. All rights reserved. +// + +#import + +#import "BMAppDelegate.h" + +int main(int argc, char * argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([BMAppDelegate class])); + } +} diff --git a/Example/Podfile b/Example/Podfile new file mode 100644 index 0000000..5909406 --- /dev/null +++ b/Example/Podfile @@ -0,0 +1,9 @@ +source 'https://github.com/CocoaPods/Specs.git' + + +target 'BUMPMessanger-Core', :exclusive => true do + pod "BUMPMessanger-Core", :path => "../" + + pod 'Specta', '~> 0.2.1' + pod 'Expecta' +end diff --git a/Example/Tests/Tests-Info.plist b/Example/Tests/Tests-Info.plist new file mode 100644 index 0000000..41520ed --- /dev/null +++ b/Example/Tests/Tests-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/Example/Tests/Tests-Prefix.pch b/Example/Tests/Tests-Prefix.pch new file mode 100644 index 0000000..e5cc1cd --- /dev/null +++ b/Example/Tests/Tests-Prefix.pch @@ -0,0 +1,13 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every test case source file. +// + +#ifdef __OBJC__ + + #define EXP_SHORTHAND + #import + #import + +#endif diff --git a/Example/Tests/Tests.m b/Example/Tests/Tests.m new file mode 100644 index 0000000..18c081e --- /dev/null +++ b/Example/Tests/Tests.m @@ -0,0 +1,43 @@ +// +// BUMPMessanger-CoreTests.m +// BUMPMessanger-CoreTests +// +// Created by Anton Ulyanov on 11/19/2014. +// Copyright (c) 2014 Anton Ulyanov. All rights reserved. +// + +SpecBegin(InitialSpecs) + +describe(@"these will fail", ^{ + + it(@"can do maths", ^{ + expect(1).to.equal(2); + }); + + it(@"can read", ^{ + expect(@"number").to.equal(@"string"); + }); + + it(@"will wait and fail", ^AsyncBlock { + + }); +}); + +describe(@"these will pass", ^{ + + it(@"can do maths", ^{ + expect(1).beLessThan(23); + }); + + it(@"can read", ^{ + expect(@"team").toNot.contain(@"I"); + }); + + it(@"will wait and succeed", ^AsyncBlock { + dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{ + done(); + }); + }); +}); + +SpecEnd diff --git a/Example/Tests/en.lproj/InfoPlist.strings b/Example/Tests/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/Example/Tests/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..68f87fe --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2014 Anton Ulyanov + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/Pod/Assets/.gitkeep b/Pod/Assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/Pod/Classes/.gitkeep b/Pod/Classes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md new file mode 100644 index 0000000..b5ef6bc --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# BUMPMessanger-Core + +[![CI Status](http://img.shields.io/travis/Anton Ulyanov/BUMPMessanger-Core.svg?style=flat)](https://travis-ci.org/Anton Ulyanov/BUMPMessanger-Core) +[![Version](https://img.shields.io/cocoapods/v/BUMPMessanger-Core.svg?style=flat)](http://cocoadocs.org/docsets/BUMPMessanger-Core) +[![License](https://img.shields.io/cocoapods/l/BUMPMessanger-Core.svg?style=flat)](http://cocoadocs.org/docsets/BUMPMessanger-Core) +[![Platform](https://img.shields.io/cocoapods/p/BUMPMessanger-Core.svg?style=flat)](http://cocoadocs.org/docsets/BUMPMessanger-Core) + +## Usage + +To run the example project, clone the repo, and run `pod install` from the Example directory first. + +## Requirements + +## Installation + +BUMPMessanger-Core is available through [CocoaPods](http://cocoapods.org). To install +it, simply add the following line to your Podfile: + + pod "BUMPMessanger-Core" + +## Author + +Anton Ulyanov, rumburu@gmail.com + +## License + +BUMPMessanger-Core is available under the MIT license. See the LICENSE file for more info. +