Skip to content

Commit 62d432e

Browse files
Installs v3-beta.3 (#66)
* renames schemes and targets to LaunchDarkly * renames test target and headers to LaunchDarkly * renames code and test folders to LaunchDarkly * renames xcode project to LaunchDarkly * renames workspace to LaunchDarkly * renames modules and sets Catamorphic Co as license holder in block header comment * renames podfile workspace and targets to LaunchDarkly * renames Jazzy components to LaunchDarkly * replaces outdated variable_name rule with identifier_name to clear swiftlint warnings * renames workspace and scheme to LaunchDarkly in circleCI * installs CocoaPods 1.6.0 * installs DarklyEventSource 4.0.1 * installs Quick 7.3.4 and Nimble 1.3.4 * installs SwiftLint 0.30.1 * Add instructions to integrate without a package manager (#57) * Replaces onServerUnavailable with ErrorObserver (#58) * Adds new logging around variationAndSource (#59) * Install keys to model objects (#60) * Adds Automated Tests for missing coverage (#61) * Decompress Blocks (#62) * Refine flag version handling (#63) * sets beta 3 version and updates public documents * Add Platform Names to non-iOS frameworks (#65) * renames all schemes, targets, and non-iOS products to include the platform * updates changelog and instructions for non-iOS platforms * updates items for public release * updates pods project
1 parent 5443b39 commit 62d432e

File tree

251 files changed

+6596
-4456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+6596
-4456
lines changed

.circleci/config.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# config file version: 1.0.2
1+
# config file version: 1.1.0
22
version: 2
33
jobs:
44
build:
5-
working_directory: /Users/distiller/launchdarkly/ios-client-swift-private/tmp
5+
working_directory: /Users/distiller/launchdarkly/ios-client/tmp
66
parallelism: 1 # controls the # of containers for the job. In theory, adding another container should halve the number of tests run in each container, but instead appears to run all tests in both containers.
77
shell: /bin/bash --login
88

@@ -46,8 +46,20 @@ jobs:
4646
command: instruments -s devices
4747

4848
- run:
49-
name: Clean, Build, & Test
50-
command: set -o pipefail && xcodebuild clean build test -workspace 'Darkly.xcworkspace' -scheme 'Darkly_iOS' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= PROVISIONING_PROFILE= | tee 'xcode_raw.log' | xcpretty --color --report html --output '/Users/distiller/launchdarkly/ios-client-swift-private/tmp/output/report.html' --report junit --output '/Users/distiller/launchdarkly/ios-client-swift-private/tmp/output/xcode/report.junit'
49+
name: Clean, Build, & Test LaunchDarkly_iOS
50+
command: set -o pipefail && xcodebuild clean build test -workspace 'LaunchDarkly.xcworkspace' -scheme 'LaunchDarkly_iOS' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone XS,OS=latest' CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= PROVISIONING_PROFILE= | tee 'xcode_raw.log' | xcpretty --color --report html --output '/Users/distiller/launchdarkly/ios-client/tmp/output/report.html' --report junit --output '/Users/distiller/launchdarkly/ios-client/tmp/output/xcode/report.junit'
51+
52+
- run:
53+
name: Clean & Build LaunchDarkly_watchOS
54+
command: set -o pipefail && xcodebuild clean build -workspace 'LaunchDarkly.xcworkspace' -scheme 'LaunchDarkly_watchOS' -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 4 - 44mm,OS=latest' CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= PROVISIONING_PROFILE= | tee 'LaunchDarkly_watchOS_xcode_raw.log' | xcpretty --color
55+
56+
- run:
57+
name: Clean & Build LaunchDarkly_macOS
58+
command: set -o pipefail && xcodebuild clean build -workspace 'LaunchDarkly.xcworkspace' -scheme 'LaunchDarkly_macOS' -sdk macosx -destination 'platform=macOS' CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= PROVISIONING_PROFILE= | tee 'LaunchDarkly_macOS_xcode_raw.log' | xcpretty --color
59+
60+
- run:
61+
name: Clean & Build LaunchDarkly_tvOS
62+
command: set -o pipefail && xcodebuild clean build -workspace 'LaunchDarkly.xcworkspace' -scheme 'LaunchDarkly_tvOS' -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV,OS=latest' CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= PROVISIONING_PROFILE= | tee 'LaunchDarkly_tvOS_xcode_raw.log' | xcpretty --color
5163

5264
- run:
5365
name: Copy XC Activity Log

.circleci/run-build-locally.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# A script that triggers a circleci build from the command line
22
# Script from https://circleci.com/docs/2.0/examples/#video-test-your-config-file-locally
3-
# Usage: From the project folder (e.g. 'ios-client-swift-private') run 'bash .circleci/run-build-locally.sh'
3+
# Usage: From the project folder (e.g. 'ios-client') run 'bash .circleci/run-build-locally.sh'
44
# Set the url to run in this format
55
# https://circleci.com/api/v1.1/project/<source, eg. github>/<user name>/<project name>/tree/<branch name>
66
# Dependencies:
@@ -10,4 +10,4 @@ curl --user ${CIRCLE_TOKEN}: \
1010
--request POST \
1111
--form config=@.circleci/config.yml \
1212
--form notify=false \
13-
https://circleci.com/api/v1.1/project/github/launchdarkly/ios-client-swift-private/tree/master
13+
https://circleci.com/api/v1.1/project/github/launchdarkly/ios-client/tree/master

.jazzy.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ author_url: http://launchdarkly.com
44
github_url: https://github.com/launchdarkly/ios-client
55
clean: true
66
include:
7-
- "Darkly/Darkly/**"
7+
- "LaunchDarkly/LaunchDarkly/**"
88
exclude:
9-
- "Darkly/Darkly/User/CacheableUserFlags.swift"
10-
- "Darkly/Darkly/FeatureFlag/*"
11-
- "Darkly/Darkly/FeatureFlag/FlagChange/Flag*"
12-
- "Darkly/Darkly/FeatureFlag/FlagRequestTracking/*"
13-
- "Darkly/Darkly/FeatureFlag/FlagValue/*"
14-
- "Darkly/Darkly/ServiceObjects/*"
15-
- "Darkly/Darkly/Networking/*"
16-
- "Darkly/Darkly/Extensions/*"
9+
- "LaunchDarkly/LaunchDarkly/User/CacheableUserFlags.swift"
10+
- "LaunchDarkly/LaunchDarkly/FeatureFlag/*"
11+
- "LaunchDarkly/LaunchDarkly/FeatureFlag/FlagChange/Flag*"
12+
- "LaunchDarkly/LaunchDarkly/FeatureFlag/FlagRequestTracking/*"
13+
- "LaunchDarkly/LaunchDarkly/FeatureFlag/FlagValue/*"
14+
- "LaunchDarkly/LaunchDarkly/ServiceObjects/*"
15+
- "LaunchDarkly/LaunchDarkly/Networking/*"
16+
- "LaunchDarkly/LaunchDarkly/Extensions/*"
1717

18-
copyright: 'Copyright © 2018 Catamorphic Co.'
18+
copyright: 'Copyright © 2019 Catamorphic Co.'
1919

2020
theme: fullwidth
2121

2222
custom_categories:
23-
- name: Launch Darkly
23+
- name: LaunchDarkly
2424
children:
2525
- LDClient
2626
- LDConfig
@@ -40,6 +40,7 @@ custom_categories:
4040
- LDFlagChangeHandler
4141
- LDFlagCollectionChangeHandler
4242
- LDFlagsUnchangedHandler
43+
- LDErrorHandler
4344

4445
- name: LD Protocols
4546
children:

.sourcery.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
sources:
2-
- Darkly/
2+
- LaunchDarkly/
33
templates:
44
- SourceryTemplates/
5-
output: Darkly/GeneratedCode/
5+
output: LaunchDarkly/GeneratedCode/
66

77
args:
88
app: LaunchDarkly

.swiftlint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ opt_in_rules: # some rules are only opt-in
2020
# # - Source
2121
excluded: # paths to ignore during linting. Takes precedence over `included`.
2222
# - Carthage
23-
- Darkly/GeneratedCode
23+
- LaunchDarkly/GeneratedCode
2424
- Pods
2525
- _iOS/Pods
2626
# - Source/ExcludedFolder
@@ -51,7 +51,7 @@ type_body_length:
5151
file_length:
5252
warning: 1000
5353
error: 1500
54-
variable_name:
54+
identifier_name:
5555
min_length: # only min_length
5656
error: 3 # only error
5757
max_length: # warning and error

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
All notable changes to the LaunchDarkly iOS SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [3.0.0-beta.3] - 2019-03-07
6+
### Changed
7+
- Renames SDK frameworks to `LaunchDarkly.framework` for iOS, and `LaunchDarkly_<platform>.framework` for non-iOS platforms.
8+
- Renames targets to `LaunchDarkly_<platform>`.
9+
- Renames project and workspace to `LaunchDarkly`
10+
- Updates `DarklyEventSource` to version `4.0.1`
11+
- Updates several internal dependencies to their latest versions
12+
- Replaces `onServerUnavailable` with `observeError` on LDClient
13+
14+
### Added
15+
- Instructions to integrate without a Package Manager to `README.md`
16+
- New log entries that tell when the SDK could not find a feature flag, and when the SDK could not convert a feature flag to the requested type
17+
518
## [3.0.0-beta.2] - 2019-02-06
619
### Changed
720
- `LDFlagValueSource` is a Swift `enum` the SDK uses to communicate the source of a feature flag (`server`, `cache`, `fallback`) to the client app. The Objective-C `enum` was changed to an object to provide Objective-C client apps access to the methods available to the enum.

Cartfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "launchdarkly/ios-eventsource" >= 4.0.0
1+
github "launchdarkly/ios-eventsource" >= 4.0.1

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "launchdarkly/ios-eventsource" "4.0.0"
1+
github "launchdarkly/ios-eventsource" "4.0.1"

Carthage/Build/.ios-eventsource.version

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Carthage/Build/Mac/DarklyEventSource.framework.dSYM/Contents/Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)