Skip to content

Commit 6479070

Browse files
authored
Initial 0.1.0 Alpha. (#2)
1 parent 46aca1e commit 6479070

25 files changed

+1716
-23
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
*~
2+
\#*
3+
.\#*
14
.DS_Store
25
/.build
3-
/Packages
4-
/*.xcodeproj
56
xcuserdata/
7+
IDEWorkspaceChecks.plist

.swiftlint.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
disabled_rules: # rule identifiers to exclude from running
2+
- line_length
3+
- trailing_whitespace
4+
- todo # temporarily disabled. In general they should be treated as warnings
5+
# - type_body_length # temporarily disabled.
6+
# - file_length # temporarily disabled
7+
- statement_position # wish we could support both uncuddled_else and default (but not others)
8+
- trailing_comma
9+
- syntactic_sugar
10+
- redundant_optional_initialization
11+
- redundant_void_return
12+
- large_tuple # this is flagging closure argument declarations, seems like a mistake
13+
opt_in_rules: # some rules are only opt-in
14+
- empty_count
15+
# - missing_docs
16+
# - force_unwrapping
17+
# Find all the available rules by running:
18+
# swiftlint rules
19+
# included: # paths to include during linting. `--path` is ignored if present.
20+
# # - Source
21+
excluded: # paths to ignore during linting. Takes precedence over `included`.
22+
# - Carthage
23+
- LaunchDarkly/GeneratedCode
24+
- Pods
25+
- _iOS/Pods
26+
# - Source/ExcludedFolder
27+
# - Source/ExcludedFile.swift
28+
29+
# configurable rules can be customized from this configuration file
30+
# binary rules can set their severity level
31+
32+
# force_cast: warning # implicitly
33+
# force_try:
34+
# severity: warning # explicitly
35+
# # rules that have both warning and error levels, can set just the warning level
36+
# # implicitly
37+
# # line_length: 110
38+
# # they can set both implicitly with an array
39+
#
40+
41+
# Set doesn't have isEmpty so using count seems to be our ownly option
42+
empty_count: warning
43+
44+
function_body_length:
45+
warning: 50
46+
error: 70
47+
type_body_length:
48+
- 300 # warning
49+
- 500 # error
50+
# or they can set both explicitly
51+
file_length:
52+
warning: 1000
53+
error: 1500
54+
identifier_name:
55+
min_length: # only min_length
56+
error: 3 # only error
57+
max_length: # warning and error
58+
warning: 50
59+
error: 60
60+
excluded: # excluded via string array
61+
- id
62+
- URL
63+
- url
64+
- obj
65+
- key
66+
- all
67+
- tag
68+
- lhs
69+
- rhs
70+
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1140"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "LDSwiftEventSource"
18+
BuildableName = "LDSwiftEventSource"
19+
BlueprintName = "LDSwiftEventSource"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "NO"
27+
buildForArchiving = "NO"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "LDSwiftEventSourceTests"
32+
BuildableName = "LDSwiftEventSourceTests"
33+
BlueprintName = "LDSwiftEventSourceTests"
34+
ReferencedContainer = "container:">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
</BuildActionEntries>
38+
</BuildAction>
39+
<TestAction
40+
buildConfiguration = "Debug"
41+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43+
shouldUseLaunchSchemeArgsEnv = "YES"
44+
codeCoverageEnabled = "YES">
45+
<Testables>
46+
<TestableReference
47+
skipped = "NO">
48+
<BuildableReference
49+
BuildableIdentifier = "primary"
50+
BlueprintIdentifier = "LDSwiftEventSourceTests"
51+
BuildableName = "LDSwiftEventSourceTests"
52+
BlueprintName = "LDSwiftEventSourceTests"
53+
ReferencedContainer = "container:">
54+
</BuildableReference>
55+
</TestableReference>
56+
</Testables>
57+
</TestAction>
58+
<LaunchAction
59+
buildConfiguration = "Debug"
60+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
61+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
62+
launchStyle = "0"
63+
useCustomWorkingDirectory = "NO"
64+
ignoresPersistentStateOnLaunch = "NO"
65+
debugDocumentVersioning = "YES"
66+
debugServiceExtension = "internal"
67+
allowLocationSimulation = "YES">
68+
</LaunchAction>
69+
<ProfileAction
70+
buildConfiguration = "Release"
71+
shouldUseLaunchSchemeArgsEnv = "YES"
72+
savedToolIdentifier = ""
73+
useCustomWorkingDirectory = "NO"
74+
debugDocumentVersioning = "YES">
75+
<MacroExpansion>
76+
<BuildableReference
77+
BuildableIdentifier = "primary"
78+
BlueprintIdentifier = "LDSwiftEventSource"
79+
BuildableName = "LDSwiftEventSource"
80+
BlueprintName = "LDSwiftEventSource"
81+
ReferencedContainer = "container:">
82+
</BuildableReference>
83+
</MacroExpansion>
84+
</ProfileAction>
85+
<AnalyzeAction
86+
buildConfiguration = "Debug">
87+
</AnalyzeAction>
88+
<ArchiveAction
89+
buildConfiguration = "Release"
90+
revealArchiveInOrganizer = "YES">
91+
</ArchiveAction>
92+
</Scheme>

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Change log
2+
3+
All notable changes to the LaunchDarkly Swift EventSource library will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
4+
5+
## [0.1.0] - 2020-05-09
6+
### Added
7+
- Initial implementation for internal alpha testing.

CONTRIBUTING.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Contributing to the LaunchDarkly Swift EventSource library
2+
================================================
3+
4+
Submitting bug reports and feature requests
5+
------------------
6+
7+
The LaunchDarkly SDK team monitors the [issue tracker](https://github.com/launchdarkly/swift-eventsource/issues) for the EventSource repository. Bug reports and feature requests specific to this library should be filed in this issue tracker.
8+
9+
Submitting pull requests
10+
------------------
11+
12+
We encourage pull requests and other contributions from the community. Before submitting pull requests, ensure that all temporary or unintended code is removed. Don't worry about adding reviewers to the pull request; the LaunchDarkly SDK team will add themselves.
13+
14+
Build instructions
15+
------------------
16+
17+
### Prerequisites
18+
19+
This SDK is built with [XCode](https://developer.apple.com/xcode/). This version has been tested with XCode 11.4.
20+
21+
### Building
22+
23+
The exact command used to build the SDK depends on where you want to use it (for example -- iOS, watchOS, etc.). Refer to the `xcodebuild` commands in the SDK's [continuous integration build configuration](.circleci/config.yml) for examples on how to build for the different platforms.
24+
25+
If you wish to clean your working directory between builds, include the `clean` goal in your `xcodebuild` command(s).
26+
27+
### Testing
28+
29+
To build the SDK and run all unit tests, include the `test` goal in your `xcodebuild` command(s).

LDSwiftEventSource.podspec

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Pod::Spec.new do |s|
2+
s.name = "LDSwiftEventSource"
3+
s.version = "0.1.0"
4+
s.summary = "Swift EventSource library"
5+
s.homepage = "https://github.com/launchdarkly/swift-eventsource"
6+
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE.txt" }
7+
s.author = { "LaunchDarkly" => "team@launchdarkly.com" }
8+
9+
s.ios.deployment_target = "10.0"
10+
s.watchos.deployment_target = "3.0"
11+
s.tvos.deployment_target = "10.0"
12+
s.osx.deployment_target = "10.12"
13+
14+
s.source = { :git => s.homepage + '.git', :tag => s.version}
15+
s.source_files = "Source/**/*.swift"
16+
17+
s.swift_versions = ['5.0', '5.1', '5.2']
18+
end

0 commit comments

Comments
 (0)