Skip to content

Commit

Permalink
Example Project
Browse files Browse the repository at this point in the history
  • Loading branch information
rockbruno committed Apr 30, 2019
1 parent ee23bb2 commit 128c395
Show file tree
Hide file tree
Showing 23 changed files with 535 additions and 114 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Expand Up @@ -3,11 +3,9 @@
/.builda
/Packages
/*.xcodeproj
Infofile.swift
swiftinfo
/build
/build1
/build2
/SwiftInfo-output
Infofile
/bin
3 changes: 2 additions & 1 deletion ExampleProject/Gemfile
@@ -1,3 +1,4 @@
source "https://rubygems.org"

gem "fastlane", "~> 2.102.0"
gem "fastlane", "~> 2.102.0"
gem "cocoapods"
53 changes: 53 additions & 0 deletions ExampleProject/Gemfile.lock
Expand Up @@ -2,21 +2,61 @@ GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.0)
activesupport (4.2.11.1)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
atomos (0.1.3)
babosa (1.0.2)
claide (1.0.2)
cocoapods (1.6.1)
activesupport (>= 4.0.2, < 5)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.6.1)
cocoapods-deintegrate (>= 1.0.2, < 2.0)
cocoapods-downloader (>= 1.2.2, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-stats (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.3.1, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (>= 2.2.0, < 3.0)
gh_inspector (~> 1.0)
molinillo (~> 0.6.6)
nap (~> 1.0)
ruby-macho (~> 1.4)
xcodeproj (>= 1.8.1, < 2.0)
cocoapods-core (1.6.1)
activesupport (>= 4.0.2, < 6)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-deintegrate (1.0.4)
cocoapods-downloader (1.2.2)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-stats (1.1.0)
cocoapods-trunk (1.3.1)
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)
domain_name (0.5.20180417)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.2)
emoji_regex (0.1.1)
escape (0.0.4)
excon (0.64.0)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
Expand Down Expand Up @@ -62,6 +102,8 @@ GEM
xcodeproj (>= 1.5.7, < 2.0.0)
xcpretty (~> 0.2.8)
xcpretty-travis-formatter (>= 0.0.3)
fourflusher (2.2.0)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
google-api-client (0.23.9)
addressable (~> 2.5, >= 2.5.1)
Expand All @@ -82,18 +124,24 @@ GEM
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.0)
mime-types (3.2.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2019.0331)
mini_magick (4.5.1)
minitest (5.11.3)
molinillo (0.6.6)
multi_json (1.13.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)
Expand All @@ -103,6 +151,7 @@ GEM
uber (< 0.2.0)
retriable (3.1.2)
rouge (2.0.7)
ruby-macho (1.4.0)
rubyzip (1.2.2)
security (0.1.3)
signet (0.11.0)
Expand All @@ -117,10 +166,13 @@ GEM
terminal-notifier (1.8.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
tty-cursor (0.6.1)
tty-screen (0.6.5)
tty-spinner (0.9.0)
tty-cursor (~> 0.6.0)
tzinfo (1.2.5)
thread_safe (~> 0.1)
uber (0.1.0)
unf (0.1.4)
unf_ext
Expand All @@ -142,6 +194,7 @@ PLATFORMS
ruby

DEPENDENCIES
cocoapods
fastlane (~> 2.102.0)

BUNDLED WITH
Expand Down
23 changes: 23 additions & 0 deletions ExampleProject/Infofile.swift
@@ -0,0 +1,23 @@
import SwiftInfoCore
import Foundation

FileUtils.buildLogFilePath = "./build/build_log/SwiftInfoExample-SwiftInfoExample.log"
FileUtils.testLogFilePath = "./build/tests_log/SwiftInfoExample-SwiftInfoExample.log"

let projectInfo = ProjectInfo(xcodeproj: "SwiftInfoExample.xcodeproj",
target: "SwiftInfoExample",
configuration: "Release")

let api = SwiftInfo(projectInfo: projectInfo)

let output = api.extract(IPASizeProvider.self) +
api.extract(WarningCountProvider.self) +
api.extract(LargestAssetProvider.self) +
api.extract(TotalTestDurationProvider.self) +
api.extract(TestCountProvider.self) +
api.extract(LongestTestDurationProvider.self) +
api.extract(ArchiveDurationProvider.self)

api.sendToSlack(output: output, webhookUrl: "slackUrlHere")

api.save(output: output)
7 changes: 7 additions & 0 deletions ExampleProject/Podfile
@@ -0,0 +1,7 @@
platform :ios, '9.0'
use_frameworks!
inhibit_all_warnings!

target 'SwiftInfoExample' do
pod 'SwiftInfo'
end
16 changes: 16 additions & 0 deletions ExampleProject/Podfile.lock
@@ -0,0 +1,16 @@
PODS:
- SwiftInfo (2.2.0)

DEPENDENCIES:
- SwiftInfo

SPEC REPOS:
https://github.com/cocoapods/specs.git:
- SwiftInfo

SPEC CHECKSUMS:
SwiftInfo: 5280279f9054046e3e65c68ea73345969b6372b6

PODFILE CHECKSUM: 1d7fb25dd62a23adb9690445429e9aca351900ef

COCOAPODS: 1.6.1

0 comments on commit 128c395

Please sign in to comment.