diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..41813f2 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,47 @@ + +# Shared Xcode version between jobs +xcode-version: &xcode-version "11.2.1" + +# This is the key that we use to store and restore our dependencies cache. +# It needs to be different anytime we add Pods, Gems, or npm packages. +# If something went wrong during a cache build, you can increase the cache version +# like this: 1-dependencies-... => 2-dependencies-... +cache-key: &cache-key 3-dependencies-{{ checksum "Gemfile.lock" }}-{{ checksum "Podfile.lock" }} + +# Environment that is shared between jobs +shared-env: &shared-env + BUNDLE_PATH: vendor/bundle + FL_OUTPUT_DIR: output + HOMEBREW_NO_AUTO_UPDATE: 1 + +version: 2 +jobs: + build: + macos: + xcode: *xcode-version + environment: + <<: *shared-env + steps: + - checkout + - restore_cache: + key: *cache-key + - run: + name: Install Ruby bundle dependencies + command: bundle check || bundle install + - run: + name: Install Cocoapods dependencies + command: diff ./Podfile.lock ./Pods/Manifest.lock > /dev/null || bundle exec pod install + - save_cache: + key: *cache-key + paths: + - vendor/bundle/ + - Pods/ + - run: + name: Create reports directory + command: mkdir output + - run: + name: Test + command: bundle exec fastlane test + - store_test_results: + path: output + \ No newline at end of file diff --git a/Gemfile b/Gemfile index ba504e0..19712e7 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,4 @@ source "https://rubygems.org" gem "cocoapods", "1.8.4" +gem "fastlane", "~> 2.137" diff --git a/Gemfile.lock b/Gemfile.lock index 9a10eb9..293745b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,10 +7,13 @@ GEM minitest (~> 5.1) thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) + addressable (2.7.0) + public_suffix (>= 2.0.2, < 5.0) algoliasearch (1.27.1) httpclient (~> 2.8, >= 2.8.3) json (>= 1.5.1) atomos (0.1.3) + babosa (1.0.3) claide (1.0.3) cocoapods (1.8.4) activesupport (>= 4.0.2, < 5) @@ -47,37 +50,168 @@ GEM nap (>= 0.8, < 2.0) netrc (~> 0.11) cocoapods-try (1.1.0) + colored (1.2) colored2 (3.1.2) + commander-fastlane (4.4.6) + highline (~> 1.7.2) concurrent-ruby (1.1.5) + declarative (0.0.10) + declarative-option (0.1.0) + digest-crc (0.4.1) + domain_name (0.5.20190701) + unf (>= 0.0.5, < 1.0.0) + dotenv (2.7.5) + emoji_regex (1.0.1) escape (0.0.4) + excon (0.70.0) + faraday (0.17.1) + 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.7) + fastlane (2.137.0) + 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.17) + faraday-cookie_jar (~> 0.0.6) + faraday_middleware (~> 0.13.1) + 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) + jwt (~> 2.1.0) + mini_magick (>= 4.9.4, < 5.0.0) + multi_xml (~> 0.5) + multipart-post (~> 2.0.0) + plist (>= 3.1.0, < 4.0.0) + public_suffix (~> 2.0.0) + rubyzip (>= 1.3.0, < 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) fourflusher (2.3.1) fuzzy_match (2.0.4) 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.4.1) + google-cloud-env (~> 1.0) + google-cloud-env (1.3.0) + 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) i18n (0.9.5) concurrent-ruby (~> 1.0) json (2.2.0) + jwt (2.1.0) + memoist (0.16.1) + mime-types (3.3) + mime-types-data (~> 3.2015) + mime-types-data (3.2019.1009) + mini_magick (4.9.5) minitest (5.13.0) molinillo (0.6.6) + multi_json (1.14.1) + multi_xml (0.6.0) + multipart-post (2.0.0) nanaimo (0.2.6) nap (1.1.0) + naturally (2.2.0) netrc (0.11.0) + os (1.0.1) + 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) ruby-macho (1.4.0) + rubyzip (1.3.0) + security (0.1.3) + signet (0.12.0) + addressable (~> 2.3) + faraday (~> 0.9) + jwt (>= 1.5, < 3.0) + multi_json (~> 1.10) + simctl (1.6.6) + 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) thread_safe (0.3.6) + tty-cursor (0.7.0) + tty-screen (0.7.0) + tty-spinner (0.9.1) + tty-cursor (~> 0.7) tzinfo (1.2.5) thread_safe (~> 0.1) + uber (0.1.0) + unf (0.1.4) + unf_ext + unf_ext (0.0.7.6) + unicode-display_width (1.6.0) + word_wrap (1.0.0) xcodeproj (1.13.0) 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 cocoapods (= 1.8.4) + fastlane (~> 2.137) BUNDLED WITH 1.17.3 diff --git a/Introspect.xcodeproj/xcshareddata/xcschemes/Introspect.xcscheme b/Introspect.xcodeproj/xcshareddata/xcschemes/Introspect.xcscheme new file mode 100644 index 0000000..74a5946 --- /dev/null +++ b/Introspect.xcodeproj/xcshareddata/xcschemes/Introspect.xcscheme @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Introspect.xcodeproj/xcuserdata/ldiqual.xcuserdatad/xcschemes/xcschememanagement.plist b/Introspect.xcodeproj/xcuserdata/ldiqual.xcuserdatad/xcschemes/xcschememanagement.plist index 17ca711..4083c6b 100644 --- a/Introspect.xcodeproj/xcuserdata/ldiqual.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/Introspect.xcodeproj/xcuserdata/ldiqual.xcuserdatad/xcschemes/xcschememanagement.plist @@ -15,5 +15,18 @@ 3 + SuppressBuildableAutocreation + + C0687011238DE85D00DAFD3D + + primary + + + C068701A238DE85D00DAFD3D + + primary + + + diff --git a/README.md b/README.md index b63d401..e4e514e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ Introspect for SwiftUI ====================== +[![CircleCI](https://circleci.com/gh/timbersoftware/SwiftUI-Introspect.svg?style=svg&circle-token=6f995f204d4d417d31f79e7257f6e1ecf430ae07)](https://circleci.com/gh/timbersoftware/SwiftUI-Introspect) + Introspect allows you to get the underlying UIKit element of a SwiftUI view. For instance, with Introspect you can access `UITableView` to modify separators, or `UINavigationController` to customize the tab bar. diff --git a/fastlane/Fastfile b/fastlane/Fastfile new file mode 100644 index 0000000..e8158a5 --- /dev/null +++ b/fastlane/Fastfile @@ -0,0 +1,9 @@ +default_platform(:ios) +skip_docs + +lane :test do + scan( + devices: ["iPhone 8"], + scheme: "Introspect" + ) +end