8000 Remove `Mappable`, `JSON`, `Parse` and `Serialize` 🚮 by p4checo · Pull Request #220 · Mindera/Alicerce · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@p4checo
Copy link
Collaborator
@p4checo p4checo commented Sep 30, 2020

Checklist

Motivation and Context

Since the introduction of Codable that Mappable became deprecated, but for one reason or another we didn't remove it. That time has come.

As the JSON, Parse and Serialize "namespaces" are tightly coupled to the Mappable protocol, they have also been removed. The exception was UIImage encoding/decoding to/from Data, but that can easily be done by using native APIs like pngData()/jpegData(compressionQuality:) or UIImage.init(data:), respectively.

Closes #119 (finally 😅).

Description

  • Remove Mappable.

  • Remove JSON, Parse and Serialize namespaces and helpers.

Since the introduction of `Codable` that `Mappable` became deprecated,
but for one reason or another we didn't remove it. That time has come.

As the `JSON`, `Parse` and `Serialize` "namespaces" are tightly coupled
to the `Mappable` protocol, they have also been removed. The exception
was `UIImage` encoding/decoding to/from `Data`, but that can easily be
done by using native APIs like
`pngData()`/`jpegData(compressionQuality:)` or `UIImage.init(data:)`,
respectively.

Closes #119 (finally 😅).

## Changes

- Remove `Mappable`.

- Remove `JSON`, `Parse` and `Serialize` namespaces and helpers.
@codecov
Copy link
codecov bot commented Sep 30, 2020

Codecov Report

Merging #220 into master will decrease coverage by 0.12%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #220      +/-   ##
==========================================
- Coverage   94.94%   94.82%   -0.13%     
==========================================
  Files         102       97       -5     
  Lines        3345     3190     -155     
==========================================
- Hits         3176     3025     -151     
+ Misses        169      165       -4     

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 812a8ab...5a60d93. Read the comment docs.

@p4checo p4checo merged commit 0fe7734 into master Oct 1, 2020
@p4checo p4checo deleted the remove-mappable-and-json-parse-serialize branch October 1, 2020 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should use Codable for JSON parsing / encoding

6 participants

0