Skip to content

Commit 4a96405

Browse files
committed
Preparing ObjectiveKit for release
1 parent 65b9560 commit 4a96405

File tree

7 files changed

+104
-10
lines changed

7 files changed

+104
-10
lines changed

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
osx_image: xcode8
2+
language: objective-c
3+
env:
4+
global:
5+
- LC_CTYPE=en_US.UTF-8
6+
- LANG=en_US.UTF-8
7+
before_install:
8+
- gem install cocoapods --pre
9+
- xcrun simctl list
10+
install: echo "<3"
11+
env:
12+
- MODE=framework
13+
script: ./build.sh $MODE
14+
15+
# whitelist
16+
branches:
17+
only:
18+
- master

ObjectiveKit.podspec

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#
2+
# Be sure to run `pod lib lint PhoneNumberKit.podspec' to ensure this is a
3+
# valid spec before submitting.
4+
#
5+
# Any lines starting with a # are optional, but their use is encouraged
6+
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
7+
#
8+
9+
Pod::Spec.new do |s|
10+
s.name = "ObjectiveKit"
11+
s.version = "0.1"
12+
s.summary = "Swift friendly API for a set of Objective C runtime functions."
13+
14+
# This description is used to generate tags and improve search results.
15+
# * Think: What does it do? Why did you write it? What is the focus?
16+
# * Try to keep it short, snappy and to the point.
17+
# * Write the description between the DESC delimiters below.
18+
# * Finally, don't worry about the indent, CocoaPods strips it!
19+
s.description = <<-DESC
20+
ObjectiveKit provides a Swift friendly API for a set of powerful Objective C runtime functions.
21+
DESC
22+
23+
s.homepage = "https://github.com/marmelroy/ObjectiveKit"
24+
# s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
25+
s.license = 'MIT'
26+
s.author = { "Roy Marmelstein" => "[email protected]" }
27+
s.source = { :git => "https://github.com/marmelroy/ObjectiveKit.git", :tag => s.version.to_s }
28+
s.social_media_url = "http://twitter.com/marmelroy"
29+
30+
s.ios.deployment_target = '8.0'
31+
s.requires_arc = true
32+
33+
s.source_files = "ObjectiveKit"
34+
35+
# s.public_header_files = 'Pod/Classes/**/*.h'
36+
# s.dependency 'AFNetworking', '~> 2.3'
37+
end

ObjectiveKit.xcodeproj/project.pbxproj

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
257257
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
258258
COPY_PHASE_STRIP = NO;
259-
CURRENT_PROJECT_VERSION = 1;
259+
CURRENT_PROJECT_VERSION = 2;
260260
DEBUG_INFORMATION_FORMAT = dwarf;
261261
ENABLE_STRICT_OBJC_MSGSEND = YES;
262262
ENABLE_TESTABILITY = YES;
@@ -274,7 +274,7 @@
274274
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
275275
GCC_WARN_UNUSED_FUNCTION = YES;
276276
GCC_WARN_UNUSED_VARIABLE = YES;
277-
IPHONEOS_DEPLOYMENT_TARGET = 10.1;
277+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
278278
MTL_ENABLE_DEBUG_INFO = YES;
279279
ONLY_ACTIVE_ARCH = YES;
280280
SDKROOT = iphoneos;
@@ -309,7 +309,7 @@
309309
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
310310
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
311311
COPY_PHASE_STRIP = NO;
312-
CURRENT_PROJECT_VERSION = 1;
312+
CURRENT_PROJECT_VERSION = 2;
313313
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
314314
ENABLE_NS_ASSERTIONS = NO;
315315
ENABLE_STRICT_OBJC_MSGSEND = YES;
@@ -321,7 +321,7 @@
321321
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
322322
GCC_WARN_UNUSED_FUNCTION = YES;
323323
GCC_WARN_UNUSED_VARIABLE = YES;
324-
IPHONEOS_DEPLOYMENT_TARGET = 10.1;
324+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
325325
MTL_ENABLE_DEBUG_INFO = NO;
326326
SDKROOT = iphoneos;
327327
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
@@ -340,10 +340,11 @@
340340
DEFINES_MODULE = YES;
341341
DEVELOPMENT_TEAM = 62DRUND7HT;
342342
DYLIB_COMPATIBILITY_VERSION = 1;
343-
DYLIB_CURRENT_VERSION = 1;
343+
DYLIB_CURRENT_VERSION = 2;
344344
DYLIB_INSTALL_NAME_BASE = "@rpath";
345345
INFOPLIST_FILE = ObjectiveKit/Info.plist;
346346
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
347+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
347348
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
348349
PRODUCT_BUNDLE_IDENTIFIER = com.roymarmelstein.ObjectiveKit;
349350
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -361,10 +362,11 @@
361362
DEFINES_MODULE = YES;
362363
DEVELOPMENT_TEAM = 62DRUND7HT;
363364
DYLIB_COMPATIBILITY_VERSION = 1;
364-
DYLIB_CURRENT_VERSION = 1;
365+
DYLIB_CURRENT_VERSION = 2;
365366
DYLIB_INSTALL_NAME_BASE = "@rpath";
366367
INFOPLIST_FILE = ObjectiveKit/Info.plist;
367368
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
369+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
368370
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
369371
PRODUCT_BUNDLE_IDENTIFIER = com.roymarmelstein.ObjectiveKit;
370372
PRODUCT_NAME = "$(TARGET_NAME)";

ObjectiveKit/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0</string>
18+
<string>0.1</string>
1919
<key>CFBundleVersion</key>
20-
<string>$(CURRENT_PROJECT_VERSION)</string>
20+
<string>2</string>
2121
<key>NSPrincipalClass</key>
2222
<string></string>
2323
</dict>

ObjectiveKitTests/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.0</string>
18+
<string>0.1</string>
1919
<key>CFBundleVersion</key>
20-
<string>1</string>
20+
<string>2</string>
2121
</dict>
2222
</plist>

Package.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import PackageDescription
2+
3+
let package = Package(
4+
name: "Interpolate"
5+
)

build.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
3+
# **** Update me when new Xcode versions are released! ****
4+
PLATFORM="platform=iOS Simulator,OS=10.1,name=iPhone 7"
5+
SDK="iphonesimulator"
6+
7+
8+
# It is pitch black.
9+
set -e
10+
function trap_handler() {
11+
echo -e "\n\nOh no! You walked directly into the slavering fangs of a lurking grue!"
12+
echo "**** You have died ****"
13+
exit 255
14+
}
15+
trap trap_handler INT TERM EXIT
16+
17+
18+
MODE="$1"
19+
20+
if [ "$MODE" = "framework" ]; then
21+
echo "Building and testing ObjectiveKit.framework."
22+
xcodebuild \
23+
-project ObjectiveKit.xcodeproj \
24+
-scheme ObjectiveKit \
25+
-sdk "$SDK" \
26+
-destination "$PLATFORM" \
27+
build test
28+
trap - EXIT
29+
exit 0
30+
fi
31+
32+
echo "Unrecognised mode '$MODE'."

0 commit comments

Comments
 (0)