Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Types and Organize Project files #61

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
8f0d02b
feat: sort files by name inside Source folder
loay-ashraf Oct 10, 2023
29a179e
feat: restructure framework project
loay-ashraf Oct 10, 2023
ea03a8b
feat: update docs
loay-ashraf Oct 10, 2023
305ad05
feat: update docs
loay-ashraf Oct 10, 2023
6cb3d78
feat: update examples
loay-ashraf Oct 10, 2023
156812a
feat: update docs
loay-ashraf Oct 10, 2023
83bf1fc
feat: move common http types to separate framework
loay-ashraf Oct 10, 2023
d5f351a
update ci
loay-ashraf Oct 10, 2023
4a1af47
update ci
loay-ashraf Oct 10, 2023
c9e7d58
feat: add CoreHTTP as swift package
loay-ashraf Oct 10, 2023
d4cdacf
Update Package.swift
loay-ashraf Oct 11, 2023
ea3dbb3
feat: add CoreHTTP as a remote Swift Package
loay-ashraf Oct 11, 2023
c56ef0c
Update Package.swift
loay-ashraf Oct 11, 2023
9e94881
Update Package.swift
loay-ashraf Oct 11, 2023
07a568f
feat: update docs
loay-ashraf Oct 11, 2023
d33bf99
Update build-macos.yml
loay-ashraf Oct 12, 2023
03a0d1c
Update build-macos.yml
loay-ashraf Oct 12, 2023
345dd64
feat: add CoreExample framework
loay-ashraf Oct 12, 2023
f822dc5
feat: add CoreExample as a dependency
loay-ashraf Oct 12, 2023
303858f
feat: add CoreExample to macOS Example
loay-ashraf Oct 12, 2023
500b872
fix: update code signing for framework
loay-ashraf Oct 12, 2023
c00bb84
Update build-macos.yml
loay-ashraf Oct 12, 2023
0310fd2
Update build-macos.yml
loay-ashraf Oct 12, 2023
7fe9e81
update frameworks flow
loay-ashraf Oct 12, 2023
a7f03a9
Update build-ios.yml
loay-ashraf Oct 12, 2023
36f9188
Update Package.resolved
loay-ashraf Oct 12, 2023
a1bdc28
Update project.pbxproj
loay-ashraf Oct 12, 2023
bd28653
Update project.pbxproj
loay-ashraf Oct 12, 2023
7cef885
Update build-ios.yml
loay-ashraf Oct 12, 2023
ecf33d6
update dependencies
loay-ashraf Oct 12, 2023
01dd011
feat: add Session object that can be shared between RESTClient and HT…
loay-ashraf Nov 1, 2023
c2e3ebd
refactor: remove reference to event monitor in RESTClient and HTTPClient
loay-ashraf Nov 1, 2023
7deb7dc
feat: update ci workflows
loay-ashraf Nov 1, 2023
8eb7c24
feat: update documentation
loay-ashraf Jan 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
- name: Set Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.0'
xcode-version: 'latest-stable'
- name: Build Framework
env:
workspace: RxNetworkKit.xcworkspace
scheme: RxNetworkKit
destination: generic/platform=iOS Simulator
run: |
xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" | xcpretty && exit ${PIPESTATUS[0]}
xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}

framework-ios:
name: Build Framework For iOS Device
Expand All @@ -34,14 +34,14 @@ jobs:
- name: Set Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.0'
xcode-version: 'latest-stable'
- name: Build Framework
env:
workspace: RxNetworkKit.xcworkspace
scheme: RxNetworkKit
destination: generic/platform=iOS
run: |
xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" | xcpretty && exit ${PIPESTATUS[0]}
xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}

example-ios-simulator:
name: Build Example For iOS Simulator
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Set Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.0'
xcode-version: 'latest-stable'
- name: Build Example
env:
workspace: RxNetworkKit.xcworkspace
Expand All @@ -74,7 +74,7 @@ jobs:
- name: Set Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.0'
xcode-version: 'latest-stable'
- name: Build Example
env:
workspace: RxNetworkKit.xcworkspace
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
- name: Set Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.0'
xcode-version: 'latest-stable'
- name: Build Framework
env:
workspace: RxNetworkKit.xcworkspace
scheme: RxNetworkKit
destination: generic/platform=macOS
run: |
xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" docbuild | xcpretty && exit ${PIPESTATUS[0]}
xcodebuild clean build -workspace "${workspace}" -scheme "${scheme}" -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty && exit ${PIPESTATUS[0]}

example-macos:
name: Build Example For macOS
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Set Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.0'
xcode-version: 'latest-stable'
- name: Build Example
env:
workspace: RxNetworkKit.xcworkspace
Expand Down
32 changes: 32 additions & 0 deletions Docs.docc/Pages/HTTPClient.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# ``HTTPClient``

## Topics

### Creating a HTTP Client

- ``HTTPClient/init(session:requestInterceptor:)``

### Downloading a File

- ``HTTPDownloadRequestRouter``
- ``HTTPDownloadRequestEvent``
- ``HTTPClient/download(_:_:_:)``
- ``HTTPClient/download(_:_:_:_:)``

### Uploading a File

- ``HTTPUploadRequestRouter``
- ``HTTPUploadRequestEvent``
- ``HTTPUploadRequestFile``
- ``HTTPUploadRequestFormData``
- ``HTTPClient/upload(_:_:_:_:)-cavg``
- ``HTTPClient/upload(_:_:_:_:)-2m1kr``

### Connecting to a WebSocket

- ``WebSocket``
- ``WebSocketMessage``
- ``WebSocketCloseCode``
- ``WebSocketCloseHandler``
- ``WebSocketError``
- ``HTTPClient/webSocket(_:_:_:)``
38 changes: 0 additions & 38 deletions Docs.docc/Pages/NetworkManager.md

This file was deleted.

13 changes: 13 additions & 0 deletions Docs.docc/Pages/RESTClient.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ``RESTClient``

## Topics

### Creating a REST Client

- ``RESTClient/init(session:requestInterceptor:)``

### Making an API Call

- ``HTTPRequestRouter``
- ``RESTClient/request(_:_:_:)-8yak0``
- ``RESTClient/request(_:_:_:)-2spzm``
27 changes: 14 additions & 13 deletions Docs.docc/Pages/RxNetworkKit.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,35 @@ It makes use of RxSwift's traits at request level to acheive a high level of spe

### Foundation

- ``NetworkManager``
- ``RESTClient``
- ``HTTPClient``

### HTTP

- ``HTTPScheme``
- ``HTTPMethod``
- ``HTTPStatusCode``
- ``HTTPErrorBody``
- ``DefaultHTTPErrorBody``
- ``HTTPBodyError``
- ``DefaultHTTPBodyError``

### Error

- ``NetworkError``
- ``NetworkAPIError``
- ``DefaultNetworkAPIError``
- ``NetworkClientError``
- ``NetworkServerError``
- ``HTTPError``
- ``HTTPAPIError``
- ``DefaultHTTPAPIError``
- ``HTTPClientError``
- ``HTTPServerError``

### Request Interceptor

- ``NetworkRequestInterceptor``
- ``NetworkRequestAdapter``
- ``NetworkRequestRetrier``
- ``NetworkRequestRetryPolicy``
- ``HTTPRequestInterceptor``
- ``HTTPRequestAdapter``
- ``HTTPRequestRetrier``
- ``HTTPRequestRetryPolicy``

### Event Monitor

- ``NetworkEventMonitor``
- ``HTTPRequestEventMonitor``

### Network Reachability

Expand Down
Loading
Loading