From 882a5228d4ad4a898915764f26eedc414b7d3c6f Mon Sep 17 00:00:00 2001 From: Felix Scheinost Date: Fri, 22 Mar 2019 10:10:28 +0100 Subject: [PATCH 1/3] Add Podspec for version 1.0.1 --- BlackNest.podspec | 27 +++++++++++++++++++ BlackNest.xcodeproj/project.pbxproj | 22 ++++++++++++--- .../xcshareddata/xcschemes/BlackNest.xcscheme | 4 +-- {BlackNest => Supporting Files}/Info.plist | 0 4 files changed, 46 insertions(+), 7 deletions(-) create mode 100644 BlackNest.podspec rename {BlackNest => Supporting Files}/Info.plist (100%) diff --git a/BlackNest.podspec b/BlackNest.podspec new file mode 100644 index 0000000..0666b0b --- /dev/null +++ b/BlackNest.podspec @@ -0,0 +1,27 @@ +# +# Be sure to run `pod lib lint BlackNest.podspec' to ensure this is a +# valid spec before submitting. +# +# Any lines starting with a # are optional, but their use is encouraged +# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html +# + +Pod::Spec.new do |s| + s.name = 'BlackNest' + s.version = '1.0.1' + s.summary = 'Reusable Testing' + + s.description = <<-DESC + Pain-free and reusable testing by using a small DSL. + DESC + + s.homepage = 'https://github.com/symentis/BlackNest' + s.license = { :type => 'MIT', :file => 'LICENSE' } + s.authors = { "symentis GmbH" => "github@symentis.com" } + s.source = { :git => 'https://github.com/symentis/BlackNest.git', :tag => s.version.to_s } + + s.ios.deployment_target = '10.0' + s.watchos.deployment_target = '4.0' + s.source_files = 'BlackNest/*.swift' + s.frameworks = 'XCTest' +end diff --git a/BlackNest.xcodeproj/project.pbxproj b/BlackNest.xcodeproj/project.pbxproj index c6c22dd..d697173 100644 --- a/BlackNest.xcodeproj/project.pbxproj +++ b/BlackNest.xcodeproj/project.pbxproj @@ -43,6 +43,7 @@ 9CEE03A51D6B81F0006B8079 /* BlackNestTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BlackNestTests.swift; sourceTree = ""; }; 9CEE03A71D6B81F0006B8079 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; C537E8A21D6D775D0026CEBC /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; + CC00CB8A2244D56D00F962D0 /* BlackNest.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; path = BlackNest.podspec; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -76,8 +77,10 @@ isa = PBXGroup; children = ( C537E8A21D6D775D0026CEBC /* README.md */, + CC00CB8A2244D56D00F962D0 /* BlackNest.podspec */, 9CEE03991D6B81F0006B8079 /* BlackNest */, 9CEE03A41D6B81F0006B8079 /* BlackNestTests */, + CC00CB892244D52F00F962D0 /* Supporting Files */, 9CEE03981D6B81F0006B8079 /* Products */, 9CEA0DD41D6B8288006B0158 /* Frameworks */, ); @@ -95,7 +98,6 @@ 9CEE03991D6B81F0006B8079 /* BlackNest */ = { isa = PBXGroup; children = ( - 9CEE039B1D6B81F0006B8079 /* Info.plist */, 9CEA0DD71D6B843C006B0158 /* Operators.swift */, 9C22C9321D776A3900B02A16 /* Run.swift */, 9CEA0DDB1D6B8533006B0158 /* Spec.swift */, @@ -116,6 +118,14 @@ path = BlackNestTests; sourceTree = ""; }; + CC00CB892244D52F00F962D0 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 9CEE039B1D6B81F0006B8079 /* Info.plist */, + ); + path = "Supporting Files"; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ @@ -173,7 +183,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0800; - LastUpgradeCheck = 0900; + LastUpgradeCheck = 1010; ORGANIZATIONNAME = "Elmar Kretzer"; TargetAttributes = { 9CEE03961D6B81F0006B8079 = { @@ -289,6 +299,7 @@ CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_EMPTY_BODY = YES; @@ -296,6 +307,7 @@ CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; @@ -351,6 +363,7 @@ CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_EMPTY_BODY = YES; @@ -358,6 +371,7 @@ CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; @@ -409,7 +423,7 @@ "$(PLATFORM_DIR)/Developer/Library/Frameworks", "$(DEVELOPER_FRAMEWORKS_DIR)", ); - INFOPLIST_FILE = BlackNest/Info.plist; + INFOPLIST_FILE = "$(SRCROOT)/Supporting Files/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; OTHER_LDFLAGS = ( @@ -441,7 +455,7 @@ "$(PLATFORM_DIR)/Developer/Library/Frameworks", "$(DEVELOPER_FRAMEWORKS_DIR)", ); - INFOPLIST_FILE = BlackNest/Info.plist; + INFOPLIST_FILE = "$(SRCROOT)/Supporting Files/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; OTHER_LDFLAGS = ( diff --git a/BlackNest.xcodeproj/xcshareddata/xcschemes/BlackNest.xcscheme b/BlackNest.xcodeproj/xcshareddata/xcschemes/BlackNest.xcscheme index c07672e..d7d25f6 100644 --- a/BlackNest.xcodeproj/xcshareddata/xcschemes/BlackNest.xcscheme +++ b/BlackNest.xcodeproj/xcshareddata/xcschemes/BlackNest.xcscheme @@ -1,6 +1,6 @@ Date: Fri, 22 Mar 2019 10:11:12 +0100 Subject: [PATCH 2/3] Add .travis.yml and fastlane bundle for testing using travis --- .travis.yml | 6 ++ Gemfile | 9 +++ Gemfile.lock | 159 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 174 insertions(+) create mode 100644 .travis.yml create mode 100644 Gemfile create mode 100644 Gemfile.lock diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..fa3cb0c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: swift +osx_image: xcode10 +install: + - bundle install +script: + - bundle exec fastlane scan diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..4ca8735 --- /dev/null +++ b/Gemfile @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } + +# gem "rails" + +gem "fastlane", "~> 2.118" diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..541638d --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,159 @@ +GEM + remote: https://rubygems.org/ + specs: + CFPropertyList (3.0.0) + addressable (2.6.0) + public_suffix (>= 2.0.2, < 4.0) + atomos (0.1.3) + babosa (1.0.2) + claide (1.0.2) + colored (1.2) + colored2 (3.1.2) + commander-fastlane (4.4.6) + highline (~> 1.7.2) + declarative (0.0.10) + declarative-option (0.1.0) + digest-crc (0.4.1) + domain_name (0.5.20180417) + unf (>= 0.0.5, < 1.0.0) + dotenv (2.7.1) + emoji_regex (1.0.1) + excon (0.62.0) + faraday (0.15.4) + multipart-post (>= 1.2, < 3) + faraday-cookie_jar (0.0.6) + faraday (>= 0.7.4) + http-cookie (~> 1.0.0) + faraday_middleware (0.13.1) + faraday (>= 0.7.4, < 1.0) + fastimage (2.1.5) + fastlane (2.118.1) + CFPropertyList (>= 2.3, < 4.0.0) + addressable (>= 2.3, < 3.0.0) + babosa (>= 1.0.2, < 2.0.0) + bundler (>= 1.12.0, < 3.0.0) + colored + commander-fastlane (>= 4.4.6, < 5.0.0) + dotenv (>= 2.1.1, < 3.0.0) + emoji_regex (>= 0.1, < 2.0) + excon (>= 0.45.0, < 1.0.0) + faraday (~> 0.9) + faraday-cookie_jar (~> 0.0.6) + faraday_middleware (~> 0.9) + fastimage (>= 2.1.0, < 3.0.0) + gh_inspector (>= 1.1.2, < 2.0.0) + google-api-client (>= 0.21.2, < 0.24.0) + google-cloud-storage (>= 1.15.0, < 2.0.0) + highline (>= 1.7.2, < 2.0.0) + json (< 3.0.0) + mini_magick (~> 4.5.1) + multi_json + multi_xml (~> 0.5) + multipart-post (~> 2.0.0) + plist (>= 3.1.0, < 4.0.0) + public_suffix (~> 2.0.0) + rubyzip (>= 1.2.2, < 2.0.0) + security (= 0.1.3) + simctl (~> 1.6.3) + slack-notifier (>= 2.0.0, < 3.0.0) + terminal-notifier (>= 2.0.0, < 3.0.0) + terminal-table (>= 1.4.5, < 2.0.0) + tty-screen (>= 0.6.3, < 1.0.0) + tty-spinner (>= 0.8.0, < 1.0.0) + word_wrap (~> 1.0.0) + xcodeproj (>= 1.8.1, < 2.0.0) + xcpretty (~> 0.3.0) + xcpretty-travis-formatter (>= 0.0.3) + gh_inspector (1.1.3) + google-api-client (0.23.9) + addressable (~> 2.5, >= 2.5.1) + googleauth (>= 0.5, < 0.7.0) + httpclient (>= 2.8.1, < 3.0) + mime-types (~> 3.0) + representable (~> 3.0) + retriable (>= 2.0, < 4.0) + signet (~> 0.9) + google-cloud-core (1.3.0) + google-cloud-env (~> 1.0) + google-cloud-env (1.0.5) + faraday (~> 0.11) + google-cloud-storage (1.16.0) + digest-crc (~> 0.4) + google-api-client (~> 0.23) + google-cloud-core (~> 1.2) + googleauth (>= 0.6.2, < 0.10.0) + googleauth (0.6.7) + faraday (~> 0.12) + jwt (>= 1.4, < 3.0) + memoist (~> 0.16) + multi_json (~> 1.11) + os (>= 0.9, < 2.0) + signet (~> 0.7) + highline (1.7.10) + http-cookie (1.0.3) + domain_name (~> 0.5) + httpclient (2.8.3) + json (2.2.0) + jwt (2.1.0) + memoist (0.16.0) + mime-types (3.2.2) + mime-types-data (~> 3.2015) + mime-types-data (3.2018.0812) + mini_magick (4.5.1) + multi_json (1.13.1) + multi_xml (0.6.0) + multipart-post (2.0.0) + nanaimo (0.2.6) + naturally (2.2.0) + os (1.0.0) + plist (3.5.0) + public_suffix (2.0.5) + representable (3.0.4) + declarative (< 0.1.0) + declarative-option (< 0.2.0) + uber (< 0.2.0) + retriable (3.1.2) + rouge (2.0.7) + rubyzip (1.2.2) + security (0.1.3) + signet (0.11.0) + addressable (~> 2.3) + faraday (~> 0.9) + jwt (>= 1.5, < 3.0) + multi_json (~> 1.10) + simctl (1.6.5) + CFPropertyList + naturally + slack-notifier (2.3.2) + terminal-notifier (2.0.0) + terminal-table (1.8.0) + unicode-display_width (~> 1.1, >= 1.1.1) + tty-cursor (0.6.1) + tty-screen (0.6.5) + tty-spinner (0.9.0) + tty-cursor (~> 0.6.0) + uber (0.1.0) + unf (0.1.4) + unf_ext + unf_ext (0.0.7.5) + unicode-display_width (1.5.0) + word_wrap (1.0.0) + xcodeproj (1.8.1) + CFPropertyList (>= 2.3.3, < 4.0) + atomos (~> 0.1.3) + claide (>= 1.0.2, < 2.0) + colored2 (~> 3.1) + nanaimo (~> 0.2.6) + xcpretty (0.3.0) + rouge (~> 2.0.7) + xcpretty-travis-formatter (1.0.0) + xcpretty (~> 0.2, >= 0.0.7) + +PLATFORMS + ruby + +DEPENDENCIES + fastlane (~> 2.118) + +BUNDLED WITH + 1.17.3 From 25d3f33878118480e71c2588f62e33e342e65377 Mon Sep 17 00:00:00 2001 From: Felix Scheinost Date: Fri, 22 Mar 2019 10:56:40 +0100 Subject: [PATCH 3/3] Adapt README to include CocoaPods --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 81d9702..f23a655 100644 --- a/README.md +++ b/README.md @@ -199,6 +199,15 @@ Named after [Black-nest Swiftlet](https://en.wikipedia.org/wiki/Black-nest_swift # Requirements Swift 4 +# Installation + +### CocoaPods + +``` +pod 'BlackNest', '1.0.1' +``` + + # Credits & License Corridor is owned and maintained by [Symentis GmbH](http://symentis.com).