Skip to content

Commit 47a1074

Browse files
WidcketEvan SimsEvan Sims
authored
Merge fa into master (#180)
* Remove license header (#140) * Add migration guide (#141) * Drop support for old Swift versions [SDK-3394] (#142) * Drop support for old Swift versions * Remove Xcode 12 from the build matrix * Update year in license file (#144) * Drop old platform versions (#143) * Update README [SDK-3396] (#147) * Update README * Add First Availability label * Remove ID token validator [SDK-3395] (#145) * Remove ID token validator * Add changes to migration guide * Drop support for Objective-C [SDK-3405] (#149) * Add `.swiftpm` to `.gitignore` (#151) * Add CONTRIBUTING.md (#150) * Add missing unit test (#146) * Add missing test * Add empty JSON body test case * Add support policy [SDK-3403] (#148) Add support policy * Update API doc comments (#152) * Move test files back to `JWTDecodeTests` (#154) * Update the library description (#153) Update library description * Add subscript getter for claims [SDK-3421] (#156) * Update playground (#157) * Improve display of `DecodeError` [SDK-3427] (#158) * Improve errors * Remove extra whitespace * Apply recommended Xcode 14 settings (#159) * Improve API docs (#160) * [SDK-3434] Update issues templates (#161) * [SDK-3434] Update issue templates * Remove "FAQ.md" reference, as there is no file * Update .github/ISSUE_TEMPLATE/Bug Report.yml * Update .github/ISSUE_TEMPLATE/Bug Report.yml * Update .github/ISSUE_TEMPLATE/Feature Request.yml * Update .github/ISSUE_TEMPLATE/Feature Request.yml * Update .github/ISSUE_TEMPLATE/config.yml * Update .github/ISSUE_TEMPLATE/config.yml * Update checklist grouping * Update pull request template Co-authored-by: Rita Zerrizuela <[email protected]> * Rename `DecodeError` and error case (#162) * Use SUT terminology in unit tests (#163) * Add DocC API generation * Ignore docs.archive subfolder for temp data * Add to shiprc * Implement feedback * Add generated API documentation to repo * Update generated API documentation for repo * Improve API docs generation (#167) * Re-generate API docs (#169) * Link to the API docs from the README (#168) * Release 3.0.0-fa.0 (#170) * Use Codecov orb (#173) * Replace OSX with macOS in schemes and targets (#175) * Add placeholders to issue forms (#176) * Update README for GA [SDK-3499] (#177) Update README for GA * Merge `master` into `fa` (#178) Co-authored-by: Evan Sims <[email protected]> Co-authored-by: Evan Sims <[email protected]>
1 parent 558d439 commit 47a1074

File tree

168 files changed

+1807
-1159
lines changed

Some content is hidden

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

168 files changed

+1807
-1159
lines changed

.circleci/config.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
version: 2.1
22

3+
orbs:
4+
codecov: codecov/codecov@3
5+
36
executors:
47
macos-executor:
58
parameters:
@@ -62,8 +65,10 @@ commands:
6265
name: Run iOS tests
6366
command: bundle exec fastlane ios ci
6467
- run:
65-
name: Upload coverage report
66-
command: bash <(curl -s https://codecov.io/bash) -J '<< parameters.scheme >>'
68+
name: Generate coverage report
69+
command: bundle exec slather coverage -x --output-directory output --arch x86_64 --scheme << parameters.scheme >>-iOS << parameters.scheme >>.xcodeproj
70+
- codecov/upload:
71+
file: output/cobertura.xml
6772
- run:
6873
name: Run pod lib lint
6974
command: bundle exec fastlane ios pod_lint
@@ -79,7 +84,7 @@ commands:
7984
- run:
8085
name: Run macOS tests
8186
command: |
82-
xcodebuild test -scheme << parameters.scheme >>-OSX -destination 'platform=macOS,arch=x86_64' | xcpretty
87+
xcodebuild test -scheme << parameters.scheme >>-macOS -destination 'platform=macOS,arch=x86_64' | xcpretty
8388
swift test
8489
test-tvos:
8590
parameters:
@@ -129,8 +134,8 @@ workflows:
129134
build:
130135
jobs:
131136
- build-test:
132-
scheme: "JWTDecode"
137+
scheme: JWTDecode
133138
matrix:
134139
parameters:
135-
platform: ["ios", "macos", "tvos"]
136-
xcode: ["13.0.0", "12.5.1"]
140+
platform: [ios, macos, tvos]
141+
xcode: ["13.0.0"]
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: 🐞 Report a bug
2+
description: Have you found a bug or issue? Create a bug report for this library
3+
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
**Please do not report security vulnerabilities here**. The [Responsible Disclosure Program](https://auth0.com/responsible-disclosure-policy) details the procedure for disclosing security issues.
9+
10+
- type: checkboxes
11+
id: checklist
12+
attributes:
13+
label: Checklist
14+
options:
15+
- label: I have looked into the [README](https://github.com/auth0/JWTDecode.swift#readme) and have not found a suitable solution or answer.
16+
required: true
17+
- label: I have searched the [issues](https://github.com/auth0/JWTDecode.swift/issues) and have not found a suitable solution or answer.
18+
required: true
19+
- label: I have searched the [Auth0 Community](https://community.auth0.com/tags/c/sdks/5/jwt) forums and have not found a suitable solution or answer.
20+
required: true
21+
- label: I agree to the terms within the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
22+
required: true
23+
24+
- type: textarea
25+
id: description
26+
attributes:
27+
label: Description
28+
description: Provide a clear and concise description of the issue, including what you expected to happen.
29+
validations:
30+
required: true
31+
32+
- type: textarea
33+
id: reproduction
34+
attributes:
35+
label: Reproduction
36+
description: Detail the steps taken to reproduce this error, and whether this issue can be reproduced consistently or if it is intermittent.
37+
placeholder: |
38+
1. Step 1...
39+
2. Step 2...
40+
3. ...
41+
validations:
42+
required: true
43+
44+
- type: input
45+
id: environment-version
46+
attributes:
47+
label: JWTDecode.swift version
48+
validations:
49+
required: true
50+
51+
- type: dropdown
52+
id: environment-platform
53+
attributes:
54+
label: Platform
55+
multiple: true
56+
options:
57+
- iOS
58+
- macOS
59+
- tvOS
60+
- watchOS
61+
validations:
62+
required: true
63+
64+
- type: input
65+
id: environment-platform-version
66+
attributes:
67+
label: Platform version(s)
68+
validations:
69+
required: true
70+
71+
- type: input
72+
id: environment-xcode-version
73+
attributes:
74+
label: Xcode version
75+
validations:
76+
required: true
77+
78+
- type: input
79+
id: environment-package-manager
80+
attributes:
81+
label: Package manager
82+
placeholder: SPM, Cocoapods, Carthage, etc.
83+
validations:
84+
required: true
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: 🧩 Feature request
2+
description: Suggest an idea or a feature for this library
3+
labels: ["feature request"]
4+
5+
body:
6+
- type: checkboxes
7+
id: checklist
8+
attributes:
9+
label: Checklist
10+
options:
11+
- label: I have looked into the [README](https://github.com/auth0/JWTDecode.swift#readme) and have not found a suitable solution or answer.
12+
required: true
13+
- label: I have searched the [issues](https://github.com/auth0/JWTDecode.swift/issues) and have not found a suitable solution or answer.
14+
required: true
15+
- label: I have searched the [Auth0 Community](https://community.auth0.com/tags/c/sdks/5/jwt) forums and have not found a suitable solution or answer.
16+
required: true
17+
- label: I agree to the terms within the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
18+
required: true
19+
20+
- type: textarea
21+
id: description
22+
attributes:
23+
label: Describe the problem you'd like to have solved
24+
description: A clear and concise description of what the problem is.
25+
placeholder: I'm always frustrated when...
26+
validations:
27+
required: true
28+
29+
- type: textarea
30+
id: ideal-solution
31+
attributes:
32+
label: Describe the ideal solution
33+
description: A clear and concise description of what you want to happen.
34+
validations:
35+
required: true
36+
37+
- type: textarea
38+
id: alternatives-and-workarounds
39+
attributes:
40+
label: Alternatives and current workarounds
41+
description: A clear and concise description of any alternatives you've considered or any workarounds that are currently in place.
42+
validations:
43+
required: false
44+
45+
- type: textarea
46+
id: additional-context
47+
attributes:
48+
label: Additional context
49+
description: Add any other context or screenshots about the feature request here.
50+
validations:
51+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Auth0 Community
3+
- name: 🤔 Help & Questions
44
url: https://community.auth0.com/tags/c/sdks/5/jwt
5-
about: Discuss this library in the Auth0 Community forums
5+
about: Ask general support or usage questions in the Auth0 Community forums
6+
- name: 🚀 Usage
7+
url: https://github.com/auth0/JWTDecode.swift#usage
8+
about: Check the Usage section of the README to get up to speed with JWTDecode.swift
9+
- name: 📖 API Documentation
10+
url: https://auth0.github.io/JWTDecode.swift/
11+
about: Check the public API documentation for in-depth overview of all the available features

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/report-a-bug.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,40 @@
1-
### Changes
1+
<!--
2+
❗ For general support or usage questions, use the Auth0 Community forums or raise a support ticket.
23
3-
Please describe both what is changing and why this is important. Include:
4+
By submitting a Pull Request to this repository, you agree to the terms within the Auth0 Code of Conduct: https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md.
5+
-->
46

5-
- Endpoints added, deleted, deprecated, or changed
6-
- Classes and methods added, deleted, deprecated, or changed
7-
- Screenshots of new or changed UI, if applicable
8-
- A summary of usage if this is a new feature or change to a public API (this should also be added to relevant documentation once released)
7+
- [ ] All new/changed/fixed functionality is covered by tests (or N/A)
8+
- [ ] I have added documentation for all new/changed functionality (or N/A)
99

10-
### References
10+
<!--
11+
❗ All the above items are required. Pull Requests with an incomplete or missing checklist will be unceremoniously closed.
12+
-->
1113

12-
Please include relevant links supporting this change such as a:
14+
### 📋 Changes
1315

14-
- support ticket
15-
- community post
16-
- StackOverflow post
17-
- support forum thread
16+
<!--
17+
Describe both what is changing and why this is important. Include:
1818
19-
Please note any links that are not publicly accessible.
19+
- Types and methods added, deleted, deprecated, or changed
20+
- A summary of usage if this is a new feature or a change to a public API
21+
-->
2022

21-
### Testing
23+
### 📎 References
2224

23-
Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.
25+
<!--
26+
Add relevant links supporting this change, such as:
2427
25-
* [ ] This change adds unit test coverage
26-
* [ ] This change has been tested on the latest version of the platform/language or why not
28+
- GitHub issue/PR number addressed or fixed
29+
- Auth0 Community post
30+
- StackOverflow answer
31+
- Related pull requests/issues from other repositories
2732
28-
### Checklist
33+
If there are no references, simply delete this section.
34+
-->
2935

30-
* [ ] I have read the [Auth0 general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
31-
* [ ] All existing and new tests complete without errors
32-
* [ ] All active GitHub checks have passed
36+
### 🎯 Testing
37+
38+
<!--
39+
Describe how this can be tested by reviewers. Be specific about anything not tested and why. Include any manual steps for testing end-to-end, or for testing functionality not covered by unit tests.
40+
-->

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ playground.xcworkspace
6161
#
6262
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
6363
# Packages/
64+
.swiftpm/
6465
.build/
6566
Package.resolved
6667

@@ -93,4 +94,7 @@ fastlane/test_output
9394
fastlane/README.md
9495

9596
# Playground Timeline
96-
timeline.xctimeline
97+
timeline.xctimeline
98+
99+
# Documentation generation
100+
docs.archive/

.shiprc

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
2-
"files": {
3-
"JWTDecode/Info.plist": [],
4-
"JWTDecode.podspec": [],
5-
"README.md": ["~> {MAJOR}.{MINOR}"]
6-
},
7-
"postbump": "bundle update",
8-
"prefixVersion": false
2+
"files": {
3+
"JWTDecode/Info.plist": [],
4+
"JWTDecode.podspec": [],
5+
"README.md": [
6+
"~> {MAJOR}.{MINOR}"
7+
]
8+
},
9+
"postbump": "bundle update && bundle exec fastlane ios build_docs",
10+
"prefixVersion": false
911
}

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)