Skip to content

Commit 6f418b4

Browse files
author
Joe Newton
committed
Initial commit
0 parents  commit 6f418b4

23 files changed

+3398
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Complex.xcodeproj/project.xcworkspace
2+
Complex.xcodeproj/xcuserdata
3+
.swiftpm
4+
Carthage

.swiftlint.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
disabled_rules:
2+
- file_length
3+
- line_length
4+
- type_body_length
5+
- function_body_length
6+
7+
opt_in_rules:
8+
- anyobject_protocol
9+
- array_init
10+
- closure_end_indentation
11+
- closure_spacing
12+
- contains_over_first_not_nil
13+
- discouraged_optional_boolean
14+
- discouraged_optional_collection
15+
- empty_count
16+
- empty_string
17+
- empty_xctest_method
18+
- explicit_init
19+
- fallthrough
20+
- first_where
21+
- force_unwrapping
22+
- function_default_parameter_at_end
23+
- inert_defer
24+
- no_extension_access_modifier
25+
- overridden_super_call
26+
- prohibited_super_call
27+
- redundant_nil_coalescing
28+
- vertical_parameter_alignment_on_call
29+
- pattern_matching_keywords
30+
- fatal_error_message
31+
- implicit_return
32+
- implicitly_unwrapped_optional
33+
- joined_default_parameter
34+
- let_var_whitespace
35+
- literal_expression_end_indentation
36+
- lower_acl_than_parent
37+
- modifier_order
38+
- multiline_arguments
39+
- multiline_function_chains
40+
- multiline_parameters
41+
- multiple_closures_with_trailing_closure
42+
- nesting
43+
- notification_center_detachment
44+
- object_literal
45+
- operator_usage_whitespace
46+
- override_in_extension
47+
- private_action
48+
- private_outlet
49+
- redundant_type_annotation
50+
- single_test_class
51+
- sorted_imports
52+
- sorted_first_last
53+
- trailing_closure
54+
- unavailable_function
55+
- unneeded_parentheses_in_closure_argument
56+
- yoda_condition
57+
58+
reporter: "xcode"
59+
60+
identifier_name:
61+
excluded:
62+
- pi
63+
- _value

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
os: osx
2+
language: swift
3+
osx_image: xcode11.3
4+
xcode_project: Complex.xcodeproj
5+
addons:
6+
homebrew:
7+
packages:
8+
carthage
9+
10+
script:
11+
- carthage bootstrap
12+
13+
- set -o pipefail && travis_retry xcodebuild -scheme "Complex" -destination "platform=iOS Simulator,name=iPhone 11 Pro Max" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
14+
- set -o pipefail && travis_retry xcodebuild -scheme "Complex macOS" -destination "platform=macOS" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
15+
- set -o pipefail && travis_retry xcodebuild -scheme "Complex tvOS" -destination "platform=tvOS Simulator,name=Apple TV 4K" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
16+
- set -o pipefail && travis_retry xcodebuild -scheme "Complex watchOS" -destination "platform=watchOS Simulator,name=Apple Watch Series 5 - 44mm" -configuration Debug ONLY_ACTIVE_ARCH=YES
17+
18+
after_success:
19+
- bash <(curl -s https://codecov.io/bash)

Cartfile.private

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github "SomeRandomiOSDev/Half" ~> 1.0

Cartfile.resolved

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github "SomeRandomiOSDev/Half" "1.0.0"

Complex.podspec

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Pod::Spec.new do |s|
2+
3+
s.name = "Complex"
4+
s.version = "1.0.0"
5+
s.summary = "Swift Complex Number"
6+
s.description = <<-DESC
7+
A lightweight framework designed for representing and working with complex numbers for iOS, macOS, tvOS, and watchOS.
8+
DESC
9+
10+
s.homepage = "https://github.com/SomeRandomiOSDev/Complex"
11+
s.license = "MIT"
12+
s.author = { "Joseph Newton" => "[email protected]" }
13+
14+
s.ios.deployment_target = '8.0'
15+
s.macos.deployment_target = '10.10'
16+
s.tvos.deployment_target = '9.0'
17+
s.watchos.deployment_target = '2.0'
18+
19+
s.source = { :git => "https://github.com/SomeRandomiOSDev/Complex.git", :tag => s.version.to_s }
20+
s.source_files = 'Sources/**/*.swift'
21+
s.frameworks = 'Foundation'
22+
s.swift_versions = ['4.0', '4.2', '5.0']
23+
s.cocoapods_version = '>= 1.7.3'
24+
25+
end

0 commit comments

Comments
 (0)