Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Remove the API protocol and make it a class instead. - #127

Merged
mironal merged 7 commits into
mainfrom
class
Jul 3, 2022
Merged

Remove the API protocol and make it a class instead.#127
mironal merged 7 commits into
mainfrom
class

Conversation

@mironal

@mironal mironal commented Jul 3, 2022

Copy link
Copy Markdown
Owner

We chose to use classes for the following reasons.

Protocols are not scalable.

Protocols make it difficult to write extensions such as RxSwift's Reactive.

@codecov-commenter

codecov-commenter commented Jul 3, 2022

Copy link
Copy Markdown

Codecov Report

Merging #127 (4768f0e) into main (5e647ab) will decrease coverage by 6.79%.
The diff coverage is 6.66%.

@@            Coverage Diff             @@
##             main     #127      +/-   ##
==========================================
- Coverage   87.11%   80.32%   -6.80%     
==========================================
  Files         254      255       +1     
  Lines        6241     6805     +564     
==========================================
+ Hits         5437     5466      +29     
- Misses        804     1339     +535     
Impacted Files Coverage Δ
...ces/TwitterAPIKit/APIv1/Account/AccountAPIv1.swift 0.00% <ø> (ø)
...terAPIKit/APIv1/Application/ApplicationAPIv1.swift 0.00% <0.00%> (ø)
...rAPIKit/APIv1/BlockAndMute/BlockAndMuteAPIv1.swift 0.00% <ø> (ø)
...itterAPIKit/APIv1/Collection/CollectionAPIv1.swift 0.00% <ø> (ø)
...PIKit/APIv1/DirectMessage/DirectMessageAPIv1.swift 0.00% <0.00%> (ø)
...s/TwitterAPIKit/APIv1/Favorite/FavoriteAPIv1.swift 0.00% <ø> (ø)
...terAPIKit/APIv1/Friendships/FriendshipsAPIv1.swift 0.00% <ø> (ø)
Sources/TwitterAPIKit/APIv1/Geo/GeoAPIv1.swift 0.00% <ø> (ø)
Sources/TwitterAPIKit/APIv1/Help/HelpAPIv1.swift 0.00% <ø> (ø)
Sources/TwitterAPIKit/APIv1/List/ListAPIv1.swift 0.00% <ø> (ø)
... and 29 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e647ab...4768f0e. Read the comment docs.

@mironal mironal changed the title Class Jul 3, 2022
@mironal mironal changed the title Remove API Classes Jul 3, 2022
@mironal mironal changed the title Remove API Protocols Jul 3, 2022
@mironal
mironal merged commit 89308a3 into main Jul 3, 2022
@mironal
mironal deleted the class branch July 3, 2022 14:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants