Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #69 from mobilejazz/master
Browse files Browse the repository at this point in the history
Update Develop with Master changes
  • Loading branch information
lucianosantana authored Oct 29, 2020
2 parents 1fb3903 + 8df0afb commit bb1cee5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/fundamentals/data/data-source/data-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Concept
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

A `DataSource` is an interace for those classes responsible of managing sources of data.
A `DataSource` is an interface for those classes responsible of managing sources of data.

Among the Harmony architecture, the data source is the first component that provides a defined public interface for data manipulation. Every action that a data source does must be bundled within its interface.

Expand Down
2 changes: 1 addition & 1 deletion docs/fundamentals/data/repository/repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ For more information, read the [`Operation`](operation) reference.

## Understanding the abstraction

It's a good idea to use repositories isntead of data sources directly becuase often you will want to do a more elaborated data management (aka. data business logic).
It's a good idea to use repositories instead of data sources directly becuase often you will want to do a more elaborated data management (aka. data business logic).

For example, we can think in the case of buidling a simple cache system. Typically, starting from a network API service class, we would write some code similar to:

Expand Down
2 changes: 1 addition & 1 deletion docs/old/data-source/data-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: DataSource
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

A `DataSource` is an interace for those classes responsible of fetching and managing raw data. This data can be manipulated in many ways as for example being stored in a local database, being sent via a network or socket interface or any third party services (sending emails via Sengrid or SMS via another service).
A `DataSource` is an interface for those classes responsible of fetching and managing raw data. This data can be manipulated in many ways as for example being stored in a local database, being sent via a network or socket interface or any third party services (sending emails via Sengrid or SMS via another service).

## Usage

Expand Down
3 changes: 2 additions & 1 deletion src/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ module.exports = {
'fundamentals/data/data-source/in-memory-data-source',
'fundamentals/data/data-source/device-storage-data-source',
'fundamentals/data/data-source/data-source-validator',
'fundamentals/data/data-source/keychain-data-source'
'fundamentals/data/data-source/keychain-data-source',
'fundamentals/data/data-source/realm-data-source'
]
},
]
Expand Down

0 comments on commit bb1cee5

Please sign in to comment.