Compare commits

..
Author SHA1 Message Date
Tobias Kaminsky 8b3e16cd96 update to 20161231 2016-12-31 00:35:49 +01:00
AndyScherzinger bda72a0be6 Merge branch 'emailShareCrashFix' of https://github.com/nextcloud/android into beta
# Conflicts:
#	CHANGELOG.md
#	src/com/owncloud/android/ui/fragment/ExtendedListFragment.java
2016-12-30 18:51:28 +01:00
AndyScherzinger 6d8366ab6f changelog 2016-12-30 17:37:44 +01:00
AndyScherzinger fb955be26b Merge branch 'emailShareCrashFix' of https://github.com/nextcloud/android into beta 2016-12-30 17:32:19 +01:00
AndyScherzinger 4b27b03f48 resolves: #483 - adding proper email sharee handling 2016-12-30 17:25:54 +01:00
Tobias Kaminsky 2faf793f32 update to 20161230 2016-12-30 00:35:14 +01:00
tobiasKaminsky 45bf886d90 Merge remote-tracking branch 'origin/beta' into beta 2016-12-29 16:26:23 +01:00
tobiasKaminsky 210c446cd9 Merge remote-tracking branch 'remotes/origin/disableInstantUploadLoggingOnNougat' into beta 2016-12-29 16:26:05 +01:00
tobiasKaminsky c43a034f43 Merge remote-tracking branch 'remotes/origin/pendingJobsinUploadView' into beta 2016-12-29 16:25:55 +01:00
tobiasKaminsky 86b9ed532d disable handling broadcast on Nougat and better 2016-12-29 16:10:59 +01:00
tobiasKaminsky c5c3d2f9a1 show pending jobs in upload view
cancel pending jobs
2016-12-29 16:07:25 +01:00
tobiasKaminsky 5b19a80c2c Merge remote-tracking branch 'remotes/origin/master' into showPendingJobs 2016-12-29 15:14:54 +01:00
tobiasKaminsky 3553854e15 Merge remote-tracking branch 'remotes/origin/autoUploadNoTmpFiles' into beta
# Conflicts:
#	src/com/owncloud/android/services/observer/SyncedFolderObserver.java
2016-12-29 14:49:37 +01:00
tobiasKaminsky 37b6abac9f ignore files ending with ".tmp" 2016-12-29 14:47:17 +01:00
Tobias Kaminsky 12da0a83c6 update to 20161229 2016-12-29 00:35:20 +01:00
tobiasKaminsky 194844e9ed Merge remote-tracking branch 'remotes/origin/fixRemovingFileBug' into beta 2016-12-28 10:07:31 +01:00
tobiasKaminsky 56688fa8ae fixed removing files #473 2016-12-28 10:05:19 +01:00
Tobias Kaminsky 9fbee9c741 update to 20161224 2016-12-24 00:35:39 +01:00
tobiasKaminsky c6470c26aa Merge remote-tracking branch 'remotes/origin/AutoUploadDelayAndCheck' into beta 2016-12-23 12:13:48 +01:00
tobiasKaminsky 331b7a679d Merge remote-tracking branch 'remotes/origin/autoUploadOnlyFiles' into beta 2016-12-23 12:13:37 +01:00
tobiasKaminsky 140418cc4c - delay job execution by minimal 10s
- on job execution: check if file exists prior to real upload. If file does not exist anymore, just ignore it
2016-12-23 11:19:22 +01:00
tobiasKaminsky 7d5a90d7a2 auto upload: only files, no folders 2016-12-23 10:25:19 +01:00
Tobias Kaminsky 3bada9ff28 update to 20161222 2016-12-22 00:36:47 +01:00
AndyScherzinger 04c0645079 Merge branch 'uploadUrlFile' of https://github.com/zmatsuo/android into beta 2016-12-21 13:18:47 +01:00
AndyScherzinger 9ee4bc38d6 log 2016-12-21 13:05:24 +01:00
AndyScherzinger 04bd1d492b Merge branch 'uploadUrlFile' of https://github.com/zmatsuo/android into beta 2016-12-21 13:05:17 +01:00
AndyScherzinger 5af7a1613c Merge branch 'uploadUrlFile' of https://github.com/zmatsuo/android into beta
# Conflicts:
#	src/com/owncloud/android/ui/activity/ReceiveExternalFilesActivity.java
2016-12-21 12:58:56 +01:00
AndyScherzinger 20486c72bf Merge branch 'uploadUrlFile' of https://github.com/zmatsuo/android into beta 2016-12-21 12:16:51 +01:00
Tobias Kaminsky 640415bfd9 update to 20161215 2016-12-15 00:36:13 +01:00
AndyScherzinger f82893683c CHANGELOG 2016-12-14 14:42:07 +01:00
AndyScherzinger bc1d5698bb Merge branch 'fix_file_modification_date_on_upload' of https://github.com/nextcloud/android into beta
# Conflicts:
#	build.gradle
2016-12-14 14:40:38 +01:00
AndyScherzinger c4c58c0985 CHANGELOG.md 2016-12-14 14:36:47 +01:00
AndyScherzinger 473871c0ad Merge branch 'designTweaks' of https://github.com/nextcloud/android into beta
# Conflicts:
#	src/com/owncloud/android/ui/fragment/ExtendedListFragment.java
2016-12-14 14:12:05 +01:00
AndyScherzinger 2b45305c74 Merge branch 'fix_bug_stop_player_when_delete_file' of https://github.com/nextcloud/android into beta
# Conflicts:
#	src/com/owncloud/android/ui/preview/PreviewMediaFragment.java
2016-12-14 14:10:07 +01:00
AndyScherzinger 9f202e2df3 fix codacy warnings 2016-12-14 13:43:02 +01:00
davigonz f97ba62f38 update to snapshot of lib version 2016-12-14 12:43:21 +01:00
davigonz 986d51d784 Read modification time from the file in local filesystem and set it to the file
# Conflicts:
#	src/com/owncloud/android/operations/UploadFileOperation.java
2016-12-14 12:36:47 +01:00
AndyScherzinger 1d420261fc restore backAsUp arrow in action bar when being in a subfolder (and drawer has been opened/closed) #445 2016-12-13 17:49:09 +01:00
AndyScherzinger 246acd94bb empty list tweaks for #445 2016-12-13 17:26:46 +01:00
AndyScherzinger 7012be9baa #445 - space between avatar and filename corrected 2016-12-13 14:19:45 +01:00
AndyScherzinger a428f9817e fix API call after rebase 2016-12-12 18:48:47 +01:00
Andy Scherzinger 470a293069 fixes after rebase 2016-12-12 18:48:47 +01:00
masensio 177985f1af Media player stops when its current file is deleted 2016-12-12 18:48:47 +01:00
AndyScherzinger 480073a8ae Merge branch 'master' of https://github.com/nextcloud/android into beta
# Conflicts:
#	AndroidManifest.xml
#	CHANGELOG.md
#	build.gradle
2016-12-07 19:16:44 +01:00
tobiasKaminsky 2330dc51d3 extracted string value
first try to get uploadStorageManager show job
2016-12-01 17:28:06 +01:00
Tobias Kaminsky 443faabb17 update to 20161129 2016-11-29 00:36:09 +01:00
AndyScherzinger 325e69a700 reactivate Auto upload for Android5+ 2016-11-28 17:37:15 +01:00
AndyScherzinger b13b21cae2 Merge branch 'master' of https://github.com/nextcloud/android into beta 2016-11-28 17:28:58 +01:00
Tobias Kaminsky 178f7c1842 update to 20161125 2016-11-25 00:36:40 +01:00
AndyScherzinger 8e2dc01a01 Merge branch 'whatsNewSkipOptimization' of https://github.com/nextcloud/android into beta 2016-11-24 12:57:38 +01:00
AndyScherzinger b21b1abe94 Merge branch 'master' of https://github.com/nextcloud/android into beta
# Conflicts:
#	AndroidManifest.xml
#	res/drawable-hdpi/what_new_instant_upload.png
#	res/drawable-hdpi/whats_new_accounts.png
#	res/drawable-hdpi/whats_new_files.png
#	res/layout/whats_new_element.xml
#	res/values/strings.xml
#	res/values/styles.xml
#	src/com/owncloud/android/MainApp.java
#	src/com/owncloud/android/features/FeatureList.java
#	src/com/owncloud/android/ui/activity/WhatsNewActivity.java
2016-11-24 11:51:39 +01:00
Tobias Kaminsky 1913b199b9 update to 20161123 2016-11-23 00:37:40 +01:00
AndyScherzinger dd7e816091 Merge branch 'federated_sharing_edit_options' of https://github.com/nextcloud/android into beta 2016-11-22 23:06:59 +01:00
AndyScherzinger 6a5759674a fix codacy warning 2016-11-22 23:06:15 +01:00
AndyScherzinger 311fbdaa9a updated CHANGELOG.md 2016-11-22 22:48:56 +01:00
AndyScherzinger 580a606f23 Merge branch 'federated_sharing_edit_options' of https://github.com/nextcloud/android into beta
# Conflicts:
#	build.gradle
#	src/com/owncloud/android/ui/fragment/EditShareFragment.java
2016-11-22 22:45:37 +01:00
AndyScherzinger a66ec7098d reintroduce account for federated sharing permission 2016-11-22 22:33:06 +01:00
AndyScherzinger 4fccc2e738 fix import 2016-11-22 22:21:35 +01:00
AndyScherzinger fdbc03cb2f adaptes federated shares permission computation 2016-11-22 22:18:32 +01:00
AndyScherzinger 4a1114bd16 fix compile error after lib merges
# Conflicts:
#	src/com/owncloud/android/ui/activity/ShareActivity.java
2016-11-22 22:18:32 +01:00
AndyScherzinger 5afa92c0cd Merge branch 'master' of https://github.com/nextcloud/android into beta 2016-11-22 22:10:05 +01:00
AndyScherzinger 47563c80f5 adaptes federated shares permission computation 2016-11-22 22:07:53 +01:00
AndyScherzinger 940a5aca7f fix compile error after lib merges 2016-11-22 21:57:26 +01:00
AndyScherzinger de008271ff Merge branch 'beta' of https://github.com/nextcloud/android into beta 2016-11-22 21:45:35 +01:00
tobiasKaminsky 7c552ffda1 Merge remote-tracking branch 'remotes/origin/master' into beta 2016-11-22 21:40:24 +01:00
AndyScherzinger 21cb4aa704 temp gradle dependency to library PR 2016-11-22 16:18:22 +01:00
AndyScherzinger f97a77ab88 add missing code fragments 2016-11-22 16:18:00 +01:00
David A. Velasco 13ecefe8e1 Remove always-true component in condition, from CR 2016-11-22 14:03:37 +01:00
jabarros a564295459 Fix var name in comment 2016-11-22 14:03:37 +01:00
jabarros a116070779 Handle create, change and delete options in federated sharing in servers 9.1 or up
# Conflicts:
#	src/com/owncloud/android/ui/fragment/EditShareFragment.java
2016-11-22 14:03:37 +01:00
AndyScherzinger d131c3715f Merge branch 'beta' of https://github.com/nextcloud/android into beta 2016-11-16 14:13:54 +01:00
Tobias Kaminsky fc07936182 update to 20161111 2016-11-11 00:34:58 +01:00
tobiasKaminsky a28bf742a7 fix "showing double whatsnew screen on first start" once again ;) 2016-11-10 22:49:48 +01:00
tobiasKaminsky 0e170a314f fix only one picture is uploaded 2016-11-10 21:58:46 +01:00
AndyScherzinger 5a69f4b213 fixing codacy warnings 2016-11-10 21:58:46 +01:00
AndyScherzinger 95186c361c brackets 2016-11-10 21:58:46 +01:00
AndyScherzinger 966ba0b89c Merge branch 'beta' of https://github.com/nextcloud/android into beta 2016-11-09 16:08:10 +01:00
Tobias Kaminsky f23a7c6d53 update to 20161109 2016-11-09 00:35:03 +01:00
tobiasKaminsky 13b095c28e changelog 2016-11-08 21:25:01 +01:00
tobiasKaminsky a50cc4eb55 Merge remote-tracking branch 'remotes/origin/streaming' into beta 2016-11-08 21:18:23 +01:00
Andy Scherzinger bb599ae95f minor code changes after rebase 2016-11-08 21:03:30 +01:00
AndyScherzinger 4ff7abb0ca ortganize imports 2016-11-08 07:49:15 +01:00
AndyScherzinger 5b3cb3f620 fix API calls after rebase 2016-11-08 07:49:15 +01:00
Andy Scherzinger b2255e9e19 removed printStackTrace 2016-11-08 07:49:15 +01:00
Andy Scherzinger 83d16e5284 minor code changes after rebase 2016-11-08 07:49:15 +01:00
tobiasKaminsky 981c1f854f update warning message 2016-11-08 07:49:15 +01:00
tobiasKaminsky 324296646b try to fix #1348 2016-11-08 07:49:14 +01:00
tobiasKaminsky ab419aa80a show error message again.
Stream with external app is now only possible via menu item
2016-11-08 07:49:14 +01:00
tobiasKaminsky 983d076c88 show external streaming only for not downloaded files 2016-11-08 07:49:14 +01:00
tobiasKaminsky f3fbaa456b add missing check for context menu 2016-11-08 07:49:14 +01:00
tobiasKaminsky 6129a932b7 tidy up once more 2016-11-08 07:49:14 +01:00
tobiasKaminsky 5b37ea0a6f tidy up 2016-11-08 07:49:13 +01:00
tobiasKaminsky 66073b7b13 wip 2016-11-08 07:49:13 +01:00
tobiasKaminsky 0a12f86657 wip 2016-11-08 07:49:13 +01:00
Tobias Kaminsky 6444d7debc update to 20161108 2016-11-08 00:35:26 +01:00
AndyScherzinger f4de72bd9d Merge branch 'syncedFolders' of https://github.com/nextcloud/android into beta 2016-11-07 17:54:22 +01:00
AndyScherzinger ffeab978fb Merge branch 'syncedFolders' of https://github.com/nextcloud/android into beta
# Conflicts:
#	src/com/owncloud/android/services/observer/FolderObserver.java
2016-11-07 15:38:42 +01:00
AndyScherzinger 2f8e6ebf15 Merge branch 'whatsNew' of https://github.com/nextcloud/android into beta 2016-11-07 15:37:41 +01:00
AndyScherzinger c05e72f0bb removal of code warnings 2016-11-07 15:37:20 +01:00
AndyScherzinger e060616629 remove unneeded valueOff call 2016-11-07 12:31:19 +01:00
AndyScherzinger 35d76f11ae Merge branch 'whatsNew' of https://github.com/nextcloud/android into beta
# Conflicts:
#	AndroidManifest.xml
#	res/drawable-anydpi-v21/arrow_right.xml
#	res/drawable-hdpi/what_new_instant_upload.png
#	res/drawable-hdpi/whats_new_accounts.png
#	res/drawable-hdpi/whats_new_files.png
#	res/drawable-hdpi/whats_new_share.png
#	res/drawable/indicator_dot_not_selected.xml
#	res/drawable/indicator_dot_selected.xml
#	res/drawable/round_button.xml
#	res/drawable/whats_new_progress_transition.xml
#	res/layout/whats_new_activity.xml
#	res/layout/whats_new_element.xml
#	res/values/strings.xml
#	src/com/owncloud/android/MainApp.java
#	src/com/owncloud/android/features/FeatureList.java
#	src/com/owncloud/android/ui/activity/WhatsNewActivity.java
#	src/com/owncloud/android/ui/whatsnew/ProgressIndicator.java
2016-11-07 10:41:48 +01:00
AndyScherzinger 036b281151 fixed headers and code duplication 2016-11-07 10:23:10 +01:00
AndyScherzinger 968be026d8 organize imports after rebase 2016-11-07 10:03:13 +01:00
Andy Scherzinger 4d44b3848a hide "skip" button on last feature element 2016-11-07 10:03:13 +01:00
Andy Scherzinger 8c62ada9ea incorporating the new feature graphics and coloring 2016-11-07 10:03:13 +01:00
Felix Epp 97b18c05eb Add new graphics for colorful whats new background 2016-11-07 10:03:12 +01:00
Andy Scherzinger 30f677610a resized font sizes 2016-11-07 10:03:12 +01:00
Andy Scherzinger 3d46f08caa fixed arrow icon color 2016-11-07 10:03:12 +01:00
Andy Scherzinger a728198e13 fixed arrow color, images and logos 2016-11-07 10:03:12 +01:00
Bartosz Przybylski f15afd89a1 Code review fixes 2016-11-07 10:03:12 +01:00
Bartosz Przybylski fa5d3b0caa tabs to spaces 2016-11-07 10:03:11 +01:00
Bartosz Przybylski c82511ce19 tabs to spaces 2016-11-07 10:03:11 +01:00
Bartosz Przybylski 6f28bcbf71 Show whats new only once on first run 2016-11-07 10:03:11 +01:00
Bartosz Przybylski 1f65aa0426 Change the way of displaying progress indicator 2016-11-07 10:03:11 +01:00
Bartosz Przybylski e41d991a73 Use ViewPager instead of custom dragging mechanism 2016-11-07 10:03:11 +01:00
Bartosz Przybylski 0f2333a431 Add parameter to allow showing whats new in beta 2016-11-07 10:03:10 +01:00
Andy Scherzinger 8df44eb9a7 use the standard dp margin & padding references 2016-11-07 10:03:10 +01:00
Andy Scherzinger ac484f0696 rework icons to not break ANT builds 2016-11-07 10:03:10 +01:00
Bartosz Przybylski 80d9d8985a Till java7 won't be used on ant project use old diamond notation 2016-11-07 10:03:10 +01:00
Andy Scherzinger 17a68e087f small design changes, adding arrow as vector (thus bumping gradle plugin to 1.5.0!), changing check icon and adding circle background for finish action 2016-11-07 10:03:10 +01:00
Andy Scherzinger 338b6c526a changes indicator to more material like style 2016-11-07 10:03:09 +01:00
Andy Scherzinger c13f865b5e added iOS images for the whats new screens 2016-11-07 10:03:09 +01:00
Bartosz Przybylski 9816b0c309 Use global method to get version code 2016-11-07 10:03:09 +01:00
Bartosz Przybylski 9a2561d130 Show done button when only single news is available 2016-11-07 10:03:09 +01:00
Bartosz Przybylski 369e63ed25 Insert type in diamond operator, but this is just a hack to support old comiler 2016-11-07 10:03:09 +01:00
Bartosz Przybylski 9a1b6105aa Implement left/right swipe in whats new view 2016-11-07 10:03:09 +01:00
Bartosz Przybylski 4c9ac6a3e3 Another small cleanup 2016-11-07 10:03:08 +01:00
Bartosz Przybylski 6a4a5eb49b Remove testing stuff 2016-11-07 10:03:08 +01:00
Bartosz Przybylski 84cfe8c1f0 Put FeatureList to separate file for cleaner code 2016-11-07 10:03:08 +01:00
Bartosz Przybylski 38700482a9 Small code cleanup in WhatsNewActivity 2016-11-07 10:03:08 +01:00
Bartosz Przybylski 8c08511237 Add Whats new activity and embed it into project 2016-11-07 10:02:58 +01:00
Tobias Kaminsky 46158d364a Merge branch 'beta' of github.com:/nextcloud/android into beta 2016-11-07 07:37:37 +01:00
AndyScherzinger 1aabcc9e25 remove unnecessary valueOf 2016-11-07 00:51:42 +01:00
AndyScherzinger 364145c349 replace printStackTrace with log call 2016-11-07 00:46:11 +01:00
AndyScherzinger 05056ccab7 replace printStackTrace with log call 2016-11-07 00:38:56 +01:00
Tobias Kaminsky b98b786c10 update to 20161107 2016-11-07 00:35:21 +01:00
AndyScherzinger 1c8b734a17 Merge branch 'fixPythonWarnings' of https://github.com/nextcloud/android into beta 2016-11-07 00:33:55 +01:00
AndyScherzinger a3bd4b91c1 Merge branch 'syncedFolders' of https://github.com/nextcloud/android into beta 2016-11-07 00:33:30 +01:00
Tobias Kaminsky 8ef23b1425 Merge branch 'beta' of github.com:/nextcloud/android into beta 2016-11-07 00:30:12 +01:00
AndyScherzinger f0eff92011 Merge branch 'syncedFolders' of https://github.com/nextcloud/android into beta
# Conflicts:
#	src/com/owncloud/android/services/observer/FolderObserver.java
2016-11-07 00:24:52 +01:00
AndyScherzinger 86064d8fc1 removed unused code warnings 2016-11-06 23:52:34 +01:00
AndyScherzinger 75b2fe9c36 imports fixed after merge 2016-11-06 23:33:18 +01:00
AndyScherzinger 4c04c8d5e0 Merge branch 'fixSendLogCrash' of https://github.com/nextcloud/android into beta 2016-11-06 23:25:21 +01:00
AndyScherzinger 6f7ebd22e3 Merge branch 'sortFix' of https://github.com/nextcloud/android into beta
# Conflicts:
#	src/com/owncloud/android/ui/activity/UploadFilesActivity.java
2016-11-06 23:24:36 +01:00
AndyScherzinger 4753f2bae7 remove unused array list 2016-11-06 23:20:34 +01:00
AndyScherzinger bf14e37db3 re-add sort by size for local folder views while sorting folders in the list alphabetically 2016-11-06 23:18:46 +01:00
AndyScherzinger 90b1202876 fix crash when exposing URI on Android 7+ 2016-11-06 22:05:19 +01:00
tobiasKaminsky 314146622d Merge remote-tracking branch 'remotes/origin/syncedFolders' into beta 2016-11-06 09:38:40 +01:00
Tobias Kaminsky 5f883c7d5c Merge branch 'beta' of github.com:/nextcloud/android into beta 2016-11-06 08:46:44 +01:00
Tobias Kaminsky 08bda3b50d update to 20161106 2016-11-06 08:40:47 +01:00
tobiasKaminsky 7be7c6d9f6 dummy change to get an update to beta 2016-11-05 10:30:53 +01:00
Tobias Kaminsky 6b6abdadf6 update 2016-11-05 10:06:34 +01:00
AndyScherzinger 25a9ec1ef5 Merge branch 'master' of https://github.com/iskradelta/android into beta
# Conflicts:
#	src/com/owncloud/android/ui/activity/Preferences.java
2016-11-03 17:02:03 +01:00
AndyScherzinger 491b7998ae remove unused code 2016-11-03 16:48:21 +01:00
AndyScherzinger bff45cc5d8 further formatting issues 2016-11-03 16:46:05 +01:00
AndyScherzinger 613e426468 formatting 2016-11-03 16:34:44 +01:00
AndyScherzinger faa6714cd6 centralize repeated texts 2016-11-03 16:27:01 +01:00
AndyScherzinger bd577c2863 bugfix compile 2016-11-03 16:00:07 +01:00
AndyScherzinger a04e68d8fe centralize repeated texts 2016-11-03 15:50:58 +01:00
AndyScherzinger 7f68bff3fc firther coverage issue not merge from PMD branch 2016-11-03 15:48:37 +01:00
AndyScherzinger 90f483331b fix for log path calculation 2016-11-03 14:53:09 +01:00
AndyScherzinger 8cbf227b03 fixed logging paths after merges 2016-11-03 14:27:57 +01:00
AndyScherzinger 84d4c8fa8a formatting 2016-11-03 13:17:56 +01:00
AndyScherzinger 852fdd59a3 Merge branch 'master' of https://github.com/iskradelta/android into beta
# Conflicts:
#	AndroidManifest.xml
#	build.gradle
#	res/values/setup.xml
#	src/com/owncloud/android/MainApp.java
#	src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java
#	src/com/owncloud/android/db/ProviderMeta.java
#	src/com/owncloud/android/providers/FileContentProvider.java
#	src/com/owncloud/android/ui/activity/Preferences.java
#	src/com/owncloud/android/ui/preview/PreviewImageActivity.java
#	src/com/owncloud/android/utils/DisplayUtils.java
#	src/com/owncloud/android/utils/FileStorageUtils.java
2016-11-03 12:27:16 +01:00
AndyScherzinger 181cc6f120 fix after pull 2016-11-03 10:50:33 +01:00
AndyScherzinger a8004ba13f Merge branch 'master' of https://github.com/iskradelta/android
# Conflicts:
#	build.gradle
#	src/com/owncloud/android/datamodel/FileDataStorageManager.java
2016-11-03 10:48:59 +01:00
AndyScherzinger 0913b58594 further findbugs/pmd fixes for new feature (sd card) 2016-11-03 10:47:15 +01:00
AndyScherzinger 65ad78725a fixed minor warnings 2016-11-03 09:53:51 +01:00
AndyScherzinger b0590e2928 add Null Checks to fix isGrid/list checks 2016-11-03 09:53:51 +01:00
AndyScherzinger f3b02603e2 fix new PMD error after rebase, fix display remote file list issue 2016-11-03 09:53:51 +01:00
Iskra Delta 9dfb068357 PMD appeased
Some warnings have been supressed.
2016-11-03 09:53:50 +01:00
Iskra Delta ae05054fc7 FindBugs appeased 2016-11-03 09:53:14 +01:00
AndyScherzinger 0d88c5e4f1 Use correct array of options
Resolves: #336
2016-11-03 00:14:26 +01:00
AndyScherzinger 2fcdd2daf7 Revert "added lost imports"
This reverts commit d25e1c2343.
2016-11-02 22:42:33 +01:00
AndyScherzinger d25e1c2343 added lost imports 2016-11-02 22:29:24 +01:00
AndyScherzinger 3c89d5133d Merge branch 'master' of https://github.com/nextcloud/android into beta
# Conflicts:
#	res/values/strings.xml
#	src/com/owncloud/android/MainApp.java
#	src/com/owncloud/android/ui/activity/Preferences.java
#	src/com/owncloud/android/utils/FileStorageUtils.java
2016-11-02 22:25:48 +01:00
tobiasKaminsky e7f7954a3e update 2016-11-02 22:03:02 +01:00
AndyScherzinger 481ce675dc fixed minor warnings 2016-11-02 19:03:19 +01:00
AndyScherzinger b5f995b1fe add Null Checks to fix isGrid/list checks 2016-11-02 18:39:57 +01:00
AndyScherzinger 4a7bf985cb fix new PMD error after rebase, fix display remote file list issue 2016-11-02 16:56:44 +01:00
Iskra Delta 821dd1b868 PMD appeased
Some warnings have been supressed.
2016-11-02 16:22:31 +01:00
Iskra Delta 116a5ad597 FindBugs appeased 2016-11-02 16:20:18 +01:00
AndyScherzinger 49cd2c1df2 Merge branch 'master' of https://github.com/nextcloud/android into beta 2016-11-02 11:17:16 +01:00
AndyScherzinger aa3ed90295 Merge branch 'syncedFolders' of https://github.com/nextcloud/android into beta 2016-11-02 00:37:13 +01:00
AndyScherzinger 5890f1b8da Merge branch 'syncedFolders' of https://github.com/nextcloud/android into beta
# Conflicts:
#	src/com/owncloud/android/datamodel/OCFile.java
#	src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java
#	src/com/owncloud/android/utils/BitmapUtils.java
#	src/com/owncloud/android/utils/MimeTypeUtil.java
2016-11-02 00:33:49 +01:00
AndyScherzinger d3dbdcedc6 Merge branch 'syncedFolders' of https://github.com/nextcloud/android into beta 2016-11-01 18:51:58 +01:00
AndyScherzinger 96666937c9 Merge branch 'syncedFolders' of https://github.com/nextcloud/android into beta
# Conflicts:
#	res/values/strings.xml
2016-10-31 18:58:42 +01:00
AndyScherzinger 87d1e56b63 Merge branch 'syncedFolders' of https://github.com/nextcloud/android into beta 2016-10-27 23:43:53 +02:00
tobiasKaminsky a357814531 update 2016-10-27 21:41:30 +02:00
tobiasKaminsky fa85658281 dirty fix for the null occurence 2016-10-27 20:11:57 +02:00
AndyScherzinger 5fd25ec06e Merge branch 'accountSwitcherOptimizations' of https://github.com/nextcloud/android into beta
# Conflicts:
#	build.gradle
#	res/layout/account_action.xml
#	res/layout/account_item.xml
#	res/layout/accounts_layout.xml
#	res/layout/drawer.xml
#	res/layout/drawer_header.xml
#	res/layout/toolbar_standard.xml
#	src/com/owncloud/android/ui/activity/ManageAccountsActivity.java
2016-10-27 16:15:59 +02:00
AndyScherzinger 0f6291f551 Merge branch 'syncedFolders' of https://github.com/nextcloud/android into beta 2016-10-27 15:36:40 +02:00
AndyScherzinger e0cfb10739 use proper alert 2016-10-27 09:46:05 +02:00
AndyScherzinger 55e29a13f8 removed deprecated eu language file (es is available) 2016-10-27 09:46:05 +02:00
AndyScherzinger e0952ab27e removed deprecated eu language file (es is available) 2016-10-27 09:46:05 +02:00
AndyScherzinger c9e1136898 removed deprecated ru-ru language file (ru is available) 2016-10-27 09:46:05 +02:00
AndyScherzinger 45813bb156 removed deprecated ch language file 2016-10-27 09:46:05 +02:00
AndyScherzinger f5d905f944 removed deprecated fi language file 2016-10-27 09:46:04 +02:00
AndyScherzinger 6066b2b0d5 upgrade legacy calls 2016-10-27 09:46:04 +02:00
AndyScherzinger 4cb667ed21 code review changes 2016-10-27 09:46:04 +02:00
AndyScherzinger 19b89fea6f fixes after cherry pick 2016-10-27 09:46:04 +02:00
AndyScherzinger f39b5e8205 use latest 2.2.1 gradle/Android plugin 2016-10-27 09:46:04 +02:00
David A. Velasco 1750c78a50 Finish action mode when drawer starts to open, recover it when drawer is closed
# Conflicts:
#	build.gradle
#	src/com/owncloud/android/ui/activity/DrawerActivity.java
#	src/com/owncloud/android/ui/fragment/OCFileListFragment.java
2016-10-27 09:46:03 +02:00
AndyScherzinger d8252e491d spacing fix (dp perfect) 2016-10-27 09:46:03 +02:00
AndyScherzinger 9fd78a5e49 fixed file headers 2016-10-27 09:46:03 +02:00
AndyScherzinger 9d1bc4495f housekeeping (file_actions and AccountActionsDialog aren't in use anymore due to multi select / account manager capabilities) 2016-10-27 09:46:03 +02:00
AndyScherzinger 8bc71e8610 layout fixes II 2016-10-27 09:46:03 +02:00
AndyScherzinger 1d205aad29 layoutfix 2016-10-27 09:46:02 +02:00
AndyScherzinger 518b53fac5 optimized layout adding username + account-url 2016-10-27 09:46:02 +02:00
AndyScherzinger 4ab0599e83 name and avatr clickable (switching accounts) 2016-10-27 09:46:02 +02:00
AndyScherzinger e1524fefab highlight currently active user 2016-10-27 09:46:02 +02:00
David A. Velasco f8b23eeb30 Show a check mark on the current account in the account manager
# Conflicts:
#	res/layout/account_item.xml
#	src/com/owncloud/android/ui/activity/ManageAccountsActivity.java
#	src/com/owncloud/android/ui/adapter/AccountListAdapter.java
2016-10-27 09:46:02 +02:00
AndyScherzinger e7090f8871 account switching via list item click 2016-10-27 09:46:01 +02:00
David A. Velasco e9f1cb210c Fix exit of the app after not creating account from 'Add account' in navigation drawer 2016-10-27 09:45:52 +02:00
AndyScherzinger 090cf59a5a 2016-10-26 Changelog 2016-10-26 22:19:37 +02:00
tobiasKaminsky ff7f29ef44 update to 20161026 2016-10-26 21:42:20 +02:00
AndyScherzinger 189e4cbdce fix preferences after merge 2016-10-26 21:22:05 +02:00
tobiasKaminsky 1a8efb672f resolve merge problems 2016-10-26 20:56:44 +02:00
tobiasKaminsky 4c624ca058 Merge remote-tracking branch 'remotes/origin/syncedFolders' into beta 2016-10-26 20:49:17 +02:00
AndyScherzinger d9a7e6e5ba build tools 24.0.2 2016-10-24 23:25:55 +02:00
AndyScherzinger 5344e438db downgrade to v24 due to old drone build images 2016-10-24 23:05:36 +02:00
AndyScherzinger fb2b10b709 remove merge duplicates 2016-10-24 22:41:24 +02:00
AndyScherzinger 1dc476596d fix comment 2016-10-24 19:52:38 +02:00
AndyScherzinger d3fce16e5c fixed merge errors, bumped to v25 (jack disabled due to http-client 3.3 enforcement) 2016-10-24 19:52:05 +02:00
AndyScherzinger 6c7907a25f Merge branch 'build24' of https://github.com/nextcloud/android into beta 2016-10-24 19:15:42 +02:00
AndyScherzinger a1f8cfc2ec manifest bump v25 2016-10-24 19:15:11 +02:00
AndyScherzinger ae63f520b1 Merge branch 'build24' of https://github.com/nextcloud/android into beta
# Conflicts:
#	AndroidManifest.xml
#	build.gradle
#	res/values/setup.xml
#	src/com/owncloud/android/datamodel/OCFile.java
2016-10-24 19:14:34 +02:00
AndyScherzinger 4ca2313b30 bump to 2.2.2 and v25 2016-10-24 19:12:16 +02:00
AndyScherzinger da93fff35d launcher icon aligned with stable release icon 2016-10-24 09:52:47 +02:00
tobiasKaminsky ba0be7e9cc Merge remote-tracking branch 'origin/build24' into beta 2016-10-19 21:05:13 +02:00
tobiasKaminsky a182f376fb Merge remote-tracking branch 'origin/accountSwitcherOptimizations' into beta 2016-10-19 21:03:20 +02:00
tobiasKaminsky 76993fba26 Merge remote-tracking branch 'origin/MimeUtilsHousekeeping' into beta 2016-10-19 21:01:02 +02:00
tobiasKaminsky 91cd67dbce revert removing buildTypes 2016-10-19 19:08:45 +02:00
AndyScherzinger 649e3972c3 new version 2016-10-19 18:12:14 +02:00
AndyScherzinger 6954e8af3f Merge branch 'master' of https://github.com/nextcloud/android into beta
# Conflicts:
#	res/xml/preferences.xml
#	src/com/owncloud/android/ui/activity/Preferences.java
2016-10-19 17:22:57 +02:00
AndyScherzinger 90637b7ba2 Merge branch 'accountSwitcherOptimizations' of https://github.com/nextcloud/android into beta
# Conflicts:
#	build.gradle
2016-10-18 16:25:51 +02:00
AndyScherzinger 1b1162e625 fixes after cherry pick 2016-10-17 14:40:24 +02:00
AndyScherzinger a5f2620858 use latest 2.2.1 gradle/Android plugin 2016-10-17 14:33:29 +02:00
David A. Velasco 4b3c122232 Finish action mode when drawer starts to open, recover it when drawer is closed
# Conflicts:
#	build.gradle
#	src/com/owncloud/android/ui/activity/DrawerActivity.java
#	src/com/owncloud/android/ui/fragment/OCFileListFragment.java
2016-10-17 14:31:18 +02:00
AndyScherzinger ad28148acb spacing fix (dp perfect) 2016-10-17 13:44:20 +02:00
AndyScherzinger 987b584604 fixed file headers 2016-10-17 13:44:20 +02:00
AndyScherzinger 9f78f3b65b housekeeping (file_actions and AccountActionsDialog aren't in use anymore due to multi select / account manager capabilities) 2016-10-17 13:44:20 +02:00
AndyScherzinger f03e1c3a2f layout fixes II 2016-10-17 13:44:20 +02:00
AndyScherzinger 1ac7218337 layoutfix 2016-10-17 13:44:19 +02:00
AndyScherzinger 573a729905 optimized layout adding username + account-url 2016-10-17 13:44:19 +02:00
AndyScherzinger 99e675dd18 name and avatr clickable (switching accounts) 2016-10-17 13:44:19 +02:00
AndyScherzinger 8f3de4ff74 highlight currently active user 2016-10-17 13:44:19 +02:00
David A. Velasco 3b118bb7d9 Show a check mark on the current account in the account manager
# Conflicts:
#	res/layout/account_item.xml
#	src/com/owncloud/android/ui/activity/ManageAccountsActivity.java
#	src/com/owncloud/android/ui/adapter/AccountListAdapter.java
2016-10-17 13:44:19 +02:00
AndyScherzinger 29e0dbd14a account switching via list item click 2016-10-17 13:44:18 +02:00
David A. Velasco f6a5466264 Fix exit of the app after not creating account from 'Add account' in navigation drawer 2016-10-17 13:44:18 +02:00
AndyScherzinger eaa1f08b35 Update Android Gradle Plugin to 2.2.1 2016-10-17 13:42:03 +02:00
AndyScherzinger 59e90c508d fix after rebase 2016-10-17 13:42:03 +02:00
AndyScherzinger 8d56482d69 update support library 2016-10-17 13:42:03 +02:00
Andy Scherzinger d4d18acebf fix android-lib reference 2016-10-17 13:42:03 +02:00
Andy Scherzinger 7b9edd6327 fixes 2016-10-17 13:42:02 +02:00
David A. Velasco ce08c2450b Fix crash opening or sending files in Android 7
# Conflicts:
#	res/values/setup.xml
#	src/com/owncloud/android/ui/activity/Preferences.java
2016-10-17 13:42:02 +02:00
Andy Scherzinger c14e217261 Revert "reactive instrumented demo test"
This reverts commit f7195a0192.
2016-10-17 13:42:02 +02:00
Andy Scherzinger 7f632389eb reactive instrumented demo test 2016-10-17 13:42:02 +02:00
Andy Scherzinger aa5c208e01 change emulator ready detection again, disable running sample instrumented unit test (failing at the moment)
updated wait_for_emulator.sh for actual travis cookbook revision https://github.com/travis-ci/travis-cookbooks/blob/62039b204699adcdf4b3365fac42d81246cb57fe/ci_environment/android-sdk/files/default/android-wait-for-emulator

try emulator 24

bump support lib to 24.2.0
2016-10-17 13:42:02 +02:00
Andy Scherzinger f8677b7d0c bump Android SDK Build-Tools to 24.0.2 2016-10-17 13:42:01 +02:00
Andy Scherzinger 100cb24cf5 no pre-dexing on travis (performance) 2016-10-17 13:42:01 +02:00
Andy Scherzinger 7ccffe2483 Update build tools to 24.0.1, java7 compat 2016-10-17 13:42:01 +02:00
Andy Scherzinger 42d1ea394f rebase/merge 2016-10-17 13:42:01 +02:00
Andy Scherzinger 3b4befc31c lib1.0.4 2016-10-17 13:42:01 +02:00
Andy Scherzinger d07958672d Revert "added jcenter repo"
This reverts commit b54e954c96014babd176d8f50ba6b7a9e44dea38.
2016-10-17 13:42:00 +02:00
Andy Scherzinger 091bb7f519 link to v24 version of the Nc lib 2016-10-17 13:42:00 +02:00
Andy Scherzinger 7b1465f8a8 added jcenter repo 2016-10-17 13:42:00 +02:00
Andy Scherzinger 82a7274ed4 bump to v24 incl. toolchain, jdk8 etc. 2016-10-17 13:41:57 +02:00
tobiasKaminsky b1e3818c98 update 2016-10-17 09:46:00 +02:00
Tobias Kaminsky 571f3b2a97 Merge pull request #335 from iskradelta/beta
Begin debug logs when build type is debug
2016-10-17 09:40:06 +02:00
Iskra Delta 0eab22268f Begin debug logs always
Previous check was not true hence no logs
being made ever. Also place the logs in
different folder in case user wishes
to debug both apps (or more) at the same
time.
2016-10-16 19:27:12 +00:00
tobiasKaminsky 1cd8c098d8 update 2016-10-12 18:54:31 +02:00
tobiasKaminsky a3aa7b33eb fix wrong merging 2016-10-12 18:50:26 +02:00
tobiasKaminsky b3ba7d104f Merge remote-tracking branch 'remotes/origin/build24' into beta
# Conflicts:
#	AndroidManifest.xml
#	build.gradle
#	res/values/setup.xml
#	src/com/owncloud/android/utils/FileStorageUtils.java
2016-10-12 18:38:59 +02:00
David A. Velasco 5f4275f3b9 Fix crash opening or sending files in Android 7
# Conflicts:
#	res/values/setup.xml
#	src/com/owncloud/android/ui/activity/Preferences.java
2016-10-12 18:38:20 +02:00
Andy Scherzinger aa76b425e2 Revert "reactive instrumented demo test"
This reverts commit f7195a0192.
2016-10-12 18:35:40 +02:00
Andy Scherzinger 1d10f18da0 reactive instrumented demo test 2016-10-12 18:35:40 +02:00
Andy Scherzinger cb0912a9d4 no pre-dexing on travis (performance) 2016-10-12 18:35:20 +02:00
Andy Scherzinger c513d574d5 Update build tools to 24.0.1, java7 compat 2016-10-12 18:34:43 +02:00
Andy Scherzinger 0ffc2372bb rebase/merge 2016-10-12 18:34:14 +02:00
Andy Scherzinger 65c7a53cbf Revert "added jcenter repo"
This reverts commit b54e954c96014babd176d8f50ba6b7a9e44dea38.
2016-10-12 18:33:56 +02:00
Andy Scherzinger 98beb64abe added jcenter repo 2016-10-12 18:33:39 +02:00
Andy Scherzinger 4af64f5249 bump to v24 incl. toolchain, jdk8 etc. 2016-10-12 18:33:39 +02:00
Andy Scherzinger d53ae1bbad cleanup 2016-10-12 18:32:43 +02:00
Andy Scherzinger a8c3311e69 CR 2016-10-12 18:32:43 +02:00
tobiasKaminsky c4eede9f25 save gridColumns on start/stop 2016-10-12 18:30:37 +02:00
tobiasKaminsky 8920afe054 wip 2016-10-12 18:27:58 +02:00
Jubril Edu 78da832560 Incorporated Checkstyle, findbugs, pmd and lint 2016-10-12 18:27:03 +02:00
AndyScherzinger 1bec2da4be Update Android Gradle Plugin to 2.2.1 2016-10-12 18:08:35 +02:00
AndyScherzinger 41e2ce1d38 fix after rebase 2016-10-12 17:22:38 +02:00
AndyScherzinger cfa5493023 update support library 2016-10-12 17:22:38 +02:00
Andy Scherzinger 4e65fa386f fix android-lib reference 2016-10-12 17:22:37 +02:00
Andy Scherzinger c4c741fb9e fixes 2016-10-12 17:22:37 +02:00
David A. Velasco f5f667c38b Fix crash opening or sending files in Android 7
# Conflicts:
#	res/values/setup.xml
#	src/com/owncloud/android/ui/activity/Preferences.java
2016-10-12 17:22:37 +02:00
Andy Scherzinger 1f26ac9ed7 Revert "reactive instrumented demo test"
This reverts commit f7195a0192.
2016-10-12 17:22:37 +02:00
Andy Scherzinger 5bf6722c64 reactive instrumented demo test 2016-10-12 17:22:36 +02:00
Andy Scherzinger 6f9311cbcb change emulator ready detection again, disable running sample instrumented unit test (failing at the moment)
updated wait_for_emulator.sh for actual travis cookbook revision https://github.com/travis-ci/travis-cookbooks/blob/62039b204699adcdf4b3365fac42d81246cb57fe/ci_environment/android-sdk/files/default/android-wait-for-emulator

try emulator 24

bump support lib to 24.2.0
2016-10-12 17:22:36 +02:00
Andy Scherzinger 0cf7154729 bump Android SDK Build-Tools to 24.0.2 2016-10-12 17:22:36 +02:00
Andy Scherzinger 2a56305a21 no pre-dexing on travis (performance) 2016-10-12 17:22:36 +02:00
Andy Scherzinger ab3f4a7af7 Update build tools to 24.0.1, java7 compat 2016-10-12 17:22:35 +02:00
Andy Scherzinger 852527171a rebase/merge 2016-10-12 17:22:35 +02:00
Andy Scherzinger 917626163d lib1.0.4 2016-10-12 17:22:35 +02:00
Andy Scherzinger f7403d8b37 Revert "added jcenter repo"
This reverts commit b54e954c96014babd176d8f50ba6b7a9e44dea38.
2016-10-12 17:22:34 +02:00
Andy Scherzinger ca0324dcc2 link to v24 version of the Nc lib 2016-10-12 17:22:34 +02:00
Andy Scherzinger d314232ae6 added jcenter repo 2016-10-12 17:22:34 +02:00
Andy Scherzinger 5a0e552974 bump to v24 incl. toolchain, jdk8 etc. 2016-10-12 17:22:34 +02:00
AndyScherzinger 5ada3b1c22 rename 2/2 2016-10-12 17:18:38 +02:00
AndyScherzinger b57d5aec66 rename 1/2 2016-10-12 17:18:38 +02:00
AndyScherzinger 00618ea9d3 Move all file type (as in mime type) checks to MimeTypeUtil 2016-10-12 17:18:37 +02:00
AndyScherzinger 2002a3f413 spacing fix (dp perfect) 2016-10-12 17:15:19 +02:00
AndyScherzinger 092d172f82 fixed file headers 2016-10-12 17:15:19 +02:00
AndyScherzinger 211934036e housekeeping (file_actions and AccountActionsDialog aren't in use anymore due to multi select / account manager capabilities) 2016-10-12 17:15:19 +02:00
AndyScherzinger 7838bf0d99 layout fixes II 2016-10-12 17:15:19 +02:00
AndyScherzinger 8d9db55e46 layoutfix 2016-10-12 17:15:19 +02:00
AndyScherzinger 2904ec1701 optimized layout adding username + account-url 2016-10-12 17:15:18 +02:00
AndyScherzinger 6b70332b09 name and avatr clickable (switching accounts) 2016-10-12 17:15:18 +02:00
AndyScherzinger 3ffc52b177 highlight currently active user 2016-10-12 17:15:18 +02:00
David A. Velasco 9996f226ff Show a check mark on the current account in the account manager
# Conflicts:
#	res/layout/account_item.xml
#	src/com/owncloud/android/ui/activity/ManageAccountsActivity.java
#	src/com/owncloud/android/ui/adapter/AccountListAdapter.java
2016-10-12 17:15:18 +02:00
AndyScherzinger 4e90676545 account switching via list item click 2016-10-12 17:15:18 +02:00
David A. Velasco c630955890 Fix exit of the app after not creating account from 'Add account' in navigation drawer 2016-10-12 17:15:14 +02:00
AndyScherzinger a1d6aa730e Merge branch 'accountSwitcherOptimizations' of https://github.com/nextcloud/android into beta 2016-10-12 16:59:27 +02:00
AndyScherzinger b96e4719ab spacing fix (dp perfect) 2016-10-12 16:58:31 +02:00
AndyScherzinger 7d4f1d4ac0 fixed file headers 2016-10-12 16:51:40 +02:00
AndyScherzinger b499e31051 housekeeping (file_actions and AccountActionsDialog aren't in use anymore due to multi select / account manager capabilities) 2016-10-12 16:51:24 +02:00
AndyScherzinger 598bd5f9ce Merge branch 'accountSwitcherOptimizations' of https://github.com/nextcloud/android into beta
# Conflicts:
#	res/layout/account_item.xml
2016-10-12 15:01:55 +02:00
AndyScherzinger 85f7e0e44f layout fixes II 2016-10-12 15:00:43 +02:00
AndyScherzinger b4552df41b layoutfix 2016-10-12 13:20:58 +02:00
AndyScherzinger 09b57dfb1a optimized layout adding username + account-url 2016-10-12 12:18:27 +02:00
AndyScherzinger 09b82393f0 name and avatr clickable (switching accounts) 2016-10-12 12:18:27 +02:00
AndyScherzinger 7637604ba2 highlight currently active user 2016-10-12 12:18:27 +02:00
David A. Velasco 9c543986ef Show a check mark on the current account in the account manager
# Conflicts:
#	res/layout/account_item.xml
#	src/com/owncloud/android/ui/activity/ManageAccountsActivity.java
#	src/com/owncloud/android/ui/adapter/AccountListAdapter.java
2016-10-12 12:18:26 +02:00
AndyScherzinger b75e04207e account switching via list item click 2016-10-12 12:18:26 +02:00
David A. Velasco 33e1b0c0b1 Fix exit of the app after not creating account from 'Add account' in navigation drawer 2016-10-12 12:18:23 +02:00
AndyScherzinger 490fa936eb Fixes after pulls, bumping version code, latest gradle plugin 2016-10-12 11:24:14 +02:00
AndyScherzinger 52c39b3da2 Merge branch 'MimeUtilsHousekeeping' of https://github.com/nextcloud/android into beta
# Conflicts:
#	src/com/owncloud/android/datamodel/OCFile.java
#	src/com/owncloud/android/datamodel/ThumbnailsCacheManager.java
#	src/com/owncloud/android/ui/adapter/FileListListAdapter.java
2016-10-12 10:55:10 +02:00
AndyScherzinger 61e773968c Merge branch 'accountSwitcherOptimizations' of https://github.com/nextcloud/android into beta 2016-10-12 10:53:47 +02:00
AndyScherzinger 3bc6f48c14 Merge branch 'master' of https://github.com/nextcloud/android into beta 2016-10-12 10:52:56 +02:00
AndyScherzinger 720b5bbf26 optimized layout adding username + account-url 2016-10-11 16:07:20 +02:00
AndyScherzinger 3443a892ef name and avatr clickable (switching accounts) 2016-10-11 15:20:16 +02:00
AndyScherzinger bcb2b8e358 highlight currently active user 2016-10-11 15:08:41 +02:00
David A. Velasco b80d3ab772 Show a check mark on the current account in the account manager
# Conflicts:
#	res/layout/account_item.xml
#	src/com/owncloud/android/ui/activity/ManageAccountsActivity.java
#	src/com/owncloud/android/ui/adapter/AccountListAdapter.java
2016-10-11 14:08:27 +02:00
AndyScherzinger 5daff9a7e3 account switching via list item click 2016-10-11 13:24:05 +02:00
David A. Velasco 867ceb1574 Fix exit of the app after not creating account from 'Add account' in navigation drawer 2016-10-11 13:11:58 +02:00
AndyScherzinger 997bc22d94 rename 2/2 2016-10-10 18:32:00 +02:00
AndyScherzinger bcb7819592 rename 1/2 2016-10-10 18:31:32 +02:00
AndyScherzinger d7995cbf30 Move all file type (as in mime type) checks to MimeTypeUtil 2016-10-10 15:29:20 +02:00
AndyScherzinger 87549920d7 Merge branch 'beta' of https://github.com/nextcloud/android into beta 2016-10-06 22:45:00 +02:00
AndyScherzinger bbc2d14b37 Merge branch 'master' of https://github.com/nextcloud/android into beta 2016-10-06 22:44:14 +02:00
tobiasKaminsky 47e92e8360 new version 2016-10-06 19:34:12 +02:00
tobiasKaminsky b963ca650c Merge remote-tracking branch 'origin/descendIntoFolder' into beta 2016-10-06 19:31:43 +02:00
tobiasKaminsky 78bc2f3391 Merge remote-tracking branch 'origin/master' into beta 2016-10-06 19:31:01 +02:00
AndyScherzinger fe21d590e9 version bump + CHANGELOG.md 2016-10-06 10:11:38 +02:00
AndyScherzinger cd46d2b964 Merge branch 'build24' of https://github.com/nextcloud/android into beta
# Conflicts:
#	AndroidManifest.xml
#	build.gradle
#	res/values/setup.xml
#	src/com/owncloud/android/ui/helpers/FileOperationsHelper.java
#	src/com/owncloud/android/utils/FileStorageUtils.java
2016-10-06 09:57:19 +02:00
AndyScherzinger a142711031 Merge branch 'master' of https://github.com/nextcloud/android into beta
# Conflicts:
#	src/com/owncloud/android/ui/helpers/FileOperationsHelper.java
#	src/com/owncloud/android/utils/FileStorageUtils.java
2016-10-06 09:54:40 +02:00
AndyScherzinger b33445d17e fix after rebase 2016-10-06 09:39:54 +02:00
AndyScherzinger 4d2a43aabd update support library 2016-10-06 09:14:59 +02:00
Andy Scherzinger e7be185502 fix android-lib reference 2016-10-06 09:14:59 +02:00
Andy Scherzinger cd755699e3 fixes 2016-10-06 09:14:58 +02:00
David A. Velasco fc27def747 Fix crash opening or sending files in Android 7
# Conflicts:
#	res/values/setup.xml
#	src/com/owncloud/android/ui/activity/Preferences.java
2016-10-06 09:14:58 +02:00
Andy Scherzinger 3c52abe2d8 Revert "reactive instrumented demo test"
This reverts commit f7195a0192.
2016-10-06 09:10:56 +02:00
Andy Scherzinger 0c1c791f7f reactive instrumented demo test 2016-10-06 09:10:56 +02:00
Andy Scherzinger 25ef4d941d change emulator ready detection again, disable running sample instrumented unit test (failing at the moment)
updated wait_for_emulator.sh for actual travis cookbook revision https://github.com/travis-ci/travis-cookbooks/blob/62039b204699adcdf4b3365fac42d81246cb57fe/ci_environment/android-sdk/files/default/android-wait-for-emulator

try emulator 24

bump support lib to 24.2.0
2016-10-06 09:10:56 +02:00
Andy Scherzinger a942fc7fc0 bump Android SDK Build-Tools to 24.0.2 2016-10-06 09:10:56 +02:00
Andy Scherzinger 1ba8dccc22 no pre-dexing on travis (performance) 2016-10-06 09:10:56 +02:00
Andy Scherzinger 90df2299f6 Update build tools to 24.0.1, java7 compat 2016-10-06 09:10:55 +02:00
Andy Scherzinger e4ab7a812c rebase/merge 2016-10-06 09:10:55 +02:00
Andy Scherzinger 89094c1f10 lib1.0.4 2016-10-06 09:10:55 +02:00
Andy Scherzinger 919478723c Revert "added jcenter repo"
This reverts commit b54e954c96014babd176d8f50ba6b7a9e44dea38.
2016-10-06 09:10:55 +02:00
Andy Scherzinger 8254baf187 link to v24 version of the Nc lib 2016-10-06 09:10:55 +02:00
Andy Scherzinger 12d9bdd6f8 added jcenter repo 2016-10-06 09:10:55 +02:00
Andy Scherzinger 40c3e17ea9 bump to v24 incl. toolchain, jdk8 etc. 2016-10-06 09:10:54 +02:00
tobiasKaminsky c2225dda46 add change to subfolder 2016-10-05 20:24:13 +02:00
AndyScherzinger 46c81972ec merge fix 2016-10-05 01:31:51 +02:00
AndyScherzinger 0edcf3a45a Merge branch 'build24' of https://github.com/nextcloud/android into beta
# Conflicts:
#	AndroidManifest.xml
#	build.gradle
#	res/values/setup.xml
#	src/com/owncloud/android/utils/FileStorageUtils.java
2016-10-05 01:07:02 +02:00
AndyScherzinger 3f70de3579 update support library 2016-10-05 00:58:04 +02:00
AndyScherzinger 09d0637c8b Merge branch 'fixDroneLink' of https://github.com/nextcloud/android into beta 2016-10-05 00:33:11 +02:00
AndyScherzinger 7470d6f3eb further pulls/changes 2016-10-05 00:32:36 +02:00
AndyScherzinger ba99684909 Merge branch 'wordingDavdroid' of https://github.com/nextcloud/android into beta 2016-10-05 00:31:20 +02:00
AndyScherzinger abcb8e8161 Merge branch 'cursorFix' of https://github.com/nextcloud/android into beta 2016-10-05 00:29:47 +02:00
AndyScherzinger 59355d38d5 log result code for error without exceptions 2016-10-05 00:15:34 +02:00
AndyScherzinger 852c11e11c distinguish exception for error and canceled 2016-10-05 00:09:04 +02:00
AndyScherzinger 70085c09ea Merge branch 'master' of https://github.com/nextcloud/android into beta 2016-10-04 23:49:28 +02:00
tobiasKaminsky 4ef6a9863a descend into folder after creating it in uploader 2016-10-04 13:52:41 +02:00
Andy Scherzinger 27e396501c fix android-lib reference 2016-10-04 13:44:55 +02:00
Andy Scherzinger 1074f20f9c fixes 2016-10-04 13:44:55 +02:00
David A. Velasco 9d5482a0c7 Fix crash opening or sending files in Android 7
# Conflicts:
#	res/values/setup.xml
#	src/com/owncloud/android/ui/activity/Preferences.java
2016-10-04 13:44:54 +02:00
Andy Scherzinger c7574a3d73 Revert "reactive instrumented demo test"
This reverts commit f7195a0192.
2016-10-04 13:44:54 +02:00
Andy Scherzinger 03e3684865 reactive instrumented demo test 2016-10-04 13:44:54 +02:00
Andy Scherzinger 9ee7909eb0 change emulator ready detection again, disable running sample instrumented unit test (failing at the moment)
updated wait_for_emulator.sh for actual travis cookbook revision https://github.com/travis-ci/travis-cookbooks/blob/62039b204699adcdf4b3365fac42d81246cb57fe/ci_environment/android-sdk/files/default/android-wait-for-emulator

try emulator 24

bump support lib to 24.2.0
2016-10-04 13:44:54 +02:00
Andy Scherzinger e7d577fe17 bump Android SDK Build-Tools to 24.0.2 2016-10-04 13:44:54 +02:00
Andy Scherzinger 0805bf6456 no pre-dexing on travis (performance) 2016-10-04 13:44:53 +02:00
Andy Scherzinger 7fcb2c4cb0 Update build tools to 24.0.1, java7 compat 2016-10-04 13:44:53 +02:00
Andy Scherzinger a7aa45a891 rebase/merge 2016-10-04 13:44:53 +02:00
Andy Scherzinger 239140d5e6 lib1.0.4 2016-10-04 13:44:53 +02:00
Andy Scherzinger 25e896a096 Revert "added jcenter repo"
This reverts commit b54e954c96014babd176d8f50ba6b7a9e44dea38.
2016-10-04 13:44:53 +02:00
Andy Scherzinger 829c5b9a35 link to v24 version of the Nc lib 2016-10-04 13:44:52 +02:00
Andy Scherzinger 8ae9670250 added jcenter repo 2016-10-04 13:44:52 +02:00
Andy Scherzinger 56453266a6 bump to v24 incl. toolchain, jdk8 etc. 2016-10-04 13:44:49 +02:00
Andy Scherzinger 5c42d96259 Merge branch '201_fixExpandableUploadListAdapter' of https://github.com/nextcloud/android into beta 2016-09-26 17:53:11 +02:00
Andy Scherzinger 7efae88a5d bugfix for NPE #201 2016-09-26 17:49:45 +02:00
Andy Scherzinger 515c6fe943 Merge branch 'beta' of https://github.com/nextcloud/android into beta
# Conflicts:
#	build.gradle
2016-09-26 17:32:34 +02:00
Andy Scherzinger 763df858de fix setup.xml after branch pulls 2016-09-26 17:29:42 +02:00
Andy Scherzinger 76cb95cd07 Merge branch 'dismissDialogFragment' of https://github.com/nextcloud/android into beta 2016-09-26 17:25:10 +02:00
Andy Scherzinger 31a120ea9a Merge branch 'build24' of https://github.com/nextcloud/android into beta
# Conflicts:
#	AndroidManifest.xml
#	build.gradle
#	res/values/setup.xml
#	src/com/owncloud/android/utils/FileStorageUtils.java
2016-09-26 17:23:27 +02:00
Andy Scherzinger a349d6934d Merge branch 'master' of https://github.com/nextcloud/android into beta
# Conflicts:
#	wait_for_emulator.sh
2016-09-26 17:19:37 +02:00
Andy Scherzinger 7e964795b5 fix android-lib reference 2016-09-26 16:40:38 +02:00
Andy Scherzinger 723334a1c1 fixes 2016-09-26 16:40:38 +02:00
David A. Velasco 5a37719111 Fix crash opening or sending files in Android 7
# Conflicts:
#	res/values/setup.xml
#	src/com/owncloud/android/ui/activity/Preferences.java
2016-09-26 16:40:38 +02:00
Andy Scherzinger d8d803ab8c Revert "reactive instrumented demo test"
This reverts commit f7195a0192.
2016-09-26 16:40:38 +02:00
Andy Scherzinger 313fde0bc6 reactive instrumented demo test 2016-09-26 16:40:38 +02:00
Andy Scherzinger d0b691cafb change emulator ready detection again, disable running sample instrumented unit test (failing at the moment)
updated wait_for_emulator.sh for actual travis cookbook revision https://github.com/travis-ci/travis-cookbooks/blob/62039b204699adcdf4b3365fac42d81246cb57fe/ci_environment/android-sdk/files/default/android-wait-for-emulator

try emulator 24

bump support lib to 24.2.0
2016-09-26 16:40:38 +02:00
Andy Scherzinger ed04da30dc bump Android SDK Build-Tools to 24.0.2 2016-09-26 16:40:00 +02:00
Andy Scherzinger 0e45eed32a no pre-dexing on travis (performance) 2016-09-26 16:40:00 +02:00
Andy Scherzinger 979b14bfae Update build tools to 24.0.1, java7 compat 2016-09-26 16:40:00 +02:00
Andy Scherzinger 0fa105e781 rebase/merge 2016-09-26 16:40:00 +02:00
Andy Scherzinger b3c8abd0d8 lib1.0.4 2016-09-26 16:40:00 +02:00
Andy Scherzinger 5c095bb00b Revert "added jcenter repo"
This reverts commit b54e954c96014babd176d8f50ba6b7a9e44dea38.
2016-09-26 16:40:00 +02:00
Andy Scherzinger bad15df75d link to v24 version of the Nc lib 2016-09-26 16:40:00 +02:00
Andy Scherzinger dfeae52619 added jcenter repo 2016-09-26 16:40:00 +02:00
Andy Scherzinger 795d695300 bump to v24 incl. toolchain, jdk8 etc. 2016-09-26 16:40:00 +02:00
Andy Scherzinger 200fe5ab64 fix crash in dismissLoadingDialog #279 2016-09-26 16:30:53 +02:00
Andy Scherzinger dd5894d690 fix crash in dismissLoadingDialog #279 2016-09-26 16:28:24 +02:00
tobiasKaminsky 1c1c464165 update 2016-09-22 20:15:43 +02:00
tobiasKaminsky 655324e179 Merge remote-tracking branch 'origin/beta' into beta
# Conflicts:
#	AndroidManifest.xml
#	CHANGELOG.md
#	res/values/strings.xml
2016-09-21 19:43:18 +02:00
tobiasKaminsky 5b0aa52d93 Merge remote-tracking branch 'remotes/origin/whatsNew' into beta 2016-09-21 19:40:51 +02:00
tobiasKaminsky a4a2cb9721 removed 5. screen
avoid duplicate whats new
2016-09-21 19:40:27 +02:00
tobiasKaminsky 881063e9fb Merge remote-tracking branch 'remotes/origin/whatsNew' into beta 2016-09-21 19:35:40 +02:00
tobiasKaminsky 63fe98d8ac Merge remote-tracking branch 'origin/whatsNew' into whatsNew 2016-09-21 17:29:09 +02:00
Andy Scherzinger 08b4e9c709 Merge branch 'logSendCrash' of https://github.com/nextcloud/android into beta 2016-09-21 12:01:59 +02:00
Andy Scherzinger 41861a8d1f IndexOutOfBounds check #283 2016-09-21 11:56:38 +02:00
Andy Scherzinger 5feacb3b69 2016-09-21 2016-09-21 01:58:18 +02:00
Andy Scherzinger 6325d56864 Merge branch 'LukeOwncloud-patch-remove-failed' of https://github.com/nextcloud/android into beta 2016-09-21 01:56:01 +02:00
Andy Scherzinger a811f49f58 Merge branch 'magicUrl' of https://github.com/nextcloud/android into beta 2016-09-21 01:54:59 +02:00
Andy Scherzinger bd883c53d2 Merge branch 'dismissDialogFragment' of https://github.com/nextcloud/android into beta 2016-09-21 01:54:11 +02:00
Andy Scherzinger fb71c3e1ce Merge branch 'whatsNew' of https://github.com/nextcloud/android into beta
# Conflicts:
#	AndroidManifest.xml
#	res/layout/whats_new_activity.xml
#	res/layout/whats_new_element.xml
#	res/values/strings.xml
#	src/com/owncloud/android/MainApp.java
#	src/com/owncloud/android/ui/activity/WhatsNewActivity.java
2016-09-21 01:33:08 +02:00
Andy Scherzinger b415a9a598 Merge branch 'master' of https://github.com/nextcloud/android into beta
# Conflicts:
#	.travis.yml
#	AndroidManifest.xml
#	CHANGELOG.md
2016-09-21 01:30:09 +02:00
Andy Scherzinger b5ee31bad3 removed unnecessary else part 2016-09-21 00:20:41 +02:00
LukeOwncloud af5f521454 return false if remove failed
if OCFile is null --> cannot delete ==> return false.
2016-09-21 00:20:41 +02:00
Andy Scherzinger 0761bff179 fix crash in dismissLoadingDialog #279 2016-09-21 00:19:35 +02:00
Andy Scherzinger 2a5d777219 code review changes 2016-09-21 00:18:17 +02:00
Andy Scherzinger 6244502d87 downgrade to only support cloud://login 2016-09-21 00:18:17 +02:00
Andy Scherzinger 4cb527795c move connection (re) init from start to onResume and restore server checked flag 2016-09-21 00:18:17 +02:00
Andy Scherzinger a4361a447c wip server check 2016-09-21 00:18:17 +02:00
Andy Scherzinger 4b77f648dd focus check 2016-09-21 00:18:17 +02:00
Andy Scherzinger 0a224c442b fix url mapping 2016-09-21 00:18:17 +02:00
Andy Scherzinger 17d5683d98 MagicUrls for Login + Unit tests for the parser 2016-09-21 00:18:17 +02:00
Andy Scherzinger 8bdb9d72a9 resized font sizes 2016-09-21 00:11:24 +02:00
Andy Scherzinger 31ffb0a2a1 fixed arrow icon color 2016-09-21 00:11:24 +02:00
Andy Scherzinger 8d49161b39 fixed arrow color, images and logos 2016-09-21 00:11:24 +02:00
Bartosz Przybylski 9281a3acae Code review fixes 2016-09-21 00:11:24 +02:00
Bartosz Przybylski e0aa06cbc9 tabs to spaces 2016-09-21 00:11:24 +02:00
Bartosz Przybylski be9f000aad tabs to spaces 2016-09-21 00:11:24 +02:00
Bartosz Przybylski 6094f5fcb7 Show whats new only once on first run 2016-09-21 00:11:24 +02:00
Bartosz Przybylski 0f30fa0bc5 Change the way of displaying progress indicator 2016-09-21 00:11:24 +02:00
Bartosz Przybylski 3b665c28e3 Use ViewPager instead of custom dragging mechanism 2016-09-21 00:11:24 +02:00
Bartosz Przybylski 55f41a12d7 Add parameter to allow showing whats new in beta 2016-09-21 00:11:24 +02:00
Andy Scherzinger b980363b7c use the standard dp margin & padding references 2016-09-21 00:11:24 +02:00
Andy Scherzinger 1f7df2fd9b rework icons to not break ANT builds 2016-09-21 00:11:24 +02:00
Bartosz Przybylski c02370145e Till java7 won't be used on ant project use old diamond notation 2016-09-21 00:11:24 +02:00
Andy Scherzinger ee4ae35eb9 small design changes, adding arrow as vector (thus bumping gradle plugin to 1.5.0!), changing check icon and adding circle background for finish action 2016-09-21 00:11:24 +02:00
Andy Scherzinger 33bcc4ba1c changes indicator to more material like style 2016-09-21 00:11:24 +02:00
Andy Scherzinger 67c5b57cfd added iOS images for the whats new screens 2016-09-21 00:11:24 +02:00
Bartosz Przybylski a5e2d7d239 Use global method to get version code 2016-09-21 00:11:24 +02:00
Bartosz Przybylski c4406f4141 Show done button when only single news is available 2016-09-21 00:11:24 +02:00
Bartosz Przybylski e8309e2431 Insert type in diamond operator, but this is just a hack to support old comiler 2016-09-21 00:11:24 +02:00
Bartosz Przybylski c1ca971823 Implement left/right swipe in whats new view 2016-09-21 00:11:24 +02:00
Bartosz Przybylski 5bb9620aa1 Another small cleanup 2016-09-21 00:11:24 +02:00
Bartosz Przybylski 8c2cfe9ab4 Remove testing stuff 2016-09-21 00:11:24 +02:00
Bartosz Przybylski a962e2aca5 Put FeatureList to separate file for cleaner code 2016-09-21 00:11:24 +02:00
Bartosz Przybylski c5b8bbe0f4 Small code cleanup in WhatsNewActivity 2016-09-21 00:11:24 +02:00
Bartosz Przybylski e2ad7cbe2b Add Whats new activity and embed it into project 2016-09-21 00:11:24 +02:00
tobiasKaminsky 60aeedd80e Merge remote-tracking branch 'remotes/origin/whatsNew' into beta 2016-09-18 17:55:06 +02:00
Andy Scherzinger e8d7fd0953 resized font sizes 2016-09-18 17:50:40 +02:00
Andy Scherzinger 18222b2467 fixed arrow icon color 2016-09-18 17:50:40 +02:00
Andy Scherzinger 84d8695677 fixed arrow color, images and logos 2016-09-18 17:50:40 +02:00
Bartosz Przybylski 24c2dd49ff Code review fixes 2016-09-18 17:50:40 +02:00
Bartosz Przybylski 5980af1caa tabs to spaces 2016-09-18 17:50:40 +02:00
Bartosz Przybylski 91b9ccdb19 tabs to spaces 2016-09-18 17:50:40 +02:00
Bartosz Przybylski 457a5d934a Show whats new only once on first run 2016-09-18 17:50:40 +02:00
Bartosz Przybylski 3d86e32eb5 Change the way of displaying progress indicator 2016-09-18 17:50:40 +02:00
Bartosz Przybylski 48db65b178 Use ViewPager instead of custom dragging mechanism 2016-09-18 17:50:40 +02:00
Bartosz Przybylski 6854dc5b02 Add parameter to allow showing whats new in beta 2016-09-18 17:50:40 +02:00
Andy Scherzinger c6f970b52a use the standard dp margin & padding references 2016-09-18 17:50:40 +02:00
Andy Scherzinger b2171f2e8f rework icons to not break ANT builds 2016-09-18 17:50:40 +02:00
Bartosz Przybylski cc757729bd Till java7 won't be used on ant project use old diamond notation 2016-09-18 17:50:40 +02:00
Andy Scherzinger f6c5c63c0d small design changes, adding arrow as vector (thus bumping gradle plugin to 1.5.0!), changing check icon and adding circle background for finish action 2016-09-18 17:50:40 +02:00
Andy Scherzinger 871607b89c changes indicator to more material like style 2016-09-18 17:50:40 +02:00
Andy Scherzinger 6b462c9895 added iOS images for the whats new screens 2016-09-18 17:50:40 +02:00
Bartosz Przybylski 1c258946c2 Use global method to get version code 2016-09-18 17:50:40 +02:00
Bartosz Przybylski 97acb9d4e4 Show done button when only single news is available 2016-09-18 17:50:40 +02:00
Bartosz Przybylski e410a6f7ac Insert type in diamond operator, but this is just a hack to support old comiler 2016-09-18 17:50:40 +02:00
Bartosz Przybylski f33e985b84 Implement left/right swipe in whats new view 2016-09-18 17:50:40 +02:00
Bartosz Przybylski 2bf7b49774 Another small cleanup 2016-09-18 17:50:40 +02:00
Bartosz Przybylski c65d78ff20 Remove testing stuff 2016-09-18 17:50:40 +02:00
Bartosz Przybylski c91b7f7442 Put FeatureList to separate file for cleaner code 2016-09-18 17:50:40 +02:00
Bartosz Przybylski a6c74539f8 Small code cleanup in WhatsNewActivity 2016-09-18 17:50:40 +02:00
Bartosz Przybylski 9e85786f00 Add Whats new activity and embed it into project 2016-09-18 17:50:40 +02:00
tobiasKaminsky 2d0c73fef1 Merge remote-tracking branch 'remotes/origin/whatsNew' into beta 2016-09-18 17:49:24 +02:00
tobiasKaminsky c549385e96 prevent showing what's new screen twice 2016-09-18 14:48:48 +02:00
tobiasKaminsky ffbe691085 Merge remote-tracking branch 'origin/beta' into beta 2016-09-18 09:12:41 +02:00
tobiasKaminsky 6c1c723d50 Merge remote-tracking branch 'remotes/origin/master' into beta 2016-09-18 09:11:38 +02:00
Andy Scherzinger d92ddc061c Merge branch 'master' of https://github.com/nextcloud/android into beta
# Conflicts:
#	AndroidManifest.xml
#	CHANGELOG.md
2016-09-18 01:28:36 +02:00
Andy Scherzinger ea86870d7f Merge branch 'whatsNew' of https://github.com/nextcloud/android into beta 2016-09-15 15:19:52 +02:00
Andy Scherzinger 1084f97927 fixed arrow icon color 2016-09-15 15:19:20 +02:00
Andy Scherzinger 3504a08163 Merge branch 'whatsNew' of https://github.com/nextcloud/android into beta
# Conflicts:
#	res/drawable-hdpi/whats_new_accounts.png
2016-09-15 15:12:16 +02:00
Andy Scherzinger ddf2e9f717 fixed arrow color, images and logos 2016-09-15 15:08:43 +02:00
Andy Scherzinger e6bc6591d8 Merge branch 'whatsNew' of https://github.com/nextcloud/android into beta
# Conflicts:
#	res/values/strings.xml
#	src/com/owncloud/android/MainApp.java
2016-09-15 14:37:56 +02:00
Andy Scherzinger 4cda211590 fixed logos 2016-09-15 13:30:28 +02:00
Bartosz Przybylski 8a8c82301d Code review fixes 2016-09-15 11:35:43 +02:00
Bartosz Przybylski b78ce68baf tabs to spaces 2016-09-15 11:35:43 +02:00
Bartosz Przybylski 814d147ad4 tabs to spaces 2016-09-15 11:35:43 +02:00
Bartosz Przybylski 287089922b Show whats new only once on first run 2016-09-15 11:35:43 +02:00
Bartosz Przybylski e4552b6da6 Change the way of displaying progress indicator 2016-09-15 11:35:43 +02:00
Bartosz Przybylski 29079e5fd2 Use ViewPager instead of custom dragging mechanism 2016-09-15 11:35:43 +02:00
Bartosz Przybylski 1a57ddef9a Add parameter to allow showing whats new in beta 2016-09-15 11:35:43 +02:00
Andy Scherzinger 0eae7c59a9 use the standard dp margin & padding references 2016-09-15 11:35:43 +02:00
Andy Scherzinger 9180481515 rework icons to not break ANT builds 2016-09-15 11:35:43 +02:00
Bartosz Przybylski b1f8f084b8 Till java7 won't be used on ant project use old diamond notation 2016-09-15 11:35:43 +02:00
Andy Scherzinger b2f816eb31 small design changes, adding arrow as vector (thus bumping gradle plugin to 1.5.0!), changing check icon and adding circle background for finish action 2016-09-15 11:35:43 +02:00
Andy Scherzinger a34488e47e changes indicator to more material like style 2016-09-15 11:35:43 +02:00
Andy Scherzinger afdfc62ee7 added iOS images for the whats new screens 2016-09-15 11:35:43 +02:00
Bartosz Przybylski b8d796c19e Use global method to get version code 2016-09-15 11:35:43 +02:00
Bartosz Przybylski 255bcb1a99 Show done button when only single news is available 2016-09-15 11:35:43 +02:00
Bartosz Przybylski 57302403b6 Insert type in diamond operator, but this is just a hack to support old comiler 2016-09-15 11:35:43 +02:00
Bartosz Przybylski ba44bfbe02 Implement left/right swipe in whats new view 2016-09-15 11:35:43 +02:00
Bartosz Przybylski 6bf4a37019 Another small cleanup 2016-09-15 11:35:43 +02:00
Bartosz Przybylski afce75826e Remove testing stuff 2016-09-15 11:35:43 +02:00
Bartosz Przybylski 30ceace544 Put FeatureList to separate file for cleaner code 2016-09-15 11:35:43 +02:00
Bartosz Przybylski f3417a1f3b Small code cleanup in WhatsNewActivity 2016-09-15 11:35:43 +02:00
Bartosz Przybylski c6f306af49 Add Whats new activity and embed it into project 2016-09-15 11:35:43 +02:00
Andy Scherzinger aab9c087bf Merge branch 'master' of https://github.com/nextcloud/android into beta
# Conflicts:
#	CHANGELOG.md
#	res/xml/preferences.xml
#	src/com/owncloud/android/ui/activity/Preferences.java
2016-09-12 22:39:16 +02:00
Andy Scherzinger d584f806f0 Merge branch '130rcBugfix' of https://github.com/nextcloud/android into beta 2016-09-08 13:38:45 +02:00
Andy Scherzinger 0b1b893740 Merge branch '130rcBugfix' of https://github.com/nextcloud/android into beta 2016-09-08 13:35:30 +02:00
Andy Scherzinger 7c9e3dab4f Merge branch '130rcBugfix' of https://github.com/nextcloud/android into beta
# Conflicts:
#	AndroidManifest.xml
#	res/layout/participate_layout.xml
#	res/values/strings.xml
2016-09-08 10:36:32 +02:00
tobiasKaminsky a6b46eef90 update changelod 2016-09-07 21:49:44 +02:00
tobiasKaminsky d51825c98d update to rc2 2016-09-07 21:44:18 +02:00
Andy Scherzinger 598458f759 bugfix incorrect merge 2016-09-07 19:18:40 +02:00
Andy Scherzinger 3de7eb134d updated CHANGELOG.md 2016-09-07 18:50:15 +02:00
Andy Scherzinger e89f2d5808 Merge branch '130rcBugfix' of https://github.com/nextcloud/android into beta
# Conflicts:
#	AndroidManifest.xml
2016-09-07 18:47:31 +02:00
Andy Scherzinger 5136870879 compile fixes after merge 2016-09-07 18:43:30 +02:00
Andy Scherzinger 06f5ffe296 Merge branch 'davAppIntegration' of https://github.com/nextcloud/android into beta
# Conflicts:
#	AndroidManifest.xml
#	CHANGELOG.md
#	build.gradle
#	oc_jb_workaround/build.gradle
#	res/layout/participate_layout.xml
#	res/layout/share_file_layout.xml
#	res/layout/upload_files_layout.xml
#	res/menu/drawer_menu.xml
#	res/values/attrs.xml
#	res/values/setup.xml
#	res/values/strings.xml
#	res/xml/preferences.xml
#	src/com/owncloud/android/ui/activity/ParticipateActivity.java
#	src/com/owncloud/android/ui/activity/Preferences.java
#	src/com/owncloud/android/ui/activity/UploadFilesActivity.java
#	src/com/owncloud/android/ui/fragment/ShareFileFragment.java
#	src/com/owncloud/android/ui/helpers/FileOperationsHelper.java
2016-09-07 18:38:42 +02:00
Andy Scherzinger f3a41dc260 consistent wording for upload options --> folder 2016-09-07 18:29:14 +02:00
Andy Scherzinger 65fa8c4c20 show toast if davdroid sync has been setup successfully 2016-09-07 17:52:12 +02:00
Andy Scherzinger 91919d9246 move setup call to settings screen 2016-09-07 17:37:33 +02:00
Andy Scherzinger eb267862b7 wip davdroid login launch 2016-09-07 15:46:47 +02:00
Andy Scherzinger dcb0bd26f3 improve layouting and texts for upload behavior #26 2016-09-07 15:21:24 +02:00
Andy Scherzinger e6b99c96e7 bugfix layouting and issue reporting button click 2016-09-07 15:08:02 +02:00
Andy Scherzinger efe9692ee4 1.3.0 RC2 versioning 2016-09-07 14:46:59 +02:00
Andy Scherzinger dba4dd513a Bugfix report GH issue button click 2016-09-07 14:46:44 +02:00
Andy Scherzinger 92b58b654e Merge branch 'mixSortByDate' of https://github.com/nextcloud/android into beta 2016-09-04 21:41:48 +02:00
Andy Scherzinger 4198991338 Merge branch 'participate' of https://github.com/nextcloud/android into beta
# Conflicts:
#	build.gradle
#	res/layout/participate_layout.xml
#	res/menu/drawer_menu.xml
#	res/values/setup.xml
#	src/com/owncloud/android/ui/activity/ParticipateActivity.java
#	src/com/owncloud/android/utils/ConnectivityUtils.java
2016-09-04 21:31:37 +02:00
Andy Scherzinger a80b2216ce don't show the currently active account in the account chooser (since it is already active and displayer in the drawer header)
- don't show information twice
2016-09-04 21:20:35 +02:00
Andy Scherzinger 6102f78552 fix for triggering the main drawer menu items from "participate", changed participate icon and checkable behavior, don't show settings etc when showing accounts 2016-09-04 21:12:03 +02:00
Andy Scherzinger 330883cc81 participate icon 2016-09-04 20:35:52 +02:00
Andy Scherzinger 0b2162d70c slight whitespace optimizations in accordance with material design guidelines 2016-09-04 20:26:11 +02:00
tobiasKaminsky 013ddc4bf1 fix wrong new line 2016-09-04 20:06:07 +02:00
tobiasKaminsky c09979389d links are now extracted to setup.xml 2016-09-04 20:06:07 +02:00
tobiasKaminsky 13e37493c9 wip 2016-09-04 20:06:07 +02:00
tobiasKaminsky fc1ba3c384 Merge remote-tracking branch 'remotes/origin/participate' into beta 2016-09-04 15:37:27 +02:00
tobiasKaminsky 19b65e6afd fix wrong new line 2016-09-04 15:36:33 +02:00
tobiasKaminsky 716d1554b5 Merge remote-tracking branch 'remotes/origin/instant_upload_multi_account' into beta 2016-09-04 12:00:46 +02:00
tobiasKaminsky 83b8c5cc0a if no account is set the current account is used for instant upload 2016-09-04 11:40:24 +02:00
tobiasKaminsky fd428095d7 Merge remote-tracking branch 'origin/instant_upload_multi_account' into instant_upload_multi_account 2016-09-04 11:21:49 +02:00
tobiasKaminsky f83ecc83c8 Merge remote-tracking branch 'origin/beta' into beta 2016-09-04 11:08:36 +02:00
tobiasKaminsky b64569db57 Merge remote-tracking branch 'remotes/origin/mixSortByDate' into beta 2016-09-04 11:08:16 +02:00
tobiasKaminsky c56cd56645 Merge remote-tracking branch 'remotes/origin/pinchZoom' into beta 2016-09-04 11:08:04 +02:00
tobiasKaminsky 604eccb185 Merge remote-tracking branch 'remotes/origin/resizeCache' into beta 2016-09-04 11:04:49 +02:00
tobiasKaminsky 5fde328016 Merge remote-tracking branch 'remotes/origin/fixPublicLink' into beta 2016-09-04 11:01:10 +02:00
tobiasKaminsky 8bc3935130 Merge remote-tracking branch 'remotes/origin/descendIntoFolder' into beta 2016-09-04 11:00:58 +02:00
tobiasKaminsky 80e610ea41 Merge remote-tracking branch 'remotes/origin/participate' into beta 2016-09-04 11:00:36 +02:00
tobiasKaminsky caba790774 Merge remote-tracking branch 'remotes/origin/filesDrop' into beta 2016-09-04 11:00:04 +02:00
tobiasKaminsky 1161c3f19e links are now extracted to setup.xml 2016-09-04 10:52:32 +02:00
tobiasKaminsky 4be92d4650 wip 2016-09-03 23:13:34 +02:00
Andy Scherzinger 411022175c sizeScale 1 for MB, code removed for unsupported legacy Android versions
# Conflicts:
#	src/com/owncloud/android/utils/DisplayUtils.java
2016-09-03 17:56:49 +02:00
tobiasKaminsky f5218d53e0 update 2016-09-03 12:59:06 +02:00
tobiasKaminsky 2ba7087953 fix bug: resized image was always used indepentent of download state 2016-09-03 12:14:00 +02:00
tobiasKaminsky 911e4072f4 fix wrong merge resolve: thumbnails are now generated during upload again 2016-09-03 09:12:49 +02:00
tobiasKaminsky 9809e88ec0 Merge remote-tracking branch 'origin/beta' into beta 2016-09-03 07:55:16 +02:00
tobiasKaminsky 0c7c92c40b Merge remote-tracking branch 'remotes/origin/quotaDisplay' into beta 2016-09-03 07:49:56 +02:00
Andy Scherzinger bc2c96b284 organize imports 2016-09-01 16:26:39 +02:00
Andy Scherzinger 2da70e914c cleanup 2016-09-01 16:26:39 +02:00
Andy Scherzinger 3baa5ab208 CR 2016-09-01 16:26:39 +02:00
tobiasKaminsky 6044010ffe show filenames only if column size < 4 2016-09-01 16:26:39 +02:00
tobiasKaminsky 56e3129f52 use local context 2016-09-01 16:26:39 +02:00
tobiasKaminsky 580ab151f1 changes due to CR 2016-09-01 16:26:39 +02:00
tobiasKaminsky 2ccd0167f3 changes according to CR 2016-09-01 16:26:39 +02:00
tobiasKaminsky 01961b4db6 save gridColumns on start/stop 2016-09-01 16:26:39 +02:00
tobiasKaminsky db37d4f680 after pinching grid is updated correctly 2016-09-01 16:26:39 +02:00
tobiasKaminsky b44178b0ad wip 2016-09-01 16:26:39 +02:00
Andy Scherzinger b1e364efb6 fixed copyright 2016-09-01 16:20:02 +02:00
Andy Scherzinger 48e90501c0 code cleanup 2016-09-01 16:20:02 +02:00
Andy Scherzinger 0b87d80f08 beatified info rendereing for active account/path for uploads 2016-09-01 16:20:02 +02:00
Andy Scherzinger 54d1c42ea7 fix AccountUtils calls 2016-09-01 16:20:02 +02:00
Andy Scherzinger 7e84c2a934 CR changes 2016-09-01 16:20:02 +02:00
Andy Scherzinger 8ae25feaee cleanup code for preference loading 2016-09-01 16:20:02 +02:00
Luke Owncloud c99ef87a5f configure account for instant upload 2016-09-01 16:20:02 +02:00
Andy Scherzinger 72c96f7054 minor cleanups after rebase 2016-09-01 16:15:45 +02:00
tobiasKaminsky b4e068af38 fix wrong cast of cache size 2016-09-01 16:15:45 +02:00
tobiasKaminsky 85ae0ef010 show cache size in mb 2016-09-01 16:15:45 +02:00
tobiasKaminsky 6e4913ade8 fixed according to andys comments 2016-09-01 16:15:45 +02:00
tobiasKaminsky 1787cd4ea2 cache size is read from cache on preference start 2016-09-01 16:15:45 +02:00
tobiasKaminsky a731e87267 cache resize 2016-09-01 16:15:45 +02:00
tobiasKaminsky 007f9a3696 add preference for cache size 2016-09-01 16:15:45 +02:00
tobiasKaminsky 08bddb3dcf descend into folder after creating it in uploader 2016-09-01 16:12:59 +02:00
Andy Scherzinger a638f3c31b CHANGELOG.md 2016-09-01 14:56:53 +02:00
Andy Scherzinger d2c6f0c0a7 Merge branch 'fixRemoteFolderSize' of https://github.com/nextcloud/android into beta 2016-09-01 14:55:52 +02:00
tobiasKaminsky 6e7645b4f4 mix folders and files on sort by date 2016-09-01 11:32:01 +02:00
Andy Scherzinger 2d05f45a6d minor formattings 2016-09-01 11:26:09 +02:00
Andy Scherzinger b64e41f1cb hide file listing switch visibility fix when share link gets deactivated 2016-09-01 11:26:09 +02:00
tobiasKaminsky 738c491800 wip 2016-09-01 11:26:09 +02:00
tobiasKaminsky fe13a0ef23 wip 2016-09-01 11:26:09 +02:00
tobiasKaminsky 3ab681415b wip 2016-09-01 11:26:09 +02:00
tobiasKaminsky bf213bc11f wip 2016-09-01 11:26:09 +02:00
tobiasKaminsky 946d2a1d5e wip 2016-09-01 11:26:09 +02:00
Andy Scherzinger a44441bdda Merge branch 'quotaDisplay' of https://github.com/nextcloud/android into beta 2016-09-01 10:12:41 +02:00
Andy Scherzinger c6d71c4c14 CHANGELOG.md 2016-08-31 19:35:43 +02:00
Andy Scherzinger fc06e1b91e Merge branch 'build24' of https://github.com/nextcloud/android into beta
# Conflicts:
#	AndroidManifest.xml
#	res/values/setup.xml
#	src/com/owncloud/android/utils/FileStorageUtils.java
2016-08-31 19:34:30 +02:00
Andy Scherzinger e73f9970ee fixes 2016-08-31 19:27:38 +02:00
David A. Velasco 4c4d6948cc Fix crash opening or sending files in Android 7
# Conflicts:
#	res/values/setup.xml
#	src/com/owncloud/android/ui/activity/Preferences.java
2016-08-31 19:23:42 +02:00
Andy Scherzinger 054717cc65 Merge branch 'quotaDisplay' of https://github.com/nextcloud/android into beta
# Conflicts:
#	build.gradle
2016-08-31 19:18:40 +02:00
Andy Scherzinger 58652a5522 Revert "reactive instrumented demo test"
This reverts commit f7195a0192.
2016-08-30 23:29:49 +02:00
Andy Scherzinger f7195a0192 reactive instrumented demo test 2016-08-30 19:12:29 +02:00
Andy Scherzinger 6a6fb1dab7 Merge branch 'build24' of https://github.com/nextcloud/android into beta 2016-08-30 18:46:58 +02:00
Andy Scherzinger 70c1cef829 atm we only need the emulator version since it is also the targeted version 2016-08-30 18:25:34 +02:00
Andy Scherzinger 753399fdc7 Updated CHANGELOG.md 2016-08-30 18:20:46 +02:00
Andy Scherzinger 0a463042e5 Merge branch 'build24' of https://github.com/nextcloud/android into beta
# Conflicts:
#	build.gradle
2016-08-30 18:15:57 +02:00
Andy Scherzinger 30e5ad14ae Merge branch 'fixEmptyLocalUploadFolder' of https://github.com/nextcloud/android into beta
# Conflicts:
#	build.gradle
#	src/com/owncloud/android/MainApp.java
#	src/com/owncloud/android/ui/activity/FileDisplayActivity.java
2016-08-30 18:06:05 +02:00
Andy Scherzinger 1b7ffa00bf bugfix showing empty local folders as empty and not showing the parent folder in an empty folder 2016-08-30 17:56:28 +02:00
Andy Scherzinger f606d14b6d change emulator ready detection again, disable running sample instrumented unit test (failing at the moment)
updated wait_for_emulator.sh for actual travis cookbook revision https://github.com/travis-ci/travis-cookbooks/blob/62039b204699adcdf4b3365fac42d81246cb57fe/ci_environment/android-sdk/files/default/android-wait-for-emulator

try emulator 24

bump support lib to 24.2.0
2016-08-30 15:16:47 +02:00
Andy Scherzinger 644a9ee978 bump Android SDK Build-Tools to 24.0.2 2016-08-29 17:58:55 +02:00
Andy Scherzinger 0b88b6e144 changed matrix variables to better support different target and emulator API-level 2016-08-18 15:53:46 +02:00
Andy Scherzinger 99434be7c4 no pre-dexing on travis (performance) 2016-08-18 15:53:46 +02:00
Andy Scherzinger 68c8ce6010 try v23 emulator 2016-08-18 15:53:46 +02:00
Andy Scherzinger 9fe0c6f364 Update build tools to 24.0.1, java7 compat 2016-08-18 15:53:46 +02:00
Andy Scherzinger 3a4d516c24 rebase/merge 2016-08-18 15:53:46 +02:00
Andy Scherzinger a724993861 lib1.0.4 2016-08-18 15:53:46 +02:00
Andy Scherzinger 38f0266ecf Revert "added jcenter repo"
This reverts commit b54e954c96014babd176d8f50ba6b7a9e44dea38.
2016-08-18 15:53:46 +02:00
Andy Scherzinger 7a539ef071 link to v24 version of the Nc lib 2016-08-18 15:53:46 +02:00
Andy Scherzinger c4c9fac34a added jcenter repo 2016-08-18 15:53:46 +02:00
Andy Scherzinger 49a125ebd6 bump to v24 incl. toolchain, jdk8 etc. 2016-08-18 15:53:46 +02:00
Andy Scherzinger 649c5cfe0c fixed the background color 2016-08-14 20:26:08 +02:00
Andy Scherzinger beb3abb7f3 CR changes 2016-08-14 20:18:32 +02:00
Andy Scherzinger 32aa5113b5 colorize quota progress bar depending on thresholds met, reformattings 2016-08-14 20:18:32 +02:00
Andy Scherzinger ff7bb22903 minor code refactoring extracting setup code into dedicated methods 2016-08-14 20:18:32 +02:00
Andy Scherzinger c117f1eb60 get and show quota information 2016-08-14 20:18:32 +02:00
Andy Scherzinger 1b1e20bee7 update to Nc Android library 1.0.4 2016-08-14 20:14:52 +02:00
Andy Scherzinger d5f143c4cc view elements fix 2016-08-14 20:14:26 +02:00
Andy Scherzinger 9e3499707c initial quota display implementation 2016-08-14 20:14:26 +02:00
Andy Scherzinger 1b279acca8 initial layout changes for in drawer quota display 2016-08-14 20:14:26 +02:00
tobiasKaminsky 831813fd81 update 2016-08-09 22:04:03 +02:00
tobiasKaminsky 44e91d4d9d fix wrong beta lookup url 2016-08-09 21:11:34 +02:00
tobiasKaminsky 7df332b2dc update 2016-08-08 20:28:02 +02:00
tobiasKaminsky 50a565f11d Merge remote-tracking branch 'remotes/origin/externalSD2' into beta 2016-08-08 20:21:03 +02:00
tobiasKaminsky 430872629d Merge remote-tracking branch 'remotes/origin/updateCopyMove' into beta 2016-08-08 19:53:39 +02:00
tobiasKaminsky 79650fbcb9 Merge remote-tracking branch 'remotes/origin/filesDrop' into beta 2016-08-08 19:52:38 +02:00
tobiasKaminsky 7fb56cd467 Merge remote-tracking branch 'remotes/origin/fixNPEinUploadFile' into beta 2016-08-08 19:45:44 +02:00
tobiasKaminsky a524d9083f Merge remote-tracking branch 'remotes/origin/fixUploadComparator' into beta 2016-08-08 19:45:00 +02:00
tobiasKaminsky e7d190adf4 "move upload" is first default when on first startup 2016-08-08 10:51:41 +02:00
tobiasKaminsky f5e32fb333 move / copy updated 2016-08-08 10:51:41 +02:00
Andy Scherzinger 3d1ba53339 fix chunked upload constructor call 2016-08-08 10:32:49 +02:00
Andy Scherzinger d0857dd009 extract/pre-compile the pattern 2016-08-08 10:32:49 +02:00
Andy Scherzinger 4567ce5496 further CR fixes, fixed comment in layout/migration_layout.xml 2016-08-08 10:32:49 +02:00
Andy Scherzinger 37f99a7fa2 CR, GPLv3 2016-08-08 10:32:49 +02:00
Andy Scherzinger 4feff15973 lib version 1.0.2, organizes imports in FileStorageUtils 2016-08-08 10:32:49 +02:00
Andy Scherzinger 25d7f4149e fixed strings (oC->Nc and ... --> &#8230;) 2016-08-08 10:32:49 +02:00
Andy Scherzinger aa081f0080 temporary gradle link to branch/snapshot of the library until it is merged, so the build works again 2016-08-08 10:32:49 +02:00
Bartosz Przybylski 278da5520a rebase fixes 2016-08-08 10:32:49 +02:00
tobiasKaminsky eba09158c3 use lollipop external storage system 2016-08-08 10:32:49 +02:00
Bartosz Przybylski eaf0265866 Because of multiple underlying implementation of storage mount points introduce a mechanism which is querying multiple solutions and lists them to the user 2016-08-08 10:32:49 +02:00
Bartosz Przybylski 42ca74cbb0 Handle case of migration of empty src directory 2016-08-08 10:32:49 +02:00
Bartosz Przybylski 64eeacb829 Change the way of fetching mounted resources, use system tools and parse results 2016-08-08 10:32:49 +02:00
Bartosz Przybylski 3eea52f5f3 Use progress dialog instead of alert dialog, for better UX 2016-08-08 10:32:49 +02:00
Bartosz Przybylski 3c0087da97 Tabs to spaces 2016-08-08 10:32:49 +02:00
Bartosz Przybylski bb86f57628 Small code cleanups 2016-08-08 10:32:49 +02:00
Bartosz Przybylski 57c93d37c2 Simplify storage selection process 2016-08-08 10:32:49 +02:00
Bartosz Przybylski 5326351378 Add DataStorageUtils to detect connected SD cards 2016-08-08 10:32:49 +02:00
Bartosz Przybylski 52e69cf25b For more reliability delete old files recursively in migration cleanup 2016-08-08 10:32:49 +02:00
Bartosz Przybylski 3a214db461 Fix after rebase 2016-08-08 10:32:49 +02:00
Bartosz Przybylski 54d82af9ff Soften requirement on cleanup step failures 2016-08-08 10:32:49 +02:00
Bartosz Przybylski 23b02079d3 Stop and start logging on migration 2016-08-08 10:32:49 +02:00
Bartosz Przybylski 2f6192a6e5 Code cleanups 2016-08-08 10:32:49 +02:00
Bartosz Przybylski 3f0df0a5c9 Add cleanup and rollback step when migrating. Correctly set progress during migration. 2016-08-08 10:32:49 +02:00
Bartosz Przybylski 7f3543e802 Add more migration stuff. cleanup step is still missing 2016-08-08 10:32:49 +02:00
Bartosz Przybylski 017e68b79c Add unfinished local directories browser for storage target. Add migration activity stub. Adjust some parts of app to prepare it for storage migration 2016-08-08 10:32:49 +02:00
tobiasKaminsky 1e968d6ab1 Prepare preferences and project to use user defined storage path 2016-08-08 10:32:49 +02:00
Andy Scherzinger 20e9b8e94f minor formattings 2016-08-08 10:28:16 +02:00
Andy Scherzinger e71ae2e532 hide file listing switch visibility fix when share link gets deactivated 2016-08-08 10:28:16 +02:00
tobiasKaminsky 45ade381de wip 2016-08-08 10:28:16 +02:00
tobiasKaminsky 30c18fd1ea wip 2016-08-08 10:28:16 +02:00
tobiasKaminsky 65d16da98b wip 2016-08-08 10:28:16 +02:00
tobiasKaminsky 1e6a090810 wip 2016-08-08 10:28:16 +02:00
tobiasKaminsky f402dd9692 wip 2016-08-08 10:28:16 +02:00
tobiasKaminsky f83bf524a8 Merge remote-tracking branch 'remotes/origin/updateCopyMove' into beta 2016-08-08 10:17:31 +02:00
tobiasKaminsky ad2c8fc08e update 2016-08-08 10:11:08 +02:00
tobiasKaminsky 492cf00064 Merge remote-tracking branch 'remotes/origin/fixPublicLink' into beta 2016-08-08 10:09:16 +02:00
tobiasKaminsky e29cfabfe9 allow apk to git 2016-08-04 18:28:54 +02:00
tobiasKaminsky 0b59dd9e2a "move upload" is first default when on first startup 2016-08-04 10:51:55 +02:00
tobiasKaminsky ee17b00288 move / copy updated 2016-08-04 10:51:55 +02:00
tobiasKaminsky 728db354f9 Merge remote-tracking branch 'remotes/origin/resizedImages' into beta 2016-08-03 17:50:50 +02:00
tobiasKaminsky 1df99748ef Merge remote-tracking branch 'remotes/origin/protect_password_field_agains_autocompletion_suggestions' into beta 2016-08-03 17:50:39 +02:00
tobiasKaminsky 452b23cc39 Merge remote-tracking branch 'remotes/origin/meteredWiFi' into beta 2016-08-03 17:50:27 +02:00
tobiasKaminsky 773a8d6a63 Merge remote-tracking branch 'remotes/origin/instant_upload_multi_account' into beta 2016-08-03 17:49:36 +02:00
tobiasKaminsky a2f836bb66 Merge remote-tracking branch 'remotes/origin/filter' into beta 2016-08-03 17:46:17 +02:00
tobiasKaminsky 1aacc2b45f Merge remote-tracking branch 'remotes/origin/filesDrop' into beta 2016-08-03 17:45:00 +02:00
tobiasKaminsky 9562e70450 Merge remote-tracking branch 'remotes/origin/externalSD2' into beta 2016-08-03 17:43:07 +02:00
tobiasKaminsky 7fece371ad Merge remote-tracking branch 'remotes/origin/resumeChunkedUploads' into beta 2016-08-03 17:17:00 +02:00
tobiasKaminsky 94a6c44012 Merge remote-tracking branch 'remotes/origin/uploadWhenCharging' into beta 2016-08-03 17:16:07 +02:00
tobiasKaminsky b4775d52ed update 2016-08-02 22:15:49 +02:00
tobiasKaminsky 37427304fd Merge remote-tracking branch 'remotes/origin/updateCopyMove' into beta 2016-08-02 21:39:33 +02:00
tobiasKaminsky 47edebde38 Merge remote-tracking branch 'origin/beta' into beta 2016-08-02 21:39:12 +02:00
tobiasKaminsky 1ce514972b "move upload" is first default when on first startup 2016-08-02 21:36:11 +02:00
Andy Scherzinger 6b36468d19 fixed copyright 2016-08-02 19:42:08 +02:00
Andy Scherzinger 35e9301a6d code cleanup 2016-08-02 19:42:08 +02:00
Andy Scherzinger d933e88f64 beatified info rendereing for active account/path for uploads 2016-08-02 19:42:08 +02:00
Andy Scherzinger 7549a547de fix AccountUtils calls 2016-08-02 19:41:31 +02:00
Andy Scherzinger 51e02f9591 CR changes 2016-08-02 19:41:31 +02:00
Andy Scherzinger 2d6184ccfc cleanup code for preference loading 2016-08-02 19:41:31 +02:00
Luke Owncloud 4752d2741e configure account for instant upload 2016-08-02 19:41:31 +02:00
Andy Scherzinger ae947a5ca4 minor formattings 2016-08-02 17:55:30 +02:00
Andy Scherzinger 6ab0506c9a hide file listing switch visibility fix when share link gets deactivated 2016-08-02 17:18:46 +02:00
Andy Scherzinger 0faa786b2e hide file listing switch visibility fix when share link gets deactivated 2016-08-02 17:17:20 +02:00
tobiasKaminsky 824be9278c wip 2016-08-02 15:44:18 +02:00
tobiasKaminsky aa00ad74b2 wip 2016-08-02 15:44:18 +02:00
tobiasKaminsky c1e2b2dee5 wip 2016-08-02 15:44:18 +02:00
tobiasKaminsky 229ff7c38b wip 2016-08-02 15:44:18 +02:00
tobiasKaminsky e78b0fb447 wip 2016-08-02 15:44:18 +02:00
Andy Scherzinger 956cfa5d7b proper show hide during drawer open/close, also for filter-menu-item 2016-08-02 15:28:44 +02:00
Andy Scherzinger 70abde93de GPLv3 2016-08-02 15:28:44 +02:00
Andy Scherzinger 69b368e111 hide non-primary action menu items in overflow menu 2016-08-02 15:28:44 +02:00
Andy Scherzinger 3019c540a1 added description and went for ifRoom 2016-08-02 15:28:44 +02:00
Andy Scherzinger eef9e38065 fix UI behavior for filtering in upload view 2016-08-02 15:28:44 +02:00
Andy Scherzinger 422d432712 fixed license version 2016-08-02 15:28:44 +02:00
Andy Scherzinger 74e117191e correct search view UI-behavior 2016-08-02 15:28:44 +02:00
tobiasKaminsky 7e6162815f filter for oc file list and local file list 2016-08-02 15:28:44 +02:00
Andy Scherzinger 984d0fe93c fixed parameter order 2016-08-02 11:50:02 +02:00
Andy Scherzinger 4bb1071e1a fix chunked upload constructor call 2016-08-02 11:35:51 +02:00
Andy Scherzinger 2769d9389a extract/pre-compile the pattern 2016-08-02 11:18:49 +02:00
Andy Scherzinger 6417c93517 further CR fixes, fixed comment in layout/migration_layout.xml 2016-08-02 11:12:25 +02:00
Andy Scherzinger 4f0b0b9116 CR, GPLv3 2016-08-02 10:59:31 +02:00
Andy Scherzinger 39745e49e7 lib version 1.0.2, organizes imports in FileStorageUtils 2016-08-02 10:37:35 +02:00
Andy Scherzinger cfb25da11f fixed strings (oC->Nc and ... --> &#8230;) 2016-08-02 10:34:26 +02:00
Andy Scherzinger b57414a759 temporary gradle link to branch/snapshot of the library until it is merged, so the build works again 2016-08-02 10:34:26 +02:00
Bartosz Przybylski e884640785 rebase fixes 2016-08-02 10:34:26 +02:00
tobiasKaminsky 351905fc48 use lollipop external storage system 2016-08-02 10:34:26 +02:00
Bartosz Przybylski 648d3f5292 Because of multiple underlying implementation of storage mount points introduce a mechanism which is querying multiple solutions and lists them to the user 2016-08-02 10:34:26 +02:00
Bartosz Przybylski 845a6b2f68 Handle case of migration of empty src directory 2016-08-02 10:34:26 +02:00
Bartosz Przybylski ebe6c2bca7 Change the way of fetching mounted resources, use system tools and parse results 2016-08-02 10:34:26 +02:00
Bartosz Przybylski 769430b8f0 Use progress dialog instead of alert dialog, for better UX 2016-08-02 10:34:26 +02:00
Bartosz Przybylski 393c9b4072 Tabs to spaces 2016-08-02 10:34:26 +02:00
Bartosz Przybylski ab3d19d29e Small code cleanups 2016-08-02 10:34:26 +02:00
Bartosz Przybylski e94220a906 Simplify storage selection process 2016-08-02 10:34:03 +02:00
Bartosz Przybylski c568af347c Add DataStorageUtils to detect connected SD cards 2016-08-02 10:34:03 +02:00
Bartosz Przybylski 5c1b4ba796 For more reliability delete old files recursively in migration cleanup 2016-08-02 10:34:03 +02:00
Bartosz Przybylski e13ad5ff26 Fix after rebase 2016-08-02 10:34:03 +02:00
Bartosz Przybylski 5166231481 Soften requirement on cleanup step failures 2016-08-02 10:34:03 +02:00
Bartosz Przybylski 25300cc0e9 Stop and start logging on migration 2016-08-02 10:34:03 +02:00
Bartosz Przybylski b637679083 Code cleanups 2016-08-02 10:34:03 +02:00
Bartosz Przybylski c928224b55 Add cleanup and rollback step when migrating. Correctly set progress during migration. 2016-08-02 10:32:41 +02:00
Bartosz Przybylski 83378f60c3 Add more migration stuff. cleanup step is still missing 2016-08-02 10:32:41 +02:00
Bartosz Przybylski 237b26ae79 Add unfinished local directories browser for storage target. Add migration activity stub. Adjust some parts of app to prepare it for storage migration 2016-08-02 10:32:41 +02:00
tobiasKaminsky e393a6db27 Prepare preferences and project to use user defined storage path 2016-08-02 10:32:41 +02:00
tobiasKaminsky df45b5543b Merge remote-tracking branch 'remotes/origin/filter' into beta 2016-08-01 21:57:58 +02:00
tobiasKaminsky 9f86064b81 Merge remote-tracking branch 'origin/resizedImages' into resizedImages 2016-08-01 21:56:21 +02:00
tobiasKaminsky 73da2a1d14 added second parameter to thumbnail generation task 2016-08-01 21:43:18 +02:00
tobiasKaminsky 26683f5c61 added second parameter to thumbnail generation task 2016-08-01 21:42:11 +02:00
tobiasKaminsky 56572a09ef allow apk to be uploaded 2016-08-01 21:18:58 +02:00
Andy Scherzinger 7b58b8c328 update to Nc Android lib 1.0.2 2016-08-01 16:51:42 +02:00
Andy Scherzinger 30b66dcd27 bump Nc Android lib version 2016-08-01 16:25:23 +02:00
tobiasKaminsky 26e0dab381 resume chunked uploads 2016-08-01 16:22:32 +02:00
Andy Scherzinger 93bb169c6c GPLv3 2016-08-01 11:31:37 +02:00
Andy Scherzinger 4e03fb3894 GPLv3 2016-08-01 11:29:08 +02:00
tobiasKaminsky 4d9d895b57 add apks ;) 2016-07-31 13:18:15 +02:00
tobiasKaminsky 9fae39b45f update beta 2016-07-31 12:56:38 +02:00
tobiasKaminsky e2cce3957e fix merging error 2016-07-31 12:55:03 +02:00
tobiasKaminsky 6bdde0e59a Merge remote-tracking branch 'remotes/origin/updateCopyMove' into beta 2016-07-31 12:46:36 +02:00
tobiasKaminsky 1e5a2583df Merge remote-tracking branch 'remotes/origin/NPEonEmptyLocalFolder' into beta 2016-07-31 12:40:02 +02:00
tobiasKaminsky b5c3d07ab3 update changelog 2016-07-31 12:22:25 +02:00
tobiasKaminsky 705d942124 move / copy updated 2016-07-31 12:14:33 +02:00
tobiasKaminsky 40a68482fe Merge remote-tracking branch 'remotes/origin/externalSD2' into beta 2016-07-31 10:27:53 +02:00
tobiasKaminsky 4d27d9c0a9 add only upload when charging 2016-07-30 19:31:03 +02:00
tobiasKaminsky 955cf86f05 update changelog 2016-07-30 19:29:23 +02:00
tobiasKaminsky b1dd34e18c Merge remote-tracking branch 'remotes/origin/uploadWhenCharging' into beta 2016-07-30 18:58:26 +02:00
tobiasKaminsky 2ea5eaca4c finally a beta update :) 2016-07-28 21:42:08 +02:00
tobiasKaminsky a92e749c9f fix sharing for beta 2016-07-28 21:22:47 +02:00
tobiasKaminsky 8a988a9e84 wip 2016-07-28 20:57:26 +02:00
tobiasKaminsky 8d1864d0cf update beta 2016-07-28 20:38:00 +02:00
tobiasKaminsky 4015763df6 Merge remote-tracking branch 'remotes/origin/resumeChunkedUploads' into beta 2016-07-28 20:02:07 +02:00
tobiasKaminsky f720c186c3 Merge remote-tracking branch 'remotes/origin/protect_password_field_agains_autocompletion_suggestions' into beta 2016-07-28 19:57:48 +02:00
tobiasKaminsky 75949fb5ca Merge remote-tracking branch 'remotes/origin/refresh_folders_startup' into beta 2016-07-28 19:55:36 +02:00
tobiasKaminsky 033bc352f4 Merge remote-tracking branch 'remotes/origin/renameInstantUploadPath' into beta 2016-07-28 19:54:55 +02:00
tobiasKaminsky 9e8c3f2192 Merge remote-tracking branch 'remotes/origin/meteredWiFi' into beta 2016-07-28 19:53:48 +02:00
tobiasKaminsky 39cb69737c Merge remote-tracking branch 'remotes/origin/djvu' into beta 2016-07-28 19:53:31 +02:00
tobiasKaminsky 106d02f4ee Merge remote-tracking branch 'remotes/origin/filter' into beta 2016-07-28 19:53:08 +02:00
tobiasKaminsky 6fbfd0c6ce Merge remote-tracking branch 'remotes/origin/resizeCache' into beta 2016-07-28 19:50:58 +02:00
tobiasKaminsky 962f9413bf Merge remote-tracking branch 'remotes/origin/pinchZoom' into beta 2016-07-28 19:49:43 +02:00
tobiasKaminsky 092704a1e1 Merge remote-tracking branch 'remotes/origin/textFile' into beta 2016-07-28 19:49:28 +02:00
tobiasKaminsky 69f0edec74 Merge remote-tracking branch 'remotes/origin/filesDrop' into beta 2016-07-28 19:49:12 +02:00
tobiasKaminsky ae7247b008 Merge remote-tracking branch 'remotes/origin/mixSortByDate' into beta 2016-07-28 19:48:49 +02:00
tobiasKaminsky 08706b4813 Merge remote-tracking branch 'remotes/origin/instant_upload_multi_account' into beta 2016-07-28 19:48:23 +02:00
tobiasKaminsky a9b587b1cd Merge remote-tracking branch 'remotes/origin/resizedImages' into beta 2016-07-28 19:47:39 +02:00
Andy Scherzinger 5b806394b6 reformetted two lines 2016-07-28 19:04:52 +02:00
tobiasKaminsky 5170f029b2 changes due to CR 2016-07-28 19:04:52 +02:00
Andy Scherzinger 999ec8202e textfile --> text file 2016-07-28 19:04:52 +02:00
tobiasKaminsky 658371336e finish 2016-07-28 19:04:52 +02:00
tobiasKaminsky 447c2f9d52 wip 2016-07-28 19:04:52 +02:00
tobiasKaminsky c7dafff817 djvu is not an image 2016-07-28 19:00:30 +02:00
tobiasKaminsky d238c8a7fb resume chunked uploads 2016-07-28 18:29:49 +02:00
Andy Scherzinger 88b49880e1 Changed the delay to execute the runnable in startSyncFolderOperation, adding 350 ms. 2016-07-28 18:03:44 +02:00
David A. Velasco 6cf396f0d4 Add flag to disable suggestions in password field, no matter if visible or not 2016-07-28 18:00:03 +02:00
Andy Scherzinger ac9aedecec hide non-primary action menu items in overflow menu 2016-07-28 17:46:51 +02:00
Andy Scherzinger b535fe2926 added description and went for ifRoom 2016-07-28 17:46:51 +02:00
Andy Scherzinger c8fba79f9f fix UI behavior for filtering in upload view 2016-07-28 17:46:51 +02:00
Andy Scherzinger 8f941939e2 fixed license version 2016-07-28 17:46:51 +02:00
Andy Scherzinger 75d3236fa7 correct search view UI-behavior 2016-07-28 17:46:51 +02:00
tobiasKaminsky 6a3903afbe filter for oc file list and local file list 2016-07-28 17:46:51 +02:00
Andy Scherzinger aeb9ea9871 fixed copyright 2016-07-27 17:31:01 +02:00
Andy Scherzinger 7712e694b1 code cleanup 2016-07-27 17:31:01 +02:00
Andy Scherzinger 04ff966d63 beatified info rendereing for active account/path for uploads 2016-07-27 17:31:01 +02:00
Andy Scherzinger a99032ccf4 fix AccountUtils calls 2016-07-27 17:31:01 +02:00
Andy Scherzinger 953b5c637e CR changes 2016-07-27 17:31:01 +02:00
Andy Scherzinger 2f4aef8fb2 cleanup code for preference loading 2016-07-27 17:31:01 +02:00
Luke Owncloud 53cfb1196d configure account for instant upload 2016-07-27 17:31:01 +02:00
tobiasKaminsky c7555938a5 delay instant upload when metered wifi is used 2016-07-26 19:52:49 +02:00
tobiasKaminsky cf1e7013f4 minor code enhancements 2016-07-23 10:23:54 +02:00
tobiasKaminsky 8258843ae1 Merge remote-tracking branch 'remotes/origin/resizedImages' into resizedImages2 2016-07-23 10:15:50 +02:00
tobiasKaminsky 67baae4441 Merge remote-tracking branch 'remotes/origin/master' into resizedImages2 2016-07-23 10:12:39 +02:00
tobiasKaminsky a5509797bc resized images are now fetched via gallery app 2016-07-23 09:46:59 +02:00
tobiasKaminsky 3ff2d58a25 Merge remote-tracking branch 'remotes/origin/master' into storeResizedImagesOnDeletion 2016-07-21 20:25:31 +02:00
tobiasKaminsky e7e02837e6 update 2016-07-21 20:02:23 +02:00
tobiasKaminsky eaed9886cf Merge remote-tracking branch 'remotes/origin/master' into resizeCache 2016-07-21 19:58:36 +02:00
tobiasKaminsky cb9c6fc8f6 show filenames only if column size < 4 2016-07-21 19:44:22 +02:00
tobiasKaminsky b4136568e5 Merge remote-tracking branch 'remotes/origin/master' into pinchZoom 2016-07-21 19:24:15 +02:00
tobiasKaminsky 8bb465f1e7 wip 2016-07-21 18:26:52 +02:00
tobiasKaminsky 5511c063d6 Merge remote-tracking branch 'remotes/origin/master' into filesDrop 2016-07-21 18:18:05 +02:00
tobiasKaminsky 0e1f66e0e3 wip 2016-07-21 18:17:46 +02:00
tobiasKaminsky 2c71d2b57e wip 2016-07-20 20:18:18 +02:00
tobiasKaminsky a61c4b932c wip 2016-07-18 18:39:59 +02:00
tobiasKaminsky 8b9d6b2f22 Merge remote-tracking branch 'remotes/origin/master' into filesDrop 2016-07-18 18:37:20 +02:00
tobiasKaminsky 87f03c7c17 wip 2016-07-18 17:27:38 +02:00
tobiasKaminsky 6ca77290ec mix folders and files on sort by date 2016-07-17 17:22:42 +02:00
Andy Scherzinger d2a323a970 fix AccountUtils calls 2016-07-09 20:48:17 +02:00
Andy Scherzinger a6ef30cbbd CR changes 2016-07-09 20:23:47 +02:00
Andy Scherzinger 184eaef74f cleanup code for preference loading 2016-07-09 20:23:47 +02:00
Luke Owncloud 27d49da7ea configure account for instant upload 2016-07-09 20:23:46 +02:00
Andy Scherzinger 2ffcb50397 fixed strings (oC->Nc and ... --> &#8230;) 2016-07-03 14:36:17 +02:00
Andy Scherzinger 55d038e801 temporary gradle link to branch/snapshot of the library until it is merged, so the build works again 2016-07-03 14:32:04 +02:00
Bartosz Przybylski 47066401d0 rebase fixes 2016-07-03 00:19:59 +02:00
tobiasKaminsky 3eb7aa3809 use lollipop external storage system 2016-07-03 00:04:43 +02:00
Bartosz Przybylski 1cb345c99f Because of multiple underlying implementation of storage mount points introduce a mechanism which is querying multiple solutions and lists them to the user 2016-07-03 00:03:49 +02:00
Bartosz Przybylski 870b04a390 Handle case of migration of empty src directory 2016-07-03 00:02:31 +02:00
Bartosz Przybylski ec14112d82 Change the way of fetching mounted resources, use system tools and parse results 2016-07-03 00:02:31 +02:00
Bartosz Przybylski b20373d59b Use progress dialog instead of alert dialog, for better UX 2016-07-03 00:02:31 +02:00
Bartosz Przybylski 9745b34290 Tabs to spaces 2016-07-03 00:02:31 +02:00
Bartosz Przybylski b589077669 Small code cleanups 2016-07-03 00:01:07 +02:00
Bartosz Przybylski 56d0517a47 Simplify storage selection process 2016-07-02 23:58:49 +02:00
Bartosz Przybylski ebaf8c6ccf Add DataStorageUtils to detect connected SD cards 2016-07-02 23:48:40 +02:00
Bartosz Przybylski 029c54dc2b For more reliability delete old files recursively in migration cleanup 2016-07-02 23:48:40 +02:00
Bartosz Przybylski 4ab8d0cb35 Fix after rebase 2016-07-02 23:48:40 +02:00
Bartosz Przybylski ab0abea781 Soften requirement on cleanup step failures 2016-07-02 23:48:40 +02:00
Bartosz Przybylski fadbd7629d Stop and start logging on migration 2016-07-02 23:48:40 +02:00
Bartosz Przybylski cf2267e196 Code cleanups 2016-07-02 23:48:40 +02:00
Bartosz Przybylski 77c4819e98 Add cleanup and rollback step when migrating. Correctly set progress during migration. 2016-07-02 23:44:54 +02:00
Bartosz Przybylski 76d58fbbc8 Add more migration stuff. cleanup step is still missing 2016-07-02 23:44:54 +02:00
Bartosz Przybylski 7ec2ffc6af Add unfinished local directories browser for storage target. Add migration activity stub. Adjust some parts of app to prepare it for storage migration 2016-07-02 23:44:12 +02:00
tobiasKaminsky c848d4fd3b Prepare preferences and project to use user defined storage path 2016-07-02 23:32:03 +02:00
tobiasKaminsky e3d43e754d wip 2016-06-25 13:38:55 +02:00
tobiasKaminsky bcb55a0e4c Merge remote-tracking branch 'remotes/origin/master' into resizedImages 2016-06-25 13:30:23 +02:00
tobiasKaminsky a9fbec2934 revert wip 2016-05-13 18:17:49 +02:00
tobiasKaminsky 140e923982 update build gradle 2016-05-13 18:16:10 +02:00
tobiasKaminsky 680cf56746 correct indentation 2016-05-13 18:15:12 +02:00
tobiasKaminsky 7162aa65f4 revert exporting FileContentProvider 2016-05-13 18:14:32 +02:00
tobiasKaminsky a6e16a4e71 wip 2016-04-10 18:54:28 +02:00
tobiasKaminsky 93b143a647 use local context 2016-03-30 18:09:04 +02:00
tobiasKaminsky 78aa439660 changes due to CR 2016-03-21 08:25:12 +01:00
tobiasKaminsky a3fd1a0ac6 Merge remote-tracking branch 'remotes/upstream/master' into pinchZoom 2016-03-12 10:33:02 +01:00
tobiasKaminsky 302b253e9a update lib 2016-03-12 09:02:30 +01:00
tobiasKaminsky 7469b5dd96 Merge remote-tracking branch 'remotes/upstream/master' into pinchZoom 2016-03-12 08:56:26 +01:00
tobiasKaminsky e4ce10f180 changes according to CR 2016-03-12 08:54:59 +01:00
tobiasKaminsky 2ecff7c12f save gridColumns on start/stop 2016-02-08 08:58:59 +01:00
tobiasKaminsky 5849a4a93f after pinching grid is updated correctly 2016-01-24 09:46:51 +01:00
tobiasKaminsky 999a2ee86e wip 2016-01-20 20:39:33 +01:00
tobiasKaminsky eac4e49ceb fixed showing thumbnails in local file list (uploader) 2016-01-03 13:36:29 +01:00
tobiasKaminsky 5c9c34f1d2 fix wrong cast of cache size 2015-11-22 10:13:40 +01:00
tobiasKaminsky 0302a62af5 Merge branch 'master' of github.com:owncloud/android into resizeCache 2015-11-14 16:33:22 +01:00
tobiasKaminsky 11774de541 show cache size in mb 2015-11-13 18:33:21 +01:00
tobiasKaminsky 90382c5889 show thumbnail while waiting for resized image 2015-11-13 16:41:05 +01:00
tobiasKaminsky ce841a3c4f Merge remote-tracking branch 'remotes/upstream/master' into resizedImagesMaster 2015-11-05 22:04:57 +01:00
tobiasKaminsky d5ee0ef158 fixed #1244 2015-11-05 21:58:02 +01:00
tobiasKaminsky d06a4b155d updated for future use with later PRs 2015-11-02 22:09:29 +01:00
tobiasKaminsky 3ddb48b647 exported must be set to true 2015-11-02 10:24:01 +01:00
tobiasKaminsky 957484588e fix #1230 2015-10-31 11:03:15 +01:00
tobiasKaminsky cf22541dd5 fixed storing thumbnails by correct imageKey 2015-10-31 08:30:13 +01:00
tobiasKaminsky 61338bbb0c fixed rotating resized image 2015-10-31 08:09:49 +01:00
tobiasKaminsky 890b8df374 fixed according to andys comments 2015-10-17 17:36:31 +02:00
tobiasKaminsky 981ecb91c9 cache size is read from cache on preference start 2015-10-12 20:21:19 +02:00
tobiasKaminsky 39921730b3 cache resize 2015-10-12 08:30:30 +02:00
tobiasKaminsky 641ebef687 add preference for cache size 2015-10-12 07:40:21 +02:00
tobiasKaminsky 788ebbcdab reverted library 2015-07-01 20:13:02 +02:00
tobiasKaminsky ce35d6448e Merge remote-tracking branch 'upstream/develop' into resizedImages 2015-07-01 19:16:42 +02:00
tobiasKaminsky a1bc147849 resized image is loaded instead of full sized image. 2015-05-18 21:01:17 +02:00
3947 changed files with 103859 additions and 375626 deletions

No files matched your search

-5
View File
@@ -1,5 +0,0 @@
# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
exclude_paths:
- "app/src/main/cpp/**"
-30
View File
@@ -1,30 +0,0 @@
# SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
codecov:
branch: master
ci:
- drone.nextcloud.com
notify:
after_n_builds: 2
coverage:
precision: 2
round: down
range: "70...100"
status:
project:
default:
threshold: 0.5
comment:
layout: "header, diff, changes, uncovered, tree"
behavior: default
require_changes: true
after_n_builds: 2
github_checks:
annotations: false
ignore:
- "app/src/main/res/values*/*"
-19
View File
@@ -1,19 +0,0 @@
FROM ubuntu:resolute@sha256:f3d28607ddd78734bb7f71f117f3c6706c666b8b76cbff7c9ff6e5718d46ff64
ARG DEBIAN_FRONTEND=noninteractive
ENV ANDROID_HOME=/usr/lib/android-sdk
RUN apt-get update -y
RUN apt-get install -y unzip wget openjdk-21-jdk vim
RUN wget https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip -O /tmp/commandlinetools.zip
RUN cd /tmp && unzip commandlinetools.zip
RUN mkdir -p /usr/lib/android-sdk/cmdline-tools/
RUN cd /tmp/ && mv cmdline-tools/ latest/ && mv latest/ /usr/lib/android-sdk/cmdline-tools/
RUN mkdir /usr/lib/android-sdk/licenses/
RUN chmod -R 755 /usr/lib/android-sdk/
RUN mkdir -p "$HOME/.gradle" && \
echo "org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" > "$HOME/.gradle/gradle.properties" && \
echo "org.gradle.caching=true" >> "$HOME/.gradle/gradle.properties" && \
echo "org.gradle.parallel=true" >> "$HOME/.gradle/gradle.properties" && \
echo "org.gradle.configureondemand=true" >> "$HOME/.gradle/gradle.properties"
-2
View File
@@ -1,2 +0,0 @@
SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-9
View File
@@ -1,9 +0,0 @@
<!--
~ SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-->
# Instructions
1. Start a DevContainer either on GitHub Codespaces or locally in VSCode.
2. Accept all licenses by running `yes | /usr/lib/android-sdk/cmdline-tools/latest/bin/sdkmanager --licenses`.
3. You can now build the app using `./gradlew clean build`.
-3
View File
@@ -1,3 +0,0 @@
ANDROID_HOME=/usr/lib/android-sdk
JAVA_OPTS="-Xmx8192M"
GRADLE_OPTS="-Dorg.gradle.daemon=true"
-2
View File
@@ -1,2 +0,0 @@
SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-4
View File
@@ -1,4 +0,0 @@
{
"name": "NextcloudAndroid",
"dockerFile": "Dockerfile",
}
-2
View File
@@ -1,2 +0,0 @@
SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
+21 -191
View File
@@ -1,194 +1,24 @@
---
kind: pipeline
type: docker
name: tests-stable
# SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
steps:
- name: gplay
image: ghcr.io/nextcloud/continuous-integration-android16:latest
privileged: true
environment:
LOG_USERNAME:
from_secret: LOG_USERNAME
LOG_PASSWORD:
from_secret: LOG_PASSWORD
GIT_USERNAME:
from_secret: GIT_USERNAME
GITHUB_TOKEN:
from_secret: GIT_TOKEN
pipeline:
test:
image: nextcloudci/android:android-7
commands:
- scripts/checkIfRunDrone.sh $DRONE_PULL_REQUEST || exit 0
- sdkmanager "cmake;4.1.2"
- emulator -avd android -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
- sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g app/src/main/res/values/setup.xml
- ./gradlew assembleGplayDebugAndroidTest
- scripts/wait_for_emulator.sh
- ./gradlew installGplayDebugAndroidTest
- scripts/wait_for_server.sh "server"
- scripts/deleteOldComments.sh "stable" "IT" $DRONE_PULL_REQUEST
- ./gradlew createGplayDebugCoverageReport -Pcoverage -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.owncloud.android.utils.ScreenshotTest || scripts/uploadReport.sh $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER "stable" "IT" $DRONE_PULL_REQUEST
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 20M
- emulator -avd test -no-window &
- ./wait_for_emulator.sh
# build app and assemble APK, in debug mode
- ./gradlew assembleDebug
# run all the local unit tests of app module
- ./gradlew :testDebug
# run all the instrumented tests of app module - DISABLED until we get an stable setup for Espresso in Travis
# - ./gradlew connectedDebugAndroidTest --info
# install app, then assemble and install instrumented tests of app module
- ./gradlew :installDebug
- ./gradlew :installDebugAndroidTest
# run sample instrumented unit test
# TODO fails because test runner is not available
#- adb shell am instrument -w -e debug false -e class com.owncloud.android.datamodel.OCFileUnitTest com.owncloud.android.test/android.support.test.runner.AndroidJUnitRunner
services:
- name: server
image: ghcr.io/nextcloud/continuous-integration-shallow-server:latest # also change in updateScreenshots.sh
environment:
EVAL: true
SERVER_VERSION: 'stable30'
commands:
- BRANCH="$SERVER_VERSION" /usr/local/bin/initnc.sh
- echo 127.0.0.1 server >> /etc/hosts
- rm /etc/apt/sources.list.d/php.list
- apt-get update && apt-get install -y composer
- su www-data -c "OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1"
- su www-data -c "OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2"
- su www-data -c "OC_PASS=user3 php /var/www/html/occ user:add --password-from-env --display-name='User Three' user3"
- su www-data -c "php /var/www/html/occ user:setting user2 files quota 1G"
- su www-data -c "php /var/www/html/occ group:add users"
- su www-data -c "php /var/www/html/occ group:adduser users user1"
- su www-data -c "php /var/www/html/occ group:adduser users user2"
- su www-data -c "git clone --depth 1 -b $SERVER_VERSION https://github.com/nextcloud/activity.git /var/www/html/apps/activity/"
- su www-data -c "php /var/www/html/occ app:enable activity"
- su www-data -c "git clone --depth 1 -b $SERVER_VERSION https://github.com/nextcloud/text.git /var/www/html/apps/text/"
- su www-data -c "php /var/www/html/occ app:enable text"
- su www-data -c "git clone --depth 1 -b $SERVER_VERSION https://github.com/nextcloud/end_to_end_encryption.git /var/www/html/apps/end_to_end_encryption/"
- su www-data -c "php /var/www/html/occ app:enable end_to_end_encryption"
- su www-data -c "git clone --depth 1 -b $SERVER_VERSION https://github.com/nextcloud/photos.git /var/www/html/apps/photos/"
- su www-data -c "cd /var/www/html/apps/photos; composer install --no-dev"
- su www-data -c "php /var/www/html/occ app:enable -f photos"
- su www-data -c "php /var/www/html/occ config:system:set ratelimit.protection.enabled --value false --type bool"
- /usr/local/bin/run.sh
trigger:
branch:
- master
- stable-*
event:
- push
- pull_request
---
kind: pipeline
type: docker
name: tests-master
steps:
- name: gplay
image: ghcr.io/nextcloud/continuous-integration-android16:latest
privileged: true
environment:
LOG_USERNAME:
from_secret: LOG_USERNAME
LOG_PASSWORD:
from_secret: LOG_PASSWORD
GIT_USERNAME:
from_secret: GIT_USERNAME
GITHUB_TOKEN:
from_secret: GIT_TOKEN
commands:
- scripts/checkIfRunDrone.sh $DRONE_PULL_REQUEST || exit 0
- sdkmanager "cmake;4.1.2"
- emulator -avd android -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
- sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g app/src/main/res/values/setup.xml
- scripts/runCombinedTest.sh $DRONE_PULL_REQUEST $LOG_USERNAME $LOG_PASSWORD $DRONE_BUILD_NUMBER
services:
- name: server
image: ghcr.io/nextcloud/continuous-integration-shallow-server:latest # also change in updateScreenshots.sh
environment:
EVAL: true
commands:
- /usr/local/bin/initnc.sh
- echo 127.0.0.1 server >> /etc/hosts
- rm /etc/apt/sources.list.d/php.list
- apt-get update && apt-get install -y composer
- su www-data -c "OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1"
- su www-data -c "OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2"
- su www-data -c "OC_PASS=user3 php /var/www/html/occ user:add --password-from-env --display-name='User Three' user3"
- su www-data -c "php /var/www/html/occ user:setting user2 files quota 1G"
- su www-data -c "php /var/www/html/occ group:add users"
- su www-data -c "php /var/www/html/occ group:adduser users user1"
- su www-data -c "php /var/www/html/occ group:adduser users user2"
- su www-data -c "git clone --depth 1 -b master https://github.com/nextcloud/activity.git /var/www/html/apps/activity/"
- su www-data -c "php /var/www/html/occ app:enable activity"
- su www-data -c "git clone --depth 1 -b main https://github.com/nextcloud/text.git /var/www/html/apps/text/"
- su www-data -c "php /var/www/html/occ app:enable text"
- su www-data -c "git clone --depth 1 -b master https://github.com/nextcloud/end_to_end_encryption/ /var/www/html/apps/end_to_end_encryption/"
- su www-data -c "php /var/www/html/occ app:enable end_to_end_encryption"
- su www-data -c "git clone --depth 1 https://github.com/nextcloud/photos.git /var/www/html/apps/photos/"
- su www-data -c "cd /var/www/html/apps/photos; composer install --no-dev"
- su www-data -c "php /var/www/html/occ app:enable -f photos"
- su www-data -c "php /var/www/html/occ config:system:set ratelimit.protection.enabled --value false --type bool"
- /usr/local/bin/run.sh
trigger:
branch:
- master
- stable-*
event:
- push
- pull_request
---
kind: pipeline
type: docker
name: allScreenshots
steps:
- name: runAllScreenshots
image: ghcr.io/nextcloud/continuous-integration-android16:latest
privileged: true
environment:
GIT_USERNAME:
from_secret: GIT_USERNAME
GITHUB_TOKEN:
from_secret: GIT_TOKEN
LOG_USERNAME:
from_secret: LOG_USERNAME
LOG_PASSWORD:
from_secret: LOG_PASSWORD
commands:
- emulator -avd android -no-snapshot -gpu swiftshader_indirect -no-window -no-audio -skin 500x833 &
- sed -i s'#<bool name="is_beta">false</bool>#<bool name="is_beta">true</bool>#'g app/src/main/res/values/setup.xml
- sed -i s'#showOnlyFailingTestsInReports = ciBuild#showOnlyFailingTestsInReports = false#' build.gradle.kts
- scripts/wait_for_emulator.sh
- scripts/runAllScreenshotCombinations noCI false
- scripts/screenshotSummary.sh
- name: notify
image: drillster/drone-email
settings:
port: 587
from: [email protected]
recipients_only: true
username:
from_secret: EMAIL_USERNAME
password:
from_secret: EMAIL_PASSWORD
recipients:
from_secret: EMAIL_RECIPIENTS
host:
from_secret: EMAIL_HOST
when:
event:
- push
status:
- failure
branch:
- master
- stable-*
trigger:
event:
- cron
cron:
- allscreenshots
---
kind: secret
name: GIT_TOKEN
data: XIoa9IYq+xQ+N5iln8dlpWv0jV6ROr7HuE24ioUr4uQ8m8SjyH0yognWYLYLqnbTKrFWlFZiEMQTH/sZiWjRFvV1iL0=
---
kind: signature
hmac: e8d113e2208bae860dd54f60386114ba6841cc5de4e4d6e4606fda82d99103e0
...
- ANDROID_TARGET=android-24
- ANDROID_ABI=armeabi-v7a
- LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:/opt/android-sdk-linux/tools/lib64/gles_mesa/
-51
View File
@@ -1,51 +0,0 @@
# .editorconfig
# see http://EditorConfig.org
# SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
# This is the file in the root of the project.
# For sub folders you can have other files that override only some settings.
# For these, this settings should be false.
root=true
[*]
max_line_length=120
# use spaces, not tabs.
indent_style=space
indent_size=4
[*.yml]
max_line_length=150
charset=utf-8
# Trimming is good for consistency
trim_trailing_whitespace=true
# I've seen cases where a missing new_line was ignored on *nix systems.
# Never again with this setting!
insert_final_newline=true
[*.properties]
# Exception for Java properties files should be encoded latin1 (aka iso8859-1)
charset=latin1
[*.{cmd,bat}]
# batch files on Windows should stay with CRLF
end_of_line=crlf
[*.md]
trim_trailing_whitespace=false
[.drone.yml]
indent_size=2
[*.{kt,kts}]
ktlint_code_style = android_studio
# IDE does not follow this Ktlint rule strictly, but the default ordering is pretty good anyway, so let's ditch it
ktlint_standard_import-ordering = disabled
ktlint_standard_no-consecutive-comments = disabled
ktlint_function_naming_ignore_when_annotated_with = Composable
ij_kotlin_allow_trailing_comma = false
ij_kotlin_allow_trailing_comma_on_call_site = false
-3
View File
@@ -1,3 +0,0 @@
firstPRMergeComment: >
Thanks for your first pull request and welcome to the community!
Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/android/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22
-2
View File
@@ -1,2 +0,0 @@
SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-4
View File
@@ -1,4 +0,0 @@
# SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
# You can add one username per supported platform and one custom link
custom: https://nextcloud.com/include/
-132
View File
@@ -1,132 +0,0 @@
name: "🐛 Bug report: Nextcloud Android Client"
description: "Submit a report and help us improve the Nextcloud Android Client"
labels: ["bug", "0. Needs triage"]
body:
- type: checkboxes
id: before-posting
attributes:
label: "⚠️ Before posting ⚠️"
description: All conditions are **required**. Your issue can be closed if these are checked incorrectly.
options:
- label: This is a **bug**, not a question or an enhancement.
required: true
- label: I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
required: true
- label: I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
required: true
- label: I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
required: true
- type: textarea
id: repro-steps
attributes:
label: Steps to reproduce
description: |
What are the steps to reproduce this issue? Please be as specific as possible.
If you can't reproduce it, please add an explanation.
placeholder: |
1.
2.
3.
validations:
required: true
- type: textarea
id: expected-behaviour
attributes:
label: Expected behaviour
description: Tell us what should happen.
validations:
required: true
- type: textarea
id: actual-behaviour
attributes:
label: Actual behaviour
description: Tell us what happens instead, as detailed as possible.
validations:
required: true
# disabled because try.nextcloud.com is not working
# - type: dropdown
# id: repro-on-try
# attributes:
# label: Can you reproduce this problem on try.nextcloud.com?
# description: |
# 1. Create a demo account in [try.nextcloud.com](https://try.nextcloud.com). You'll be logged in automatically.
# 2. Got to Settings -> Security and create a new app password
# 3. Log in to this account with this app password by choosing "Alternative login with app token" during the login process.
# options:
# - "Yes"
# - "No"
# - Not applicable (explain in "additional information")
# validations:
# required: true
- type: markdown
attributes:
value: "## Environment information"
- type: input
id: android-version
attributes:
label: Android version
validations:
required: true
- type: input
id: device-model
attributes:
label: Device brand and model
validations:
required: true
- type: dropdown
id: stock-or-custom
attributes:
label: Stock or custom OS?
options:
- Stock
- Custom (explain in "additional information")
validations:
required: true
- type: input
id: app-version
attributes:
label: Nextcloud android app version
description: Check the _About_ section in the Settings screen
validations:
required: true
- type: input
id: server-version
attributes:
label: Nextcloud server version
description: Check _About_ in the top web menu (top right corner)
validations:
required: true
- type: dropdown
id: reverse-proxy
attributes:
label: Using a reverse proxy?
options:
- "I don't know"
- "Yes"
- "No"
validations:
required: true
- type: markdown
attributes:
value: "## Logs"
- type: textarea
id: android-logs
attributes:
label: Android logs
description: |
Please **drop a log file** here.
Log file can be obtained:
- At `storage/emulated/0/data/nextcloud.log` on beta or dev versions
- By using [`logcat`](https://github.com/nextcloud/android#getting-debug-info-via-logcat-mag) otherwise
If you are unable to post logs, explain why in "Additional information"
- type: textarea
id: server-logs
attributes:
label: Server error logs
description: Paste your server error logs here if available. Will be automatically formatted.
render: bash
- type: textarea
id: additional-info
attributes:
label: Additional information
description: Enter any additional information here
@@ -1,2 +0,0 @@
SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-16
View File
@@ -1,16 +0,0 @@
# SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
contact_links:
- name: 🚨 Report a security or privacy issue
url: https://hackerone.com/nextcloud
about: Report security and privacy related issues privately to the Nextcloud team, so we can coordinate the fix and release without potentially exposing all Nextcloud servers and users in the meantime.
- name: 🚨 报告安全或隐私问题
url: https://hackerone.com/nextcloud
about: 请以私密方式向 Nextcloud 团队报告安全和隐私相关问题,以便我们能够协调修复工作并安排发布计划,避免在此期间可能暴露所有 Nextcloud 服务器和用户的风险。
- name: ❓ Community Support and Help
url: https://help.nextcloud.com/
about: Configuration, webserver/proxy or performance issues and other questions
- name: 💼 Nextcloud Enterprise
url: https://portal.nextcloud.com/
about: If you are a Nextcloud Enterprise customer, or need Professional support, so it can be resolved directly by our dedicated engineers more quickly
blank_issues_enabled: false
@@ -1,2 +0,0 @@
SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-48
View File
@@ -1,48 +0,0 @@
---
name: 🚀 Feature request
about: Suggest an idea for this project
labels: enhancement, 0. Needs triage
---
<!--
Thanks for reporting issues back to Nextcloud!
Note: This is the **issue tracker of Nextcloud**, please do NOT use this to get answers to your questions or get help for fixing your installation. This is a place to report bugs to developers, after your server has been debugged. You can find help debugging your system on our home user forums: https://help.nextcloud.com or, if you use Nextcloud in a large organization, ask our engineers on https://portal.nextcloud.com. See also https://nextcloud.com/support for support options.
Nextcloud is an open source project backed by Nextcloud GmbH. Most of our volunteers are home users and thus primarily care about issues that affect home users. Our paid engineers prioritize issues of our customers. If you are neither a home user nor a customer, consider paying somebody to fix your issue, do it yourself or become a customer.
Guidelines for submitting issues:
* Please search the existing issues first, it's likely that your issue was already reported or even fixed.
- Go to https://github.com/nextcloud and type any word in the top search/command bar. You probably see something like "We couldn’t find any repositories matching ..." then click "Issues" in the left navigation.
- You can also filter by appending e. g. "state:open" to the search string.
- More info on search syntax within github: https://help.github.com/articles/searching-issues
* This repository https://github.com/nextcloud/server/issues is *only* for issues within the Nextcloud Server code. This also includes the apps: files, encryption, external storage, sharing, deleted files, versions, LDAP, and WebDAV Auth
* SECURITY: Report any potential security bug to us via our HackerOne page (https://hackerone.com/nextcloud) following our security policy (https://nextcloud.com/security/) instead of filing an issue in our bug tracker.
* The issues in other components should be reported in their respective repositories: You will find them in our GitHub Organization (https://github.com/nextcloud/)
-->
<!--- Please keep this note for other contributors -->
### How to use GitHub
* Please use the 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to show that you are interested into the same feature.
* Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
* Subscribe to receive notifications on status change and new comments.
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
@@ -1,2 +0,0 @@
SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-26
View File
@@ -1,26 +0,0 @@
<!--
TESTING
Writing tests is very important. Please try to write some tests for your PR.
If you need help, please do not hesitate to ask in this PR for help.
Unit tests: https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md#unit-tests
Instrumented tests: https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md#instrumented-tests
UI tests: https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md#ui-tests
-->
### 🖼️ Screenshots
🏚️ Before | 🏡 After
---|---
B | A
### 🏁 Checklist
- [ ] ⛑️ Tests (unit and/or integration) are included or not needed
- [ ] 🔙 Backport requests are created or not needed: `/backport to stable-xx.x`
- [ ] 📅 Milestone is set
- [ ] 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)
## 🤖 AI (if applicable)
- [ ] The content of this PR was partly or fully generated using AI
-3
View File
@@ -1,3 +0,0 @@
SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
SPDX-FileCopyrightText: 2023 Marcel Hibbe <[email protected]>
SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
Binary file not shown.
@@ -1,2 +0,0 @@
SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later
-76
View File
@@ -1,76 +0,0 @@
# synced from @nextcloud/android-config
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2025 Alper Ozturk <[email protected]>
# SPDX-FileCopyrightText: 2023 Tobias Kaminsky <[email protected]>
# SPDX-FileCopyrightText: 2023 Andy Scherzinger <[email protected]>
# SPDX-FileCopyrightText: 2023 Josh Richards <[email protected]>
# SPDX-FileCopyrightText: 2025 Marcel Hibbe <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
name: "Analysis"
on:
pull_request:
branches: [ "master", "main", "stable-*" ]
push:
branches: [ "master", "main", "stable-*" ]
permissions:
pull-requests: write
contents: write
concurrency:
group: analysis-wrapper-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
analysis:
runs-on: ubuntu-latest
steps:
- name: Disabled on forks
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }}
run: |
echo 'Can not analyze PRs from forks'
exit 1
- name: Setup variables # zizmor: ignore[template-injection]
id: get-vars
run: |
if [ -z "$GITHUB_HEAD_REF" ]; then
# push
{
echo "branch=$GITHUB_REF_NAME"
echo "pr=$GITHUB_RUN_ID"
echo "repo=${{ github.repository }}"
} >> "$GITHUB_OUTPUT"
else
# pull request
{
echo "branch=$GITHUB_HEAD_REF"
echo "pr=${{ github.event.pull_request.number }}"
echo "repo=${{ github.event.pull_request.head.repo.full_name }}"
} >> "$GITHUB_OUTPUT"
fi
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
repository: ${{ steps.get-vars.outputs.repo }}
ref: ${{ steps.get-vars.outputs.branch }}
- name: Set up JDK 21
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: "temurin"
java-version: 21
- name: Install dependencies
run: |
sudo apt install python3-defusedxml
- name: Run analysis wrapper
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir -p "$HOME/.gradle"
{
echo "org.gradle.jvmargs=-Xmx1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
echo "org.gradle.configureondemand=true"
} > "$HOME/.gradle/gradle.properties"
scripts/analysis/analysis-wrapper.sh "${{ steps.get-vars.outputs.branch }}" "${{ secrets.LOG_USERNAME }}" "${{ secrets.LOG_PASSWORD }}" "$GITHUB_RUN_NUMBER" "${{ steps.get-vars.outputs.pr }}"
-38
View File
@@ -1,38 +0,0 @@
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
name: "Assemble"
on:
pull_request:
branches: [ master, stable-* ]
# Declare default permissions as read only.
permissions: read-all
concurrency:
group: assemble-flavors-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
flavor:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
flavor: [ Generic, Gplay, Huawei ]
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: set up JDK 21
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: "temurin"
java-version: 21
- uses: gradle/actions/wrapper-validation@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
- name: Build ${{ matrix.flavor }}
run: |
echo "org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" >> gradle.properties
echo "org.gradle.caching=true" >> gradle.properties
echo "org.gradle.parallel=true" >> gradle.properties
echo "org.gradle.configureondemand=true" >> gradle.properties
./gradlew assemble${{ matrix.flavor }}
-40
View File
@@ -1,40 +0,0 @@
# synced from @nextcloud/android-config
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023 Álvaro Brey <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
name: Auto approve sync
on:
pull_request_target: # zizmor: ignore[dangerous-triggers]
branches:
- master
- main
types:
- opened
- reopened
- synchronize
- labeled
concurrency:
group: sync-approve-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
pull-requests: write
jobs:
auto-approve:
name: Auto approve sync
runs-on: ubuntu-latest
if: ${{ contains(github.event.pull_request.labels.*.name, 'sync') && github.actor == 'nextcloud-android-bot' }}
steps:
- name: Disabled on forks
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
run: |
echo 'Can not approve PRs from forks'
exit 1
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
-32
View File
@@ -1,32 +0,0 @@
# SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
name: Check
on:
pull_request:
branches: [ master, stable-* ]
# Declare default permissions as read only.
permissions: read-all
concurrency:
group: check-kotlin-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
task: [ detekt, spotlessKotlinCheck, lint ]
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up JDK 21
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: "temurin"
java-version: 21
- name: Check ${{ matrix.task }}
run: ./gradlew ${{ matrix.task }}
-60
View File
@@ -1,60 +0,0 @@
# synced from @nextcloud/android-config
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023-2024 Andy Scherzinger <[email protected]>
# SPDX-FileCopyrightText: 2022 Tobias Kaminsky <[email protected]>
# SPDX-FileCopyrightText: 2022 Álvaro Brey <[email protected]>
# SPDX-FileCopyrightText: 2025 Marcel Hibbe <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
name: "CodeQL"
on:
push:
branches: [ "master", "main", "stable-*" ]
pull_request:
branches: [ "master", "main" ]
schedule:
- cron: '24 18 * * 3'
permissions:
contents: read
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Set Swap Space
if: runner.environment == 'github-hosted'
uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c # v1.0
with:
swap-size-gb: 10
- name: Initialize CodeQL
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
languages: ${{ matrix.language }}
- name: Set up JDK 21
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: "temurin"
java-version: 21
- name: Assemble
run: |
mkdir -p "$HOME/.gradle"
echo "org.gradle.jvmargs=-Xmx3g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > "$HOME/.gradle/gradle.properties"
./gradlew --no-daemon assembleDebug
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
-43
View File
@@ -1,43 +0,0 @@
# synced from @nextcloud/android-config
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023 Andy Scherzinger <[email protected]>
# SPDX-FileCopyrightText: 2022 Tobias Kaminsky <[email protected]>
# SPDX-FileCopyrightText: 2022 Álvaro Brey <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
name: "Detect new java files"
on:
pull_request:
branches: [ master, main, stable-* ]
permissions: read-all
concurrency:
group: detect-new-java-files-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
detectNewJavaFiles:
runs-on: ubuntu-latest
steps:
- id: file_changes
uses: trilom/file-changes-action@a6ca26c14274c33b15e6499323aac178af06ad4b # v1.2.4
with:
output: ','
- name: Detect new java files
run: |
if [ -z '${{ steps.file_changes.outputs.files_added }}' ]; then
echo "No new files added"
exit 0
fi
new_java=$(echo '${{ steps.file_changes.outputs.files_added }}' | tr ',' '\n' | grep '\.java$' | cat)
if [ -n "$new_java" ]; then
# shellcheck disable=SC2016
printf 'New java files detected:\n```\n%s\n```\n' "$new_java" | tee "$GITHUB_STEP_SUMMARY"
exit 1
else
echo "No new java files detected"
exit 0
fi
-30
View File
@@ -1,30 +0,0 @@
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023 Tobias Kaminsky <[email protected]>
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
name: "Detect wrong settings"
on:
pull_request:
branches: [ master, stable-* ]
# Declare default permissions as read only.
permissions: read-all
concurrency:
group: detect-wrong-settings-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
detectWrongSettings:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up JDK 21
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: "temurin"
java-version: 21
- name: Detect SNAPSHOT
run: scripts/analysis/detectWrongSettings.sh
-27
View File
@@ -1,27 +0,0 @@
#!/usr/bin/env bash
#
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2022 Álvaro Brey <[email protected]>
# SPDX-License-Identifier: AGPL-3.0-or-later
#
## This file is intended to be sourced by other scripts
function err() {
echo >&2 "$@"
}
function curl_gh() {
if [[ -n "$GITHUB_TOKEN" ]]
then
curl \
--silent \
--header "Authorization: token $GITHUB_TOKEN" \
"$@"
else
err "WARNING: No GITHUB_TOKEN found. Skipping API call"
fi
}
-2
View File
@@ -1,2 +0,0 @@
SPDX-FileCopyrightText: 2019-2025 Nextcloud GmbH and Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later
-55
View File
@@ -1,55 +0,0 @@
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023 Marcel Klehr <[email protected]>
# SPDX-FileCopyrightText: 2023 Joas Schilling <[email protected]>
# SPDX-FileCopyrightText: 2023 Daniel Kesselberg <[email protected]>
# SPDX-FileCopyrightText: 2023 Florian Steffens <[email protected]>
# SPDX-License-Identifier: MIT
name: 'Ask for feedback on PRs'
on:
schedule:
- cron: '30 1 * * *'
permissions:
contents: read
pull-requests: write
jobs:
pr-feedback:
if: ${{ github.repository_owner == 'nextcloud' }}
runs-on: ubuntu-latest
steps:
- name: The get-github-handles-from-website action
uses: marcelklehr/get-github-handles-from-website-action@06b2239db0a48fe1484ba0bfd966a3ab81a08308 # v1.0.1
id: scrape
with:
website: 'https://nextcloud.com/team/'
- name: Get blocklist
id: blocklist
run: |
blocklist=$(curl https://raw.githubusercontent.com/nextcloud/.github/master/non-community-usernames.txt | paste -s -d, -)
echo "blocklist=$blocklist" >> "$GITHUB_OUTPUT"
- uses: nextcloud/pr-feedback-action@5227c55be184087d0aef6338bee210d8620b6297 # main
with:
feedback-message: |
Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.
We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.
Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6
Thank you for contributing to Nextcloud and we hope to hear from you soon!
(If you believe you should not receive this message, you can add yourself to the [blocklist](https://github.com/nextcloud/.github/blob/master/non-community-usernames.txt).)
days-before-feedback: 14
start-date: '2024-04-30'
exempt-authors: '${{ steps.blocklist.outputs.blocklist }},${{ steps.scrape.outputs.users }}'
exempt-bots: true
-85
View File
@@ -1,85 +0,0 @@
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023 Andy Scherzinger <[email protected]>
# SPDX-License-Identifier: MIT
name: "QA"
on:
pull_request:
branches: [ main, master, stable-* ]
permissions:
pull-requests: write
contents: read
concurrency:
group: qa-build-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
qa:
runs-on: ubuntu-latest
steps:
- name: Check if secrets are available
run: echo "ok=${{ secrets.KS_PASS != '' }}" >> "$GITHUB_OUTPUT"
id: check-secrets
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
with:
persist-credentials: false
- name: set up JDK 21
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
with:
distribution: "temurin"
java-version: 21
- name: Build QA
if: ${{ steps.check-secrets.outputs.ok == 'true' }}
env:
KS_PASS: ${{ secrets.KS_PASS }}
KEY_PASS: ${{ secrets.KEY_PASS }}
LOG_USERNAME: ${{ secrets.LOG_USERNAME }}
LOG_PASSWORD: ${{ secrets.LOG_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir -p "$HOME/.gradle"
echo "org.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" > "$HOME/.gradle/gradle.properties"
echo "org.gradle.caching=true; org.gradle.parallel=true; org.gradle.configureondemand=true" >> "$HOME/.gradle/gradle.properties"
[ -e app/build.gradle ] && sed -i "/qa/,/\}/ s/versionCode .*/versionCode ${{github.event.number}} /" "app/build.gradle"
[ -e app/build.gradle ] && sed -i "/qa/,/\}/ s/versionName .*/versionName \"${{github.event.number}}\"/" "app/build.gradle"
[ -e app/build.gradle.kts ] && sed -i "/qa/,/\}/ s/versionCode .*/versionCode = ${{github.event.number}} /" "app/build.gradle.kts"
[ -e app/build.gradle.kts ] && sed -i "/qa/,/\}/ s/versionName .*/versionName = \"${{github.event.number}}\"/" "app/build.gradle.kts"
./gradlew assembleQaDebug
$(find /usr/local/lib/android/sdk/build-tools/*/apksigner | sort | tail -n1) sign --ks-pass pass:"$KS_PASS" --key-pass pass:"$KEY_PASS" --ks-key-alias key0 --ks ".github/workflows/QA_keystore.jks" app/build/outputs/apk/qa/debug/*qa-debug*.apk
- name: Upload APK
id: upload-apk
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
with:
path: app/build/outputs/apk/qa/debug/*qa-debug*.apk
retention-days: 7
archive: false
- name: Create QR Code
run: |
sudo apt-get -y install qrencode
qrencode -o qr.png "${{ steps.upload-apk.outputs.artifact-url }}"
- name: Upload QR
id: upload-qr
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
with:
path: qr.png
retention-days: 7
archive: false
- name: Comment PR
uses: thollander/actions-comment-pull-request@e4a76dd2b0a3c2027c3fd84147a67c22ee4c90fa
with:
message: |
APK file: ${{ steps.upload-apk.outputs.artifact-url }}
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
![qrcode](${{ steps.upload-qr.outputs.artifact-url }}) (please click on link to get QR code displayed)
@@ -1,61 +0,0 @@
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
#
# SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
name: Auto approve renovate PRs
on:
pull_request_target: # zizmor: ignore[dangerous-triggers]
branches:
- main
- master
- stable*
permissions:
contents: read
concurrency:
group: renovate-approve-merge-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
auto-approve-merge:
if: github.event.pull_request.user.login == 'renovate[bot]'
runs-on: ubuntu-latest
permissions:
# for hmarr/auto-approve-action to approve PRs
pull-requests: write
steps:
- name: Disabled on forks
if: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
run: |
echo 'Can not approve PRs from forks'
exit 1
- uses: mdecoleman/pr-branch-name@55795d86b4566d300d237883103f052125cc7508 # v3.0.0
id: branchname
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# GitHub actions bot approve
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
if: github.actor == 'renovate[bot]'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
ref: ${{ github.head_ref }}
# Enable GitHub auto merge
- name: Enable Pull Request Automerge
if: github.actor == 'renovate[bot]'
run: gh pr merge --merge --auto
env:
GH_TOKEN: ${{ secrets.AUTOMERGE }}
-27
View File
@@ -1,27 +0,0 @@
# This workflow is provided via the organization template repository
#
# https://github.com/nextcloud/.github
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. <https://fsfe.org>
#
# SPDX-License-Identifier: CC0-1.0
name: REUSE Compliance Check
on: [pull_request]
permissions:
contents: read
jobs:
reuse-compliance-check:
runs-on: ubuntu-latest-low
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: REUSE Compliance Check
uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0
-47
View File
@@ -1,47 +0,0 @@
# synced from @nextcloud/android-config
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023 Andy Scherzinger <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
name: Scorecard supply-chain security
on:
branch_protection_rule:
schedule:
- cron: '32 23 * * 4'
push:
branches: [ "main", "master" ]
# Declare default permissions as read only.
permissions: read-all
concurrency:
group: scorecard-supply-chain-security-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
steps:
- name: "Checkout code"
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: "Run analysis"
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
with:
results_file: results.sarif
results_format: sarif
publish_results: false
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
sarif_file: results.sarif
-35
View File
@@ -1,35 +0,0 @@
# synced from @nextcloud/android-config
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2023 Tobias Kaminsky <[email protected]>
# SPDX-FileCopyrightText: 2022 Álvaro Brey <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
name: 'Close stale issues'
on:
schedule:
- cron: '0 0 * * *'
# Declare default permissions as read only.
permissions: read-all
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0
with:
days-before-stale: 28
days-before-close: 14
days-before-pr-close: -1
only-labels: 'bug,needs info'
exempt-issue-labels: 'no-stale'
stale-issue-message: >-
This bug report did not receive an update in the last 4 weeks.
Please take a look again and update the issue with new details,
otherwise the issue will be automatically closed in 2 weeks. Thank you!
exempt-all-pr-milestones: true
labels-to-remove-when-unstale: 'needs info'
-64
View File
@@ -1,64 +0,0 @@
# SPDX-FileCopyrightText: 2022-2025 Nextcloud GmbH and contributors
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
name: Unit tests
on:
pull_request:
branches: [ master, stable-* ]
push:
branches: [ master, stable-* ]
permissions:
contents: read
pull-requests: write
concurrency:
group: unit-tests-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up JDK 21
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: "temurin"
java-version: 21
- name: Delete old comments
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ always() }}
run: scripts/deleteOldComments.sh "test" "Unit" ${{github.event.number}}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
- name: Run unit tests with coverage
run: ./gradlew jacocoTestGplayDebugUnitTest
- name: Upload failing results
if: ${{ failure() }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: scripts/uploadReport.sh "${{ secrets.LOG_USERNAME }}" "${{ secrets.LOG_PASSWORD }}" ${{github.event.number}} "test" "Unit" ${{github.event.number}}
- name: Upload coverage to codecov
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit
fail_ci_if_error: true
files: app/build/reports/jacoco/jacocoTestGplayDebugUnitTestReport/jacoco.xml
- name: Upload jacoco artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: test-results
path: app/build/reports/jacoco/jacocoTestGplayDebugUnitTestReport/html/
-44
View File
@@ -1,44 +0,0 @@
#!/usr/bin/env bash
#
# SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2019-2022 Tobias Kaminsky <[email protected]>
# SPDX-License-Identifier: AGPL-3.0-or-later
#
#1: LOG_USERNAME
#2: LOG_PASSWORD
#3: DRONE_BUILD_NUMBER
#4: DRONE_PULL_REQUEST
PUBLIC_URL=https://www.kaminsky.me/nc-dev/android-artifacts
USER=$1
PASS=$2
BUILD=$3
PR=$4
GITHUB_TOKEN=$5
DAV_URL=https://nextcloud.kaminsky.me/remote.php/dav/files/$USER/android-artifacts/
source .github/workflows/lib.sh
REPO=$(cat scripts/repo)
if ! test -e app/build/outputs/apk/qa/debug/*qa-debug*.apk ; then
exit 1
fi
echo "Uploaded artifact to $DAV_URL/$BUILD.apk"
# delete all old comments, starting with "APK file:"
oldComments=$(curl_gh -X GET https://api.github.com/repos/nextcloud/$REPO/issues/$PR/comments | jq '.[] | (.id |tostring) + "|" + (.user.login | test("github-actions") | tostring) + "|" + (.body | test("APK file:.*") | tostring)' | grep "true|true" | tr -d "\"" | cut -f1 -d"|")
echo $oldComments | while read comment ; do
curl_gh -X DELETE https://api.github.com/repos/nextcloud/$REPO/issues/comments/$comment
done
sudo apt-get -y install qrencode
qrencode -o $PR.png "$PUBLIC_URL/$BUILD.apk"
curl -u $USER:$PASS -X PUT $DAV_URL/$BUILD.apk --upload-file app/build/outputs/apk/qa/debug/*qa-debug*.apk
curl -u $USER:$PASS -X PUT $DAV_URL/$BUILD.png --upload-file $PR.png
curl_gh -X POST https://api.github.com/repos/nextcloud/$REPO/issues/$PR/comments -d "{ \"body\" : \"APK file: $PUBLIC_URL/$BUILD.apk <br/><br/> ![qrcode]($PUBLIC_URL/$BUILD.png) <br/><br/>To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app. \" }"
+3 -66
View File
@@ -1,9 +1,4 @@
# SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
# built application files
*.apk
*.ap_
*.aab
# files for the dex VM
*.dex
@@ -21,76 +16,18 @@ target/
# Local configuration files (sdk path, etc)
local.properties
tests/local.properties
# Signing & secrets
*.jks
*.keystore
keystore.properties
release.properties
google-services.json
GoogleService-Info.plist
*.p12
*.pem
secrets.properties
.env
.env.*
# Windows
Thumbs.db
desktop.ini
lint.xml
# Mac .DS_Store files
.DS_Store
# Linux/editor temp files
*~
*.swp
*.swo
.vscode/
# Proguard README
proguard-project.txt
tests/proguard-project.txt
# Android Studio and Gradle specific entries
.gradle
.idea/*
!.idea/codeStyles/
.idea
*.iml
build
/gradle.properties
.attach_pid*
fastlane/Fastfile
*.hprof
# NDK / C++
*.so
obj/
*.o
*.a
.cxx/
# Testing & coverage
.kotlin/
*.lcov
test-results/
jacoco/
*.exec
# fastlane specific
**/fastlane/report.xml
# deliver temporary files
**/fastlane/Preview.html
# snapshot generated screenshots
**/fastlane/screenshots
# scan temporary files
**/fastlane/test_output
/fastlane/vendor/
/.bundle/
/fastlane/.bundle
# python
**/__pycache__/
/gradle/verification-keyring.gpg
+4
View File
@@ -0,0 +1,4 @@
[submodule "ocdoc"]
path = user_manual/ocdoc
url = https://github.com/nextcloud/documentation
branch = master
-205
View File
@@ -1,205 +0,0 @@
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" />
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="99" />
<option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND">
<value />
</option>
<option name="IMPORT_LAYOUT_TABLE">
<value>
<package name="android" withSubpackages="true" static="false" />
<emptyLine />
<package name="com" withSubpackages="true" static="false" />
<emptyLine />
<package name="junit" withSubpackages="true" static="false" />
<emptyLine />
<package name="net" withSubpackages="true" static="false" />
<emptyLine />
<package name="org" withSubpackages="true" static="false" />
<emptyLine />
<package name="java" withSubpackages="true" static="false" />
<emptyLine />
<package name="javax" withSubpackages="true" static="false" />
<emptyLine />
<package name="" withSubpackages="true" static="false" />
<emptyLine />
<package name="" withSubpackages="true" static="true" />
<emptyLine />
</value>
</option>
<option name="RIGHT_MARGIN" value="120" />
<JavaCodeStyleSettings>
<option name="IMPORT_LAYOUT_TABLE">
<value>
<package name="" withSubpackages="true" static="false" module="true" />
<package name="android" withSubpackages="true" static="false" />
<emptyLine />
<package name="com" withSubpackages="true" static="false" />
<emptyLine />
<package name="junit" withSubpackages="true" static="false" />
<emptyLine />
<package name="net" withSubpackages="true" static="false" />
<emptyLine />
<package name="org" withSubpackages="true" static="false" />
<emptyLine />
<package name="java" withSubpackages="true" static="false" />
<emptyLine />
<package name="javax" withSubpackages="true" static="false" />
<emptyLine />
<package name="" withSubpackages="true" static="false" />
<emptyLine />
<package name="" withSubpackages="true" static="true" />
<emptyLine />
</value>
</option>
</JavaCodeStyleSettings>
<JetCodeStyleSettings>
<option name="PACKAGES_TO_USE_STAR_IMPORTS">
<value>
<package name="kotlinx.android.synthetic" alias="false" withSubpackages="true" />
</value>
</option>
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</JetCodeStyleSettings>
<MarkdownNavigatorCodeStyleSettings>
<option name="RIGHT_MARGIN" value="120" />
</MarkdownNavigatorCodeStyleSettings>
<codeStyleSettings language="JAVA">
<option name="ALIGN_MULTILINE_PARAMETERS_IN_CALLS" value="true" />
<option name="ALIGN_MULTILINE_METHOD_BRACKETS" value="true" />
<option name="WRAP_COMMENTS" value="true" />
<option name="IF_BRACE_FORCE" value="3" />
<option name="DOWHILE_BRACE_FORCE" value="3" />
<option name="WHILE_BRACE_FORCE" value="3" />
<option name="FOR_BRACE_FORCE" value="3" />
<option name="FIELD_ANNOTATION_WRAP" value="0" />
</codeStyleSettings>
<codeStyleSettings language="Markdown">
<option name="RIGHT_MARGIN" value="120" />
</codeStyleSettings>
<codeStyleSettings language="XML">
<indentOptions>
<option name="CONTINUATION_INDENT_SIZE" value="4" />
</indentOptions>
<arrangement>
<rules>
<section>
<rule>
<match>
<AND>
<NAME>xmlns:android</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>xmlns:.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*:id</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*:name</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>name</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>style</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
<order>ANDROID_ATTRIBUTE_ORDER</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>.*</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
</rules>
</arrangement>
</codeStyleSettings>
<codeStyleSettings language="kotlin">
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
<option name="LINE_COMMENT_AT_FIRST_COLUMN" value="false" />
<option name="LINE_COMMENT_ADD_SPACE" value="true" />
<option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1" />
<option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
<option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="0" />
<option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
<indentOptions>
<option name="CONTINUATION_INDENT_SIZE" value="4" />
</indentOptions>
</codeStyleSettings>
</code_scheme>
</component>
-5
View File
@@ -1,5 +0,0 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
</state>
</component>
-6
View File
@@ -1,6 +0,0 @@
<component name="CopyrightManager">
<copyright>
<option name="notice" value="Nextcloud - Android Client&#10;&#10;SPDX-FileCopyrightText: &amp;#36;{today.year} Your Name &lt;[email protected]&gt;&#10;SPDX-License-Identifier: AGPL-3.0-or-later" />
<option name="myName" value="Nextcloud - Android Client" />
</copyright>
</component>
-3
View File
@@ -1,3 +0,0 @@
<component name="CopyrightManager">
<settings default="Nextcloud - Android Client" />
</component>
-11
View File
@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" viewBox="0 0 1344 1344" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<path d="M673.24,0.001C1043.55,0.662 1344,301.521 1344,672C1344,1042.89 1042.89,1344 672,1344C301.113,1344 0,1042.89 0,672C0,301.15 301.053,0.06 671.846,0L672.154,0L673.24,0.001Z" style="fill:url(#_Linear1);"/>
<g id="path2" transform="matrix(1.27124,0,0,1.27145,-187.221,-167.93)">
<path d="M672.681,456.07C579.33,456.08 500.945,519.999 476.995,605.988C456.091,559.995 410.078,527.4 356.617,527.394C283.844,527.404 224.009,587.243 224,660.022C223.986,732.815 283.829,792.667 356.617,792.676C410.084,792.666 456.067,760.055 476.968,714.055C500.909,800.059 579.321,863.991 672.684,864C765.524,864.01 843.524,800.77 867.961,715.501C889.204,760.649 934.51,792.667 987.356,792.673C1060.16,792.686 1120.01,732.827 1120,660.019C1119.99,587.225 1060.14,527.379 987.356,527.391C934.507,527.401 889.176,559.409 867.934,604.563C843.497,519.297 765.524,456.058 672.684,456.064L672.681,456.07ZM672.681,533.926C742.787,533.926 798.79,589.913 798.796,660.025C798.796,730.145 742.796,786.156 672.681,786.15C602.575,786.14 546.587,730.136 546.593,660.025C546.603,589.922 602.584,533.935 672.681,533.926ZM356.602,605.25C387.314,605.25 411.366,629.309 411.369,660.022C411.369,690.741 387.319,714.817 356.602,714.82C325.884,714.82 301.83,690.741 301.836,660.022C301.836,629.309 325.892,605.253 356.602,605.25ZM987.356,605.25C1018.07,605.24 1042.15,629.302 1042.15,660.022C1042.16,690.75 1018.08,714.826 987.356,714.82C956.638,714.82 932.584,690.741 932.587,660.022C932.587,629.309 956.644,605.253 987.356,605.25Z" style="fill:white;fill-rule:nonzero;"/>
</g>
<defs>
<linearGradient id="_Linear1" x1="0" y1="0" x2="1" y2="0" gradientUnits="userSpaceOnUse" gradientTransform="matrix(1180.66,-1344,1344,1180.66,163.341,1344)"><stop offset="0" style="stop-color:rgb(0,130,201);stop-opacity:1"/><stop offset="1" style="stop-color:rgb(28,175,255);stop-opacity:1"/></linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 2.3 KiB

-83
View File
@@ -1,83 +0,0 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="ktlint" />
<inspection_tool class="AutoCloseableResource" enabled="true" level="WARNING" enabled_by_default="true">
<option name="METHOD_MATCHER_CONFIG" value="java.util.Formatter,format,java.io.Writer,append,com.google.common.base.Preconditions,checkNotNull,org.hibernate.Session,close,java.io.PrintWriter,printf,java.io.PrintStream,printf,java.nio.channels.FileChannel,position,okhttp3.Call,execute" />
</inspection_tool>
<inspection_tool class="ComposePreviewDimensionRespectsLimit" enabled="true" level="WARNING" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
<inspection_tool class="ComposePreviewMustBeTopLevelFunction" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
<inspection_tool class="ComposePreviewNeedsComposableAnnotation" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
<inspection_tool class="ComposePreviewNotSupportedInUnitTestFiles" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
<inspection_tool class="GlancePreviewDimensionRespectsLimit" enabled="true" level="WARNING" enabled_by_default="true">
<option name="composableFile" value="true" />
</inspection_tool>
<inspection_tool class="GlancePreviewMustBeTopLevelFunction" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
</inspection_tool>
<inspection_tool class="GlancePreviewNeedsComposableAnnotation" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
</inspection_tool>
<inspection_tool class="GlancePreviewNotSupportedInUnitTestFiles" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
</inspection_tool>
<inspection_tool class="KotlinUnusedImport" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="LongLine" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="PreviewAnnotationInFunctionWithParameters" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
<inspection_tool class="PreviewApiLevelMustBeValid" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
<inspection_tool class="PreviewDeviceShouldUseNewSpec" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
<inspection_tool class="PreviewDimensionRespectsLimit" enabled="true" level="WARNING" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
<inspection_tool class="PreviewFontScaleMustBeGreaterThanZero" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
<inspection_tool class="PreviewMultipleParameterProviders" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
<inspection_tool class="PreviewMustBeTopLevelFunction" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
<inspection_tool class="PreviewNeedsComposableAnnotation" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
<inspection_tool class="PreviewNotSupportedInUnitTestFiles" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
<inspection_tool class="PreviewParameterProviderOnFirstParameter" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
<inspection_tool class="PreviewPickerAnnotation" enabled="true" level="ERROR" enabled_by_default="true">
<option name="composableFile" value="true" />
<option name="previewFile" value="true" />
</inspection_tool>
<inspection_tool class="RedundantSemicolon" enabled="true" level="ERROR" enabled_by_default="true" />
</profile>
</component>
-6
View File
@@ -1,6 +0,0 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="PROJECT_PROFILE" value="ktlint" />
<version value="1.0" />
</settings>
</component>
+3
View File
@@ -0,0 +1,3 @@
pattern = "(?i):shipit:|:\\+1:|LGTM"
self_approval_off=true
approvals = 1
-50
View File
@@ -1,50 +0,0 @@
version: 2
# SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
# General settings to apply
always_pending:
title_regex: '(WIP|wip)'
labels:
- 1. developing
# custom message that will be used for the GitHub status
explanation: 'This PR is a work in progress...'
# Group settings to apply to all groups by default, optionally being overridden later
group_defaults:
author_approval:
ignored: true
approve_by_comment:
enabled: true
approve_regex: '^(Approved|:shipit:|:\+1:|LGTM|Merge)'
reject_regex: '^(Rejected|:-1:)'
reset_on_push:
enabled: false
reset_on_reopened:
enabled: true
conditions:
labels:
exclude:
- dependencies
groups:
code-review:
required: 1
reject_value: -99
users:
- AndyScherzinger
- tobiasKaminsky
- mario
- przybylski
- ardevd
design-review:
conditions:
labels:
- design
reset_on_push:
enabled: false
required: 1
reject_value: -99
users:
- jancborchardt
- eppfel
+5 -6
View File
@@ -1,10 +1,9 @@
[main]
host = https://www.transifex.com
[o:nextcloud:p:nextcloud:r:android]
file_filter = app/src/main/res/values-<lang>/strings.xml
source_file = app/src/main/res/values/strings.xml
[nextcloud.android]
file_filter = res/values-<lang>/strings.xml
source_file = res/values/strings.xml
type = ANDROID
source_lang = en
type = ANDROID
lang_map = en_SG: en-rSG, es_PA: es-rPA, mr_IN: mr-rIN, cs_CZ: cs-rCZ, vi_VN: vi-rVN, fr_MC: fr-rMC, it_CH: it-rCH, ta_LK: ta-rLK, kk_KZ: kk-rKZ, mn_CN: mn-rCN, mt_MT: mt-rMT, sma_SE: sma-rSE, si_LK: si-rLK, pl_PL: pl-rPL, de_AT: de-rAT, ii_CN: ii-rCN, hi_IN: hi-rIN, ar_BH: ar-rBH, ar_JO: ar-rJO, es_NI: es-rNI, quz_BO: quz-rBO, sr_CS: sr-rCS, es_CO: es-rCO, es_GT: es-rGT, ml_IN: ml-rIN, rm_CH: rm-rCH, zh_CN.GB2312: zh-rBG, hr_BA: hr-rBA, se_FI: se-rFI, tn_ZA: tn-rZA, tzm_DZ: tzm-rDZ, en_ZA: en-rZA, es_419: b+es+419, en_IN: en-rIN, my_MM: my, se_NO: se-rNO, am_ET: am-rET, arn_CL: arn-rCL, en_MY: en-rMY, es_HN: es-rHN, es_UY: es-rUY, en_AU: en-rAU, id: in, ku_IQ: ku-rIQ, pt_BR: pt-rBR, xh_ZA: xh-rZA, co_FR: co-rFR, en_BZ: en-rBZ, ha_NG: ha-rNG, or_IN: or-rIN, dsb_DE: dsb-rDE, fo_FO: fo-rFO, fr_CA: fr-rCA, ky_KG: ky-rKG, ar_LB: ar-rLB, es_AR: es-rAR, is_IS: is-rIS, ar_KW: ar-rKW, en_GB: b+en+001, fy_NL: fy-rNL, ar_QA: ar-rQA, hy_AM: hy-rAM, mn_MN: mn-rMN, nl_BE: nl-rBE, ar_OM: ar-rOM, as_IN: as-rIN, cy_GB: cy-rGB, he: iw, it_IT: it-rIT, nso_ZA: nso-rZA, ba_RU: ba-rRU, wo_SN: wo-rSN, lb_LU: lb-rLU, quz_EC: quz-rEC, uz_UZ: uz-rUZ, zh_TW: zh-rTW, ar_MA: ar-rMA, es_CL: es-rCL, es_VE: es-rVE, da_DK: da-rDK, et_EE: et-rEE, af_ZA: af-rZA, en@pirate: en-rpirate, ga_IE: ga-rIE, kok_IN: kok-rIN, ur_PK: ur-rPK, tg_TJ: tg-rTJ, ne_NP: ne-rNP, es_CR: es-rCR, fil_PH: fil-rPH, fr_CH: fr-rCH, gl_ES: gl-rES, se_SE: se-rSE, sr_BA: sr-rBA, es_DO: es-rDO, ms_MY: ms-rMY, oc_FR: oc-rFR, syr_SY: syr-rSY, ug_CN: ug-rCN, en_CA: en-rCA, en_JM: en-rJM, ko_KR: ko-rKR, be_BY: be-rBY, zh_HK: zh-rHK, nb_NO: nb-rNO, fi_FI: fi-rFI, fr_FR: fr-rFR, ar_SA: ar-rSA, az_AZ: az-rAZ, he_IL: he-rIL, zh_CN: zh-rCN, bn_BD: bn-rBD, el_GR: el-rGR, en_PH: en-rPH, sr@latin: sr-rSP, br_FR: br-rFR, ta_IN: ta-rIN, hu_HU: hu-rHU, lt_LT: lt-rLT, ar_AE: ar-rAE, en_ZW: en-rZW, ar_TN: ar-rTN, ka_GE: ka-rGE, en_TT: en-rTT, mi_NZ: mi-rNZ, zu_ZA: zu-rZA, fa_IR: fa-rIR, fr_LU: fr-rLU, lo_LA: lo-rLA, ms_BN: ms-rBN, rw_RW: rw-rRW, sl_SI: sl-rSI, tt_RU: tt-rRU, de_LI: de-rLI, es_EC: es-rEC, ps_AF: ps-rAF, id_ID: id-rID, smn_FI: smn-rFI, bg_BG: bg-rBG, lv_LV: lv-rLV, te_IN: te-rIN, iu_CA: iu-rCA, sms_FI: sms-rFI, es_PE: es-rPE, gd_GB: gd-rGB, hr_HR: hr-rHR, moh_CA: moh-rCA, smj_SE: smj-rSE, ar_LY: ar-rLY, de_LU: de-rLU, es_BO: es-rBO, sq_AL: sq-rAL, ar_SY: ar-rSY, tr_TR: tr-rTR, sr_RS: sr-rRS, sv_SE: sv-rSE, kl_GL: kl-rGL, quz_PE: quz-rPE, de_DE: de-rDE, sv_FI: sv-rFI, tk_TM: tk-rTM, bo_CN: bo-rCN, gsw_FR: gsw-rFR, pt_PT: pt-rPT, dv_MV: dv-rMV, uk_UA: uk-rUA, ar_YE: ar-rYE, zh_SG: zh-rSG, sw_KE: sw-rKE, en_IE: en-rIE, en_US: en-rUS, es_SV: es-rSV, qut_GT: qut-rGT, th_TH: th-rTH, ar_DZ: ar-rDZ, gu_IN: gu-rIN, kn_IN: kn-rIN, mk_MK: mk-rMK, es_MX: es-rMX, ig_NG: ig-rNG, smj_NO: smj-rNO, bn_IN: bn-rIN, de_CH: de-rCH, sk_SK: sk-rSK, es_PR: es-rPR, yo_NG: yo-rNG, sma_NO: sma-rNO, sa_IN: sa-rIN, en_NZ: en-rNZ, ja_JP: ja-rJP, pa_IN: pa-rIN, es_PY: es-rPY, nn_NO: nn-rNO, ar_EG: ar-rEG, bs_BA: bs-rBA, eu_ES: eu-rES, fr_BE: fr-rBE, km_KH: km-rKH, ru_RU: ru-rRU, sah_RU: sah-rRU, ca_ES: ca-rES, sr_ME: sr-rME, ro_RO: ro-rRO, prs_AF: prs-rAF, zh_MO: zh-rMO, es_ES: es-rES, hsb_DE: hsb-rDE, nl_NL: nl-rNL, ar_IQ: ar-rIQ
lang_map = af_ZA: af-rZA, am_ET: am-rET, ar_AE: ar-rAE, ar_BH: ar-rBH, ar_DZ: ar-rDZ, ar_EG: ar-rEG, ar_IQ: ar-rIQ, ar_JO: ar-rJO, ar_KW: ar-rKW, ar_LB: ar-rLB, ar_LY: ar-rLY, ar_MA: ar-rMA, ar_OM: ar-rOM, ar_QA: ar-rQA, ar_SA: ar-rSA, ar_SY: ar-rSY, ar_TN: ar-rTN, ar_YE: ar-rYE, arn_CL: arn-rCL, as_IN: as-rIN, az_AZ: az-rAZ, ba_RU: ba-rRU, be_BY: be-rBY, bg_BG: bg-rBG, bn_BD: bn-rBD, bn_IN: bn-rIN, bo_CN: bo-rCN, br_FR: br-rFR, bs_BA: bs-rBA, ca_ES: ca-rES, co_FR: co-rFR, cs_CZ: cs-rCZ, cy_GB: cy-rGB, da_DK: da-rDK, de_AT: de-rAT, de_CH: de-rCH, de_DE: de-rDE, de_LI: de-rLI, de_LU: de-rLU, dsb_DE: dsb-rDE, dv_MV: dv-rMV, el_GR: el-rGR, en_AU: en-rAU, en_BZ: en-rBZ, en_CA: en-rCA, en_GB: en-rGB, en_IE: en-rIE, en_IN: en-rIN, en_JM: en-rJM, en_MY: en-rMY, en_NZ: en-rNZ, en_PH: en-rPH, en_SG: en-rSG, en_TT: en-rTT, en_US: en-rUS, en_ZA: en-rZA, en_ZW: en-rZW, en@pirate: en-rpirate, es_AR: es-rAR, es_BO: es-rBO, es_CL: es-rCL, es_CO: es-rCO, es_CR: es-rCR, es_DO: es-rDO, es_EC: es-rEC, es_ES: es-rES, es_GT: es-rGT, es_HN: es-rHN, es_MX: es-rMX, es_NI: es-rNI, es_PA: es-rPA, es_PE: es-rPE, es_PR: es-rPR, es_PY: es-rPY, es_SV: es-rSV, es_US: es-rUS, es_UY: es-rUY, es_VE: es-rVE, et_EE: et-rEE, eu_ES: eu-rES, fa_IR: fa-rIR, fi_FI: fi-rFI, fil_PH: fil-rPH, fo_FO: fo-rFO, fr_BE: fr-rBE, fr_CA: fr-rCA, fr_CH: fr-rCH, fr_FR: fr-rFR, fr_LU: fr-rLU, fr_MC: fr-rMC, fy_NL: fy-rNL, ga_IE: ga-rIE, gd_GB: gd-rGB, gl_ES: gl-rES, gsw_FR: gsw-rFR, gu_IN: gu-rIN, ha_NG: ha-rNG, he_IL: he-rIL, hi_IN: hi-rIN, hr_BA: hr-rBA, hr_HR: hr-rHR, hsb_DE: hsb-rDE, hu_HU: hu-rHU, hy_AM: hy-rAM, id_ID: id-rID, ig_NG: ig-rNG, ii_CN: ii-rCN, is_IS: is-rIS, it_CH: it-rCH, it_IT: it-rIT, iu_CA: iu-rCA, ja_JP: ja-rJP, ka_GE: ka-rGE, kk_KZ: kk-rKZ, kl_GL: kl-rGL, km_KH: km-rKH, kn_IN: kn-rIN, ko_KR: ko-rKR, kok_IN: kok-rIN, ku_IQ: ku-rIQ, ky_KG: ky-rKG, lb_LU: lb-rLU, lo_LA: lo-rLA, lt_LT: lt-rLT, lv_LV: lv-rLV, mi_NZ: mi-rNZ, mk_MK: mk-rMK, ml_IN: ml-rIN, mn_CN: mn-rCN, mn_MN: mn-rMN, moh_CA: moh-rCA, mr_IN: mr-rIN, ms_BN: ms-rBN, ms_MY: ms-rMY, my_MM: my, mt_MT: mt-rMT, nb_NO: nb-rNO, ne_NP: ne-rNP, nl_BE: nl-rBE, nl_NL: nl-rNL, nn_NO: nn-rNO, nso_ZA: nso-rZA, oc_FR: oc-rFR, or_IN: or-rIN, pa_IN: pa-rIN, pl_PL: pl-rPL, prs_AF: prs-rAF, ps_AF: ps-rAF, pt_BR: pt-rBR, pt_PT: pt-rPT, qut_GT: qut-rGT, quz_BO: quz-rBO, quz_EC: quz-rEC, quz_PE: quz-rPE, rm_CH: rm-rCH, ro_RO: ro-rRO, ru_RU: ru-rRU, rw_RW: rw-rRW, sa_IN: sa-rIN, sah_RU: sah-rRU, se_FI: se-rFI, se_NO: se-rNO, se_SE: se-rSE, si_LK: si-rLK, sk_SK: sk-rSK, sl_SI: sl-rSI, sma_NO: sma-rNO, sma_SE: sma-rSE, smj_NO: smj-rNO, smj_SE: smj-rSE, smn_FI: smn-rFI, sms_FI: sms-rFI, sq_AL: sq-rAL, sr_BA: sr-rBA, sr_CS: sr-rCS, sr_ME: sr-rME, sr_RS: sr-rRS, sr@latin: sr-rSP, sv_FI: sv-rFI, sv_SE: sv-rSE, sw_KE: sw-rKE, syr_SY: syr-rSY, ta_IN: ta-rIN, ta_LK: ta-rLK, te_IN: te-rIN, tg_TJ: tg-rTJ, th_TH: th-rTH, tk_TM: tk-rTM, tn_ZA: tn-rZA, tr_TR: tr-rTR, tt_RU: tt-rRU, tzm_DZ: tzm-rDZ, ug_CN: ug-rCN, uk_UA: uk-rUA, ur_PK: ur-rPK, uz_UZ: uz-rUZ, vi_VN: vi-rVN, wo_SN: wo-rSN, xh_ZA: xh-rZA, yo_NG: yo-rNG, zh_CN: zh-rCN, zh_CN.GB2312:zh-rBG, zh_HK: zh-rHK, zh_MO: zh-rMO, zh_SG: zh-rSG, zh_TW: zh-rTW, zu_ZA: zu-rZA
-3
View File
@@ -1,3 +0,0 @@
SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
SPDX-FileCopyrightText: 2012 Bartosz Przybylski <[email protected]>
SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-190
View File
@@ -1,190 +0,0 @@
<!--
- SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
# Agents.md
This file provides guidance to all AI agents (Claude, Codex, Gemini, etc.) working with code in this repository.
You are an experienced engineer specialized on Java, Kotlin and familiar with the platform-specific details of Android.
## Your Role
- You implement features and fix bugs.
- Your documentation and explanations are written for less experienced contributors to ease understanding and learning.
- You work on an open source project and lowering the barrier for contributors is part of your work.
## Project Overview
The Nextcloud Android Client is a application to synchronize files from Nextcloud Server with your Android device.
Java, Kotlin, XML, Jetpack Compose are the key technologies used for building the app.
## Project Structure: AI Agent Handling Guidelines
- `./app/src/main/java/com/owncloud/android/` Legacy components (Activities, datamodel, operations)
- `./app/src/main/java/com/nextcloud/` Modern components (client APIs, DI, repositories, UI with Compose)
- `./app/src/main/java/com/nextcloud/utils/extensions/` Extension functions for common types
- `./app/src/main/java/com/nextcloud/ui/` Jetpack Compose UI components and screens
- `./app/src/main/java/com/nextcloud/client/di/` Dependency injection configuration (Dagger 2)
- `./app/src/main/java/com/nextcloud/client/assistant/` AI features (Assistant screen, chat, conversations, translations)
- `./app/src/test/` Unit tests (small, isolated tests without Android SDK)
- `./app/src/androidTest/` Instrumented tests (require Android SDK)
- `./app/src/main/res/values/` Translations. Only update `./app/src/main/res/values/strings.xml`. Do not modify any other translation files or folders. Ignore all `values-*` directories (e.g., `values-es`, `values-fr`).
## General Guidance
Every new file needs to get a SPDX header in the first rows according to this template.
The year in the first line must be replaced with the year when the file is created (for example, 2026 for files first added in 2026).
The commenting signs need to be used depending on the file type.
New contributions use AGPL-3.0-or-later license. Files may also have `OR GPL-2.0-only` in the license if they originated from GPL-licensed code.
```plaintext
SPDX-FileCopyrightText: <YEAR> Nextcloud GmbH and Nextcloud contributors
SPDX-License-Identifier: AGPL-3.0-or-later
```
Kotlin/Java:
```kotlin
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: <year> Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
```
XML:
```xml
<!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: <year> Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: AGPL-3.0-or-later
-->
```
Avoid creating source files that implement multiple types; instead, place each type in its own dedicated source file.
## Design
- Follow Material Design 3 guidelines
- In addition to any Material Design wording guidelines, follow the Nextcloud wording guidelines at https://docs.nextcloud.com/server/latest/developer_manual/design/foundations.html#wording
- Ensure the app works in both light and dark theme
- Ensure the app works with different server primary colors by using the colorTheme of viewThemeUtils
## Architecture & Patterns
### Jetpack Compose
Modern UI is built with Jetpack Compose (Material 3). Key directories:
- `com.nextcloud.ui.composeActivity` - Activities hosting Compose content
- `com.nextcloud.ui.composeComponents` - Reusable Compose components
- `com.nextcloud.client.assistant` - Compose-based Assistant screens and features
Use `StateFlow` and `MutableStateFlow` in ViewModels for state management. Collect state in Compose functions with `collectAsState()`.
### Dependency Injection
Uses Dagger 2 for major Android components (`Activity`, `Fragment`, `Service`, `BroadcastReceiver`, `ContentProvider`). Manual constructor injection for other components.
### Extension Functions
The `com.nextcloud.utils.extensions` package contains helper extensions organized by type (e.g., `FileExtensions.kt`, `StringExtensions.kt`, `ViewExtensions.kt`). Create focused extension files rather than putting multiple types in one file.
## Testing
### Unit Tests (`./app/src/test/`)
- Small, isolated tests without Android SDK
- Use Mockito with `mockito-kotlin` for easier mocking
- Recommended command: `./gradlew jacocoTestGplayDebugUnitTest`
- Tests use JUnit 4 with `@Test`, `@Before`, `@After` annotations
### Instrumented Tests (`./app/src/androidTest/`)
- Tests requiring Android SDK (Activities, Fragments, database access)
- Use Espresso for UI testing
- Tests should inherit from `AbstractOnServerIT` if they need server communication
- Always create a separate test user on test server to avoid data interference
- Run with: `./gradlew createGplayDebugCoverageReport -Pcoverage=true`
- Run specific test class: `./gradlew createGplayDebugCoverageReport -Pcoverage=true -Pandroid.testInstrumentationRunnerArguments.class=<fully.qualified.ClassName>`
- Run one test method: `./gradlew createGplayDebugCoverageReport -Pcoverage=true -Pandroid.testInstrumentationRunnerArguments.class=<fully.qualified.ClassName>#methodName`
### Screenshot Tests (Shot)
- Enabled via `SHOT_TEST=true` environment variable
- Use: `scripts/androidScreenshotTest` to check, `scripts/updateScreenshots.sh` to regenerate
- CI renders shadows differently; 0.5% tolerance is configured
## Code Quality Tools
All code is validated with the following tools. Fix findings in modified files:
- **lint** - Android linting (configured in `app/lint.xml`)
- **spotbugsGplayDebug** - Bug detection for Gplay variant
- **detekt** - Kotlin code analysis (configured in `app/detekt.yml`)
- **spotlessKotlinCheck** - Code formatting with ktlint
Run all checks with: `./gradlew check`
## Nextcloud Contribution Policy
All contributions generated or assisted by this agent must fully comply with:
- **[AI Contribution Policy](https://github.com/nextcloud/.github/blob/master/AI_POLICY.md)** - the primary reference for AI-specific rules, covering disclosure, author accountability, communication, security, licensing, code quality, and autonomous agent behavior.
- **[Contribution Guidelines](https://github.com/nextcloud/.github/blob/master/CONTRIBUTING.md)** - covering testing requirements, the Developer Certificate of Origin (DCO), license headers, conventional commits, and translations. These apply in full to all contributions regardless of how they were produced.
### What this agent must always do
- Add an `Assisted-by: AGENT_NAME:MODEL_VERSION` git trailer to every commit containing AI-assisted content.
- Ensure every pull request includes a disclosure of AI tool use in the PR description.
- Produce focused, scoped pull requests that address exactly one concern. Do not touch unrelated files or introduce incidental refactors.
- Verify all dependencies against actual package registries before suggesting them. Do not use hallucinated or unverified package names.
- Explicitly inform the contributor when any action they are about to take, or have taken, would violate the AI Contribution Policy or the Contribution Guidelines. Do not silently proceed. State which rule is at risk and what the contributor should do instead.
- Warn the contributor if a pull request is growing too large. A PR approaching several thousand lines of changed code is a signal that it should be split into smaller, focused PRs. Suggest a logical split before the PR is opened, not after.
- Recommend opening a ticket for discussion before starting implementation whenever a feature or change is sufficiently complex - for example when it touches multiple subsystems, requires architectural decisions, or the right approach is not yet clear. A ticket allows maintainers and the contributor to align on direction before code is written, avoiding wasted effort on a PR that may be rejected or require fundamental rework.
### What this agent must never do
- Open issues, submit pull requests, post review comments, or send security reports autonomously. Every contribution must be reviewed and submitted by a human.
- Add `Signed-off-by` tags to commits. Only the human contributor can certify the Developer Certificate of Origin.
- Generate or submit security reports without independent human verification. Report verified vulnerabilities via [HackerOne](https://hackerone.com/nextcloud), not as GitHub issues.
- Write PR descriptions, review comments, or issue reports on behalf of the contributor. These must be in the contributor's own words.
- Fully automate the resolution of issues labeled [`good first issue`](https://github.com/issues?q=org%3Anextcloud+label%3A%22good+first+issue%22) or similar beginner-friendly labels.
- Submit code that has not been reviewed and cleaned up by the contributor. Dead code, redundant logic, excessive comments, and unrelated changes must be removed before submission.
## Commit and Pull Request Guidelines
### Commits
- All commits must be signed off (`git commit -s`) per the Developer Certificate of Origin (DCO). All PRs target `master`. Backports use `/backport to stable-X.Y` in a PR comment.
- Commit messages must follow the [Conventional Commits v1.0.0 specification](https://www.conventionalcommits.org/en/v1.0.0/#specification) — e.g. `feat(chat): add voice message playback`, `fix(call): handle MCU disconnect gracefully`.
- Every commit made with AI assistance must include an `Assisted-by: AGENT_NAME:MODEL_VERSION` git trailer identifying the coding agent and model used:
```
Assisted-by: ClaudeCode:claude-sonnet-4-6
Assisted-by: Copilot:claude-sonnet-4-6
```
General pattern: `Assisted-by: <coding-agent>:<model-version>`
### Pull Requests
- Include a short summary of what changed. *Example:* `fix: prevent crash on empty todo title`.
- **Pull Request**: When the agent creates a PR, it should include a description summarizing the changes and why they were made. If a GitHub issue exists, reference it (e.g., “Closes #123”).
## Code Style
- Do not exceed 300 lines of code per file.
- Line length: **120 characters**
- Standard Android Studio formatter with EditorConfig.
- Kotlin preferred for new code; legacy Java still present.
- Do not use decorative section-divider comments of any kind (e.g. `// ── Title ───`, `// ------`, `// ======`).
- Every new file must end with exactly one empty trailing line (no more, no less).
- Do not add comments, documentation for every function you created instead make it self explanatory as much as possible.
- Create models, states in different files instead of doing it one single file.
- Do not use magic numbers.
- Apply fail fast principle instead of using nested if-else statements.
- Do not use multiple boolean flags to determine states instead use enums or sealed classes.
- Use modern Java for Java classes. Optionals, virtual threads, records, streams if necessary.
- Avoid hardcoded strings, colors, dimensions. Use resources.
- Run lint, spotbugsGplayDebug, detekt, spotlessKotlinCheck and fix findings inside the files that have been changed.
+288
View File
@@ -0,0 +1,288 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Nextcloud Android client application
Copyright (C) 2012 Bartek Przybylski
Copyright (C) 2012-2016 ownCloud Inc.
Copyright (C) 2016 Nextcloud
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2,
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.owncloud.android"
android:versionCode="20161231"
android:versionName="20161231" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="24" />
<!-- GET_ACCOUNTS is needed for API < 23.
For API >= 23 results in the addition of CONTACTS group to the list of permissions that may be
dynamically disabled or enabled by the user after installation; but it is not important,
since GET_ACCOUNTS is an special case, the permission is not really needed to access accounts
owned by the app, our use case.
See note in http://developer.android.com/intl/es/reference/android/Manifest.permission.html#GET_ACCOUNTS -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<!-- USE_CREDENTIALS, MANAGE_ACCOUNTS and AUTHENTICATE_ACCOUNTS are needed for API < 23.
In API >= 23 the do not exist anymore -->
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
<!-- WRITE_EXTERNAL_STORAGE may be enabled or disabled by the user after installation in
API >= 23; the app needs to handle this -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
<!-- Next permissions are always approved in installation time,
the apps needs to do nothing special in runtime -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_SYNC_STATS" />
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<application
android:name=".MainApp"
android:icon="@mipmap/ic_launcher"
android:label="Nextcloud beta"
android:theme="@style/Theme.ownCloud.Toolbar"
android:manageSpaceActivity="com.owncloud.android.ui.activity.ManageSpaceActivity">
<activity
android:name=".ui.activity.FileDisplayActivity"
android:label="Nextcloud beta"
android:theme="@style/Theme.ownCloud.Toolbar.Drawer">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ui.activity.ManageAccountsActivity" />
<activity android:name=".ui.activity.ParticipateActivity" />
<activity android:name=".ui.activity.FolderSyncActivity" />
<activity android:name=".ui.activity.UploadFilesActivity" />
<activity android:name=".ui.activity.ReceiveExternalFilesActivity"
android:taskAffinity=""
android:excludeFromRecents="true"
android:label="Nextcloud beta"
android:theme="@style/Theme.ownCloud.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" />
</intent-filter>
</activity>
<activity
android:name=".ui.activity.Preferences"
android:theme="@style/Theme.ownCloud" >
</activity>
<activity
android:name=".ui.preview.PreviewImageActivity"
android:theme="@style/Theme.ownCloud.Overlay" />
<activity
android:name=".ui.preview.PreviewVideoActivity"
android:label="Nextcloud beta"
android:theme="@style/Theme.ownCloud.Fullscreen" />
<service
android:name=".authentication.AccountAuthenticatorService"
android:exported="true" >
<intent-filter android:priority="100" >
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<meta-data
android:name="android.accounts.AccountAuthenticator"
android:resource="@xml/authenticator" />
</service>
<service android:name=".services.observer.SyncedFolderObserverService"/>
<service
android:name=".syncadapter.FileSyncService"
android:exported="true" >
<intent-filter>
<action android:name="android.content.SyncAdapter" />
</intent-filter>
<meta-data
android:name="android.content.SyncAdapter"
android:resource="@xml/syncadapter_files" />
</service>
<service
android:name=".services.SyncedFolderJobService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:exported="true"/>
<provider
android:name=".providers.FileContentProvider"
android:authorities="@string/authority"
android:enabled="true"
android:exported="true"
android:label="@string/sync_string_files"
android:syncable="true" />
<provider
android:name="org.nextcloud.providers.UsersAndGroupsSearchProvider"
android:authorities="org.nextcloud.beta.android.providers.UsersAndGroupsSearchProvider"
android:enabled="true"
android:exported="false"
android:label="@string/search_users_and_groups_hint" />
<provider
android:name="org.nextcloud.providers.DocumentsStorageProvider"
android:authorities="@string/document_provider_authority"
android:exported="true"
android:grantUriPermissions="true"
android:permission="android.permission.MANAGE_DOCUMENTS"
android:enabled="@bool/atLeastKitKat">
<intent-filter>
<action android:name="android.content.action.DOCUMENTS_PROVIDER" />
</intent-filter>
</provider>
<!-- new provider used to generate URIs without file:// scheme (forbidden from Android 7) -->
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="@string/file_provider_authority"
android:grantUriPermissions="true"
android:exported="false">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/exposed_filepaths" />
</provider>
<provider
android:name=".ui.adapter.DiskLruImageCacheFileProvider"
android:authorities="@string/authorityCache"
android:exported="true">
</provider>
<activity
android:name=".authentication.AuthenticatorActivity"
android:exported="true"
android:launchMode="singleTask"
android:theme="@style/Theme.ownCloud.noActionBar.Login">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="@string/oauth2_redirect_scheme" />
</intent-filter>
<intent-filter>
<action android:name="com.owncloud.android.workaround.accounts.CREATE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="@string/login_data_own_scheme" android:host="login"/>
</intent-filter>
</activity>
<service android:name=".services.OperationsService" />
<service android:name=".files.services.FileDownloader" />
<service android:name=".files.services.FileUploader" />
<service android:name=".media.MediaService" />
<activity android:name=".ui.activity.PassCodeActivity" />
<activity android:name=".ui.activity.ConflictsResolveActivity"/>
<activity android:name=".ui.activity.GenericExplanationActivity"/>
<activity android:name=".ui.activity.ErrorsWhileCopyingHandlerActivity"/>
<activity android:name=".ui.activity.LogHistoryActivity"/>
<activity android:name=".ui.activity.ErrorReportActivity"/>
<activity android:name=".ui.errorhandling.ErrorShowActivity" />
<activity android:name=".ui.activity.UploadListActivity" />
<activity android:name=".ui.activity.WhatsNewActivity"
android:theme="@style/Theme.ownCloud.noActionBar.Login" />
<receiver android:name=".files.services.ConnectivityActionReceiver"
android:enabled="true" android:label="ConnectivityActionReceiver">
<intent-filter>
<!--action android:name="android.net.conn.CONNECTIVITY_CHANGE"/-->
<action android:name="android.net.wifi.STATE_CHANGE"/>
<action android:name="android.intent.action.ACTION_POWER_CONNECTED"/>
<action android:name="android.intent.action.ACTION_POWER_DISCONNECTED"/>
</intent-filter>
</receiver>
<receiver android:name=".files.InstantUploadBroadcastReceiver">
<intent-filter>
<!-- unofficially supported by many Android phones but not by HTC devices: -->
<action android:name="com.android.camera.NEW_PICTURE" />
<!-- officially supported since Android 4.0 (SDK 14, works even for HTC devices): -->
<action android:name="android.hardware.action.NEW_PICTURE" />
<data android:mimeType="image/*" />
</intent-filter>
<intent-filter>
<action android:name="android.hardware.action.NEW_VIDEO" />
<data android:mimeType="video/*" />
</intent-filter>
</receiver>
<receiver android:name=".files.BootupBroadcastReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<service android:name=".services.observer.FileObserverService" />
<activity
android:name=".ui.activity.CopyToClipboardActivity"
android:icon="@drawable/copy_link"
android:label="Copy link" />
<activity
android:name=".ui.activity.FolderPickerActivity"
android:label="Nextcloud beta" />
<activity
android:name=".ui.activity.UploadPathActivity"
android:label="Nextcloud beta" />
<activity
android:name=".ui.activity.ShareActivity"
android:label="Sharing"
android:theme="@style/Theme.ownCloud.Dialog.NoTitle"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustResize" >
<intent-filter>
<action android:name="android.intent.action.SEARCH" />
</intent-filter>
<meta-data android:name="android.app.searchable"
android:resource="@xml/users_and_groups_searchable"/>
</activity>
<activity android:name=".ui.activity.ManageSpaceActivity"
android:label="Manage space"
android:theme="@style/Theme.ownCloud" />
</application>
</manifest>
+111 -915
View File
File diff suppressed because it is too large. Load diff
-1
View File
@@ -1 +0,0 @@
@AGENTS.md
-13
View File
@@ -1,13 +0,0 @@
<!--
~ SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-->
In the Nextcloud community, participants from all over the world come together to create Free Software for a free internet. This is made possible by the support, hard work and enthusiasm of thousands of people, including those who create and use Nextcloud software.
Our code of conduct offers some guidance to ensure Nextcloud participants can cooperate effectively in a positive and inspiring atmosphere, and to explain how together we can strengthen and support each other.
The Code of Conduct is shared by all contributors and users who engage with the Nextcloud team and its community services. It presents a summary of the shared values and “common sense” thinking in our community.
You can find our full code of conduct on our website: https://nextcloud.com/code-of-conduct/
Please, keep our CoC in mind when you contribute! That way, everyone can be a part of our community in a productive, positive, creative and fun way.
+60 -361
View File
@@ -1,57 +1,40 @@
<!--
~ SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-->
# [Nextcloud](https://nextcloud.com) Android app
[![irc](https://img.shields.io/badge/IRC-%23nextcloud%20on%20freenode-orange.svg)](https://webchat.freenode.net/?channels=nextcloud)
[![irc](https://img.shields.io/badge/IRC-%23nextcloud--mobile%20on%20freenode-blue.svg)](https://webchat.freenode.net/?channels=nextcloud-mobile)
# Index
1. [Guidelines](#guidelines)
1. [Issue reporting](#issue-reporting)
1. [Labels](#labels)
1. [Pull request](#pull-request)
1. [Issue](#issue)
1. [Bug workflow](#bug-workflow)
1. [Contributing to Source Code](#contributing-to-source-code)
1. [Developing process](#developing-process)
1. [Branching model](#branching-model)
1. [Formatter setup](#formatter-setup)
1. [Build variants](#build-variants)
1. [Git hooks](#git-hooks)
1. [Contribution process](#contribution-process)
1. [Fork and download android repository](#fork-and-download-android-repository)
1. [Create pull request](#create-pull-request)
1. [Create another pull request](#create-another-pull-request)
1. [Backport pull request](#backport-pull-request)
1. [Pull requests that also need changes on library](#pull-requests-that-also-need-changes-on-library)
1. [Adding new files](#adding-new-files)
1. [Testing](#testing)
1. [File naming](#file-naming)
1. [Menu files](#menu-files)
1. [Translations](#translations)
1. [Engineering practices](#engineering-practices)
1. [Approach to technical debt](#approach-to-technical-debt)
1. [Dependency injection](#dependency-injection)
1. [Custom platform APIs](#custom-platform-apis)
1. [Testing](#testing)
1. [Releases](#releases)
1. [Types](#types)
1. [Stable](#stable)
1. [Release Candidate](#release-candidate)
1. [Dev](#dev)
1. [Version Name and number](#version-name-and-number)
1. [Stable / Release candidate](#stable-release-candidate)
1. [Dev](#dev)
1. [Release cycle](#release-cycle)
1. [Release Process](#release-process)
1. [Stable Release](#stable-release)
1. [Release Candidate Release](#release-candidate-release)
1. [Development Dev](#development-dev)
1. Guidelines
1. Issue reporting
1. Labels
1. PR
1. Issue
1. Contributing to Source Code
1. Developing process
1. Android Studio formatter setup
1. Contribution process
1. Fork and download android/master repository
1. Create pull request
1. Create another pull request
1. Translations
1. Releases
1. Types
1. Stable
1. Release Candidate
1. Beta
1. Version Name and number
1. Release cycle
1. Release Process
1. Stable
1. Release Candidate
1. Development Beta
# Guidelines
## Issue reporting
* [Report the issue](https://github.com/nextcloud/android/issues/new/choose) and choose bug report or feature request. The template includes all the information we need to track down the issue.
* [Report the issue](https://github.com/nextcloud/android/issues/new) using our [template][template], it includes all the information we need to track down the issue.
* This repository is *only* for issues within the Nextcloud Android app code. Issues in other components should be reported in their own repositories, e.g. [Nextcloud core](https://github.com/nextcloud/core/issues)
* Search the [existing issues](https://github.com/nextcloud/android/issues) first, it's likely that your issue was already reported.
If your issue appears to be a bug, and hasn't been reported, open a new issue.
@@ -61,9 +44,10 @@ If your issue appears to be a bug, and hasn't been reported, open a new issue.
### Pull request
* 1 developing
* 2 to review
* 3 to release
* 1 to develop
* 2 developing
* 3 to review
* 4 to release
### Issue
@@ -72,88 +56,47 @@ If your issue appears to be a bug, and hasn't been reported, open a new issue.
* PR exists (and then the PR# should be shown in first post)
### Bug workflow
Every bug should be triaged in approved/needs info in a given time.
* approved: at least one other is able to reproduce it
* needs info: something unclear, or not able to reproduce
* if no response within 1 months, bug will be closed
* pr exists: if bug is fixed, link to pr
# Contributing to Source Code
Thanks for wanting to contribute source code to Nextcloud. That's great!
New contributions are added under AGPL version 3.
New contributions are addded under AGPL version 3.
## Developing process
We are all about quality while not sacrificing speed so we use a very pragmatic workflow.
* create an issue with feature request
* discuss it with other developers
* discuss it with other developers
* create mockup if necessary
* must be approved --> label approved
* after that no conceptual changes!
* develop code
* create [pull request](https://github.com/nextcloud/android/pulls)
* to assure the quality of the app, any PR gets reviewed, approved and tested by [two developers](https://github.com/nextcloud/android/blob/master/.pullapprove.yml#L29) before it will be merged to master
* to assure the quality of the app, any PR gets reviewed, approved and tested by [two developers](https://github.com/nextcloud/android/blob/master/MAINTAINERS) before it will be merged to master
### Branching model
![branching model](/doc/branching.png "Branching Model")
* All contributions bug fix or feature PRs target the ```master``` branch
* Feature releases will always be based on ```master```
* Bug fix releases will always be based on their respective feature-release-bug-fix-branches
* Bug fixes relevant for the most recent _and_ released feature (e.g. ```2.0.0```) or bugfix (e.g. ```2.0.1```) release will be backported to the respective bugfix branch (e.g. ```2.0.x``` or ```2.1.x```)
* Hot fixes not relevant for an upcoming feature release but the latest release can target the bug fix branch directly
### Formatter setup
### Android Studio formatter setup
Our formatter setup is rather simple:
* Standard Android Studio
* Line length 120 characters (Settings->Editor->Code Style->Right margin(columns): 120; also set by EditorConfig
* Line length 120 characters (Settings->Editor->Code Style->Right margin(columns): 120)
* Auto optimize imports (Settings->Editor->Auto Import->Optimize imports on the fly)
You can fix Check / check (spotlessKotlinCheck) via following commands:
```bash
./gradlew spotlessApply
./gradlew detekt
./gradlew spotlessCheck
./gradlew spotlessKotlinCheck
```
See section [Git hooks](#git-hooks) to have these run automatically with your commits.
### Build variants
There are three build variants
* generic: no Google Stuff, used for FDroid
* gplay: with Google Stuff (Push notification), used for Google Play Store
* versionDev: based on master and library master, available as direct download and FDroid
### Git hooks
We provide git hooks to make development process easier for both the developer and the reviewers.
They are stored in [/scripts/hooks](/scripts/hooks) and can be installed with:
```bash
./gradlew installGitHooks
```
## Contribution process
* Contribute your code in the branch 'master'. It will give us a better chance to test your code before merging it with stable code.
* For your first contribution start a pull request on master.
### Fork and download android repository:
### 1. Fork and download android/master repository:
* Please follow [SETUP.md](https://github.com/nextcloud/android/blob/master/SETUP.md) to setup Nextcloud Android app work environment.
### Create pull request:
* Commit your changes locally. Remember to sign off your commits (`git commit -sm 'Your commit message'`).
### 2. Create pull request:
* Commit your changes locally: ```git commit -a```
* Push your changes to your GitHub repo: ```git push```
* Browse to <https://github.com/YOURGITHUBNAME/android/pulls> and issue pull request
* Browse to https://github.com/YOURGITHUBNAME/android/pulls and issue pull request
* Enter description and send pull request.
### Create another pull request:
### 3. Create another pull request:
To make sure your new pull request does not contain commits which are already contained in previous PRs, create a new branch which is a clone of upstream/master.
* ```git fetch upstream```
@@ -162,252 +105,9 @@ To make sure your new pull request does not contain commits which are already co
* Push branch to server: ```git push -u origin name_of_local_master_branch```
* Use GitHub to issue PR
### Backport pull request:
Use backport-bot via "/backport to stable-version", e.g. "/backport to stable-3.7".
This will automatically add "backport-request" label to PR and bot will create a new PR to targeted branch once the base PR is merged.
If automatic backport fails, it will create a comment.
### Pull requests that also need changes on library
For speeding up developing, we do use a master snapshot of nextcloud-library, provided by jitpack.io.
This means that if a breaking change is merged on library, master branch of the app will fail.
To limit this risk please follow this approach:
- on app PR: first use a reference to your library branch in build.gradle: ext -> androidLibraryVersion, e.g. androidLibraryVersion = "changeSearch-SNAPSHOT"
- on library PR: use label "client change required" to indicate that this is breaking change. This will prevent GitHub from merging it.
Once both PRs are reviewed and ready to merge:
- on library PR: remove label and merge it (for a short time now master cannot be built!)
- on app PR: change androidLibraryVersion back to "master-SNAPSHOT"
- wait for CI and then merge
With this approach the "downtime" of not building master is limited to the timestamp between merge lib PR and merging app PR, which is only limited by CI.
### Adding new files
If you create a new file it needs to contain a license header. We encourage you to use the same license (AGPL3+) as we do.
Copyright of Nextcloud GmbH is optional.
Source code of library:
```java
/*
* Nextcloud Android Library
*
* SPDX-FileCopyrightText: 2024 Your Name <[email protected]>
* SPDX-License-Identifier: MIT
*/
```
Source code of app:
```java
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2024 Your Name <[email protected]>
* SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
*/
```
XML (layout) file:
```xml
<!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: 2024 Your name <your@email.com>
~ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-->
```
### Testing
- testing is very important, but is lacking a lot on this project. Starting with 2020 we aim to write tests for every
new pull request.
- Code coverage can be found [here](https://codecov.io/gh/nextcloud/android).
#### Unit tests
- small, isolated tests, with no need of Android SDK
- code coverage can be directly shown via right click on test and select "Run Test with Coverage"
```
./gradlew jacocoTestGplayDebugUnitTest
```bash
#### Instrumented tests
- tests to see larger code working in correct way
- tests that require parts of Android SDK
- run all tests ```./gradlew createGplayDebugCoverageReport -Pcoverage=true```
- run selective test class: ```./gradlew createGplayDebugCoverageReport -Pcoverage=true
-Pandroid.testInstrumentationRunnerArguments.class=com.owncloud.android.datamodel.FileDataStorageManagerContentProviderClientIT```
- run multiple test classes:
- separate by ","
- ```./gradlew createGplayDebugCoverageReport -Pcoverage=true -Pandroid.testInstrumentationRunnerArguments.class=com.owncloud.android.datamodel.FileDataStorageManagerContentProviderClientIT,com.nextcloud.client.FileDisplayActivityIT```
- run one test in class: ```./gradlew createGplayDebugCoverageReport -Pcoverage=true
-Pandroid.testInstrumentationRunnerArguments.class=com.owncloud.android.datamodel.FileDataStorageManagerContentProviderClientIT#saveFile```
- JaCoCo results are shown as html: firefox ./build/reports/coverage/gplay/debug/index.html
#### Instrumented tests with server communication
It is best to avoid server communication, see https://github.com/nextcloud/android/pull/3624.
But if a test requires a server, this is how it is done:
- Have a Nextcloud service reachable by your test device. This can be an existing server in the internet or a locally deployed one
as per the [server developer documentation](https://docs.nextcloud.com/server/latest/developer_manual/getting_started/devenv.html)
- Create a separate(!) test user on that server, otherwise the tests will infer with productive data.
- In `gradle.properties`, enter the URL, user name and password via the `NC_TEST_SERVER_...` attributes.
If you want to prevent an accidental commit of those, you can also store them in `~/.gradle/gradle.properties`.
- Your test class should inherit from `AbstractOnServerIT`, e.g.: `public class DownloadIT extends AbstractOnServerIT { ...`
Note that this will automatically delete all files after each test run, so you absolutely NEED a separate test user as mentioned above.
- All preconditions of your test regarding server data, e.g. existing files, need to be established by your test itself.
As a reference, see how `DownloadIT` first uploads the files it later tests the download with.
- Clean up these preconditions again, also in the failure case, using one or multiple `@After` methods in your test class.
#### UI tests
We use [shot](https://github.com/Karumi/Shot) for taking screenshots and compare them.
To exclude the shot dependency from normal builds, the dependency needs to be activated via an environment variable `SHOT_TEST`.
For convenience, this and other prerequisites are encapsulated in utility scripts, so it is advised to use them
- check screenshots: ```scripts/androidScreenshotTest ```
- check the script for a detailed documentation of the parameters
- update/generate new screenshots: ```scripts/updateScreenshots.sh ```
- in this script are samples how to only execute a given class/test
- this will fire up docker & emulator to ensure that screenshots look the same
- creating own UI comparison tests:
- add IntentsTestRule for launching activity directly:
```java
@Rule public IntentsTestRule<SettingsActivity> activityRule = new IntentsTestRule<>(SettingsActivity.class,
true,
false);
```
- in test method:
```java
Activity activity = activityRule.launchActivity(null);
…do something, e.g. navigate, create folder, etc. …
Screenshot.snapActivity(activity).record();
```
- best practice is to first create test with emulator too see behaviour and then create screenshots
## File naming
The file naming patterns are inspired and based on [Ribot's Android Project And Code Guidelines](https://github.com/ribot/android-guidelines/blob/c1d8c9c904eb31bf01fe24aadb963b74281fe79a/project_and_code_guidelines.md).
### Menu files
Similar to layout files, menu files should match the name of the component. For example, if we are defining a menu file that is going to be used in the `UserProfileActivity`, then the name of the file should be `activity_user_profile.xml`. Same pattern applies for menus used in adapter view items, dialogs, etc.
| Component | Class Name | Menu Name |
| ---------------- | ---------------------- | ----------------------------- |
| Activity | `UserProfileActivity` | `activity_user_profile.xml` |
| Fragment | `SignUpFragment` | `fragment_sign_up.xml` |
| Dialog | `ChangePasswordDialog` | `dialog_change_password.xml` |
| AdapterView item | --- | `item_person.xml` |
| Partial layout | --- | `partial_stats_bar.xml` |
A good practice is to not include the word `menu` as part of the name because these files are already located in the `menu` directory. In case a component uses several menus in different places (via popup menus) then the resource name would be extended. For example, if the user profile activity has two popup menus for configuring the users settings and one for the handling group assignments then the file names for the menus would be: `activity_user_profile_user_settings.xml` and `activity_user_profile_group_assignments.xml`.
## Translations
We manage translations via [Transifex](https://app.transifex.com/nextcloud/nextcloud/android/). So just request joining the translation team for Android on the site and start translating. All translations will then be automatically pushed to this repository, there is no need for any pull request for translations.
If you need to change a translation, do not change it, but give it new key. This way the translation stays backward compatible as we automatically backport translated strings to last versions.
When submitting PRs with changed translations, please only submit changes to values/strings.xml and not changes to translated files. These will be overwritten by next merge of transifex-bot and increase PR review.
## Engineering practices
This section contains some general guidelines for new contributors, based on common issues flagged during code review.
### Approach to technical debt
TL;DR Non-Stop Litter Picking Party!
We recognize the importance of technical debt that can slow down development, make bug fixing difficult and
discourage future contributors.
We are mindful of the [Broken Windows Theory](https://en.wikipedia.org/wiki/Broken_windows_theory) and we'd like
actively promote and encourage contributors to apply The Scout's Rule: *"Always leave the campground cleaner than
you found it"*. Simple, little improvements will sum up and will be very appreciated by Nextcloud team.
We also promise to actively support and mentor contributors that help us to improve code quality, as we understand
that this process is challenging and requires deep understanding of the application codebase.
### Dependency injection
TL;DR Avoid calling constructors inside constructors.
In effort to modernize the codebase we are applying [Dependency Injection](https://en.wikipedia.org/wiki/Dependency_injection)
whenever possible. We use 2 approaches: automatic and manual.
We are using [Dagger 2](https://dagger.dev/) to inject dependencies into major Android components only:
* `Activity`
* `Fragment`
* `Service`
* `BroadcastReceiver`
* `ContentProvider`
This process is fairly automatic, with `@Inject` annotation being sufficient to supply properly initialized
objects. Android lifecycle callbacks allow us to do most of the work without effort.
For other application sub-components we prefer to use constructor injection and manually provide required dependencies.
This combination allows us to benefit from automation when it provides most value, does not tie rest of the code
to any specific framework and stimulates continuous code modernization through iterative refactoring of all minor
elements.
### Custom platform APIs
TL;DR Avoid Android platform APIs.
Nextcloud Android application provides some replacements for native Android APIs to facilitate testing
and expose higher-level, business-specific APIs.
Generally, whenever you need:
* account management
* application preferences
* background task scheduling
* device hardware information
* media playback
* networking
* logging
* notifications management
we have something more suitable.
Our transition to new APIs is a continuous process. Contributors might be asked by code reviewers to
refrain from using specific Android APIs considered problematic and to use Nextcloud APIs instead.
In extreme cases we might decide to put specific features on hold until we provide platform API
replacement.
If in doubt, ask Nextcloud developers. App undergoes a process of intense refactoring and situation
changes frequently.
### Testing
TL;DR If we can't write a test for it, it's not good.
Test automation is challenging in mobile applications in general. We try to improve in this area
and thereof we'd ask contributors to be mindful of their code testability:
1. new code submitted to Nextcloud project should be provided with automatic tests
2. contributions to existing code that is currently not covered by automatic tests
should at least not make future efforts more challenging
3. whenever possible, testability should be improved even if the code is not covered by tests
### Performance
If you're interested in improving the app's performance, please check the [official documentation](https://developer.android.com/topic/performance)
for ways you can inspect and improve performance.
For additional analysis, set the `perfAnalysis` property
in your Gradle build:
```shell
./gradlew installGplayDebug -P perfAnalysis
```
This will install the app with [LeakCanary](https://square.github.io/leakcanary/) and
[StrictMode](https://developer.android.com/reference/android/os/StrictMode) enabled and configured.
These tools can help find memory leaks, foreground operations that should be in background, and other performance
problems.
We manage translations via [Transifex](https://www.transifex.com/nextcloud/nextcloud/android/). So just request joining the translation team for Android on the site and start translating. All translations will then be automatically pushed to this repository, there is no need for any pull request for translations.
# Releases
At the moment we are releasing the app in two app stores:
@@ -421,18 +121,18 @@ We do differentiate between three different kinds of releases:
### Stable
Play store and f-droid releases for the masses.
Pull Requests that have been tested and reviewed can go to master. After the last release candidate is out in the wild for ~2 weeks and no errors get reported (by users or in the developer console) the master branch is ready for the stable release.
Pull Requests that have been tested and reviewed can go to master. After the last release candidate is out in the wild for ~2 weeks and no errors get reported (by users or in the developer console) the master branch is ready for the stable release.
So when we decide to go for a new release we freeze the master feature wise.
### Release Candidate
_stable beta_ releases done via the Beta program of the Google Play store and f-droid.
Whenever a PR is reviewed/approved we put it on master.
Before releasing a new stable version there is at least one release candidate. It is based on the current master and during this phase the master is feature freezed. After ~2 weeks with no error a stable version will be released, which is identical to the latest release candidate.
Before releasing a new stable version there is at least one release candidate. It is based on the current master and during this phase the master is feature freezed. After ~2 weeks with no error a stable version will be releaded, which is identically to the latest release candidate.
### Development Beta
Done as a standalone app that can be installed in parallel to the stable app
Any PR which is labelled "3. to review" or "4. to release" will be included in the beta app. The update interval depends on the speed of new/updated PRs.
### Dev
Done as a standalone app that can be installed in parallel to the stable app.
Any PR which is labelled "ready for dev" will be automatically included in the dev app. This label should only set by the main developers.
Same applies for the android-library. This repository also has a branch called dev which includes all upcoming features. The dev branch on this repository must always use the android-library dev branch.
## Version Name and number
### Stable / Release candidate
@@ -450,19 +150,17 @@ Examples for different versions:
* 8.12.2 ```80120200```
* 9.8.4-rc18 ```90080418```
beware, that beta releases for an upcoming version will always use the minor and hotfix version of the release they are targeting. So to make sure the version code of the upcoming stable release will always be higher stable releases set the 2 beta digits to '99' as seen above in the examples. For major versions, as we're not a library and thus 'incompatible API changes' is not something that happens, decisions are essentially marketing-based. If we deem a release to be very impactful, we might increase the major version number.
beware, that beta releases for an upcoming version will always use the minor and hotfix version of the release they are targeting. So to make sure the version code of the upcoming stable release will always be higher stable releases set the 2 beta digits to '99' as seen above in the examples.
### Dev
For dev the version name is in format YYYYMMDD. It is mainly as a reference for reporting bugs and is not related to stable/release candidates as it is an independent app.
### Development Beta
For development beta the version name is in format YYYYMMDD. It is mainly as a reference for reporting bugs and is not related to stable/release candidates as it is an independent app.
## Release cycle
* Releases are planned every ~2 months, with 6 weeks of developing and 2 weeks of stabilising
* for each release we choose several PRs that will be included in the next release. Currently there are many open PRs from ownCloud, but after merging them, the intention is to choose the PRs that are ready (reviewed, tested) to get them merged very soon.
* these will be merged into master, tested heavily, maybe automatic testing
* after feature freeze a public release candidate on play store and f-droid is released
* ~2 weeks testing, bug fixing
* release final version on f-droid and play store
* Bugfix releases (dot releases, e.g. 3.2.1) are released 4 weeks after stable version from the branch created with first stable release (stable-3.2.x). If changes to the library are required, we do the same: create a branch from the version used in stable release (e.g. 1.1.0) and then release a dot release (1.1.1).
> Hotfixes as well as security fixes are released via bugfix releases (dot releases) but are released on demand in contrast to regular, scheduled bugfix releases.
To get an idea which PRs and issues will be part of the next release simply check our [milestone plan](https://github.com/nextcloud/android/milestones)
@@ -483,7 +181,8 @@ Release Candidate releases are based on the git [master](https://github.com/next
2. Create a [release/tag](https://github.com/nextcloud/android/releases) in git. Tag name following the naming schema: ```rc-Mayor.Minor.Hotfix-betaIncrement``` (e.g. rc-1.2.0-12) naming the version number following the [semantic versioning schema](http://semver.org/)
### Developement Release
Dev releases are based on the [master](https://github.com/nextcloud/android/tree/master) branch and are done independently from stable releases for people willing to test new features and provide valuable feedback on new features to be incorporated before a feature gets released in the stable app.
###Development Beta Release
Beta releases are based on the git [beta](https://github.com/nextcloud/android/tree/beta) and are done independently from stable releases and integrate open PRs that might not be production ready or heavily tested but being put out there for people willing to test new features and provide valuable feedback on new features to be incorporated before a feature gets released in the stable app.
The deployment/build is done once a day automatically. If code has changed a new apk will be published [here](https://download.nextcloud.com/android/dev) and it will, with a little delay, be available on [Fdroid](https://f-droid.org/repository/browse/?fdfilter=nextcloud&fdid=com.nextcloud.android.beta).
1. Bump the version name and version code in the [AndroidManifest.xml](https://github.com/nextcloud/android/blob/master/AndroidManifest.xml), see below the version name and code concept.
2. Create a [release/tag](https://github.com/nextcloud/android/releases) in git. Tag name following the naming schema: ```beta-YYYYMMDD``` (e.g. beta-20160612)
-10
View File
@@ -1,10 +0,0 @@
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!
source "https://rubygems.org"
gem 'fastlane'
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
-2
View File
@@ -1,2 +0,0 @@
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: CC0-1.0
-241
View File
@@ -1,241 +0,0 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.8)
abbrev (0.1.2)
addressable (2.9.0)
public_suffix (>= 2.0.2, < 8.0)
artifactory (3.0.17)
atomos (0.1.3)
aws-eventstream (1.4.0)
aws-partitions (1.1246.0)
aws-sdk-core (3.246.0)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.992.0)
aws-sigv4 (~> 1.9)
base64
bigdecimal
jmespath (~> 1, >= 1.6.1)
logger
aws-sdk-kms (1.124.0)
aws-sdk-core (~> 3, >= 3.244.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.221.0)
aws-sdk-core (~> 3, >= 3.244.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
aws-sigv4 (1.12.1)
aws-eventstream (~> 1, >= 1.0.2)
babosa (1.0.4)
base64 (0.3.0)
benchmark (0.5.0)
bigdecimal (3.3.1)
cgi (0.4.2)
claide (1.1.0)
colored (1.2)
colored2 (3.1.2)
commander (4.6.0)
highline (~> 2.0.0)
csv (3.3.5)
declarative (0.0.20)
digest-crc (0.7.0)
rake (>= 12.0.0, < 14.0.0)
domain_name (0.6.20240107)
dotenv (2.8.1)
emoji_regex (3.2.3)
excon (0.112.0)
faraday (1.10.5)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
faraday-retry (~> 1.0)
ruby2_keywords (>= 0.0.4)
faraday-cookie_jar (0.0.8)
faraday (>= 0.8.0)
http-cookie (>= 1.0.0)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.1)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.2.0)
multipart-post (~> 2.0)
faraday-net_http (1.0.2)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.4)
faraday_middleware (1.2.1)
faraday (~> 1.0)
fastimage (2.4.1)
fastlane (2.234.0)
CFPropertyList (>= 2.3, < 5.0.0)
abbrev (~> 0.1)
addressable (>= 2.8, < 3.0.0)
artifactory (~> 3.0)
aws-sdk-s3 (~> 1.197)
babosa (>= 1.0.3, < 2.0.0)
base64 (~> 0.2)
benchmark (>= 0.1.0)
bundler (>= 1.17.3, < 5.0.0)
colored (~> 1.2)
commander (~> 4.6)
csv (~> 3.3)
dotenv (>= 2.1.1, < 3.0.0)
emoji_regex (>= 0.1, < 4.0)
excon (>= 0.71.0, < 1.0.0)
faraday (~> 1.0)
faraday-cookie_jar (~> 0.0.6)
faraday_middleware (~> 1.0)
fastimage (>= 2.1.0, < 3.0.0)
fastlane-sirp (>= 1.1.0)
gh_inspector (>= 1.1.2, < 2.0.0)
google-apis-androidpublisher_v3 (~> 0.3)
google-apis-playcustomapp_v1 (~> 0.1)
google-cloud-env (>= 1.6.0, <= 2.1.1)
google-cloud-storage (~> 1.31)
highline (~> 2.0)
http-cookie (~> 1.0.5)
json (< 3.0.0)
jwt (>= 2.1.0, < 3)
logger (>= 1.6, < 2.0)
mini_magick (>= 4.9.4, < 5.0.0)
multipart-post (>= 2.0.0, < 3.0.0)
mutex_m (~> 0.3)
naturally (~> 2.2)
nkf (~> 0.2)
optparse (>= 0.1.1, < 1.0.0)
ostruct (>= 0.1.0)
plist (>= 3.1.0, < 4.0.0)
rubyzip (>= 2.0.0, < 3.0.0)
security (= 0.1.5)
simctl (~> 1.6.3)
terminal-notifier (>= 2.0.0, < 3.0.0)
terminal-table (~> 3)
tty-screen (>= 0.6.3, < 1.0.0)
tty-spinner (>= 0.8.0, < 1.0.0)
word_wrap (~> 1.0.0)
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.4.1)
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
fastlane-plugin-huawei_appgallery_connect (1.0.31)
cgi
fastlane-sirp (1.1.0)
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.100.0)
google-apis-core (>= 0.15.0, < 2.a)
google-apis-core (0.18.0)
addressable (~> 2.5, >= 2.5.1)
googleauth (~> 1.9)
httpclient (>= 2.8.3, < 3.a)
mini_mime (~> 1.0)
mutex_m
representable (~> 3.0)
retriable (>= 2.0, < 4.a)
google-apis-iamcredentials_v1 (0.27.0)
google-apis-core (>= 0.15.0, < 2.a)
google-apis-playcustomapp_v1 (0.17.0)
google-apis-core (>= 0.15.0, < 2.a)
google-apis-storage_v1 (0.62.0)
google-apis-core (>= 0.15.0, < 2.a)
google-cloud-core (1.8.0)
google-cloud-env (>= 1.0, < 3.a)
google-cloud-errors (~> 1.0)
google-cloud-env (2.1.1)
faraday (>= 1.0, < 3.a)
google-cloud-errors (1.6.0)
google-cloud-storage (1.59.0)
addressable (~> 2.8)
digest-crc (~> 0.4)
google-apis-core (>= 0.18, < 2)
google-apis-iamcredentials_v1 (~> 0.18)
google-apis-storage_v1 (>= 0.42)
google-cloud-core (~> 1.6)
googleauth (~> 1.9)
mini_mime (~> 1.0)
googleauth (1.11.2)
faraday (>= 1.0, < 3.a)
google-cloud-env (~> 2.1)
jwt (>= 1.4, < 3.0)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (>= 0.16, < 2.a)
highline (2.0.3)
http-cookie (1.0.8)
domain_name (~> 0.5)
httpclient (2.9.0)
mutex_m
jmespath (1.6.2)
json (2.19.5)
jwt (2.10.2)
base64
logger (1.7.0)
mini_magick (4.13.2)
mini_mime (1.1.5)
multi_json (1.21.1)
multipart-post (2.4.1)
mutex_m (0.3.0)
nanaimo (0.4.0)
naturally (2.3.0)
nkf (0.2.0)
optparse (0.8.1)
os (1.1.4)
ostruct (0.6.3)
plist (3.7.2)
public_suffix (6.0.2)
rake (13.4.2)
representable (3.2.0)
declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0)
retriable (3.4.1)
rexml (3.4.4)
rouge (3.28.0)
ruby2_keywords (0.0.5)
rubyzip (2.4.1)
security (0.1.5)
signet (0.21.0)
addressable (~> 2.8)
faraday (>= 0.17.5, < 3.a)
jwt (>= 1.5, < 4.0)
multi_json (~> 1.10)
simctl (1.6.10)
CFPropertyList
naturally
terminal-notifier (2.0.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
trailblazer-option (0.1.2)
tty-cursor (0.7.1)
tty-screen (0.8.2)
tty-spinner (0.9.3)
tty-cursor (~> 0.7)
uber (0.1.0)
unicode-display_width (2.6.0)
word_wrap (1.0.0)
xcodeproj (1.27.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.4.0)
rexml (>= 3.3.6, < 4.0)
xcpretty (0.4.1)
rouge (~> 3.28.0)
xcpretty-travis-formatter (1.0.1)
xcpretty (~> 0.2, >= 0.0.7)
PLATFORMS
x86_64-linux
DEPENDENCIES
fastlane
fastlane-plugin-huawei_appgallery_connect
BUNDLED WITH
2.5.4
-2
View File
@@ -1,2 +0,0 @@
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: CC0-1.0
-235
View File
@@ -1,235 +0,0 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software.
A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public.
The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version.
An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based on the Program.
To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.
A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements.
You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <http://www.gnu.org/licenses/>.
-73
View File
@@ -1,73 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-9
View File
@@ -1,9 +0,0 @@
Copyright (c) <year> <owner>
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-121
View File
@@ -1,121 +0,0 @@
Creative Commons Legal Code
CC0 1.0 Universal
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
HEREUNDER.
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator
and subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for
the purpose of contributing to a commons of creative, cultural and
scientific works ("Commons") that the public can reliably and without fear
of later claims of infringement build upon, modify, incorporate in other
works, reuse and redistribute as freely as possible in any form whatsoever
and for any purposes, including without limitation commercial purposes.
These owners may contribute to the Commons to promote the ideal of a free
culture and the further production of creative, cultural and scientific
works, or to gain reputation or greater distribution for their Work in
part through the use and efforts of others.
For these and/or other purposes and motivations, and without any
expectation of additional consideration or compensation, the person
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
is an owner of Copyright and Related Rights in the Work, voluntarily
elects to apply CC0 to the Work and publicly distribute the Work under its
terms, with knowledge of his or her Copyright and Related Rights in the
Work and the meaning and intended legal effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not
limited to, the following:
i. the right to reproduce, adapt, distribute, perform, display,
communicate, and translate a Work;
ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or
likeness depicted in a Work;
iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;
v. rights protecting the extraction, dissemination, use and reuse of data
in a Work;
vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation
thereof, including any amended or successor version of such
directive); and
vii. other similar, equivalent or corresponding rights throughout the
world based on applicable law or treaty, and any national
implementations thereof.
2. Waiver. To the greatest extent permitted by, but not in contravention
of, applicable law, Affirmer hereby overtly, fully, permanently,
irrevocably and unconditionally waives, abandons, and surrenders all of
Affirmer's Copyright and Related Rights and associated claims and causes
of action, whether now known or unknown (including existing as well as
future claims and causes of action), in the Work (i) in all territories
worldwide, (ii) for the maximum duration provided by applicable law or
treaty (including future time extensions), (iii) in any current or future
medium and for any number of copies, and (iv) for any purpose whatsoever,
including without limitation commercial, advertising or promotional
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
member of the public at large and to the detriment of Affirmer's heirs and
successors, fully intending that such Waiver shall not be subject to
revocation, rescission, cancellation, termination, or any other legal or
equitable action to disrupt the quiet enjoyment of the Work by the public
as contemplated by Affirmer's express Statement of Purpose.
3. Public License Fallback. Should any part of the Waiver for any reason
be judged legally invalid or ineffective under applicable law, then the
Waiver shall be preserved to the maximum extent permitted taking into
account Affirmer's express Statement of Purpose. In addition, to the
extent the Waiver is so judged Affirmer hereby grants to each affected
person a royalty-free, non transferable, non sublicensable, non exclusive,
irrevocable and unconditional license to exercise Affirmer's Copyright and
Related Rights in the Work (i) in all territories worldwide, (ii) for the
maximum duration provided by applicable law or treaty (including future
time extensions), (iii) in any current or future medium and for any number
of copies, and (iv) for any purpose whatsoever, including without
limitation commercial, advertising or promotional purposes (the
"License"). The License shall be deemed effective as of the date CC0 was
applied by Affirmer to the Work. Should any part of the License for any
reason be judged legally invalid or ineffective under applicable law, such
partial invalidity or ineffectiveness shall not invalidate the remainder
of the License, and in such case Affirmer hereby affirms that he or she
will not (i) exercise any of his or her remaining Copyright and Related
Rights in the Work or (ii) assert any associated claims and causes of
action with respect to the Work, in either case contrary to Affirmer's
express Statement of Purpose.
4. Limitations and Disclaimers.
a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.
b. Affirmer offers the Work as-is and makes no representations or
warranties of any kind concerning the Work, express, implied,
statutory or otherwise, including without limitation warranties of
title, merchantability, fitness for a particular purpose, non
infringement, or the absence of latent or other defects, accuracy, or
the present or absence of errors, whether or not discoverable, all to
the greatest extent permissible under applicable law.
c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without
limitation any person's Copyright and Related Rights in the Work.
Further, Affirmer disclaims responsibility for obtaining any necessary
consents, permissions or other rights required for any use of the
Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to
this CC0 or use of the Work.
-117
View File
@@ -1,117 +0,0 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.
signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice
-232
View File
@@ -1,232 +0,0 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for software and other kinds of works.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS
0. Definitions.
“This License” refers to version 3 of the GNU General Public License.
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
A “covered work” means either the unmodified Program or a work based on the Program.
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
1. Source Code.
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
7. Additional Terms.
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
11. Patents.
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/philosophy/why-not-lgpl.html>.
-175
View File
@@ -1,175 +0,0 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.]
Preamble
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things.
To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others.
Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs.
When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library.
We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances.
For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system.
Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run.
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library.
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library.
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful.
(For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.)
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library.
In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices.
Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange.
If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things:
a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place.
e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute.
7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above.
b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License.
11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License).
To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
one line to give the library's name and an idea of what it does.
Copyright (C) year name of author
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in
the library `Frob' (a library for tweaking knobs) written
by James Random Hacker.
signature of Ty Coon, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!
@@ -1,9 +0,0 @@
The Nextcloud marks
Nextcloud and the Nextcloud logo is a registered trademark of Nextcloud GmbH in Germany and/or other countries.
These guidelines cover the following marks pertaining both to the product names and the logo: “Nextcloud”
and the blue/white cloud logo with or without the word Nextcloud; the service “Nextcloud Enterprise”;
and our products: “Nextcloud Files”; “Nextcloud Groupware” and “Nextcloud Talk”.
This set of marks is collectively referred to as the “Nextcloud marks.”
Use of Nextcloud logos and other marks is only permitted under the guidelines provided by the Nextcloud GmbH.
A copy can be found at https://nextcloud.com/trademarks/
-49
View File
@@ -1,49 +0,0 @@
Trademark policy
April 2023
You may not violate others’ intellectual property rights, including copyright and trademark.
A trademark is a word, logo, phrase, or device that distinguishes a trademark holder’s good or service in the marketplace. Trademark law may prevent others from using a trademark in an unauthorized or confusing manner.
What is in violation of this policy?
Using another’s trademark in a way that may mislead or confuse people about your affiliation may be a violation of our trademark policy.
What is not a violation of this policy?
Referencing another’s trademark is not automatically a violation of X's trademark policy. Examples of non-violations include:
* using a trademark in a way that is outside the scope of the trademark registration e.g., in a different territory, or a different class of goods or services than that identified in the registration; and
* using a trademark in a nominative or other fair use manner. For more information, see our Misleading and deceptive identities policy (https://help.twitter.com/en/rules-and-policies/twitter-impersonation-and-deceptive-identities-policy.html).
Who can report violations of this policy?
X only investigates requests that are submitted by the trademark holder or their authorized representative e.g., a legal representative or other representative for a brand.
How can I report violations of this policy?
You can submit a trademark report through our trademark report form (https://help.twitter.com/forms/trademark). Please provide all the information requested in the form. If you submit an incomplete report, we’ll need to follow up about the missing information. Please note that this will result in a delay in processing your report.
Note: We may provide the account holder with your name and other information included in the copy of the report.
What happens if you violate this policy?
If we determine that you violated our trademark policy, we may suspend your account. Depending on the type of violation, we may give you an opportunity to comply with our policies. In other instances, an account may be permanently suspended upon first review. If you believe that your account was suspended in error, you can submit an appeal (https://help.twitter.com/forms/general?subtopic=suspended).
Additional resources
Learn more about our range of enforcement options (https://help.twitter.com/rules-and-policies/enforcement-options) and our approach to policy development and enforcement (https://help.twitter.com/rules-and-policies/enforcement-philosophy).
Legal disclaimer
By using the X trademarks and resources on this site, you agree to follow the X Trademark Guidelines in our Brand Guidelines — as well as our Terms of Service and all other X rules and policies. If you have any questions, contact us at [email protected].
A copy can be found at https://about.x.com/en/who-we-are/brand-toolkit and https://help.twitter.com/en/rules-and-policies/x-trademark-policy
-9
View File
@@ -1,9 +0,0 @@
MIT License
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+6
View File
@@ -0,0 +1,6 @@
AndyScherzinger
przybylski
tobiasKaminsky
LukasReschke
jancborchardt
MorrisJobke
+20 -107
View File
@@ -1,123 +1,36 @@
<!--
~ SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-->
# [Nextcloud](https://nextcloud.com) Android app :iphone:
[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud/android)](https://api.reuse.software/info/github.com/nextcloud/android) [![Build Status](https://drone.nextcloud.com/api/badges/nextcloud/android/status.svg)](https://drone.nextcloud.com/nextcloud/android) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/fb4cf26336774ee3a5c9adfe829c41aa)](https://app.codacy.com/gh/nextcloud/android/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![Releases](https://img.shields.io/github/release/nextcloud/android.svg)](https://github.com/nextcloud/android/releases/latest)
# [Nextcloud](https://nextcloud.com) Android app [![Build Status](https://drone.nextcloud.com/api/badges/nextcloud/android/status.svg)](https://drone.nextcloud.com/nextcloud/android) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/80401cb343854343b4d94acbfb72d3ec)](https://www.codacy.com/app/Nextcloud/android?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=nextcloud/android&amp;utm_campaign=Badge_Grade)
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png"
alt="Download from Google Play"
height="80">](https://play.google.com/store/apps/details?id=com.nextcloud.client)
alt="Download from Google Play"
height="80">](https://play.google.com/store/apps/details?id=com.nextcloud.client)
[<img src="https://f-droid.org/badge/get-it-on.png"
alt="Get it on F-Droid"
height="80">](https://f-droid.org/packages/com.nextcloud.client/)
[<img src="https://github.com/user-attachments/assets/713d71c5-3dec-4ec4-a3f2-8d28d025a9c6"
alt="Get it with Obtainium"
height="80">](https://apps.obtainium.imranr.dev/redirect?r=obtainium://app/%7B%22id%22%3A%22com.nextcloud.client%22%2C%22url%22%3A%22https%3A%2F%2Fgithub.com%2Fnextcloud%2Fandroid%22%2C%22author%22%3A%22nextcloud%22%2C%22name%22%3A%22Nextcloud%22%2C%22preferredApkIndex%22%3A0%2C%22additionalSettings%22%3A%22%7B%5C%22includePrereleases%5C%22%3Afalse%2C%5C%22fallbackToOlderReleases%5C%22%3Atrue%2C%5C%22filterReleaseTitlesByRegEx%5C%22%3A%5C%22%5C%22%2C%5C%22filterReleaseNotesByRegEx%5C%22%3A%5C%22%5C%22%2C%5C%22verifyLatestTag%5C%22%3Afalse%2C%5C%22sortMethodChoice%5C%22%3A%5C%22date%5C%22%2C%5C%22useLatestAssetDateAsReleaseDate%5C%22%3Afalse%2C%5C%22releaseTitleAsVersion%5C%22%3Afalse%2C%5C%22trackOnly%5C%22%3Afalse%2C%5C%22versionExtractionRegEx%5C%22%3A%5C%22%5C%22%2C%5C%22matchGroupToUse%5C%22%3A%5C%22%5C%22%2C%5C%22versionDetection%5C%22%3Atrue%2C%5C%22releaseDateAsVersion%5C%22%3Afalse%2C%5C%22useVersionCodeAsOSVersion%5C%22%3Afalse%2C%5C%22apkFilterRegEx%5C%22%3A%5C%22%5Enextcloud.*%5C%22%2C%5C%22invertAPKFilter%5C%22%3Afalse%2C%5C%22autoApkFilterByArch%5C%22%3Atrue%2C%5C%22appName%5C%22%3A%5C%22%5C%22%2C%5C%22appAuthor%5C%22%3A%5C%22%5C%22%2C%5C%22shizukuPretendToBeGooglePlay%5C%22%3Afalse%2C%5C%22allowInsecure%5C%22%3Afalse%2C%5C%22exemptFromBackgroundUpdates%5C%22%3Afalse%2C%5C%22skipUpdateNotifications%5C%22%3Afalse%2C%5C%22about%5C%22%3A%5C%22Nextcloud%20ist%20eine%20Cloudanwendung%2C%20die%20selbst%20gehostet%20werden%20kann.%5C%22%2C%5C%22refreshBeforeDownload%5C%22%3Atrue%7D%22%2C%22overrideSource%22%3Anull%7D)
alt="Get it on F-Droid"
height="80">](https://f-droid.org/repository/browse/?fdfilter=com.nextcloud)
Signing certificate fingerprint to [verify](https://developer.android.com/studio/command-line/apksigner#usage-verify) the APK using the official Android documentation.
- APK with "gplay" name, found [here](https://github.com/nextcloud/android/releases) or distributed via Google Play Store
- APK with "nextcloud", found [here](https://github.com/nextcloud/android/releases)
- not suitable for Fdroid downloads, as Fdroid is signing it on their own
```
SHA-256: fb009522f65e25802261b67b10a45fd70e610031976f40b28a649e152ded0373
SHA-1: 74aa1702e714941be481e1f7ce4a8f779c19dcea
```
[![irc](https://img.shields.io/badge/IRC-%23nextcloud%20on%20freenode-orange.svg)](https://webchat.freenode.net/?channels=nextcloud)
[![irc](https://img.shields.io/badge/IRC-%23nextcloud--mobile%20on%20freenode-blue.svg)](https://webchat.freenode.net/?channels=nextcloud-mobile)
**The Android client for [Nextcloud](https://nextcloud.com). Easily work with your data on your Nextcloud.**
Please stay tuned while we get all the repositories up.
![App screenshots](/doc/Nextcloud_Android_Screenshots.png "App screenshots")
Meanwhile check out https://nextcloud.com and follow us on https://twitter.com/nextclouders
## Getting help :rescue\_worker\_helmet:
If you want to [contribute](https://nextcloud.com/contribute/), you are very welcome:
Note: The section *Known Problems / FAQs* below may already document your situation.
If you need assistance or want to ask a question about the Android app, you are welcome to [ask for support](https://help.nextcloud.com/c/clients/android) in the [Nextcloud Help Forum](https://help.nextcloud.com). If you have found a probable bug or have an enhancement idea, feel free to [open a new Issue on GitHub](https://github.com/nextcloud/android/issues).
If you're not sure if something is a bug or a configuration matter (with your client, server, proxy, etc.), the [Nextcloud Help Forum](https://help.nextcloud.com) is probably the best place to start so that you can get feedback (you can always return here, after getting feedback there, to report a suspected bug).
Keep in mind, that this repository only manages the Android app. If you find bugs or have problems with the server/backend, you should use the Nextcloud Help Forum to ask for help or report the bug to the [Nextcloud server team](https://github.com/nextcloud/server)!
## How to contribute :rocket:
If you want to [contribute](https://nextcloud.com/contribute/) to the Nextcloud Android client app, there are many ways to help whether or not you are a coder:
* helping out other users on our forum at https://help.nextcloud.com
* providing translations of the app on [Transifex](https://app.transifex.com/nextcloud/nextcloud/android/)
* reporting problems / suggesting enhancements by [opening new issues](https://github.com/nextcloud/android/issues/new/choose)
* implementing proposed bug fixes and enhancement ideas by submitting PRs (associated with a corresponding issue preferably)
* reviewing [pull requests](https://github.com/nextcloud/android/pulls) and providing feedback on code, implementation, and functionality
* Add [automated tests](CONTRIBUTING.md#testing) for existing functionality
* installing and testing [pull request builds](https://github.com/nextcloud/android/pulls), [daily/dev builds](https://github.com/nextcloud/android#development-version-hammer), or [RCs/release candidate builds](https://github.com/nextcloud/android/releases)
* enhancing Admin, User, or Developer [documentation](https://github.com/nextcloud/documentation/)
* hitting hard on the latest stable release by testing fundamental features and evaluating the user experience
* proactively getting familiar with [how to gather debug logs](https://github.com/nextcloud/android#getting-debug-info-via-logcat-mag) from your devices (so that you are prepared to provide a detailed report if you encounter a problem with the app in the future)
## Contribution Guidelines & License :scroll:
[GPLv2](https://github.com/nextcloud/android/blob/master/LICENSE.txt). All contributions to this repository from June, 16 2016 on are considered to be licensed under the AGPLv3 or any later version.
Nextcloud doesn't require a CLA (Contributor License Agreement). The copyright belongs to all the individual contributors. Therefore we recommend that every contributor adds following line to the header of a file, if they changed it substantially:
SPDX-FileCopyrightText: <year> <your name> <your email address>
- on our IRC channels #nextcloud & #nextcloud-mobile irc://#nextcloud-mobile@freenode.net (on freenode) and
- our forum at https://help.nextcloud.com
Please read the [Code of Conduct](https://nextcloud.com/community/code-of-conduct/). This document offers some guidance to ensure Nextcloud participants can cooperate effectively in a positive and inspiring atmosphere, and to explain how together we can strengthen and support each other.
Please review the [guidelines for contributing](https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md) to this repository.
if you want to join the Github organization just let us know and we’ll add you! :)
More information on how to contribute: <https://nextcloud.com/contribute/>
*This is by the community, for the community. Everyone is welcome! :)*
## Start contributing :hammer\_and\_wrench:
## Start contributing
Make sure you read [SETUP.md](https://github.com/nextcloud/android/blob/master/SETUP.md) and [CONTRIBUTING.md](https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md) when you start working on this project. Basically: Fork this repository and contribute back using pull requests to the master branch.
Easy starting points are also reviewing [pull requests](https://github.com/nextcloud/android/pulls) and working on [starter issue](https://github.com/nextcloud/android/issues?q=is%3Aopen+is%3Aissue+label%3A%22starter+issue%22).
Make sure you read [SETUP.md](https://github.com/nextcloud/android/blob/master/SETUP.md) and [CONTRIBUTING.md](https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md) before you start working on this project. But basically: fork this repository and contribute back using pull requests to the master branch.
Easy starting points are also reviewing [pull requests](https://github.com/nextcloud/android/pulls) and working on [starter issues](https://github.com/nextcloud/android/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22).
**Beta version** [beta version](https://github.com/nextcloud/android/raw/beta/apks/latest.apk)
## Logs
**License:** [GPLv2](https://github.com/nextcloud/android/blob/master/LICENSE.txt)
### Getting debug info via logcat :mag:
#### With a linux computer:
* enable USB-Debugging in your smartphones developer settings and connect it via USB
* open command prompt/terminal
* enter `adb logcat --pid=$(adb shell pidof -s 'com.nextcloud.client') > logcatOutput.txt` to save the output to this file
**Note:** You must have [adb](https://developer.android.com/studio/releases/platform-tools.html) installed first!
#### On Windows:
* download and install [Minimal ADB and fastboot](https://forum.xda-developers.com/t/tool-minimal-adb-and-fastboot-2-9-18.2317790/#post-42407269)
* enable USB-Debugging in your smartphones developer settings and connect it via USB
* launch Minimal ADB and fastboot
* enter `adb shell pidof -s 'com.nextcloud.client'` and use the output as `<processID>` in the following command:
* `adb logcat --pid=<processID> > "%USERPROFILE%\Downloads\logcatOutput.txt"` (This will produce a `logcatOutput.txt` file in your downloads)
* if the processID is `18841`, an example command is: `adb logcat --pid=18841 > "%USERPROFILE%\Downloads\logcatOutput.txt"` (You might cancel the process after a while manually: it will not be exited automatically.)
* For a PowerShell terminal, replace `%USERPROFILE%` with `$env:USERPROFILE` in the commands above.
#### On a device (with root) :wrench:
* open terminal app *(can be enabled in developer options)*
* get root access via "su"
* enter `logcat -d --pid $(pidof -s com.nextcloud.client) -f /sdcard/logcatOutput.txt`
or
* use [CatLog](https://play.google.com/store/apps/details?id=com.nolanlawson.logcat) or [aLogcat](https://play.google.com/store/apps/details?id=org.jtb.alogcat)
**Note:** Your device needs to be rooted for this approach!
## Development version :hammer:
* [APK (direct download)](https://download.nextcloud.com/android/dev/latest.apk)
* [F-Droid](https://f-droid.org/en/packages/com.nextcloud.android.beta/)
## Known Problems and FAQs
### Push notifications do not work on F-Droid editions
Push Notifications are not currently supported in the F-Droid builds due to dependencies on Google Play services.
## Remarks :scroll:
Google Play and the Google Play logo are trademarks of Google Inc.
New contributions are added under [AGPLv3](https://www.gnu.org/licenses/agpl.txt).
-48
View File
@@ -1,48 +0,0 @@
# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
version = 1
SPDX-PackageName = "Nextcloud Android"
SPDX-PackageSupplier = "Nextcloud Android team <[email protected]>"
SPDX-PackageDownloadLocation = "https://github.com/nextcloud/android"
[[annotations]]
path = "gradle/wrapper/gradle-wrapper.jar"
precedence = "aggregate"
SPDX-FileCopyrightText = "2015-2021 the original authors"
SPDX-License-Identifier = "Apache-2.0"
[[annotations]]
path = ["user_manual/images/android-1.png", "user_manual/images/android-2.png", "user_manual/images/android-3.png", "user_manual/images/android-4.png", "user_manual/images/android-10.png", "user_manual/images/davdroid-1-button-in-nextcloud-app.png", "user_manual/images/davdroid-2-install-davdroid.png", "user_manual/images/davdroid-3-enter-password.png", "user_manual/images/davdroid-4-specify-owner-email.png"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2016-2024 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"
[[annotations]]
path = ["user_manual/conf.py", "user_manual/android_app.rst", "user_manual/index.rst", "user_manual/conf.py", "user_manual/Makefile"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2015-2016 ownCloud Inc., 2016-2024 Nextcloud GmbH"
SPDX-License-Identifier = "GPL-2.0-only"
[[annotations]]
path = ["user_manual/images/android-11.png", "user_manual/images/android-12.png", "user_manual/images/android-13.png", "user_manual/images/android-14.png", "user_manual/images/android-15.png", "user_manual/images/android-5.png", "user_manual/images/android-6.png", "user_manual/images/android-8.png", "user_manual/images/android-9.png"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2015-2016 ownCloud Inc."
SPDX-License-Identifier = "GPL-2.0-only"
[[annotations]]
path = ["CLAUDE.md", "app/libs/local-maven/**/*.aar", "app/libs/local-maven/**/*.pom"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2026 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"
[[annotations]]
path = ["app/src/**/res/mipmap-**dpi/ic_launcher.png", "app/src/**/ic_launcher-web.png", "src/**/fastlane/metadata/en-US/images/*.png", "src/generic/fastlane/metadata/android/en-US/images/icon.png", "src/versionDev/fastlane/metadata/android/en-US/images/icon.png", "app/src/main/ic_launcher-web-round.png"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2017-2025 Nextcloud GmbH <https://nextcloud.com/trademarks/>"
SPDX-License-Identifier = "LicenseRef-NextcloudTrademarks"
[[annotations]]
path = [".idea/**", "app/schemas/com.nextcloud.client.database.NextcloudDatabase/**.json", "app/screenshots/generic/debug/**.png", "app/src/main/res/values-**/strings.xml", "src/**/fastlane/metadata/**/*.txt", "src/versionDev/fastlane/metadata/android/**/changelogs/**.txt", "app/src/androidTest/assets/**", "app/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker", "app/src/**/google-services.json", "app/src/main/res/drawable-**dpi/checker_16_16.png", "app/src/main/res/raw/encryption_key_words.txt", "app/src/main/resources/ical4j.properties", "app/src/main/res/drawable-**dpi/apk.png", "app/src/main/res/drawable-**dpi/fdroid.png", "app/src/main/res/drawable-**dpi/playstore.png", "app/src/main/res/drawable-**dpi/background.png", "app/src/main/res/drawable-**dpi/background_nc18.png"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2016-2025 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"
-120
View File
@@ -1,120 +0,0 @@
<!--
~ SPDX-FileCopyrightText: 2025 Saeed <saidhany244@example.com>
~ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-->
# تطبيق [Nextcloud](https://nextcloud.com)لأجهزة أندرويد 📱
[![حالة REUSE](https://api.reuse.software/badge/github.com/nextcloud/android)](https://api.reuse.software/info/github.com/nextcloud/android)
[![حالة البناء](https://drone.nextcloud.com/api/badges/nextcloud/android/status.svg)](https://drone.nextcloud.com/nextcloud/android)
[![تقييم Codacy](https://app.codacy.com/project/badge/Grade/fb4cf26336774ee3a5c9adfe829c41aa)](https://app.codacy.com/gh/nextcloud/android/dashboard)
[![الإصدارات](https://img.shields.io/github/release/nextcloud/android.svg)](https://github.com/nextcloud/android/releases/latest)
[<img src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png" alt="تحميل من Google Play" height="80">](https://play.google.com/store/apps/details?id=com.nextcloud.client)
[<img src="https://f-droid.org/badge/get-it-on.png" alt="احصل عليه من F-Droid" height="80">](https://f-droid.org/packages/com.nextcloud.client/)
## التحقق من توقيع التطبيق 🔐
للتأكد من صحة ملف APK:
- ملف APK باسم "gplay" متوفر [هنا](https://github.com/nextcloud/android/releases) أو عبر متجر Google Play
- ملف APK باسم "nextcloud" متوفر [هنا](https://github.com/nextcloud/android/releases)
- غير مناسب لتحميلات F-Droid، لأن F-Droid يقوم بتوقيعه بنفسه
```plaintext
SHA-256: fb009522f65e25802261b67b10a45fd70e610031976f40b28a649e152ded0373
SHA-1: 74aa1702e714941be481e1f7ce4a8f779c19dcea
```
**تطبيق Nextcloud لأندرويد يتيح لك إدارة بياناتك بسهولة على خادم Nextcloud الخاص بك.**
## الحصول على الدعم 🆘
إذا واجهت مشكلة أو لديك سؤال، يمكنك زيارة [منتدى الدعم](https://help.nextcloud.com/c/clients/android).
إذا اكتشفت خطأ أو لديك اقتراح لتحسين التطبيق، يمكنك [فتح قضية جديدة على GitHub](https://github.com/nextcloud/android/issues).
إذا لم تكن متأكدًا ما إذا كانت المشكلة ناتجة عن التطبيق أو الإعدادات أو الخادم، فابدأ بالسؤال في المنتدى، ثم عد إلى GitHub إذا لزم الأمر.
> ملاحظة: هذا المستودع خاص بتطبيق أندرويد فقط. إذا كانت المشكلة في الخادم، يرجى التواصل مع [فريق خادم Nextcloud](https://github.com/nextcloud/server).
## كيف تساهم في المشروع 🚀
هناك العديد من الطرق للمساهمة، سواء كنت مبرمجًا أو لا:
- مساعدة المستخدمين في المنتدى: https://help.nextcloud.com
- ترجمة التطبيق عبر [Transifex](https://app.transifex.com/nextcloud/nextcloud/android/)
- الإبلاغ عن المشاكل أو تقديم اقتراحات عبر [GitHub Issues](https://github.com/nextcloud/android/issues/new/choose)
- تنفيذ إصلاحات أو تحسينات عبر Pull Requests
- مراجعة [طلبات الدمج](https://github.com/nextcloud/android/pulls)
- اختبار النسخ التجريبية أو اليومية أو المرشحة للإصدار
- تحسين [التوثيق](https://github.com/nextcloud/documentation/)
- اختبار الميزات الأساسية في آخر إصدار مستقر
- تعلم كيفية جمع سجلات الأخطاء (logcat) لتقديم تقارير دقيقة
## إرشادات المساهمة والترخيص 📜
- الترخيص: [GPLv2](https://github.com/nextcloud/android/blob/master/LICENSE.txt)
- جميع المساهمات بعد 16 يونيو 2016 تعتبر مرخصة تحت AGPLv3 أو أي إصدار لاحق
- لا حاجة لتوقيع اتفاقية مساهم (CLA)
- يُفضل إضافة السطر التالي في رأس الملف عند إجراء تغييرات كبيرة:
```plaintext
SPDX-FileCopyrightText: <السنة> <اسمك> <بريدك الإلكتروني>
```
يرجى قراءة [مدونة السلوك](https://nextcloud.com/community/code-of-conduct/) لضمان بيئة تعاون إيجابية.
راجع أيضًا [إرشادات المساهمة](https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md).
## ابدأ بالمساهمة 🔧
- اقرأ [SETUP.md](https://github.com/nextcloud/android/blob/master/SETUP.md) و[CONTRIBUTING.md](https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md)
- قم بعمل fork للمستودع وابدأ بإرسال Pull Requests إلى فرع master
- يمكنك البدء بمراجعة [طلبات الدمج](https://github.com/nextcloud/android/pulls) أو العمل على [القضايا المبتدئة](https://github.com/nextcloud/android/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)
## جمع سجلات الأخطاء (logcat) 🔍
### على لينكس:
- فعّل USB-Debugging على هاتفك
- افتح الطرفية وأدخل:
```bash
adb logcat --pid=$(adb shell pidof -s 'com.nextcloud.client') > logcatOutput.txt
```
> تأكد من تثبيت [adb](https://developer.android.com/studio/releases/platform-tools.html)
### على ويندوز:
- حمّل [Minimal ADB and Fastboot](https://forum.xda-developers.com/t/tool-minimal-adb-and-fastboot-2-9-18.2317790/#post-42407269)
- فعّل USB-Debugging
- افتح البرنامج وأدخل:
```bash
adb shell pidof -s 'com.nextcloud.client'
```
- استخدم الناتج كـ `<processID>` في الأمر التالي:
```bash
adb logcat --pid=<processID> > "%USERPROFILE%\Downloads\logcatOutput.txt"
```
### على الجهاز (مع صلاحيات root):
```bash
su
logcat -d --pid $(pidof -s com.nextcloud.client) -f /sdcard/logcatOutput.txt
```
أو استخدم تطبيقات مثل [CatLog](https://play.google.com/store/apps/details?id=com.nolanlawson.logcat) أو [aLogcat](https://play.google.com/store/apps/details?id=org.jtb.alogcat)
## النسخة التطويرية 🛠️
- [تحميل مباشر للـ APK](https://download.nextcloud.com/android/dev/latest.apk)
- [F-Droid النسخة التجريبية](https://f-droid.org/en/packages/com.nextcloud.android.beta/)
## المشاكل المعروفة والأسئلة الشائعة
### الإشعارات الفورية لا تعمل في نسخ F-Droid
بسبب اعتمادها على خدمات Google Play، لا تعمل الإشعارات الفورية في نسخ F-Droid حاليًا.
-71
View File
@@ -1,71 +0,0 @@
<!--
~ SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-->
# Security Policy
# 💡 TLDR: Report issues at [hackerone.com/nextcloud](https://hackerone.com/nextcloud)
# Security Policy
[Security](https://nextcloud.com/security/) is very important to us.
If you believe you have found a security vulnerability that meets our definition of a security
vulnerability, please report is as described below.
## Context
Please review our [threat model and accepted risks](https://nextcloud.com/security/threat-model) to learn what
is currently considered a security vulnerability versus expected behavior. And review what is considered
[in scope or bounty eligible](https://hackerone.com/nextcloud/policy_scopes).
## Reporting a Vulnerability
**⚠️ Please do _not_ report security vulnerabilities through public GitHub issues.**
If you have discovered a security matter with Nextcloud, please read our
[responsible disclosure guidelines](https://nextcloud.com/security/) and contact us at
[hackerone.com/nextcloud](https://hackerone.com/nextcloud).
Your report should include:
- Product version
- A vulnerability description
- Reproduction steps
- Any other details you think are likely to be important
### What to Expect
You should receive an initial acknowledgement within 24 hours in most cases.
A member of the security team will confirm the vulnerability, determine its impact, follow-up with any questions,
and coordinate the fix and publication.
The fix will be applied to all applicable and still supported stable branches, tested, and packaged in the next security release.
The vulnerability will be publicly announced after the release. Finally, your name will be added
to the [hall of fame](https://hackerone.com/nextcloud/thanks) as a thank you from the entire Nextcloud
community.
If the vulnerability involves an app that is not maintained by Nextcloud (i.e. hosted by the
Nextcloud project but community maintained, or hosted elsewhere), the security team will try to coordinate with the
current maintainer and help to get the issue fixed in similar fashion.
### Bug Bounties
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Details
on past bounty ranges can be found at [hackerone.com/nextcloud](https://hackerone.com/nextcloud).
## Existing Security Advisories
Published security advisories for the Nextcloud Server, Clients and Apps can be viewed at
[https://github.com/nextcloud/security-advisories/security/advisories](https://github.com/nextcloud/security-advisories/security/advisories).
## Supported Versions
Only the latest version is supported. We release every second month a feature release (currently 3.x) and inbetween a bug fix release (3.x.y).
## Additional Information
Please visit [https://nextcloud.com/security/](https://nextcloud.com/security/) for further information about Nextcloud security.
Please visit [https://nextcloud.com/security/threat-model](https://nextcloud.com/security/threat-model) for our threat model and accepted risks.
+13 -49
View File
@@ -1,7 +1,3 @@
<!--
~ SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
~ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-->
These instructions will help you to set up your development environment, get the source code of the Nextcloud for Android app and build it by yourself. If you want to help developing the app take a look to the [contribution guidelines][0].
Sections 1) and 2) are common for any environment. The rest of the sections describe how to set up a project in different tool environments. Nowadays we recommend to use Android Studio (section 2), but you can also build the app from the command line (section 3).
@@ -30,16 +26,16 @@ For other software dependencies check the details in the section corresponding t
### 1. Fork and download the nextcloud/android repository.
You will need [git][1] to access to the different versions of the Nextcloud's source code. The source code is hosted on GitHub and may be read by anybody, without a GitHub account. You will need one if you want to contribute to the development of the app with your own code.
You will need [git][1] to access to the different versions of the Nextcloud's source code. The source code is hosted in Github and may be read by anybody without needing a Github account. You will need a Github account if you want to contribute to the development of the app with your own code.
The next steps will assume you have a GitHub account and that you will get the code from your own fork.
Next steps will assume you have a Github account and that you will get the code from your own fork.
* In a web browser, go to https://github.com/nextcloud/android, and click the 'Fork' button near the top right corner.
* Open a terminal and go on with the next steps in it.
* Clone your forked repository: ```git clone https://github.com/YOURGITHUBNAME/android.git```.
* Clone your forked repository: ```git clone --recursive git@github.com:YOURGITHUBNAME/android.git```.
* Move to the project folder with ```cd android```.
* Pull any changes from your remote branch 'master': ```git pull origin master```
* Make official Nextcloud repo known as upstream: ```git remote add upstream https://github.com/nextcloud/android.git```
* Make official Nextcloud repo known as upstream: ```git remote add upstream git@github.com:nextcloud/android.git```
* Make sure to get the latest changes from official android/master branch: ```git pull upstream master```
At this point you can continue using different tools to build the project. Section 2 and 3 describe the existing alternatives.
@@ -49,34 +45,29 @@ At this point you can continue using different tools to build the project. Secti
[Android Studio][5] is currently the official Android IDE. Due to this, we recommend it as the IDE to use in your development environment. Follow the installation instructions [here][6].
We recommend to use the last version available in the stable channel of Android Studio updates. See what update channel is your Android Studio checking for updates in the menu path 'Help'/'Check for Update…'/link 'Updates' in the dialog.
We recommend to use the last version available in the stable channel of Android Studio updates. See what update channel is your Android Studio checking for updates in the menu path 'Help'/'Check for Update...'/link 'Updates' in the dialog.
To set up the project in Android Studio follow the next steps:
* Open Android Studio and select 'Import Project (Eclipse ADT, Gradle, etc)'. Browse through your file system to the folder 'android' where the project is located. Android Studio will then create the '.iml' files it needs. If you ever close the project but the files are still there, you just select 'Open Project…'. The file chooser will show an Android face as the folder icon, which you can select to reopen the project.
* Android Studio will try to build the project directly after importing it. To build it manually, follow the menu path 'Build'/'Make Project', or just click the 'Play' button in the toolbar to build and run it in a mobile device or an emulator. The resulting APK file will be saved in the 'build/outputs/apk/' subdirectory in the project folder.
* Setup Android Studio editor configuration for the project: ```Settings``` → ```Editor``` → ```Code Style``` → ```Scheme: Project``` and ```Enable EditorConfig support```
* Make sure you have called ```git submodule update``` whenever you switched branches
* Open Android Studio and select 'Import Project (Eclipse ADT, Gradle, etc)'. Browse through your file system to the folder 'android' where the project is located. Android Studio will then create the '.iml' files it needs. If you ever close the project but the files are still there, you just select 'Open Project...'. The file chooser will show an Android face as the folder icon, which you can select to reopen the project.
* Android Studio will try to build the project directly after importing it. To build it manually, follow the menu path 'Build'/'Make Project', or just click the 'Play' button in the tool bar to build and run it in a mobile device or an emulator. The resulting APK file will be saved in the 'build/outputs/apk/' subdirectory in the project folder.
### 3. Working in a terminal with Gradle:
[Gradle][7] is the build system used by Android Studio to manage the building operations on Android apps. You do not need to install Gradle in your system, and Google recommends not to do it, but instead trusting on the [Gradle wrapper][8] included in the project.
[Gradle][7] is the build system used by Android Studio to manage the building operations on Android apps. You do not need to install Gradle in your system, and Google recommends not to do it, but instead trusting on the [Graddle wrapper][8] included in the project.
* Open a terminal and go to the 'android' directory that contains the repository.
* Make sure you have called ```git submodule update``` whenever you switched branches
* Run the 'clean' and 'build' tasks using the Gradle wrapper provided
- Windows: ```gradlew.bat clean build```
- Mac OS/Linux: ```./gradlew clean build```
The first time the Gradle wrapper is called, the correct Gradle version will be downloaded automatically. This requires a working Internet connection.
The first time the Gradle wrapper is called, the correct Gradle version will be downloaded automatically. An Internet connection is needed for it works.
The generated APK file is saved in android/build/outputs/apk as android-debug.apk
### 4. App flavours
The app is currently equipped to be built with three flavours:
* generic - the regular build, released as Nextcloud Android app on FDroid
* gplay - with Google Stuff (Push notification), used for Google Play Store
* versionDev - based on master and library master, available as direct download and FDroid
[0]: https://github.com/nextcloud/android/blob/master/CONTRIBUTING.md
[1]: https://git-scm.com/
@@ -87,30 +78,3 @@ The app is currently equipped to be built with three flavours:
[6]: https://developer.android.com/sdk/installing/index.html?pkg=studio
[7]: https://gradle.org/
[8]: https://docs.gradle.org/current/userguide/gradle_wrapper.html
### 5. How-To
#### 1. Direct usage of library project
This is handy if one wants to make changes both to files app and library:
- Add the following to `settings.gradle`:
```groovy
includeBuild('[path to library clone]') {
dependencySubstitution {
substitute module('com.github.nextcloud:android-library') using project(':library')
}
}
```
- Sync project with gradle files
Now every change in library can be directly used in files app.
### 6. Troubleshooting
#### 1. Compilation fails with "java.lang.OutOfMemoryError: Java heap space" error
The default settings for Gradle is to limit the compilation to 1GB of heap.
You can increase that value by :
- adding `org.gradle.jvmargs=-Xmx4G` to `gradle.properties`
- running gradlew(.bat) with this command line : `GRADLE_OPTS="-Xmx4G" ./gradlew clean build"
+67
View File
@@ -0,0 +1,67 @@
###################################################################
Nextcloud Android client
Copyright (C) 2016 Nextcloud Project
Copyright (C) 2012-2016 ownCloud Inc.
Copyright (C) 2012 Bartek Przybylski
###################################################################
###########
# LICENSE #
###########
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License verions 2,
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
The source distribution of this program should include a full copy
of the GNU GPL version 2 license in the LICENSE.txt file located
in its root directory. If not, see <http://www.gnu.org/licenses/>.
########################
# THIRD PARTY LICENSES #
########################
Both the source and binary distributions of this software contain
some third party software. All the third party software included
or linked is redistributed under the terms and conditions of their
original licenses. These licenses are compatible the GPL license
that govern this software, for the purposes they are being used.
The third party software included and used by this project is:
* Apache JackRabbit, version 2.2.5.
Copyright (C) 2004-2010 The Apache Software Foundation.
Licensed under Apache License, Version 2.0.
Placed at libs/jackrabbit-webdav-2.2.5-jar-with-dependencies.jar
The jar file must be included in the ownCloud client APK.
Original license document included at libs/LICENSE.txt
See http://jackrabbit.apache.org/
* Transifex client.
Copyright (C) Transifex.
Licensed under GNU General Public License.
Placed at third_party/transifex-client.
Used as a helper tool, not included in the ownCloud client APK.
Original license document included at third_party/transifex-client/LICENSE.
See http://help.transifex.com/features/client/
* TouchImageView, commit 6dbeac4f11936185ba374c73144ac431c23c9aab
Copyright (c) 2012 Michael Ortiz
Licensed under MIT License
JAR file libs/touch-image-view.jar has been generated by ownCloud Inc., including without
modifications com.ortiz.touch.ExtendedViewPager and com.ortiz.touch.TouchImageView classes.
See https://github.com/MikeOrtiz/TouchImageView
* floatingactionbutton 1.10.1.
Copyright (c) 2014 Jerzy Chalupski
Licensed under Apache License, Version 2.0.
placed at libs/com-getbase-floatingactionbutton-1-10-0-exploded-aar has been exploded by ownCloud Inc.
See https://github.com/futuresimple/android-floating-action-button
+32
View File
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
ownCloud Android client application
Copyright (C) 2012-2016 ownCloud Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2,
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<!--
UI Automator requires Android 4.3 (API level 18) or higher.
So this AndroidManifest will be merged with the normal one
(not requiring to change the minSdk) and used for UI Automator tests, and does not affect
the normal release/debug builds.
-->
<manifest
package="${applicationId}.test"
xmlns:tools="http://schemas.android.com/tools">
<uses-sdk tools:overrideLibrary="android.support.test.uiautomator.v18"/>
</manifest>
@@ -0,0 +1,139 @@
/**
* ownCloud Android client application
*
* Copyright (C) 2015 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package com.owncloud.android.authentication;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.RemoteException;
import android.support.test.InstrumentationRegistry;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import android.support.test.uiautomator.UiDevice;
import android.test.suitebuilder.annotation.LargeTest;
import static org.junit.Assert.assertTrue;
import com.owncloud.android.R;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.lang.reflect.Field;
import android.app.Activity;
import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.action.ViewActions.click;
import static android.support.test.espresso.action.ViewActions.closeSoftKeyboard;
import static android.support.test.espresso.action.ViewActions.typeText;
import static android.support.test.espresso.matcher.ViewMatchers.isEnabled;
import static android.support.test.espresso.matcher.ViewMatchers.withId;
import static android.support.test.espresso.assertion.ViewAssertions.matches;
import static org.hamcrest.Matchers.not;
@RunWith(AndroidJUnit4.class)
@LargeTest
public class AuthenticatorActivityTest {
public static final String EXTRA_ACTION = "ACTION";
public static final String EXTRA_ACCOUNT = "ACCOUNT";
private static final int WAIT_LOGIN = 5000;
private static final String ERROR_MESSAGE = "Activity not finished";
private static final String RESULT_CODE = "mResultCode";
@Rule
public ActivityTestRule<AuthenticatorActivity> mActivityRule = new ActivityTestRule<AuthenticatorActivity>(
AuthenticatorActivity.class){
@Override
protected Intent getActivityIntent() {
Context targetContext = InstrumentationRegistry.getInstrumentation()
.getTargetContext();
Intent result = new Intent(targetContext, AuthenticatorActivity.class);
result.putExtra(EXTRA_ACTION, AuthenticatorActivity.ACTION_CREATE);
result.putExtra(EXTRA_ACCOUNT, "");
return result;
}
};
@Before
public void init(){
UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
/*Point[] coordinates = new Point[4];
coordinates[0] = new Point(248, 1020);
coordinates[1] = new Point(248, 429);
coordinates[2] = new Point(796, 1020);
coordinates[3] = new Point(796, 429);*/
try {
if (!uiDevice.isScreenOn()) {
uiDevice.wakeUp();
//uiDevice.swipe(coordinates, 10);
}
} catch (RemoteException e) {
e.printStackTrace();
}
}
@Test
public void check_login()
throws InterruptedException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException {
Bundle arguments = InstrumentationRegistry.getArguments();
// Get values passed
String testUser = arguments.getString("TEST_USER");
String testPassword = arguments.getString("TEST_PASSWORD");
String testServerURL = arguments.getString("TEST_SERVER_URL");
// Check that login button is disabled
onView(withId(R.id.buttonOK))
.check(matches(not(isEnabled())));
// Type server url
onView(withId(R.id.hostUrlInput))
.perform(typeText(testServerURL), closeSoftKeyboard());
onView(withId(R.id.account_username)).perform(click());
// Type user
onView(withId(R.id.account_username))
.perform(typeText(testUser), closeSoftKeyboard());
// Type user pass
onView(withId(R.id.account_password))
.perform(typeText(testPassword), closeSoftKeyboard());
onView(withId(R.id.buttonOK)).perform(click());
// Check that the Activity ends after clicking
Thread.sleep(WAIT_LOGIN);
Field f = Activity.class.getDeclaredField(RESULT_CODE);
f.setAccessible(true);
int mResultCode = f.getInt(mActivityRule.getActivity());
assertTrue(ERROR_MESSAGE, mResultCode == Activity.RESULT_OK);
}
}
@@ -0,0 +1,135 @@
/**
* ownCloud Android client application
*
* @author David A. Velasco
* Copyright (C) 2016 ownCloud Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package com.owncloud.android.datamodel;
import android.os.Parcel;
import android.support.test.filters.SmallTest;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
/**
* Instrumented unit test, to be run in an Android emulator or device.
*
* At the moment, it's a sample to validate the automatic test environment, in the scope of instrumented unit tests.
*
* Don't take it as an example of completeness.
*
* See http://developer.android.com/intl/es/training/testing/unit-testing/instrumented-unit-tests.html .
*/
@RunWith(AndroidJUnit4.class)
@SmallTest
public class OCFileUnitTest {
private final static String PATH = "/path/to/a/file.txt";
private static final long ID = 12345L;
private static final long PARENT_ID = 567890L;
private static final String STORAGE_PATH = "/mnt/sd/localpath/to/a/file.txt";
private static final String MIME_TYPE = "text/plain";
private static final long FILE_LENGTH = 9876543210L;
private static final long CREATION_TIMESTAMP = 8765432109L;
private static final long MODIFICATION_TIMESTAMP = 7654321098L;
private static final long MODIFICATION_TIMESTAMP_AT_LAST_SYNC_FOR_DATA = 6543210987L;
private static final long LAST_SYNC_DATE_FOR_PROPERTIES = 5432109876L;
private static final long LAST_SYNC_DATE_FOR_DATA = 4321098765L;
private static final String ETAG = "adshfas98ferqw8f9yu2";
private static final String PUBLIC_LINK = "https://fake.url.net/owncloud/987427448712984sdas29";
private static final String PERMISSIONS = "SRKNVD";
private static final String REMOTE_ID = "jadñgiadf8203:9jrp98v2mn3er2089fh";
private static final String ETAG_IN_CONFLICT = "2adshfas98ferqw8f9yu";
private OCFile mFile;
@Before
public void createDefaultOCFile() {
mFile = new OCFile(PATH);
}
@Test
public void writeThenReadAsParcelable() {
// Set up mFile with not-default values
mFile.setFileId(ID);
mFile.setParentId(PARENT_ID);
mFile.setStoragePath(STORAGE_PATH);
mFile.setMimetype(MIME_TYPE);
mFile.setFileLength(FILE_LENGTH);
mFile.setCreationTimestamp(CREATION_TIMESTAMP);
mFile.setModificationTimestamp(MODIFICATION_TIMESTAMP);
mFile.setModificationTimestampAtLastSyncForData(MODIFICATION_TIMESTAMP_AT_LAST_SYNC_FOR_DATA);
mFile.setLastSyncDateForProperties(LAST_SYNC_DATE_FOR_PROPERTIES);
mFile.setLastSyncDateForData(LAST_SYNC_DATE_FOR_DATA);
mFile.setFavorite(true);
mFile.setEtag(ETAG);
mFile.setShareViaLink(true);
mFile.setShareWithSharee(true);
mFile.setPublicLink(PUBLIC_LINK);
mFile.setPermissions(PERMISSIONS);
mFile.setRemoteId(REMOTE_ID);
mFile.setNeedsUpdateThumbnail(true);
mFile.setDownloading(true);
mFile.setEtagInConflict(ETAG_IN_CONFLICT);
// Write the file data in a Parcel
Parcel parcel = Parcel.obtain();
mFile.writeToParcel(parcel, mFile.describeContents());
// Read the data from the parcel
parcel.setDataPosition(0);
OCFile fileReadFromParcel = OCFile.CREATOR.createFromParcel(parcel);
// Verify that the received data are correct
assertThat(fileReadFromParcel.getRemotePath(), is(PATH));
assertThat(fileReadFromParcel.getFileId(), is(ID));
assertThat(fileReadFromParcel.getParentId(), is(PARENT_ID));
assertThat(fileReadFromParcel.getStoragePath(), is(STORAGE_PATH));
assertThat(fileReadFromParcel.getMimetype(), is(MIME_TYPE));
assertThat(fileReadFromParcel.getFileLength(), is(FILE_LENGTH));
assertThat(fileReadFromParcel.getCreationTimestamp(), is(CREATION_TIMESTAMP));
assertThat(fileReadFromParcel.getModificationTimestamp(), is(MODIFICATION_TIMESTAMP));
assertThat(
fileReadFromParcel.getModificationTimestampAtLastSyncForData(),
is(MODIFICATION_TIMESTAMP_AT_LAST_SYNC_FOR_DATA)
);
assertThat(fileReadFromParcel.getLastSyncDateForProperties(), is(LAST_SYNC_DATE_FOR_PROPERTIES));
assertThat(fileReadFromParcel.getLastSyncDateForData(), is(LAST_SYNC_DATE_FOR_DATA));
assertThat(fileReadFromParcel.isFavorite(), is(true));
assertThat(fileReadFromParcel.getEtag(), is(ETAG));
assertThat(fileReadFromParcel.isSharedViaLink(), is(true));
assertThat(fileReadFromParcel.isSharedWithSharee(), is(true));
assertThat(fileReadFromParcel.getPublicLink(), is(PUBLIC_LINK));
assertThat(fileReadFromParcel.getPermissions(), is(PERMISSIONS));
assertThat(fileReadFromParcel.getRemoteId(), is(REMOTE_ID));
assertThat(fileReadFromParcel.needsUpdateThumbnail(), is(true));
assertThat(fileReadFromParcel.isDownloading(), is(true));
assertThat(fileReadFromParcel.getEtagInConflict(), is(ETAG_IN_CONFLICT));
}
}
@@ -0,0 +1,157 @@
/**
* ownCloud Android client application
* <p/>
* Copyright (C) 2015 ownCloud Inc.
* <p/>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
* <p/>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p/>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.owncloud.android.uiautomator;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.support.test.InstrumentationRegistry;
import android.support.test.filters.SdkSuppress;
import android.support.test.runner.AndroidJUnit4;
import android.support.test.uiautomator.By;
import android.support.test.uiautomator.UiDevice;
import android.support.test.uiautomator.UiObject;
import android.support.test.uiautomator.UiObjectNotFoundException;
import android.support.test.uiautomator.UiSelector;
import android.support.test.uiautomator.Until;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.junit.Assert.assertThat;
/**
* UI Automator tests
*/
@RunWith(AndroidJUnit4.class)
@SdkSuppress(minSdkVersion = 18)
public class InitialTest {
private static final String OWNCLOUD_APP_PACKAGE = "com.owncloud.android";
private static final String ANDROID_SETTINGS_PACKAGE = "com.android.settings";
private static final String SETTINGS_DATA_USAGE_OPTION = "Data usage";
private static final int LAUNCH_TIMEOUT = 5000;
private UiDevice mDevice;
@Before
public void initializeDevice() {
// Initialize UiDevice instance
mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
}
@Test
public void checkPreconditions() {
assertThat(mDevice, notNullValue());
}
/**
* Start owncloud app
*/
@Test
public void startAppFromHomeScreen() {
// Perform a short press on the HOME button
mDevice.pressHome();
// Wait for launcher
final String launcherPackage = getLauncherPackageName();
assertThat(launcherPackage, notNullValue());
mDevice.wait(Until.hasObject(By.pkg(launcherPackage).depth(0)), LAUNCH_TIMEOUT);
// Launch the app
Context context = InstrumentationRegistry.getContext();
final Intent intent = context.getPackageManager()
.getLaunchIntentForPackage(OWNCLOUD_APP_PACKAGE);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
context.startActivity(intent);
// Wait for the app to appear
mDevice.wait(Until.hasObject(By.pkg(OWNCLOUD_APP_PACKAGE).depth(0)), LAUNCH_TIMEOUT);
}
/**
* Start Settings app
*
* @throws UiObjectNotFoundException
*/
@Test
public void startSettingsFromHomeScreen() throws UiObjectNotFoundException {
mDevice.pressHome();
// Wait for launcher
final String launcherPackage = getLauncherPackageName();
assertThat(launcherPackage, notNullValue());
mDevice.wait(Until.hasObject(By.pkg(launcherPackage).depth(0)), LAUNCH_TIMEOUT);
// Launch the app
Context context = InstrumentationRegistry.getContext();
final Intent intent = context.getPackageManager()
.getLaunchIntentForPackage(ANDROID_SETTINGS_PACKAGE);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
context.startActivity(intent);
clickByText(SETTINGS_DATA_USAGE_OPTION);
}
/**
* Uses package manager to find the package name of the device launcher. Usually this package
* is "com.android.launcher" but can be different at times. This is a generic solution which
* works on all platforms.`
*/
private String getLauncherPackageName() {
// Create launcher Intent
final Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
// Use PackageManager to get the launcher package name
PackageManager pm = InstrumentationRegistry.getContext().getPackageManager();
ResolveInfo resolveInfo = pm.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY);
return resolveInfo.activityInfo.packageName;
}
/**
* Helper to click on objects that match the content-description text.
*
* @param description the description
* @throws UiObjectNotFoundException
*/
private void clickByDescription(String description) throws UiObjectNotFoundException {
UiDevice device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
UiObject obj = device.findObject(new UiSelector().description(description));
obj.clickAndWaitForNewWindow();
}
/**
* Helper to click on object that match the text value.
*
* @param text the text
* @throws UiObjectNotFoundException
*/
private void clickByText(String text) throws UiObjectNotFoundException {
UiDevice device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
UiObject obj = device.findObject(new UiSelector().text(text));
obj.clickAndWaitForNewWindow();
}
}
+1
View File
@@ -0,0 +1 @@
20161231
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-4
View File
@@ -1,4 +0,0 @@
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
/build
/.cxx
-522
View File
@@ -1,522 +0,0 @@
/*
* Nextcloud - Android Client
*
* SPDX-FileCopyrightText: 2025 Jimly Asshiddiqy <jimly.asshiddiqy@accenture.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
@file:Suppress("UnstableApiUsage", "DEPRECATION")
import com.github.spotbugs.snom.Confidence
import com.github.spotbugs.snom.Effort
import com.github.spotbugs.snom.SpotBugsTask
import com.karumi.shot.ShotExtension
import org.gradle.internal.jvm.Jvm
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import java.io.FileInputStream
import java.util.Properties
val shotTest = System.getenv("SHOT_TEST") == "true"
val ciBuild = System.getenv("CI") == "true"
val perfAnalysis = project.hasProperty("perfAnalysis")
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.spotless)
alias(libs.plugins.ksp)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.kotlin.parcelize)
alias(libs.plugins.spotbugs)
alias(libs.plugins.detekt)
// needed to make renovate run without shot, as shot requires Android SDK
// https://github.com/pedrovgs/Shot/issues/300
if (System.getenv("SHOT_TEST") == "true") alias(libs.plugins.shot)
id("checkstyle")
id("pmd")
}
apply(from = "${rootProject.projectDir}/jacoco.gradle.kts")
println("Gradle uses Java ${Jvm.current()}")
configurations.configureEach {
// via prism4j, already using annotations explicitly
exclude(group = "org.jetbrains", module = "annotations-java5")
resolutionStrategy {
force(libs.objenesis)
eachDependency {
if (requested.group == "org.checkerframework" && requested.name != "checker-compat-qual") {
useVersion(libs.versions.checker.get())
because("https://github.com/google/ExoPlayer/issues/10007")
} else if (requested.group == "org.jacoco") {
useVersion(libs.versions.jacoco.get())
} else if (requested.group == "commons-logging" && requested.name == "commons-logging") {
useTarget(libs.slfj)
}
}
}
}
// semantic versioning for version code
val versionMajor = 34
val versionMinor = 1
val versionPatch = 0
val versionBuild = 50 // 0-50=Alpha / 51-98=RC / 90-99=stable
val ndkEnv = buildMap {
file("${project.rootDir}/ndk.env").readLines().forEach {
val (key, value) = it.split("=")
put(key, value)
}
}
val configProps = Properties().apply {
val file = rootProject.file("gradle.properties")
if (file.exists()) load(FileInputStream(file))
}
val ncTestServerUsername = configProps["NC_TEST_SERVER_USERNAME"]
val ncTestServerPassword = configProps["NC_TEST_SERVER_PASSWORD"]
val ncTestServerBaseUrl = configProps["NC_TEST_SERVER_BASEURL"]
android {
// install this NDK version and CMake to produce smaller APKs. Build will still work if not installed
ndkVersion = "${ndkEnv["NDK_VERSION"]}"
externalNativeBuild {
cmake {
version = "${ndkEnv["CMAKE_VERSION"]}"
path = file("src/main/cpp/CMakeLists.txt")
}
}
namespace = "com.owncloud.android"
testNamespace = "${namespace}.test"
androidResources.generateLocaleConfig = true
defaultConfig {
testInstrumentationRunnerArguments += mapOf(
"TEST_SERVER_URL" to ncTestServerBaseUrl.toString(),
"TEST_SERVER_USERNAME" to ncTestServerUsername.toString(),
"TEST_SERVER_PASSWORD" to ncTestServerPassword.toString(),
"disableAnalytics" to "true"
)
applicationId = "com.nextcloud.client"
minSdk = 28
targetSdk = 36
compileSdk = 36
ndk {
abiFilters += listOf("arm64-v8a", "x86_64")
}
buildConfigField("boolean", "CI", ciBuild.toString())
buildConfigField("boolean", "RUNTIME_PERF_ANALYSIS", perfAnalysis.toString())
// arguments to be passed to functional tests
testInstrumentationRunner = if (shotTest) "com.karumi.shot.ShotTestRunner"
else "com.nextcloud.client.TestRunner"
versionCode = versionMajor * 10000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
versionName = when {
versionBuild > 89 -> "${versionMajor}.${versionMinor}.${versionPatch}"
versionBuild > 50 -> "${versionMajor}.${versionMinor}.${versionPatch} RC" + (versionBuild - 50)
else -> "${versionMajor}.${versionMinor}.${versionPatch} Alpha" + (versionBuild + 1)
}
// adapt structure from Eclipse to Gradle/Android Studio expectations;
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure
flavorDimensions += "default"
buildTypes {
release {
buildConfigField("String", "NC_TEST_SERVER_DATA_STRING", "\"\"")
}
debug {
enableUnitTestCoverage = project.hasProperty("coverage")
enableAndroidTestCoverage = project.hasProperty("coverage")
resConfigs("xxxhdpi")
}
}
productFlavors {
// used for f-droid
register("generic") {
applicationId = "com.nextcloud.client"
dimension = "default"
}
register("gplay") {
applicationId = "com.nextcloud.client"
dimension = "default"
}
register("huawei") {
applicationId = "com.nextcloud.client"
dimension = "default"
}
register("versionDev") {
applicationId = "com.nextcloud.android.beta"
dimension = "default"
versionCode = 20220322
versionName = "20220322"
}
register("qa") {
applicationId = "com.nextcloud.android.qa"
dimension = "default"
versionCode = 1
versionName = "1"
}
}
}
testOptions {
unitTests.isReturnDefaultValues = true
animationsDisabled = true
}
// adapt structure from Eclipse to Gradle/Android Studio expectations;
// see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Configuring-the-Structure
packaging.resources {
excludes.addAll(listOf("META-INF/LICENSE*", "META-INF/versions/9/OSGI-INF/MANIFEST*"))
pickFirsts.add("MANIFEST.MF") // workaround for duplicated manifest on some dependencies
}
buildFeatures {
buildConfig = true
dataBinding = true
viewBinding = true
aidl = true
compose = true
prefab = true
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
lint {
abortOnError = true
warningsAsErrors = true
checkGeneratedSources = true
disable.addAll(
listOf(
"MissingTranslation",
"GradleDependency",
"VectorPath",
"IconMissingDensityFolder",
"IconDensities",
"GoogleAppIndexingWarning",
"MissingDefaultResource",
"InvalidPeriodicWorkRequestInterval",
"StringFormatInvalid",
"MissingQuantity",
"IconXmlAndPng",
"SelectedPhotoAccess",
"UnsafeIntentLaunch",
"OldTargetApi",
"AndroidGradlePluginVersion"
)
)
htmlOutput = layout.buildDirectory.file("reports/lint/lint.html").get().asFile
htmlReport = true
}
sourceSets {
// Adds exported schema location as test app assets.
getByName("androidTest") {
assets.srcDirs(files("$projectDir/schemas"))
}
}
}
ksp.arg("room.schemaLocation", "$projectDir/schemas")
// Configure KSP for test variants
ksp.arg("dagger.moduleName", project.name)
kotlin.compilerOptions.jvmTarget.set(JvmTarget.JVM_21)
spotless.kotlin {
target("**/*.kt")
ktlint()
}
detekt.config.setFrom("detekt.yml")
if (shotTest) configure<ShotExtension> {
showOnlyFailingTestsInReports = ciBuild
// CI environment renders some shadows slightly different from local VMs
// Add a 0.5% tolerance to account for that
tolerance = if (ciBuild) 0.1 else 0.0
}
spotbugs {
ignoreFailures = true // should continue checking
effort = Effort.MAX
reportLevel = Confidence.valueOf("MEDIUM")
}
tasks.register<Checkstyle>("checkstyle") {
configFile = file("${rootProject.projectDir}/checkstyle.xml")
setConfigProperties(
"checkstyleSuppressionsPath" to file("${rootProject.rootDir}/suppressions.xml").absolutePath
)
source("src")
include("**/*.java")
exclude("**/gen/**")
classpath = files()
}
tasks.register<Pmd>("pmd") {
ruleSetFiles = files("${rootProject.rootDir}/ruleset.xml")
ignoreFailures = true // should continue checking
ruleSets = emptyList()
source("src")
include("**/*.java")
exclude("**/gen/**")
reports {
xml.outputLocation.set(layout.buildDirectory.file("reports/pmd/pmd.xml").get().asFile)
html.outputLocation.set(layout.buildDirectory.file("reports/pmd/pmd.html").get().asFile)
}
}
tasks.withType<SpotBugsTask>().configureEach {
val variantNameCap = name.replace("spotbugs", "")
val variantName = variantNameCap.substring(0, 1).lowercase() + variantNameCap.substring(1)
dependsOn("compile${variantNameCap}Sources")
classes = fileTree(
layout.buildDirectory.get().asFile.toString() +
"/intermediates/javac/${variantName}/compile${variantNameCap}JavaWithJavac/classes/"
)
excludeFilter.set(file("${project.rootDir}/scripts/analysis/spotbugs-filter.xml"))
reports.create("xml") {
required.set(true)
}
reports.create("html") {
required.set(true)
outputLocation.set(layout.buildDirectory.file("reports/spotbugs/spotbugs.html"))
setStylesheet("fancy.xsl")
}
}
// Run the compiler as a separate process
tasks.withType<JavaCompile>().configureEach {
options.isFork = true
// Enable Incremental Compilation
options.isIncremental = true
}
tasks.withType<Test>().configureEach {
// Run tests in parallel
maxParallelForks = maxOf(1, Runtime.getRuntime().availableProcessors().div(2))
// increased logging for tests
testLogging.events("passed", "skipped", "failed")
}
tasks.named("check").configure {
dependsOn("checkstyle", "spotbugsGplayDebug", "pmd", "lint", "spotlessKotlinCheck", "detekt")
}
dependencies {
// region Nextcloud library
implementation(libs.android.library) {
exclude(group = "org.ogce", module = "xpp3") // unused in Android and brings wrong Junit version
}
// endregion
// region Splash Screen
implementation(libs.splashscreen)
// endregion
// region Jetpack Compose
implementation(platform(libs.compose.bom))
implementation(libs.material.icons.core)
implementation(libs.compose.ui)
implementation(libs.compose.ui.graphics)
implementation(libs.compose.material3)
implementation(libs.compose.activity)
implementation(libs.compose.ui.tooling.preview)
implementation(libs.foundation)
debugImplementation(libs.compose.ui.tooling)
// endregion
// region Media3
implementation(libs.bundles.media3)
// endregion
// region Room
implementation(libs.room.runtime)
ksp(libs.room.compiler)
androidTestImplementation(libs.room.testing)
// endregion
// region Espresso
androidTestImplementation(libs.bundles.espresso)
// endregion
// region Glide
implementation(libs.glide)
ksp(libs.ksp)
// endregion
// region UI
implementation(libs.bundles.ui)
// endregion
// region Worker
implementation(libs.work.runtime)
implementation(libs.work.runtime.ktx)
// endregion
// region Lifecycle
implementation(libs.lifecycle.viewmodel.ktx)
implementation(libs.lifecycle.service)
implementation(libs.lifecycle.runtime.ktx)
// endregion
// region JUnit
androidTestImplementation(libs.junit)
androidTestImplementation(libs.rules)
androidTestImplementation(libs.runner)
androidTestUtil(libs.orchestrator)
androidTestImplementation(libs.core.ktx)
androidTestImplementation(libs.core.testing)
// endregion
// region other libraries
compileOnly(libs.org.jbundle.util.osgi.wrapped.org.apache.http.client)
implementation(libs.commons.httpclient.commons.httpclient) // remove after entire switch to lib v2
implementation(libs.jackrabbit.webdav) // remove after entire switch to lib v2
implementation(libs.constraintlayout)
implementation(libs.legacy.support.v4)
implementation(libs.material)
implementation(libs.disklrucache)
implementation(libs.juniversalchardet) // need this version for Android <7
compileOnly(libs.annotations)
implementation(libs.commons.io)
implementation(libs.eventbus)
implementation(libs.ez.vcard)
implementation(libs.nnio)
implementation(libs.bcpkix.jdk18on)
implementation(libs.gson)
implementation(libs.sectioned.recyclerview)
implementation(libs.photoview)
implementation(libs.android.gif.drawable)
implementation(libs.qrcodescanner) // "com.github.blikoon:QRCodeScanner:0.1.2"
implementation(libs.flexbox)
implementation(libs.androidsvg)
implementation(libs.annotation)
implementation(libs.emoji.google)
// endregion
// region AppScan, document scanner not available on FDroid (generic) due to OpenCV binaries
// To enable the feature for another variant, add it here.
"gplayImplementation"(project(":appscan"))
"huaweiImplementation"(project(":appscan"))
"qaImplementation"(project(":appscan"))
// endregion
// region SpotBugs
spotbugsPlugins(libs.findsecbugs.plugin)
spotbugsPlugins(libs.fb.contrib)
// endregion
// region Dagger
implementation(libs.dagger)
implementation(libs.dagger.android)
implementation(libs.dagger.android.support)
ksp(libs.dagger.compiler)
ksp(libs.dagger.processor)
kspAndroidTest(libs.dagger.compiler)
// endregion
// region Crypto
implementation(libs.conscrypt.android)
implementation(libs.android.openssl)
// endregion
// region Library
implementation(libs.library)
// endregion
// region Shimmer
implementation(libs.loaderviewlibrary)
// endregion
// region Markdown rendering
implementation(libs.bundles.markdown.rendering)
// endregion
// region Image cropping / rotation
implementation(libs.android.image.cropper)
// endregion
// region Maps
implementation(libs.osmdroid.android)
// endregion
// region iCal4j
implementation(libs.ical4j) {
listOf("org.apache.commons", "commons-logging").forEach { groupName -> exclude(group = groupName) }
}
// endregion
// region LeakCanary
if (perfAnalysis) debugImplementation(libs.leakcanary)
// endregion
// region Local Unit Test
testImplementation(libs.bundles.unit.test)
// endregion
// region Mocking support
androidTestImplementation(libs.bundles.mocking)
// endregion
// region UIAutomator
// UIAutomator - for cross-app UI tests, and to grant screen is turned on in Espresso tests
// androidTestImplementation("androidx.test.uiautomator:uiautomator:2.2.0"
// fix conflict in dependencies; see http://g.co/androidstudio/app-test-app-conflict for details
// androidTestImplementation("com.android.support:support-annotations:${supportLibraryVersion}"
androidTestImplementation(libs.screengrab)
// endregion
// region Kotlin
implementation(libs.kotlin.stdlib)
// endregion
// region Stateless
implementation(libs.stateless4j)
// endregion
// region Google Play dependencies, upon each update first test: new registration, receive push
"gplayImplementation"(libs.bundles.gplay)
// endregion
// region common
implementation(libs.ui)
implementation(libs.common.core)
// endregion
// region Image loading
implementation(libs.coil)
// endregion
// kotlinx.serialization
implementation(libs.kotlinx.serialization.json)
}
-414
View File
@@ -1,414 +0,0 @@
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
build:
maxIssues: 2
weights:
# complexity: 2
# LongParameterList: 1
# style: 1
# comments: 1
processors:
active: true
exclude:
# - 'FunctionCountProcessor'
# - 'PropertyCountProcessor'
# - 'ClassCountProcessor'
# - 'PackageCountProcessor'
# - 'KtFileCountProcessor'
console-reports:
active: true
exclude:
# - 'ProjectStatisticsReport'
# - 'ComplexityReport'
# - 'NotificationReport'
# - 'FindingsReport'
# - 'BuildFailureReport'
comments:
active: true
CommentOverPrivateFunction:
active: false
CommentOverPrivateProperty:
active: false
EndOfSentenceFormat:
active: false
endOfSentenceFormat: ([.?!][ \t\n\r\f<])|([.?!]$)
UndocumentedPublicClass:
active: false
searchInNestedClass: true
searchInInnerClass: true
searchInInnerObject: true
searchInInnerInterface: true
UndocumentedPublicFunction:
active: false
complexity:
active: true
ComplexCondition:
active: true
threshold: 4
ComplexInterface:
active: false
threshold: 10
includeStaticDeclarations: false
ComplexMethod:
active: true
threshold: 10
ignoreSingleWhenExpression: false
ignoreSimpleWhenEntries: false
excludes: ['**/androidTest/**']
LabeledExpression:
active: false
ignoredLabels: []
LargeClass:
active: true
threshold: 600
LongMethod:
active: true
threshold: 60
excludes: ['**/androidTest/**']
LongParameterList:
active: true
functionThreshold: 7
constructorThreshold: 6
ignoreDefaultParameters: false
MethodOverloading:
active: false
threshold: 6
NestedBlockDepth:
active: true
threshold: 4
StringLiteralDuplication:
active: false
threshold: 3
ignoreAnnotation: true
excludeStringsWithLessThan5Characters: true
ignoreStringsRegex: '$^'
TooManyFunctions:
active: true
thresholdInFiles: 15
thresholdInClasses: 15
thresholdInInterfaces: 15
thresholdInObjects: 15
thresholdInEnums: 11
ignoreDeprecated: true
ignorePrivate: false
ignoreOverridden: true
empty-blocks:
active: true
EmptyCatchBlock:
active: true
allowedExceptionNameRegex: "^(_|(ignore|expected).*)"
EmptyClassBlock:
active: true
EmptyDefaultConstructor:
active: true
EmptyDoWhileBlock:
active: true
EmptyElseBlock:
active: true
EmptyFinallyBlock:
active: true
EmptyForBlock:
active: true
EmptyFunctionBlock:
active: true
ignoreOverridden: false
EmptyIfBlock:
active: true
EmptyInitBlock:
active: true
EmptyKtFile:
active: true
EmptySecondaryConstructor:
active: true
EmptyWhenBlock:
active: true
EmptyWhileBlock:
active: true
exceptions:
active: true
ExceptionRaisedInUnexpectedLocation:
active: false
methodNames: [toString,hashCode,equals,finalize]
InstanceOfCheckForException:
active: false
NotImplementedDeclaration:
active: false
PrintStackTrace:
active: false
RethrowCaughtException:
active: false
ReturnFromFinally:
active: false
SwallowedException:
active: false
ignoredExceptionTypes: [InterruptedException,NumberFormatException,ParseException,MalformedURLException]
ThrowingExceptionFromFinally:
active: false
ThrowingExceptionInMain:
active: false
ThrowingExceptionsWithoutMessageOrCause:
active: false
exceptions: [IllegalArgumentException,IllegalStateException,IOException]
ThrowingNewInstanceOfSameException:
active: false
TooGenericExceptionCaught:
active: true
exceptionNames:
- ArrayIndexOutOfBoundsException
- Error
- Exception
- IllegalMonitorStateException
- NullPointerException
- IndexOutOfBoundsException
- RuntimeException
- Throwable
allowedExceptionNameRegex: "^(_|(ignore|expected).*)"
TooGenericExceptionThrown:
active: true
exceptionNames:
- Error
- Exception
- Throwable
- RuntimeException
naming:
active: true
ClassNaming:
active: true
classPattern: '[A-Z$][a-zA-Z0-9$]*'
ConstructorParameterNaming:
active: true
parameterPattern: '[a-z][A-Za-z0-9]*'
privateParameterPattern: '[a-z][A-Za-z0-9]*'
excludeClassPattern: '$^'
EnumNaming:
active: true
enumEntryPattern: '^[A-Z][_a-zA-Z0-9]*'
ForbiddenClassName:
active: false
forbiddenName: []
FunctionMaxLength:
active: false
maximumFunctionNameLength: 30
FunctionMinLength:
active: false
minimumFunctionNameLength: 3
FunctionNaming:
active: true
functionPattern: '^([a-z$A-Z][a-zA-Z$0-9]*)|(`.*`)$'
excludeClassPattern: '$^'
ignoreOverridden: true
excludes:
- "**/*Test.kt"
- "**/*IT.kt"
FunctionParameterNaming:
active: true
parameterPattern: '[a-z][A-Za-z0-9]*'
excludeClassPattern: '$^'
ignoreOverridden: true
MatchingDeclarationName:
active: true
MemberNameEqualsClassName:
active: false
ignoreOverridden: true
ObjectPropertyNaming:
active: true
constantPattern: '[A-Za-z][_A-Za-z0-9]*'
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
privatePropertyPattern: '(_)?[A-Za-z][_A-Za-z0-9]*'
PackageNaming:
active: true
packagePattern: '^[a-z]+(\.[a-z][A-Za-z0-9]*)*$'
TopLevelPropertyNaming:
active: true
constantPattern: '[A-Z][_A-Z0-9]*'
propertyPattern: '[A-Za-z][_A-Za-z0-9]*'
privatePropertyPattern: '(_)?[A-Za-z][A-Za-z0-9]*'
VariableMaxLength:
active: false
maximumVariableNameLength: 64
VariableMinLength:
active: false
minimumVariableNameLength: 1
VariableNaming:
active: true
variablePattern: '[a-z][A-Za-z0-9]*'
privateVariablePattern: '(_)?[a-z][A-Za-z0-9]*'
excludeClassPattern: '$^'
ignoreOverridden: true
performance:
active: true
ArrayPrimitive:
active: false
ForEachOnRange:
active: true
SpreadOperator:
active: true
UnnecessaryTemporaryInstantiation:
active: true
potential-bugs:
active: true
DuplicateCaseInWhenExpression:
active: true
EqualsAlwaysReturnsTrueOrFalse:
active: false
EqualsWithHashCodeExist:
active: true
ExplicitGarbageCollectionCall:
active: true
InvalidRange:
active: false
IteratorHasNextCallsNextMethod:
active: false
IteratorNotThrowingNoSuchElementException:
active: false
LateinitUsage:
active: false
ignoreAnnotated: []
ignoreOnClassesPattern: ""
UnconditionalJumpStatementInLoop:
active: false
UnreachableCode:
active: true
UnsafeCallOnNullableType:
active: false
UnsafeCast:
active: false
UselessPostfixExpression:
active: false
WrongEqualsTypeParameter:
active: false
style:
active: true
CollapsibleIfStatements:
active: false
DataClassContainsFunctions:
active: false
conversionFunctionPrefix: [to]
EqualsNullCall:
active: false
EqualsOnSignatureLine:
active: false
ExplicitItLambdaParameter:
active: false
ExpressionBodySyntax:
active: false
includeLineWrapping: false
ForbiddenComment:
active: true
values: 'TODO:,FIXME:,STOPSHIP:'
ForbiddenImport:
active: false
imports: []
ForbiddenVoid:
active: false
FunctionOnlyReturningConstant:
active: false
ignoreOverridableFunction: true
excludedFunctions: [describeContents]
LoopWithTooManyJumpStatements:
active: false
maxJumpCount: 1
MagicNumber:
active: true
ignoreNumbers: ["-1","0","1","2"]
ignoreHashCodeFunction: true
ignorePropertyDeclaration: false
ignoreConstantDeclaration: true
ignoreCompanionObjectPropertyDeclaration: true
ignoreAnnotation: false
ignoreNamedArgument: true
ignoreEnums: false
excludes:
- "**/*Test.kt"
- "**/*IT.kt"
MandatoryBracesIfStatements:
active: false
MaxLineLength:
active: true
maxLineLength: 120
excludePackageStatements: true
excludeImportStatements: true
excludeCommentStatements: false
MayBeConst:
active: false
ModifierOrder:
active: true
NestedClassesVisibility:
active: false
NewLineAtEndOfFile:
active: true
NoTabs:
active: false
OptionalAbstractKeyword:
active: true
OptionalUnit:
active: false
OptionalWhenBraces:
active: false
PreferToOverPairSyntax:
active: false
ProtectedMemberInFinalClass:
active: false
RedundantVisibilityModifierRule:
active: false
ReturnCount:
active: true
max: 2
excludedFunctions: [equals]
excludeLabeled: false
excludeReturnFromLambda: true
SafeCast:
active: true
SerialVersionUIDInSerializableClass:
active: false
SpacingBetweenPackageAndImports:
active: false
ThrowsCount:
active: true
max: 2
TrailingWhitespace:
active: false
UnderscoresInNumericLiterals:
active: false
acceptableLength: 5
UnnecessaryAbstractClass:
active: false
ignoreAnnotated:
- "dagger.Module"
UnnecessaryApply:
active: false
UnnecessaryInheritance:
active: false
UnnecessaryLet:
active: false
UnnecessaryParentheses:
active: false
UntilInsteadOfRangeTo:
active: false
UnusedImports:
active: false
UnusedPrivateClass:
active: false
UnusedPrivateMember:
active: false
allowedNames: "(_|ignored|expected|serialVersionUID)"
UseDataClass:
active: false
ignoreAnnotated: []
UtilityClassWithPublicConstructor:
active: false
VarCouldBeVal:
active: false
WildcardImport:
active: true
excludeImports: [java.util.*,kotlinx.android.synthetic.*]
-92
View File
@@ -1,92 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Nextcloud - Android Client
~
~ SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
~ SPDX-FileCopyrightText: 2022 Andy Scherzinger <info@andy-scherzinger.de>
~ SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
~ SPDX-FileCopyrightText: 2022 Tobias Kaminsky <tobias@kaminsky.me>
~ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
-->
<lint>
<issue id="UnusedAttribute">
<ignore regexp="importantForAutofill"/>
<ignore regexp="autofillHints"/>
</issue>
<issue id="InvalidPackage">
<ignore path="**/freemarker-2.*.*.jar" />
<ignore path="**/nnio-0.2.jar"/>
<ignore path="**/bcpkix-jdk15on-1.69.jar" />
</issue>
<issue id="UnusedResources">
<ignore regexp="store_short_desc|store_full_desc|store_short_dev_desc|store_full_dev_desc" />
<ignore
regexp="screenshot_01_gridView|screenshot_02_listView|screenshot_03_drawer|screenshot_04_accounts|screenshot_05_autoUpload|screenshot_06_davdroid" />
<ignore path="**/drawable/zdc_*.xml" />
<ignore path="**/drawable/iconclose.xml" />
</issue>
<issue id="ImpliedQuantity">
<ignore path="**/values-**/strings.xml" />
</issue>
<issue id="MissingQuantity">
<ignore path="**/values-**/strings.xml" />
</issue>
<issue id="UnusedQuantity">
<ignore path="**/values-**/strings.xml" />
</issue>
<issue id="PluralsCandidate">
<ignore path="**/values-**/strings.xml" />
</issue>
<issue id="ExtraTranslation">
<ignore path="**/strings.xml"/>
<ignore path="**/values-b+en+001/strings.xml"/>
</issue>
<issue id="UnusedResources">
<ignore path="**/values-**/strings.xml" />
<ignore path="**/values/setup.xml" />
</issue>
<issue id="TypographyEllipsis">
<ignore path="**/values-**/strings.xml" />
</issue>
<issue id="Typos">
<ignore path="**/values-**/strings.xml" />
<ignore path="**/values/setup.xml" />
</issue>
<issue id="TrustAllX509TrustManager">
<ignore path="**/bouncycastle/est/jcajce/*.class" />
<ignore path="**/bcpkix-jdk15to18-1.**.jar" />
<ignore path="**/bcpkix-jdk18on-1.**.jar" />
</issue>
<issue id="RestrictedApi" severity="error">
<ignore path="build" />
</issue>
<issue id="NewApi" severity="error">
<ignore path="build" />
</issue>
<issue id="ObsoleteLintCustomCheck" severity="warning">
<ignore path="**/fragment-1.2.5/**/lint.jar" />
<ignore path="**/work-runtime-2.**/**/lint.jar" />
<ignore path="**/jetified-butterknife-runtime-10.**/**/lint.jar" />
<ignore path="**/jetified-dagger-lint-aar-2.**.**/**/lint.jar" />
<ignore path="**/jetified-annotation-experimental-1.**/**/lint.jar" />
<ignore path="**/jetified-firebase-installations**/**/lint.jar" />
<ignore path="**/appcompat-1.**/**/lint.jar" />
</issue>
<issue id="Aligned16KB">
<ignore path="**/arm64-v8a/libmockkjvmtiagent.so" />
</issue>
</lint>
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
Loaded 100 of 3947 files, more files were not shown because too many files have changed in this diff. Show more