Skip to content

Commit b2e9b84

Browse files
committed
Merge branch 'release-1.0.0'
2 parents 7e84813 + 94c55ce commit b2e9b84

29 files changed

Lines changed: 2025 additions & 2 deletions

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,9 @@ fastlane/report.xml
6565
fastlane/Preview.html
6666
fastlane/screenshots
6767
fastlane/test_output
68+
69+
# Ignore docs generated by SourceKitten
70+
docs.json
71+
72+
# Ignore docs generated by Jazzy
73+
docs/

.jazzy.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Run: sourcekitten doc --spm-module BitByteData > docs.json
2+
sourcekitten_sourcefile: docs.json
3+
clean: true
4+
author: Timofey Solomko
5+
module: BitByteData
6+
module_version: 1.0.0
7+
copyright: '© 2018 Timofey Solomko'
8+
readme: README.md
9+
github_url: https://github.com/tsolomko/BitByteData
10+
github_file_prefix: https://github.com/tsolomko/BitByteData/tree/1.0.0
11+
theme: fullwidth
12+
13+
custom_categories:
14+
- name: Reading bytes
15+
children:
16+
- ByteReader
17+
- name: Reading bits (and bytes)
18+
children:
19+
- BitReader
20+
- LsbBitReader
21+
- MsbBitReader
22+
- name: Writing bits (and bytes)
23+
children:
24+
- BitWriter
25+
- LsbBitWriter
26+
- MsbBitWriter

.markdownlint.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"MD007": { "indent": 4 },
3+
"MD013": { "line_length": 120 },
4+
"MD024": false,
5+
"MD026": { "punctuation": ".,;:!"},
6+
"MD029": { "style": "ordered" }
7+
}

.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4.0

.swiftlint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
opt_in_rules:
2+
- array_init
3+
- block_based_kvo
4+
- conditional_returns_on_newline
5+
- contains_over_first_not_nil
6+
- discouraged_direct_init
7+
- explicit_init
8+
- fatal_error_message
9+
- first_where
10+
- implicit_return
11+
- implicitly_unwrapped_optional
12+
- joined_default_parameter
13+
- literal_expression_end_indentation
14+
- no_grouping_extension
15+
- operator_usage_whitespace
16+
- pattern_matching_keywords
17+
- redundant_nil_coalescing
18+
- single_test_class
19+
- sorted_first_last
20+
- strict_fileprivate
21+
- switch_case_on_newline
22+
- trailing_closure

.travis.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
jobs:
2+
include:
3+
- stage: test
4+
language: objective-c
5+
osx_image: xcode9.2
6+
script:
7+
- swift build
8+
- swift test
9+
- swift build -c release # Check Release build just in case.
10+
- language: generic
11+
os: linux
12+
dist: trusty
13+
install:
14+
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
15+
script:
16+
- swift build
17+
- swift test
18+
- swift build -c release # Check Release build just in case.
19+
- stage: deploy
20+
if: tag IS present
21+
language: objective-c
22+
osx_image: xcode9.2
23+
env:
24+
secure: fmKQgrPRx2iisNPzxDhOTfXPsnQMJxDgIMItVNjl1AKByraOpiDAGVESySvy+vwQqITCB/BfvdkW7smAPcvFJxIPRx1v4J0VY9kGHdnafMw35XY0Vj9soYkzNS4zrUebxY2gWkGM6Q6dgLOGT/9MSEyWqXBTtVz9sLwA7yr3ZI72yZDbcSz3XGa1fFZRVfwv3I+bmuozG7dq7tyqcSKgRZnHg1VvaRdxcaGqSGSUsNu0YLzmNedujNcU+gTXcxMdrXA1eaheHc2pwNA0TDf3KkefJpaVMXrA/Un8e9MaJ1lMnPlIiEI3dPTuogtQY7p59vgulBNBPEJovTHI0jCaNyLUkTkHgGcUuOwHqwUIKZCEiiqM1j12sdLo4O2tAdNaNHDtd8D3bCakrdJxXlUWVfjrCwvBB555gd0drRirQgYX+5gGFwnTQE8tOcjK4qUvJaOAouHsnm/DmW+fLJPX76KoU6QOtGJt6PQ92yBgKRhaSg/sQ28WPuCmF2p7BuUSuULxcM2LU5eA5aFxayoZvR2E9uvfFxnFh01iV6clcZo25U03AuxJmuI7Mhl83amj8bm5CRBbuRw5sIljXfBujFUel+kz/HXalS7lStqH9iPyiQvh24WkPzHKNQdjRI7v3kyrVSXJ3Xl6+fopXqr/25MwqD4bt57QgglJ2IQtnLM=
25+
before_install:
26+
- brew update
27+
install:
28+
# Update Carthage.
29+
# `brew outdated` is necessary to prevent build error when there is no updates for Carthage.
30+
- brew outdated carthage || brew upgrade carthage
31+
# Install SourceKitten and Jazzy.
32+
- brew install sourcekitten
33+
- gem install -N jazzy
34+
before_deploy:
35+
# Necessary for correct SourceKitten processing.
36+
- swift build
37+
# Build Carthage archive.
38+
- carthage build --no-skip-current
39+
- carthage archive BitByteData
40+
# Generate documentation.
41+
- sourcekitten doc --spm-module BitByteData > docs.json
42+
- jazzy
43+
deploy:
44+
- provider: releases
45+
skip_cleanup: true
46+
api_key: $GITHUB_TOKEN
47+
file: "BitByteData.framework.zip"
48+
on:
49+
tags: true
50+
- provider: pages
51+
skip_cleanup: true
52+
github_token: $GITHUB_TOKEN
53+
local_dir: docs
54+
on:
55+
tags: true
56+
# Don't upload documentation if it is a test release.
57+
condition: $(git describe) != *"test"*

BitByteData.podspec

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Pod::Spec.new do |s|
2+
3+
s.name = "BitByteData"
4+
s.version = "1.0.0"
5+
s.summary = "Read and write bits and bytes in Swift."
6+
7+
s.description = "A Swift framework with classes for reading and writing bits and bytes."
8+
9+
s.homepage = "https://github.com/tsolomko/BitByteData"
10+
s.documentation_url = "http://tsolomko.github.io/BitByteData"
11+
12+
s.license = { :type => "MIT", :file => "LICENSE" }
13+
14+
s.author = { "Timofey Solomko" => "tsolomko@gmail.com" }
15+
16+
s.source = { :git => "https://github.com/tsolomko/BitByteData.git", :tag => "#{s.version}" }
17+
18+
s.ios.deployment_target = "8.0"
19+
s.osx.deployment_target = "10.10"
20+
s.tvos.deployment_target = "9.0"
21+
s.watchos.deployment_target = "2.0"
22+
23+
s.source_files = "Sources/*.swift"
24+
25+
s.test_spec 'Tests' do |test_spec|
26+
test_spec.source_files = 'Tests/BitByteDataTests/*.swift'
27+
end
28+
29+
end
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>4</string>
21+
<key>NSHumanReadableCopyright</key>
22+
<string>Copyright © 2018 Timofey Solomko. All rights reserved.</string>
23+
</dict>
24+
</plist>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>BNDL</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>4</string>
21+
</dict>
22+
</plist>

0 commit comments

Comments
 (0)