Origin is global (app level)

Open
#184 9 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
swift
Domain
mobile

Research direction

Read the linked origin.md document first, then locate where the toolkit handles origin and publication storage. Check whether items can be retrieved or cleared across publications, and review the reported console logs. Done means origin data is scoped per publication and the issue’s logging concern has a clear resolution.

Written by the indexing model from the issue text.

Description

After a quick localStorage check, it appears the origin is shared for all publications, and you can retrieve and clear items set in one file from any other file.

It is my understanding it should be possible to scope it to each publication as most iOS Reading Apps I could test are currently doing it.

See Daniel’s doc for further details.

On a funnier note, I could also get all the console.log e.g. scrollToPosition, scrollToOffset, Touch sent to native code. We should probably remove those logs once the app is available in the app store (debug/prod etc.).

Dominant language
Swift
Stars
557
Forks
249
Avg merge
3h 52m
Merged PRs (30d)
19

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from readium/swift-toolkit

All issues in readium/swift-toolkit

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.