Commit Graph

157 Commits (3a1677f653d51487738f78ef02c0d14717c992ce)

Author SHA1 Message Date
Dani Palou 3f40127661 MOBILE-2272 quiz: Support viewing attachments and inline files 2020-11-06 11:54:02 +01:00
Dani Palou 5452ce6cff MOBILE-3571 core: Split calls with too many parameters 2020-10-16 14:30:39 +02:00
Dani Palou 02da06a0fe MOBILE-3338 course: Always get stored data and adapt strings 2020-09-22 14:54:55 +02:00
Noel De Martin 2c477ac93a MOBILE-3489 location: Use diagnostic plugin to enable location 2020-09-21 09:10:04 +02:00
Juan Leyva c3bbcd2702
Merge pull request #2503 from dpalou/MOBILE-3449
Mobile 3449
2020-09-09 13:21:44 +02:00
Dani Palou bb88252822 MOBILE-3188 core: Rename getModuleTotalSize to getModuleStoredSize 2020-09-02 10:21:34 +02:00
Dani Palou 838e611dab MOBILE-3188 core: Use usual format in new name of wscache table 2020-09-02 10:21:34 +02:00
sam marshall 069c402ba5 MOBILE-3188 Settings: Consistently show total size estimate for site
Changes the two settings pages that show the size of a site (from the
main menu, these are 'App settings / Space usage' and 'Preferences')
so that they:

a) do not show the number of cache entries (not very informative for
   end users)
b) show an estimate for 'space usage' that includes the total size
   of data in ws_cache

The space usage estimate is not perfect (it doesn't include the
per-row overhead in the ws_cache table, or other cached data that
can be deleted such as calendar events or user data) but it will
probably be good enough, and I don't think the 'number of entries'
things was helpful to anyone.
2020-09-02 10:21:34 +02:00
sam marshall eced391288 MOBILE-3188 Download interface: Show and delete total downloaded data
When showing downloaded sizes in the context menu and in the 'Manage
storage' screen, show the total size including downloaded files plus
cached web service data.

When deleting the downloaded data in either location, delete both
kinds of data.
2020-09-02 10:21:34 +02:00
sam marshall d0c93f6416 MOBILE-3188 Web services: Record component that owns WS cache item
This commit adds optional component and componentId fields to the
preSets variable, which are recorded in the wscache table.

These are then used by (a) core site plugins where a module cmid
is available, and (b) the forum (as an example core implementation)
so that module site plugins and forum provide the new data.

(Note that this is not going to be very useful where we retrieve
data for multiple activities at once, which happens for activities
like Page. Still, it is optional.)
2020-09-02 10:21:34 +02:00
Dani Palou d2ae7505e1 MOBILE-3449 assign: Add synchronization to more pages 2020-08-31 11:12:35 +02:00
Dani Palou d2db79ebea MOBILE-3449 assign: Convert some functions to async/await 2020-08-31 11:05:13 +02:00
Dani Palou e08439a91f MOBILE-3477 core: Reduce concurrent calls to local-notifications plugin 2020-07-28 08:11:49 +02:00
Dani Palou 5978f25495 MOBILE-3412 core: Fix auto-login for H5P activity 2020-06-11 07:44:41 +02:00
Dani Palou 92247d04e1 MOBILE-3384 login: Accept null in local_mobile check response 2020-04-28 10:28:10 +02:00
Dani Palou 8b9635e675 MOBILE-3101 core: Install and use cordova-plugin-advanced-http 2020-04-21 11:47:05 +02:00
Dani Palou 3a3d45db92 MOBILE-3101 core: Create singletons of all core providers 2020-04-21 11:47:05 +02:00
Juan Leyva 4b21c45d73
Merge pull request #2255 from NoelDeMartin/MOBILE-3286
Mobile 3286
2020-01-29 12:50:30 +01:00
Noel De Martin a476a773f1 MOBILE-3286 login: Improve guessing site domains 2020-01-23 14:48:27 +01:00
Dani Palou f5a28ad584 MOBILE-2853 login: Hide password in reconnect if OAuth 2020-01-23 10:02:27 +01:00
Dani Palou 80c2aef0d0 MOBILE-2853 core: Let app DB tables define a scheme to handle updates 2020-01-23 09:59:08 +01:00
Noel De Martin 2e69497c13 MOBILE-3286 utils: Refactor CoreUrl and expose to plugins 2020-01-21 10:43:49 +01:00
Noel De Martin 28404f8b25 MOBILE-3286 login: Parse url domain if site wasn't found 2020-01-16 15:45:32 +01:00
Juan Leyva be8a3a2b66
Merge pull request #2206 from dpalou/MOBILE-3213
MOBILE-3213 core: Don't use tokenpluginfile for customcert
2019-12-11 15:40:05 +01:00
Dani Palou 4c09231e14 MOBILE-3213 core: Don't use tokenpluginfile for customcert 2019-12-11 15:24:41 +01:00
Juan Leyva 40fac1b6a3
Merge pull request #2203 from dpalou/MOBILE-3213
Mobile 3213
2019-12-11 10:53:49 +01:00
Dani Palou 8d30c0be97 MOBILE-3213 core: Run script that removes types from JSDoc 2019-12-11 08:21:20 +01:00
Pau Ferrer Ocaña 0824045e9a MOBILE-3213 lang: Fix minimum version type 2019-12-10 15:11:20 +01:00
Pau Ferrer Ocaña 6e5f8319e4 MOBILE-3213 lang: Use a variable to determine minimum version 2019-12-10 12:27:15 +01:00
Dani Palou e0849668e3 MOBILE-2235 h5p: Support and use isEnabled function in file delegate 2019-12-09 15:37:00 +01:00
Pau Ferrer Ocaña 6219947374 MOBILE-2267 forum: Add open in browser link to posts 2019-11-22 12:09:06 +01:00
Dani Palou 961c873d80 MOBILE-3164 files: Use tokenpluginfile if possible 2019-11-08 13:48:37 +01:00
Dani Palou 7471f54f9c MOBILE-3163 core: Check site URL when treating pluginfile URLs 2019-10-17 17:27:55 +02:00
Dani Palou 08c8487646 MOBILE-2491 filter: Add memory caches to speed up filter 2019-10-08 12:40:01 +02:00
Dani Palou 26a3b4a9de MOBILE-2491 filter: Create filter delegate 2019-10-03 11:28:29 +02:00
Pau Ferrer Ocaña a809f624fe MOBILE-3175 other: Change Copyright author 2019-10-02 09:08:21 +02:00
Albert Gasset a7c2d22cb8 MOBILE-3147 doc: Remove jsdoc types from all typescript files 2019-09-12 11:15:56 +02:00
Dani Palou add7792d24 MOBILE-3127 core: Allow defining a different timeout in wifi/3g 2019-08-22 13:20:09 +02:00
Dani Palou 78d512f92e MOBILE-3068 course: Fix not enrolled error when prefetch course 2019-08-21 16:23:42 +02:00
Dani Palou 4ee4692cd6 MOBILE-3106 login: Check redirect if get site info fails 2019-08-21 11:16:14 +02:00
Juan Leyva 123f74ca0a
Merge pull request #2023 from dpalou/MOBILE-3052
MOBILE-3052 glossary: Don't prefetch get_by_id
2019-07-31 12:57:45 +02:00
Dani Palou ecd918a0d7 MOBILE-3052 glossary: Don't prefetch get_by_id 2019-07-22 13:05:36 +02:00
Dani Palou a983d1c14b MOBILE-3106 core: Use GET as fallback in get public config 2019-07-19 11:45:12 +02:00
Dani Palou d0beca075a MOBILE-3039 core: Fix reconnect screen shown again when it shouldn't 2019-05-29 15:24:43 +02:00
Dani Palou 24fb3d999c MOBILE-3039 core: Don't force WS queue 2019-05-27 16:36:52 +02:00
Dani Palou 235297ca28 MOBILE-3036 core: Define different cache expiration times 2019-05-24 08:26:57 +02:00
Juan Leyva 717b3bbf44
Merge pull request #1922 from dpalou/MOBILE-2969
MOBILE-2969 quiz: Fix review attempt when it shouldn't
2019-05-20 11:58:59 +02:00
Juan Leyva 84caaaeaa9
Merge pull request #1921 from dpalou/MOBILE-3033
MOBILE-3033 core: Fix collisions in site plugin stored data
2019-05-20 11:47:31 +02:00
Dani Palou 072d6dde3e MOBILE-2969 quiz: Fix review attempt when it shouldn't 2019-05-17 15:59:19 +02:00
Dani Palou cab44018a6 MOBILE-3013 core: Support handling root URLs 2019-05-16 18:01:52 +02:00