Skip to content

Commit

Permalink
Merge pull request #3871 from stefanosansone/feature/following-screen
Browse files Browse the repository at this point in the history
Android - Following screen
  • Loading branch information
jacksonh committed Apr 29, 2024
2 parents 4632d08 + 1322798 commit 44d3edc
Show file tree
Hide file tree
Showing 98 changed files with 5,201 additions and 3,479 deletions.
4 changes: 2 additions & 2 deletions android/Omnivore/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ android {
applicationId = "app.omnivore.omnivore"
minSdk = 26
targetSdk = 34
versionCode = 2000080
versionName = "0.200.8"
versionCode = 2010000
versionName = "0.201.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
18 changes: 9 additions & 9 deletions android/Omnivore/app/src/main/graphql/ApplyLabels.graphql
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
mutation SetLabels($input: SetLabelsInput!) {
setLabels(input: $input) {
... on SetLabelsSuccess {
labels {
...LabelFields
}
setLabels(input: $input) {
... on SetLabelsSuccess {
labels {
...LabelFields
}
}
... on SetLabelsError {
errorCodes
}
}
... on SetLabelsError {
errorCodes
}
}
}
18 changes: 9 additions & 9 deletions android/Omnivore/app/src/main/graphql/ArchiveSavedItem.graphql
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
mutation SetLinkArchived($input: ArchiveLinkInput!) {
setLinkArchived(input: $input) {
... on ArchiveLinkSuccess {
linkId
message
setLinkArchived(input: $input) {
... on ArchiveLinkSuccess {
linkId
message
}
... on ArchiveLinkError {
message
errorCodes
}
}
... on ArchiveLinkError {
message
errorCodes
}
}
}
113 changes: 57 additions & 56 deletions android/Omnivore/app/src/main/graphql/ArticleContent.graphql
Original file line number Diff line number Diff line change
@@ -1,70 +1,71 @@
query GetArticle($slug: String!) {
article(username: "me", slug: $slug) {
... on ArticleSuccess {
article {
...ArticleFields
content
highlights(input: { includeFriends: false }) {
...HighlightFields
article(username: "me", slug: $slug) {
... on ArticleSuccess {
article {
...ArticleFields
content
highlights(input: { includeFriends: false }) {
...HighlightFields
}
labels {
...LabelFields
}
}
}
labels {
...LabelFields
... on ArticleError {
errorCodes
}
}
}
... on ArticleError {
errorCodes
}
}
}

fragment ArticleFields on Article {
id
title
url
author
image
savedAt
createdAt
publishedAt
contentReader
originalArticleUrl
readingProgressPercent
readingProgressAnchorIndex
slug
isArchived
description
linkId
siteName
state
readAt
updatedAt
content
wordsCount
id
title
folder
url
author
image
savedAt
createdAt
publishedAt
contentReader
originalArticleUrl
readingProgressPercent
readingProgressAnchorIndex
slug
isArchived
description
linkId
siteName
state
readAt
updatedAt
content
wordsCount
}

fragment HighlightFields on Highlight {
id
type
shortId
quote
prefix
suffix
patch
annotation
createdByMe
createdAt
updatedAt
sharedAt
color
highlightPositionPercent
highlightPositionAnchorIndex
id
type
shortId
quote
prefix
suffix
patch
annotation
createdByMe
createdAt
updatedAt
sharedAt
color
highlightPositionPercent
highlightPositionAnchorIndex
}

fragment LabelFields on Label {
id
name
color
description
createdAt
id
name
color
description
createdAt
}
18 changes: 9 additions & 9 deletions android/Omnivore/app/src/main/graphql/CreateHighlight.graphql
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
mutation CreateHighlight($input: CreateHighlightInput!) {
createHighlight(input: $input) {
... on CreateHighlightSuccess {
highlight {
...HighlightFields
}
}
createHighlight(input: $input) {
... on CreateHighlightSuccess {
highlight {
...HighlightFields
}
}

... on CreateHighlightError {
errorCodes
... on CreateHighlightError {
errorCodes
}
}
}
}
26 changes: 13 additions & 13 deletions android/Omnivore/app/src/main/graphql/CreateLabel.graphql
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
mutation CreateLabel($input: CreateLabelInput!) {
createLabel(input: $input) {
... on CreateLabelSuccess {
label {
id
name
color
description
createdAt
}
createLabel(input: $input) {
... on CreateLabelSuccess {
label {
id
name
color
description
createdAt
}
}
... on CreateLabelError {
errorCodes
}
}
... on CreateLabelError {
errorCodes
}
}
}
18 changes: 9 additions & 9 deletions android/Omnivore/app/src/main/graphql/DeleteHighlight.graphql
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
mutation DeleteHighlight($highlightId: ID!) {
deleteHighlight(highlightId: $highlightId) {
... on DeleteHighlightSuccess {
highlight {
id
}
deleteHighlight(highlightId: $highlightId) {
... on DeleteHighlightSuccess {
highlight {
id
}
}
... on DeleteHighlightError {
errorCodes
}
}
... on DeleteHighlightError {
errorCodes
}
}
}
18 changes: 9 additions & 9 deletions android/Omnivore/app/src/main/graphql/DeleteSavedItem.graphql
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
mutation SetBookmarkArticle($input: SetBookmarkArticleInput!) {
setBookmarkArticle(input: $input) {
... on SetBookmarkArticleSuccess {
bookmarkedArticle {
id
}
setBookmarkArticle(input: $input) {
... on SetBookmarkArticleSuccess {
bookmarkedArticle {
id
}
}
... on SetBookmarkArticleError {
errorCodes
}
}
... on SetBookmarkArticleError {
errorCodes
}
}
}
18 changes: 9 additions & 9 deletions android/Omnivore/app/src/main/graphql/Labels.graphql
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
query GetLabels {
labels {
... on LabelsSuccess {
labels {
...LabelFields
}
labels {
... on LabelsSuccess {
labels {
...LabelFields
}
}
... on LabelsError {
errorCodes
}
}
... on LabelsError {
errorCodes
}
}
}
40 changes: 20 additions & 20 deletions android/Omnivore/app/src/main/graphql/MergeHighlight.graphql
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
mutation MergeHighlight($input: MergeHighlightInput!) {
mergeHighlight(input: $input) {
... on MergeHighlightSuccess {
highlight {
id
shortId
quote
prefix
suffix
patch
createdAt
updatedAt
annotation
sharedAt
createdByMe
}
overlapHighlightIdList
mergeHighlight(input: $input) {
... on MergeHighlightSuccess {
highlight {
id
shortId
quote
prefix
suffix
patch
createdAt
updatedAt
annotation
sharedAt
createdByMe
}
overlapHighlightIdList
}
... on MergeHighlightError {
errorCodes
}
}
... on MergeHighlightError {
errorCodes
}
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
mutation SaveArticleReadingProgress($input: SaveArticleReadingProgressInput!) {
saveArticleReadingProgress(input: $input) {
... on SaveArticleReadingProgressSuccess {
updatedArticle {
id
readingProgressPercent
readingProgressAnchorIndex
}
saveArticleReadingProgress(input: $input) {
... on SaveArticleReadingProgressSuccess {
updatedArticle {
id
readingProgressPercent
readingProgressAnchorIndex
}
}
... on SaveArticleReadingProgressError {
errorCodes
}
}
... on SaveArticleReadingProgressError {
errorCodes
}
}
}
14 changes: 7 additions & 7 deletions android/Omnivore/app/src/main/graphql/SaveUrl.graphql
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
mutation SaveUrl($input: SaveUrlInput!) {
saveUrl(input: $input) {
... on SaveSuccess {
url
saveUrl(input: $input) {
... on SaveSuccess {
url
}
... on SaveError {
errorCodes
}
}
... on SaveError {
errorCodes
}
}
}

0 comments on commit 44d3edc

Please sign in to comment.