Skip to content

Commit 0a4eb84

Browse files
committed
Release 2.0.1
* Update version numbers * Update README and include a link to the migration guide * Fix documentation output directory path
1 parent 4db3855 commit 0a4eb84

14 files changed

+28
-20
lines changed

.github/workflows/documentation-ghpages.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
3232
TARGET_LIST=""
3333
34-
mkdir -p "docs/okta-mobile-swift/$VERSION"
34+
mkdir -p "docs/$VERSION"
3535
3636
echo "Initializing target list"
3737
for TARGET in $(swift package describe --type json | jq ".products[].name" | sed -e 's/"//g'); do
@@ -47,7 +47,7 @@ jobs:
4747
--disable-indexing \
4848
--transform-for-static-hosting \
4949
--hosting-base-path "okta-mobile-swift/$VERSION" \
50-
--output-path "docs/okta-mobile-swift/$VERSION" \
50+
--output-path "docs/$VERSION" \
5151
--include-extended-types \
5252
--symbol-graph-minimum-access-level public \
5353
--experimental-skip-synthesized-symbols \

.github/workflows/tests.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,28 @@ jobs:
4848
fi
4949
- name: Check if the PR is a draft
5050
id: check_draft_status
51-
if: ${{ github.event.pull_request.draft }}
51+
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft }}
5252
shell: bash
5353
run: |
5454
echo "is_draft=true" >> $GITHUB_OUTPUT
5555
- name: List Changed Files
5656
id: list_changed_files
5757
run: |
58+
COMMITS_RANGE=""
59+
5860
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
59-
git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} > changes
61+
# For Pull Requests: Compare the HEAD of the PR branch with its base branch.
62+
COMMITS_RANGE="${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}"
6063
elif [[ "${{ github.event_name }}" == "push" && "${{ github.event.before }}" != "0000000000000000000000000000000000000000" ]]; then
61-
git diff --name-only ${{ github.event.before }} ${{ github.sha }} > changes
62-
elif [[ "${{ github.event_name }}" == "push" && "${{ github.event.before }}" == "0000000000000000000000000000000000000000" ]]; then
64+
# For standard Push events, compare the current commit with the commit before the push.
65+
COMMITS_RANGE="${{ github.event.before }}..${{ github.sha }}"
66+
fi
67+
68+
if [[ -z "$COMMITS_RANGE" ]]; then
69+
# If no commit range was identified from the github events, get a list of all changes
6370
git ls-tree -r HEAD --name-only > changes
64-
else
71+
elif ! git diff --name-only "$COMMITS_RANGE" > changes; then
72+
# If diffing the commit range failed (e.g. due to a force push or rebased branch), fall back to listing all changes
6573
git ls-tree -r HEAD --name-only > changes
6674
fi
6775

OktaAuthFoundation.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "OktaAuthFoundation"
33
s.module_name = "AuthFoundation"
4-
s.version = "2.0.0"
4+
s.version = "2.0.1"
55
s.summary = "Okta Authentication Foundation"
66
s.description = <<-DESC
77
Provides the foundation and common features used to authenticate users, managing the lifecycle and storage of tokens and credentials, and provide a base for other Okta SDKs to build upon.

OktaBrowserSignin.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "OktaBrowserSignin"
33
s.module_name = "BrowserSignin"
4-
s.version = "2.0.0"
4+
s.version = "2.0.1"
55
s.summary = "Okta Browser Sign In UI"
66
s.description = <<-DESC
77
Authenticate users using web-based OIDC.

OktaClient.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "OktaClient"
3-
s.version = "2.0.0"
3+
s.version = "2.0.1"
44
s.summary = "Secure client authentication, request authorization, and user management capabilities for Swift."
55
s.description = <<-DESC
66
Provides a modularized set of libraries that provide the building blocks and convenience features used to authenticate users, manage the lifecycle and storage of tokens and user credentials, and provide a base for other libraries and applications to build upon.

OktaDirectAuth.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "OktaDirectAuth"
3-
s.version = "2.0.0"
3+
s.version = "2.0.1"
44
s.summary = "Okta Direct Authentication"
55
s.description = <<-DESC
66
Enables application developers to build native sign in experiences using the Okta Direct Authentication API.

OktaIdxAuth.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'OktaIdxAuth'
3-
s.version = '2.0.0'
3+
s.version = '2.0.1'
44
s.summary = 'SDK to easily integrate the Okta Identity Engine'
55
s.description = <<-DESC
66
Integrate your native app with Okta using the Okta Identity Engine library.

OktaOAuth2.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = "OktaOAuth2"
33
s.module_name = "OAuth2Auth"
4-
s.version = "2.0.0"
4+
s.version = "2.0.1"
55
s.summary = "Okta OAuth2 Authentication"
66
s.description = <<-DESC
77
Enables application developers to authenticate users utilizing a variety of OAuth2 authentication flows.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ This library uses semantic versioning and follows Okta's [Library Version Policy
3434
| Version | Status |
3535
| ------- | ---------------------------------- |
3636
| 1.8.3 | Retiring |
37-
| 2.0.0 | |
38-
| 2.0.1 | ✔️ Stable |
37+
| 2.x | :heavy_check_mark: Stable ([migration guide][migration-1x]) |
3938

4039
The latest release can always be found on the [releases page][github-releases].
4140

@@ -532,3 +531,4 @@ We are happy to accept contributions and PRs! Please see the [contribution guide
532531
[Rate Limiting at Okta]: https://developer.okta.com/docs/api/getting_started/rate-limits
533532
[okta-library-versioning]: https://developer.okta.com/code/library-versions
534533
[support-policy]: #support-policy
534+
[migration-1x]: MIGRATION.md#migrating-from-okta-client-sdk-1x

Sources/AuthFoundation/Version+AuthFoundation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ extension SDKVersion.Name {
2020
extension SDKVersion {
2121
@_documentation(visibility: private)
2222
public static let authFoundation: SDKVersion? = {
23-
register(.authFoundation, version: "2.0.0")
23+
register(.authFoundation, version: "2.0.1")
2424
}()
2525
}

0 commit comments

Comments
 (0)