-
-
Notifications
You must be signed in to change notification settings - Fork 139
Feature - Share Functionality #2574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alperozturk96
wants to merge
129
commits into
main
Choose a base branch
from
feature/internal-share
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
129 commits
Select commit
Hold shift + click to select a range
8c5e87f
add layout
alperozturk96 f7acd88
add fragment
alperozturk96 9f825a8
add some logic
alperozturk96 612e400
add viewholders
alperozturk96 0dec990
add UsersAndGroupsSearchConfig
alperozturk96 547b732
add ShareLinkToDialog
alperozturk96 34f4a5a
add FileDetailSharingMenuBottomSheetDialog
alperozturk96 843fda2
add QuickSharingPermissionsBottomSheetDialog
alperozturk96 479124e
add SharePasswordDialogFragment
alperozturk96 1847eda
add RetrieveHoverCardAsyncTask
alperozturk96 12856e9
first successfull build
alperozturk96 a27b91d
dont use user
alperozturk96 635ba0e
convert to activity
alperozturk96 1e12048
use branded activity
alperozturk96 35fa976
add share api
alperozturk96 c2867eb
use share api
alperozturk96 c4b11ef
fix parsing for sharee
alperozturk96 9d8c065
bind suggestions to UI
alperozturk96 e157d86
bind suggestions to UI
alperozturk96 484677b
add to-do
alperozturk96 af49ff3
Rename .java to .kt
alperozturk96 b2c7f9f
add icon for suggestion
alperozturk96 092ebd2
add READ_CONTACTS permission
alperozturk96 d52e1bd
fix share internal link
alperozturk96 6224f49
hide shared_with_you_container
alperozturk96 2d00a24
add previous functionality
alperozturk96 1c83a3d
add NoteShareDetailActivity
alperozturk96 2fa741d
cleanup translations
alperozturk96 fb20691
add create share
alperozturk96 560aef1
add create share
alperozturk96 72d9af1
cleanup
alperozturk96 99073a1
add progress bar for search
alperozturk96 f11ba65
updated CreateShareResponse
alperozturk96 015f6b4
dont use blocking get
alperozturk96 39b1265
add update logic
alperozturk96 bfa547c
add updateShareInformation
alperozturk96 0a159b3
add edit
alperozturk96 b7cedb3
add missing functionality
alperozturk96 bd0fc3e
add search_close_btn
alperozturk96 e1da399
fix UsersAndGroupsSearchProvider
alperozturk96 a4644a1
fix UsersAndGroupsSearchProvider
alperozturk96 30344ac
fix getSharees
alperozturk96 9920b40
fix add
alperozturk96 1f505d3
add getShares
alperozturk96 98b5446
add fetch and save logic
alperozturk96 9694a65
fix build
alperozturk96 848b2ca
fix more action bottom sheet
alperozturk96 fed14ff
fix removeShare
alperozturk96 5e02a85
remove unused functionalities
alperozturk96 279ac4d
remove unused functionalities
alperozturk96 ea1e5d7
add new capabilities
alperozturk96 90741fa
add new capabilities
alperozturk96 7d2db4d
save capabilities as entity
alperozturk96 82c0c61
fix flow
alperozturk96 9b1e334
fix update logic
alperozturk96 3d5d6ab
separate logic
alperozturk96 7fc7a9d
remove duplicated logic
alperozturk96 cef1f0c
remove duplicated logic
alperozturk96 b6df0e9
add ShareAttributes versions
alperozturk96 11766b4
fix condition for shouldUseShareAttributesV2
alperozturk96 e4a9f1c
fix avatar loader
alperozturk96 02116e9
use ScheduledExecutorService
alperozturk96 66fd0b9
shutdown ScheduledExecutorService onDestroy
alperozturk96 2a2d022
remove unused codes
alperozturk96 de64c43
BrandedBottomSheetDialog
alperozturk96 502a058
BrandedViewHolder
alperozturk96 00ba5f9
fix colors
alperozturk96 a44bc82
add ARG_EXP_DATE_SHOWN
alperozturk96 933486d
add TODOs
alperozturk96 64ec92d
fix updateShare
alperozturk96 dcbd41a
fix getSharesForNotesAndSaveShareEntities
alperozturk96 ba15c67
fix getSharesForNotesAndSaveShareEntities
alperozturk96 be3b159
fix duplicated items
alperozturk96 19842c5
fix accountOwnsFile
alperozturk96 705bb37
skip all types but users, as E2E secure share is only allowed to user…
alperozturk96 50a38af
optimize imports
alperozturk96 cee9c47
fix compilation error
alperozturk96 055e23f
add some logic
alperozturk96 370c4bd
first successfull build
alperozturk96 534257e
fix build
alperozturk96 54ff709
add createPublicShareLink
alperozturk96 74b2d47
fix createPublicShareLink
alperozturk96 95be6c1
add copyAndShareFileLink
alperozturk96 a2b285b
clean imports
alperozturk96 876f997
add fix me
alperozturk96 ae00490
add missing field for oc share
alperozturk96 96d05c3
add isSharedViaLink
alperozturk96 a715566
fix json parsing
alperozturk96 b71874b
fix git conflicts
alperozturk96 9cbae8a
add some logic
alperozturk96 0d00294
first successfull build
alperozturk96 5b96d8a
fix build
alperozturk96 7446b35
add createPublicShareLink
alperozturk96 c82dedd
add copyAndShareFileLink
alperozturk96 5fb2419
add setShareWithYou
alperozturk96 2c3bbf4
fix else logic
alperozturk96 88bf3fd
remove unnecessary delay logic
alperozturk96 e8c4131
fix
alperozturk96 06839b6
fix
alperozturk96 48670cf
fix git conflicts
alperozturk96 097a1c2
remove note
alperozturk96 bd3ef72
check resharing
alperozturk96 fdd8a2b
Merge pull request #2578 from nextcloud/feature/shared-with-you
tobiasKaminsky 3f7c920
Merge pull request #2575 from nextcloud/feature/public-share
tobiasKaminsky 8f2bc70
add getShareFromNote
alperozturk96 5576e04
check public share permission
alperozturk96 90ed413
merge master
alperozturk96 a67fbd7
merge master
alperozturk96 7f8cbc7
remove unused functions and add todos
alperozturk96 01df2e3
fail fast handleContactResult
alperozturk96 1a00750
add FIXME
alperozturk96 0c75ba5
fix crashes
alperozturk96 4898e09
fix crashes
alperozturk96 2adf41f
check shareType
alperozturk96 ca134d9
add loading layout
alperozturk96 50c103d
check shares
alperozturk96 a0808aa
add FilesSpecificViewThemeUtils
alperozturk96 e576292
fix toOCShare
alperozturk96 db6f425
fix isHideFileDownload
alperozturk96 6a279c8
solve git conflict
alperozturk96 8228c47
solve git conflict
alperozturk96 dbe2bf1
fix git conflict
alperozturk96 7bc133a
fix git conflict
alperozturk96 8cb5ad9
Merge branch 'main' into feature/internal-share
alperozturk96 6557a20
simplify
alperozturk96 ff1527a
fix duplication and avatar
alperozturk96 73e7f7d
fix git conflicts
alperozturk96 4ef5822
Merge branch 'main' into feature/internal-share
alperozturk96 cce12b8
inject SharePasswordDialogListener
alperozturk96 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,15 @@ ext { | |
dependencies { | ||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5' | ||
|
||
implementation 'com.google.guava:guava:31.1-android' | ||
implementation ('commons-httpclient:commons-httpclient:3.1') { | ||
exclude group: 'commons-logging', module: 'commons-logging' | ||
} | ||
|
||
implementation("com.github.nextcloud:android-library:2.19.0") { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needed for
|
||
exclude group: 'org.ogce', module: 'xpp3' | ||
} | ||
|
||
// Nextcloud SSO | ||
implementation 'com.github.nextcloud.android-common:ui:48ed8e86d9' | ||
implementation 'com.github.nextcloud:Android-SingleSignOn:1.3.2' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ | |
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
|
||
<uses-permission android:name="android.permission.READ_CONTACTS" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needed for NoteShareActivity.requestContactPermissionLauncher() |
||
<uses-permission android:name="com.owncloud.android.providers.PERMISSION" /> | ||
<queries> | ||
<package android:name="com.nextcloud.client" /> | ||
<package android:name="com.nextcloud.android.beta" /> | ||
|
@@ -47,10 +48,22 @@ | |
android:value=".android.activity.NotesListViewActivity" /> | ||
</activity> | ||
|
||
<activity | ||
android:name=".share.NoteShareActivity" /> | ||
|
||
<activity | ||
android:name=".share.NoteShareDetailActivity" /> | ||
|
||
<activity | ||
android:name=".importaccount.ImportAccountActivity" | ||
android:label="@string/add_account" /> | ||
|
||
<activity | ||
android:name=".shared.util.clipboard.CopyToClipboardActivity" | ||
android:exported="false" | ||
android:icon="@drawable/shared_via_link" | ||
android:label="@string/copy_link" /> | ||
|
||
<activity | ||
android:name=".AppendToNoteActivity" | ||
android:label="@string/append_to_note" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
app/src/main/java/it/niedermann/owncloud/notes/branding/BrandedBottomSheetDialog.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package it.niedermann.owncloud.notes.branding | ||
|
||
import android.content.Context | ||
import androidx.annotation.ColorInt | ||
import com.google.android.material.bottomsheet.BottomSheetDialog | ||
|
||
abstract class BrandedBottomSheetDialog(context: Context) : BottomSheetDialog(context), Branded { | ||
|
||
override fun onStart() { | ||
super.onStart() | ||
|
||
@ColorInt val color = BrandingUtil.readBrandMainColor(context) | ||
applyBrand(color) | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
app/src/main/java/it/niedermann/owncloud/notes/branding/BrandedViewHolder.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package it.niedermann.owncloud.notes.branding | ||
|
||
import android.view.View | ||
import androidx.annotation.ColorInt | ||
import androidx.recyclerview.widget.RecyclerView | ||
|
||
abstract class BrandedViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView), Branded { | ||
|
||
fun bindBranding() { | ||
@ColorInt val color = BrandingUtil.readBrandMainColor(itemView.context) | ||
applyBrand(color) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed for to fix following build error: