Skip to content

Commit

Permalink
Release 1.0.0-beta01
Browse files Browse the repository at this point in the history
  • Loading branch information
vwagh-hw committed Dec 18, 2019
1 parent 2cedb67 commit 0888f78
Show file tree
Hide file tree
Showing 34 changed files with 2,460 additions and 36 deletions.
50 changes: 14 additions & 36 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
## Build generated
build/
DerivedData/
*.moved-aside

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
Expand All @@ -21,11 +15,16 @@ DerivedData/
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint
**/.DS_Store

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM
Expand All @@ -40,12 +39,6 @@ playground.xcworkspace
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
Expand All @@ -55,36 +48,21 @@ playground.xcworkspace
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/
Carthage

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/README.md
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
5 changes: 5 additions & 0 deletions .slather.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
coverage_service: coveralls
xcodeproj: Insights.xcodeproj
scheme: Insights
ignore:
- Tests/*
59 changes: 59 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
excluded:
- Carthage
- Tests
disabled_rules: # rule identifiers to exclude from running
- type_body_length
- file_length
- function_parameter_count
type_name:
max_length: # warning and error
warning: 60
error: 100
identifier_name:
max_length: # warning and error
warning: 60
error: 100
opt_in_rules: # some rules are only opt-in
- first_where
- unused_declaration
- empty_count
- empty_string
- empty_xctest_method
- explicit_init
- closure_body_length
- closure_end_indentation
- closure_spacing
- collection_alignment
- conditional_returns_on_newline
- contains_over_first_not_nil
- array_init
- attributes
- fallthrough
- identical_operands
- implicit_return
- joined_default_parameter
- last_where
- literal_expression_end_indentation
- missing_docs
- modifier_order
- multiline_arguments
- multiline_function_chains
- multiline_literal_brackets
- multiline_parameters
- operator_usage_whitespace
- override_in_extension
- pattern_matching_keywords
- redundant_nil_coalescing
- redundant_type_annotation
- single_test_class
- sorted_first_last
- sorted_imports
- static_operator
- strict_fileprivate
- unavailable_function
- untyped_error_in_catch
- unused_import
- vertical_parameter_alignment_on_call
- vertical_whitespace_between_cases
- vertical_whitespace_closing_braces
- vertical_whitespace_opening_braces
49 changes: 49 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
language: swift
osx_image: xcode11.1
os: osx
branches:
only:
- /.*/
cache:
directories:
- Carthage
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- PROJECT=Insights.xcodeproj
- IOS_FRAMEWORK_SCHEME="Insights"

matrix:
- ios_version='13.1' ios_device='iPhone 11' scheme="$IOS_FRAMEWORK_SCHEME" platform='iOS Simulator'
before_install:
# Boot the emulator by ID
- |
ios_uid=$(xcrun instruments -s devices | grep Simulator | grep "$ios_device ($ios_version)*" | grep -o "[0-9A-F]\{8\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{4\}-[0-9A-F]\{12\}")
xcrun simctl boot $ios_uid
# List all emulator available
- xcrun simctl list
# Update the brew and build dependencies tools
- brew outdated carthage || brew upgrade carthage
- carthage bootstrap --verbose --no-use-binaries --platform iOS --cache-builds
- gem i slather
# Force to update the Swiftlint to the last stable version
- brew outdated swiftlint || brew upgrade swiftlint
# Print the booted emulator
- xcrun simctl list | grep "(Booted)"
# Print the swiftlint version
- swiftlint version
script: |
set -o pipefail
set -e
# Define the destination emulator
destination="platform=$platform,OS=$ios_version,name=$ios_device"
# Build and test Framework in Debug
xcodebuild -enableCodeCoverage YES clean build test -project "$PROJECT" \
-scheme "$scheme" \
-destination "$destination" \
-configuration Debug ONLY_ACTIVE_ARCH=YES ENABLE_TESTABILITY=YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
# Lint - Add `--strict` to fail for warning and violation
swiftlint lint --reporter json
after_success: slather
1 change: 1 addition & 0 deletions Cartfile.private
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "JanGorman/Hippolyte" "0.8.0"
1 change: 1 addition & 0 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github "JanGorman/Hippolyte" "0.8.0"
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source "https://rubygems.org"

gem 'slather'
gem 'fastlane'
gem 'cocoapods'

0 comments on commit 0888f78

Please sign in to comment.