Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
394 commits
Select commit Hold shift + click to select a range
3693121
Merge pull request #1876 from dpalou/MOBILE-2961
jleyva May 2, 2019
80546a0
Merge pull request #1877 from dpalou/MOBILE-2975
jleyva May 2, 2019
e6a29aa
MOBILE-2985 forum: Simplified form when adding discussions and replies
albertgasset Apr 15, 2019
67937fa
Merge pull request #1878 from albertgasset/MOBILE-2985
jleyva May 2, 2019
09ad315
Merge pull request #1879 from albertgasset/MOBILE-2960
jleyva May 2, 2019
c5d344d
MOBILE-3004 ionic: Set status bar background color
crazyserver Apr 30, 2019
8f8457d
Merge pull request #1880 from dpalou/MOBILE-2963
jleyva May 6, 2019
9add3c3
MOBILE-3005 docker: Do not install cordova on docker
crazyserver May 2, 2019
be5cbfd
MOBILE-2964 message: Support delete messages for all users
dpalou May 6, 2019
470dbf2
MOBILE-2964 styles: Improve alert styling
crazyserver May 7, 2019
bf17c16
MOBILE-2988 forum: Add the ability to lock discussions manually
albertgasset Apr 16, 2019
29d7c3b
Merge pull request #1885 from crazyserver/MOBILE-2956
jleyva May 7, 2019
be34610
Merge pull request #1886 from crazyserver/MOBILE-2895
jleyva May 7, 2019
561dd1d
Merge pull request #1887 from albertgasset/MOBILE-2988
jleyva May 7, 2019
aa57a51
MOBILE-2914 icon: Slash parameter
albertgasset Apr 30, 2019
dd1076f
MOBILE-2914 context-menu: Icon slash parameter
albertgasset Apr 30, 2019
ec5ec80
MOBILE-2914 messages: New unstar and add/remove contact icons
albertgasset Apr 30, 2019
5b74fd1
MOBILE-2914 courses: New unstar icon
albertgasset Apr 30, 2019
8cdca2e
MOBILE-2989 forum: Add ability to star and pin discussions
albertgasset Apr 30, 2019
ad6d501
MOBILE-2989 forum: Check whether the set pin state WS is available
albertgasset May 2, 2019
6ae25ef
MOBILE-3008 core: Filter undefined in objectToArrayOfObjects
dpalou May 6, 2019
73b890a
MOBILE-2962 message: Hide mute in self conversations
dpalou May 7, 2019
6250ec4
Merge pull request #1888 from dpalou/MOBILE-2962
jleyva May 7, 2019
5440cdf
Merge pull request #1889 from albertgasset/MOBILE-2914
jleyva May 7, 2019
a440f1c
Merge pull request #1890 from albertgasset/MOBILE-2989
jleyva May 7, 2019
7790807
Merge pull request #1891 from crazyserver/MOBILE-2945
jleyva May 7, 2019
3b094ef
Merge pull request #1892 from crazyserver/MOBILE-3005
jleyva May 7, 2019
d984a8d
Merge pull request #1893 from crazyserver/MOBILE-3004
jleyva May 7, 2019
bb09944
Merge pull request #1894 from dpalou/MOBILE-2964
jleyva May 7, 2019
9b4da3e
Merge pull request #1895 from dpalou/MOBILE-3008
jleyva May 7, 2019
80bb413
MOBILE-2938 notifications: Support appurl field
dpalou Apr 29, 2019
d550f1d
MOBILE-2959 ionic: Add a shade to Android status bar
crazyserver May 3, 2019
38a7dd3
MOBILE-3010 core: Support Bootstrap tooltips
dpalou May 8, 2019
be5f1fe
Merge pull request #1896 from dpalou/MOBILE-2938
jleyva May 8, 2019
1f42ea9
MOBILE-3010 resource: Fix error if no mimetype
dpalou May 8, 2019
2e8aab7
Merge pull request #1897 from crazyserver/MOBILE-2959
jleyva May 8, 2019
a2a291f
MOBILE-3003 feedback: Display range in numeric questions
dpalou May 8, 2019
6cc3d90
Merge pull request #1899 from dpalou/MOBILE-3010
jleyva May 10, 2019
621c01a
Merge pull request #1900 from dpalou/MOBILE-3003
jleyva May 10, 2019
3cbc07e
MOBILE-2900 core: Update Moodle 3.7 version number
albertgasset May 10, 2019
5b70fca
MOBILE-2985 forum: Private reply checkbox displayed by default
albertgasset May 10, 2019
b2d6e8d
Merge pull request #1901 from albertgasset/MOBILE-2900
jleyva May 13, 2019
d3420d9
MOBILE-2939 offline: Improve download confirm and error messages.
May 1, 2019
4eeb3de
Merge pull request #1902 from marxjohnson/MOBILE-2939_integration
jleyva May 13, 2019
19e0cf5
MOBILE-2903 menu: Show menu items depending on device width
crazyserver Mar 6, 2019
809753a
MOBILE-2903 menu: Move menu to side on tablet
crazyserver Mar 7, 2019
12d75f1
MOBILE-2903 menu: Disable responsive menu items is set on site
crazyserver May 2, 2019
42a208c
MOBILE-2981 style: Fix style dropdown arrow on ion-select
crazyserver May 13, 2019
b585c74
MOBILE-3017 calendar: Wrap text on calendar reminder dates
crazyserver May 13, 2019
12ceba7
MOBILE-3019 forum: Display availabilty message
albertgasset May 13, 2019
2d16b37
MOBILE-3019 forum: Disallow posting if cut-off date is reached
albertgasset May 13, 2019
8f0032b
MOBILE-2903 menu: Show 5 items max on phones
crazyserver May 14, 2019
6952beb
Merge pull request #1903 from crazyserver/MOBILE-2981
jleyva May 14, 2019
b172faf
Merge pull request #1904 from crazyserver/MOBILE-2903
jleyva May 14, 2019
dff0482
Merge pull request #1905 from crazyserver/MOBILE-3017
jleyva May 14, 2019
f45d37c
Merge pull request #1906 from albertgasset/MOBILE-3019
jleyva May 14, 2019
f20e34d
MOBILE-2851 user: Fix user not enrolled message
crazyserver May 14, 2019
e413c95
MOBILE-2851 core: Fix promise never finished when retry request
dpalou May 14, 2019
3f9375a
Merge pull request #1907 from crazyserver/MOBILE-2851
jleyva May 14, 2019
9b296d8
MOBILE-2966 quiz: Fix multichoice question broken due to clear option
dpalou May 14, 2019
e63b1ff
Merge pull request #1908 from dpalou/MOBILE-2966
jleyva May 14, 2019
85864a4
MOBILE-2952 quiz: Fix match question vertical align
crazyserver May 14, 2019
1f776cc
MOBILE-3016 calendar: Display calendar icon in notifications
dpalou May 14, 2019
9d0a937
MOBILE-2935 Support site plugins for blocks on dashboard page
sammarshallou Mar 15, 2019
94c8d25
Merge pull request #1909 from sammarshallou/MOBILE-2935
jleyva May 15, 2019
4feb69b
Merge pull request #1910 from crazyserver/MOBILE-2952
jleyva May 15, 2019
7f643d6
Merge pull request #1911 from dpalou/MOBILE-3016
jleyva May 15, 2019
bc4b696
MOBILE-2835 desktop: Remove data when unistall nsis
dpalou Mar 20, 2019
daa34a7
MOBILE-2986 desktop: Add shortcut to open dev tools
dpalou Apr 16, 2019
9181455
MOBILE-2915 desktop: Fix password change opened only once
dpalou Apr 25, 2019
ded6099
MOBILE-2999 package: Fix phonegap-plugin-push version
jleyva May 7, 2019
29b959e
MOBILE-2915 scripts: Package desktop app images
crazyserver May 7, 2019
046fc79
MOBILE-2986 desktop: Adapt shortcut to platform for dev tools
dpalou May 7, 2019
90f9980
MOBILE-2915 desktop: Fix resume in desktop
dpalou May 9, 2019
af28ed2
MOBILE-2992 rating: Helper function to merge rating infos
albertgasset May 7, 2019
b6e15de
MOBILE-2992 forum: Fix can add discussion WS invalidation
albertgasset May 7, 2019
6505565
MOBILE-2992 user: Get and sync preferences
albertgasset May 10, 2019
da2a835
MOBILE-2992 forum: Sort discussions
albertgasset May 7, 2019
d7f0724
MOBILE-2992 forum: Use web strings
albertgasset May 16, 2019
ae12465
MOBILE-2977 core: Fix npm vulnerabilities
dpalou May 16, 2019
518b891
MOBILE-3031 gulp: Add combine scss task
crazyserver May 16, 2019
a833cd6
Merge pull request #1912 from albertgasset/MOBILE-2992
jleyva May 16, 2019
b8859c1
Merge pull request #1913 from dpalou/desktop-rebased
jleyva May 16, 2019
a8e4aee
MOBILE-3034 forum: Delete Empty box add discussion button
crazyserver May 16, 2019
60c0913
MOBILE-3034 course: Style module availability info
crazyserver May 16, 2019
e7bda47
Merge pull request #1914 from crazyserver/MOBILE-3031
jleyva May 16, 2019
1071e92
MOBILE-3033 core: Fix collisions in site plugin stored data
dpalou May 16, 2019
3e9326d
MOBILE-2905 Fix bug with NaN appearing for size
sammarshallou May 16, 2019
6dd8786
Merge pull request #1915 from sammarshallou/MOBILE-2905
jleyva May 16, 2019
a8037b8
MOBILE-3001 core: Improve performance of uniqueArray
dpalou May 15, 2019
0de4da6
Merge pull request #1916 from crazyserver/MOBILE-3034
jleyva May 16, 2019
75b4982
MOBILE-3001 course: Don't prefetch ratings and profiles
dpalou May 15, 2019
71e84cb
Merge pull request #1917 from dpalou/MOBILE-3001
jleyva May 16, 2019
cab4401
MOBILE-3013 core: Support handling root URLs
dpalou May 9, 2019
99f79b9
MOBILE-3013 core: Support new kind of URL schemes
dpalou May 14, 2019
15aac08
MOBILE-3013 core: Support URLs without protocol in new schemes
dpalou May 14, 2019
47ac489
MOBILE-3013 core: Support relative URLs in redirect
dpalou May 14, 2019
b9d8d22
Merge pull request #1918 from dpalou/MOBILE-3013
jleyva May 16, 2019
2829e4e
MOBILE-2935 Dashboard blocks: Fix code review problems
sammarshallou May 16, 2019
bcc7b4b
MOBILE-3001 core: Fix rebase errors
dpalou May 17, 2019
010e80e
Merge pull request #1919 from dpalou/MOBILE-3001
jleyva May 17, 2019
73f8b5a
Merge pull request #1920 from sammarshallou/MOBILE-2935
jleyva May 17, 2019
072d6dd
MOBILE-2969 quiz: Fix review attempt when it shouldn't
dpalou May 17, 2019
8b02d60
MOBILE-3037 ionic: Execute gulp before ionic serve
crazyserver May 17, 2019
84caaae
Merge pull request #1921 from dpalou/MOBILE-3033
jleyva May 20, 2019
717b3bb
Merge pull request #1922 from dpalou/MOBILE-2969
jleyva May 20, 2019
96d2fb7
Merge pull request #1923 from crazyserver/MOBILE-3037
jleyva May 20, 2019
fb6e095
MOBILE-3035 settings: Delete cache data when clearing files
crazyserver May 16, 2019
3bb1d1f
MOBILE-3035 menu: Fix fontawesome main menu icons
crazyserver May 17, 2019
7a466aa
Merge pull request #1924 from crazyserver/MOBILE-3035
jleyva May 20, 2019
c43d0e5
MOBILE-2957 fcm: Log notification open if foreground
dpalou May 2, 2019
822dd05
MOBILE-2957 fcm: Log events in Firebase too
dpalou May 3, 2019
5810946
MOBILE-2957 fcm: Log notification dismissed event in foreground
dpalou May 7, 2019
4a913ce
MOBILE-2957 config: Add variable to enable analytics
dpalou May 20, 2019
7c09d55
Merge pull request #1925 from dpalou/MOBILE-2957
jleyva May 20, 2019
e25306b
MOBILE-3018 forum: Post a copy to all groups
albertgasset May 16, 2019
699813c
MOBILE-3039 core: Fix failed downloads loading forever
dpalou May 21, 2019
0f3c609
MOBILE-3039 core: Fix allPromises error detection
dpalou May 21, 2019
51edb78
MOBILE-3039 core: Clear course status if site data cleared
dpalou May 21, 2019
b6e6a3c
Merge pull request #1926 from dpalou/MOBILE-3039
jleyva May 21, 2019
1c033bf
MOBILE-3039 local-notif: Fix event listening
dpalou May 21, 2019
aabe2bf
MOBILE-3039 config: Change repo URL of cordova-plugin-local-notification
albertgasset May 21, 2019
4e5f772
Merge pull request #1927 from albertgasset/MOBILE-3039
jleyva May 21, 2019
1647cad
MOBILE-3039 message: Fix confirm delete self conv messages
dpalou May 21, 2019
9977495
Merge pull request #1928 from dpalou/MOBILE-3039
jleyva May 21, 2019
a767b3f
MOBILE-3038 competency: Adapt information to new fields show on web
crazyserver May 21, 2019
c76e7f3
MOBILE-3039 message: Fix menu items shown after delete conversation
dpalou May 21, 2019
455b78d
MOBILE-3039 core: Wait a bit before displaying loading modal
dpalou May 22, 2019
27a0a8f
MOBILE-2898 courses: Display done icon when course download finishes
albertgasset May 22, 2019
7d90773
MOBILE-3039 ios: Make status bar not overlay content
dpalou May 22, 2019
cc6b44d
MOBILE-3039 core: Don't hide left tabs when keyboard is opened
dpalou May 22, 2019
923bf99
MOBILE-2856 data: Fix apply offline actions
albertgasset May 22, 2019
70db7f3
MOBILE-2856 data: Remove duplicate string
albertgasset May 22, 2019
a8aad4c
MOBILE-2988 forum: New lock/unlock discussion strings
albertgasset May 22, 2019
c62237e
Merge pull request #1929 from albertgasset/MOBILE-2856
jleyva May 22, 2019
4adc3af
MOBILE-2937 tabs: Fix smooth top tabs scroll on iOS
crazyserver May 23, 2019
e41c38e
Merge pull request #1930 from crazyserver/MOBILE-2937-2
jleyva May 23, 2019
6324e3e
MOBILE-3039 ios: Fix handling URL scheme in iOS
dpalou May 23, 2019
ecc1897
MOBILE-3039 core: Fix avatars in choose site page
dpalou May 23, 2019
e8f7219
MOBILE-2840 scorm: Launch automatically
albertgasset May 23, 2019
a802df6
Merge pull request #1931 from dpalou/MOBILE-3039
jleyva May 23, 2019
c4271c0
MOBILE-3039 core: Fix race condition with open page in main menu
dpalou May 23, 2019
f721776
MOBILE-2938 core: Fix race condition with open page in main menu
dpalou May 23, 2019
2ad3fef
Merge pull request #1932 from albertgasset/MOBILE-2985
jleyva May 23, 2019
8d59445
Merge pull request #1933 from dpalou/MOBILE-2938
jleyva May 23, 2019
5f1570f
Merge pull request #1934 from albertgasset/MOBILE-2988
jleyva May 23, 2019
4d6e019
Merge pull request #1935 from albertgasset/MOBILE-3018
jleyva May 23, 2019
a4dce22
MOBILE-2856 database: Let user leave edit page if error
dpalou May 23, 2019
04b45ff
Merge pull request #1936 from dpalou/MOBILE-2856
jleyva May 23, 2019
b13e707
Merge pull request #1937 from crazyserver/MOBILE-3038
jleyva May 23, 2019
b2d613c
Merge pull request #1938 from albertgasset/MOBILE-2898
jleyva May 23, 2019
235297c
MOBILE-3036 core: Define different cache expiration times
dpalou May 17, 2019
75ce463
MOBILE-3036 core: Apply update frequency to all WS calls
dpalou May 20, 2019
5356418
MOBILE-3036 forum: Fix used WS not invalidated in discussion
dpalou May 20, 2019
1554133
MOBILE-3045 ionic: Update branding
crazyserver May 23, 2019
f10edf0
Merge pull request #1939 from dpalou/MOBILE-3036
jleyva May 24, 2019
ba9564d
Merge pull request #1940 from dpalou/MOBILE-3039
jleyva May 24, 2019
b3845dc
MOBILE-3039 styles: Fix some row styles
crazyserver May 24, 2019
0407d19
Merge pull request #1941 from crazyserver/MOBILE-3045
jleyva May 24, 2019
f06e25d
MOBILE-3049 sitehome: Fix activities not displayed
albertgasset May 24, 2019
11ba0be
MOBILE-3050 lesson: Fix lesson in offline in 3.7
dpalou May 24, 2019
3a43264
Merge pull request #1942 from albertgasset/MOBILE-3049
jleyva May 24, 2019
6d09de4
MOBILE-3039 calendar: Fix WS error when viewing event
dpalou May 24, 2019
9105d18
Merge pull request #1943 from dpalou/MOBILE-3039
jleyva May 24, 2019
0508917
MOBILE-3039 forum: Display prefetch icon
albertgasset May 24, 2019
afa6399
MOBILE-3039 core: Fix white-space in checkbox in modals
dpalou May 24, 2019
6091886
Merge pull request #1944 from dpalou/MOBILE-3039
jleyva May 24, 2019
33086ae
Merge pull request #1945 from crazyserver/MOBILE-3039
jleyva May 24, 2019
fecd7d7
Merge pull request #1946 from albertgasset/MOBILE-3039
jleyva May 24, 2019
a512d65
Merge pull request #1947 from dpalou/MOBILE-3050
jleyva May 27, 2019
f24ab4e
MOBILE-3018 forum: Fix error after creating discussion
albertgasset May 27, 2019
26f27f7
Merge pull request #1948 from albertgasset/MOBILE-2840
jleyva May 27, 2019
bcebdcc
MOBILE-3039 core: Lock plugin and libraries versions
dpalou May 27, 2019
24fb3d9
MOBILE-3039 core: Don't force WS queue
dpalou May 27, 2019
7f32b27
MOBILE-2873 scorm: Fix scorm sync before prefetch
crazyserver May 27, 2019
4f1cd6a
MOBILE-2873 course: Invalidate data after sync before prefetch
dpalou May 27, 2019
6c05a4e
Merge pull request #1949 from dpalou/MOBILE-3039
jleyva May 27, 2019
a6f7fee
Merge pull request #1950 from albertgasset/MOBILE-3018
jleyva May 27, 2019
838646f
MOBILE-3039 core: Fix load logged out site with SSO
dpalou May 28, 2019
eb01a00
MOBILE-3005 docker: Remove ionic info from the script
crazyserver May 28, 2019
a7e391b
MOBILE-3039 forum: Load subject when avalaible
crazyserver May 28, 2019
3e948fa
MOBILE-3039 tabs: Fix hide tabbar on tablet
crazyserver May 28, 2019
aa15177
MOBILE-2840 scorm: Fix blank page on refresh
albertgasset May 28, 2019
4a758cb
MOBILE-3039 course: Fix prefetch avatars in forum and glossary
dpalou May 28, 2019
0165cea
Merge pull request #1951 from albertgasset/MOBILE-2840
jleyva May 28, 2019
5d81dae
Merge pull request #1952 from dpalou/MOBILE-3039
jleyva May 28, 2019
1af3515
Merge pull request #1953 from crazyserver/MOBILE-3039
jleyva May 28, 2019
f70a95b
MOBILE-3039 grades: Fix repeated calls when prefetching grades
dpalou May 28, 2019
4a0858e
MOBILE-3039 core: Fix package-lock file
dpalou May 28, 2019
39efa76
Merge pull request #1954 from dpalou/MOBILE-3039
jleyva May 28, 2019
57b3ed2
MOBILE-2992 user: Fix sync preferences
albertgasset May 28, 2019
bbbe24f
Merge pull request #1955 from albertgasset/MOBILE-2992
jleyva May 28, 2019
7ef6f49
MOBILE-2925: Cache the npm cache directory
andrewnicols May 28, 2019
548bf24
MOBILE-3039 lang: Reword some strings
crazyserver May 28, 2019
af53d44
Merge pull request #1956 from crazyserver/MOBILE-3039
jleyva May 28, 2019
76f470e
MOBILE-3039 lang: Fix ratings lang index
crazyserver May 29, 2019
1a01d7d
MOBILE-3039 book: Fix check automatic completion
dpalou May 29, 2019
a68b9a6
MOBILE-3039 core: Fix URL scheme launched when it shouldn't
dpalou May 29, 2019
d0beca0
MOBILE-3039 core: Fix reconnect screen shown again when it shouldn't
dpalou May 29, 2019
a92f4b8
Merge pull request #1957 from crazyserver/MOBILE-3039
jleyva May 29, 2019
c3ddf6e
Merge pull request #1958 from dpalou/MOBILE-3039
jleyva May 29, 2019
d530d2b
MOBILE-3039 ios: Make avatars circled in shared files choose
dpalou May 29, 2019
136869c
MOBILE-3039 push: Fix sync errors caused by pushnotifications
dpalou May 29, 2019
3eb0c81
MOBILE-3039 core: Fix getStoredConfig error in synchronize
dpalou May 30, 2019
1ab8154
MOBILE-3039 push: Fix appurl from push notifs in iOS
dpalou May 30, 2019
b2c63f4
MOBILE-3039 core: Allow forcing offline mode from javascript console
dpalou May 30, 2019
f4cd6f3
MOBILE-3039 core: Fix old custom URL links in iOS
dpalou May 30, 2019
8d8e8a1
Merge pull request #1959 from dpalou/MOBILE-3039
jleyva May 30, 2019
09b95db
MOBILE-3039 data: Fix required textarea fields offline
albertgasset May 30, 2019
b7088b6
MOBILE-3039 data: Don't display error when comments are disabled
albertgasset May 30, 2019
5143897
MOBILE-3039 workshop: Hide save button if user can't edit assessment
albertgasset May 30, 2019
4481d81
MOBILE-3039 workshop: Fix template errors
albertgasset May 30, 2019
e4e91bd
MOBILE-3039 workshop: Fix viewing assessment offline
albertgasset May 30, 2019
57ddf26
MOBILE-3039 styles: Improve word wrapping and scroll styles
crazyserver May 30, 2019
8d450d3
MOBILE-3039 push: Fix crash when push received in foreground in iOS
dpalou May 30, 2019
2ad861b
MOBILE-3039 core: Close popover when download finishes in activity
dpalou May 31, 2019
06a4c35
MOBILE-3039 core: Fix redirect treated again when it shouldn't
dpalou May 31, 2019
c5ad7b0
Merge pull request #1960 from dpalou/MOBILE-3039
jleyva May 31, 2019
b662157
Merge pull request #1961 from crazyserver/MOBILE-3039
jleyva May 31, 2019
240f425
Merge pull request #1962 from albertgasset/MOBILE-3039
jleyva May 31, 2019
509222e
MOBILE-3039 rte: Fix height calculation in Android
albertgasset May 31, 2019
ea22e65
MOBILE-3039 course: Hide download when offline disabled
crazyserver Jun 3, 2019
55fe415
MOBILE-3039 styles: Fix text wrapping in block buttons
albertgasset Jun 3, 2019
35656ab
MOBILE-3039 lesson: Wrap text in buttons
albertgasset Jun 3, 2019
cb6a987
MOBILE-3039 ios: Fix 'More' option in file uploader
dpalou Jun 3, 2019
eb2b6ca
Merge pull request #1963 from dpalou/MOBILE-3039
jleyva Jun 4, 2019
67449aa
Merge pull request #1964 from crazyserver/MOBILE-3039
jleyva Jun 4, 2019
f719d8e
Merge pull request #1965 from albertgasset/MOBILE-3039
jleyva Jun 4, 2019
7e64913
MOBILE-3039 forum: Fix attachments not downloaded on prefetch
dpalou Jun 4, 2019
5f0eda1
MOBILE-3039 glossary: Fix edit offline entry
dpalou Jun 4, 2019
bec71ce
MOBILE-3039 login: Fix credentials css
crazyserver Jun 5, 2019
a3d88eb
MOBILE-3039 forum: Fix attachments not downloaded on prefetch
dpalou Jun 4, 2019
3a56fa0
MOBILE-3039 glossary: Fix edit offline entry
dpalou Jun 4, 2019
22a57cc
MOBILE-3039 push: Force FCM version 17.5+
crazyserver Jun 5, 2019
c5f086e
MOBILE-3039 messages: Copy plain text on messages
crazyserver Jun 5, 2019
3de64ed
Merge pull request #1966 from dpalou/MOBILE-3039
jleyva Jun 5, 2019
ea5daca
Merge pull request #1967 from crazyserver/MOBILE-3039
jleyva Jun 5, 2019
ec93e1c
MOBILE-3039 scripts: Do not override English local translations
crazyserver Jun 5, 2019
56ec20b
Merge pull request #1968 from crazyserver/MOBILE-3039
jleyva Jun 5, 2019
ed35e57
MOBILE-3039 core: Don't allow disable sound in iOS and Android 8+
dpalou Jun 6, 2019
037babb
MOBILE-3039 workshop: Fix assessment with scales
albertgasset Jun 6, 2019
05f0b0d
MOBILE-3039 workshop: Fix template error
albertgasset Jun 6, 2019
9aff138
MOBILE-3039 workshop: Fix self-assessment
albertgasset Jun 6, 2019
90d3dbb
Merge pull request #1970 from albertgasset/MOBILE-3039
jleyva Jun 6, 2019
dd6d7e8
Merge pull request #1969 from dpalou/MOBILE-3039
jleyva Jun 6, 2019
caa4d9e
MOBILE-3039 messages: Fix mark as read not called in 3.6+
dpalou Jun 7, 2019
e6f982e
Merge pull request #1971 from dpalou/MOBILE-3039
jleyva Jun 7, 2019
79d3f02
MOBILE-3039 workshop: Prefetch files from submissions to assess
dpalou Jun 7, 2019
0e23b06
Merge pull request #1972 from dpalou/MOBILE-3039
jleyva Jun 7, 2019
e9d0d73
MOBILE-3039 release: Set version name for release [ci skip]
jleyva Jun 7, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ dist: xenial
group: edge

language: node_js
node_js: stable
node_js: 11

before_cache:
- rm -rf $HOME/.cache/electron-builder/wine

cache:
directories:
- node_modules
- $HOME/.npm
- $HOME/.cache/electron
- $HOME/.cache/electron-builder

Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ EXPOSE 35729
# Port 53703 is the Chrome dev logger port.
EXPOSE 53703

# MoodleMobile uses Cordova, Ionic, and Gulp.
RUN npm install -g cordova ionic gulp && rm -rf /root/.npm
# MoodleMobile uses Ionic and Gulp.
RUN npm i -g ionic gulp && rm -rf /root/.npm

WORKDIR /app

COPY . /app

# The setup script will handle npm installation, cordova setup, and gulp setup.
RUN npm run setup && rm -rf /root/.npm
# Install npm libraries and run gulp to initialize the project.
RUN npm install && gulp && rm -rf /root/.npm

# Provide a Healthcheck command for easier use in CI.
HEALTHCHECK --interval=10s --timeout=3s --start-period=30s CMD curl -f http://localhost:8100 || exit 1
Expand Down
21 changes: 14 additions & 7 deletions config.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.moodle.moodlemobile" version="3.6.1" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="com.moodle.moodlemobile" version="3.7.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Moodle</name>
<description>Moodle official app</description>
<author email="mobile@moodle.com" href="http://moodle.com">Moodle Mobile team</author>
Expand Down Expand Up @@ -37,6 +37,7 @@
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="LoadUrlTimeoutValue" value="60000" />
<preference name="CustomURLSchemePluginClearsAndroidIntent" value="true" />
<feature name="StatusBar">
<param name="ios-package" onload="true" value="CDVStatusBar" />
</feature>
Expand Down Expand Up @@ -112,14 +113,14 @@
<icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
<splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
</platform>
<plugin name="com-darryncampbell-cordova-plugin-intent" spec="1.1.5" />
<plugin name="cordova-android-support-gradle-release" spec="2.0.1">
<plugin name="com-darryncampbell-cordova-plugin-intent" spec="1.1.7" />
<plugin name="cordova-android-support-gradle-release" spec="3.0.0">
<variable name="ANDROID_SUPPORT_VERSION" value="27.1.0" />
</plugin>
<plugin name="cordova-clipboard" spec="1.2.1" />
<plugin name="cordova-plugin-badge" spec="0.8.8" />
<plugin name="cordova-plugin-camera" spec="4.0.3" />
<plugin name="cordova-plugin-customurlscheme" spec="4.3.0">
<plugin name="cordova-plugin-customurlscheme" spec="4.4.0">
<variable name="URL_SCHEME" value="moodlemobile" />
</plugin>
<plugin name="cordova-plugin-device" spec="2.0.2" />
Expand All @@ -129,7 +130,7 @@
<plugin name="cordova-plugin-globalization" spec="1.11.0" />
<plugin name="cordova-plugin-inappbrowser" spec="3.0.0" />
<plugin name="cordova-plugin-ionic-keyboard" spec="2.1.3" />
<plugin name="cordova-plugin-local-notification" spec="0.9.0-beta.3" />
<plugin name="cordova-plugin-local-notification" spec="https://github.com/moodlemobile/cordova-plugin-local-notification.git#moodle" />
<plugin name="cordova-plugin-media-capture" spec="3.0.2" />
<plugin name="cordova-plugin-network-information" spec="2.0.1" />
<plugin name="cordova-plugin-screen-orientation" spec="3.0.1" />
Expand All @@ -139,13 +140,19 @@
<plugin name="cordova-plugin-zip" spec="3.1.0" />
<plugin name="cordova-sqlite-storage" spec="2.6.0" />
<plugin name="nl.kingsquare.cordova.background-audio" spec="1.0.1" />
<plugin name="phonegap-plugin-push" spec="https://github.com/moodlemobile/phonegap-plugin-push.git#moodle-v2">
<plugin name="phonegap-plugin-push" spec="https://github.com/moodlemobile/phonegap-plugin-push.git#moodle-v3">
<variable name="ANDROID_SUPPORT_V13_VERSION" value="27.+" />
<variable name="FCM_VERSION" value="17.0.+" />
<variable name="FCM_VERSION" value="17.5.+" />
</plugin>
<edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application/activity[@android:name='MainActivity']">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|screenLayout|smallestScreenSize" android:debuggable="true" />
</edit-config>
<config-file parent="/manifest/application" target="AndroidManifest.xml">
<meta-data android:name="firebase_analytics_collection_deactivated" android:value="true" />
</config-file>
<config-file parent="FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED" target="*-Info.plist">
<string>YES</string>
</config-file>
<engine name="android" spec="7.1.2" />
<engine name="ios" spec="4.5.5" />
</widget>
2 changes: 1 addition & 1 deletion desktop/assets/windows/AppXManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Identity Name="3312ADB7.MoodleDesktop"
ProcessorArchitecture="x64"
Publisher="CN=33CDCDF6-1EB5-4827-9897-ED25C91A32F6"
Version="3.6.1.0" />
Version="3.7.0.0" />
<Properties>
<DisplayName>Moodle Desktop</DisplayName>
<PublisherDisplayName>Moodle Pty Ltd.</PublisherDisplayName>
Expand Down
15 changes: 10 additions & 5 deletions desktop/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const url = require('url');
const fs = require('fs');
const os = require('os');
const userAgent = 'MoodleMobile';
const isMac = os.platform().indexOf('darwin') != -1;

// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
Expand Down Expand Up @@ -68,14 +69,22 @@ function createWindow() {

// Append some text to the user agent.
mainWindow.webContents.setUserAgent(mainWindow.webContents.getUserAgent() + ' ' + userAgent);

// Add shortcut to open dev tools: Cmd + Option + I in MacOS, Ctrl + Shift + I in Windows/Linux.
mainWindow.webContents.on('before-input-event', function(e, input) {
if (input.type == 'keyDown' && !input.isAutoRepeat && input.code == 'KeyI' &&
((isMac && input.alt && input.meta) || (!isMac && input.shift && input.control))) {
mainWindow.webContents.toggleDevTools();
}
}, true)
}

// Make sure that only a single instance of the app is running.
// For some reason, gotTheLock is always false in signed Mac apps so we should ingore it.
// See https://github.com/electron/electron/issues/15958
var gotTheLock = app.requestSingleInstanceLock();

if (!gotTheLock && os.platform().indexOf('darwin') == -1) {
if (!gotTheLock && !isMac) {
// It's not the main instance of the app, kill it.
app.exit();
return;
Expand Down Expand Up @@ -221,22 +230,18 @@ function setAppMenu() {
submenu: [
{
label: 'Cut',
accelerator: 'CmdOrCtrl+X',
role: 'cut'
},
{
label: 'Copy',
accelerator: 'CmdOrCtrl+C',
role: 'copy'
},
{
label: 'Paste',
accelerator: 'CmdOrCtrl+V',
role: 'paste'
},
{
label: 'Select All',
accelerator: 'CmdOrCtrl+A',
role: 'selectall'
}
]
Expand Down
132 changes: 130 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ var gulp = require('gulp'),
gutil = require('gulp-util'),
flatten = require('gulp-flatten'),
npmPath = require('path'),
concat = require('gulp-concat'),
bufferFrom = require('buffer-from')
File = gutil.File,
exec = require('child_process').exec,
license = '' +
Expand Down Expand Up @@ -113,7 +115,7 @@ function treatMergedData(data) {
mergedOrdered[k] = merged[k];
});

return new Buffer(JSON.stringify(mergedOrdered, null, 4));
return bufferFrom(JSON.stringify(mergedOrdered, null, 4));
}

/**
Expand Down Expand Up @@ -257,7 +259,7 @@ gulp.task('config', function(done) {

contents += '}\n';

file.contents = new Buffer(contents);
file.contents = bufferFrom(contents);
this.emit('data', file);
}))
.pipe(rename('configconstants.ts'))
Expand Down Expand Up @@ -296,3 +298,129 @@ gulp.task('copy-component-templates', function(done) {
.on('end', done);
});

/**
* Finds the file and returns its content.
*
* @param {string} capture Import file path.
* @param {string} baseDir Directory where the file was found.
* @param {string} paths Alternative paths where to find the imports.
* @param {Array} parsedFiles Yet parsed files to reduce size of the result.
* @return {string} Partially combined scss.
*/
function getReplace(capture, baseDir, paths, parsedFiles) {
var parse = path.parse(path.resolve(baseDir, capture + '.scss'));
var file = parse.dir + '/' + parse.name;


if (!fs.existsSync(file + '.scss')) {
// File not found, might be a partial file.
file = parse.dir + '/_' + parse.name;
}

// If file still not found, try to find the file in the alternative paths.
var x = 0;
while (!fs.existsSync(file + '.scss') && paths.length > x) {
parse = path.parse(path.resolve(paths[x], capture + '.scss'));
file = parse.dir + '/' + parse.name;

x++;
}

file = file + '.scss';

if (!fs.existsSync(file)) {
// File not found. Leave the import there.
console.log('File "' + capture + '" not found');
return '@import "' + capture + '";';
}

if (parsedFiles.indexOf(file) >= 0) {
console.log('File "' + capture + '" already parsed');
// File was already parsed, leave the import commented.
return '// @import "' + capture + '";';
}

parsedFiles.push(file);
var text = fs.readFileSync(file);

// Recursive call.
return scssCombine(text, parse.dir, paths, parsedFiles);
}

/**
* Combine scss files with its imports
*
* @param {string} content Scss string to read.
* @param {string} baseDir Directory where the file was found.
* @param {string} paths Alternative paths where to find the imports.
* @param {Array} parsedFiles Yet parsed files to reduce size of the result.
* @return {string} Scss string with the replaces done.
*/
function scssCombine(content, baseDir, paths, parsedFiles) {

// Content is a Buffer, convert to string.
if (typeof content != "string") {
content = content.toString();
}

// Search of single imports.
var regex = /@import[ ]*['"](.*)['"][ ]*;/g;

if (regex.test(content)) {
return content.replace(regex, function(m, capture) {
if (capture == "bmma") {
return m;
}

return getReplace(capture, baseDir, paths, parsedFiles);
});
}

// Search of multiple imports.
regex = /@import(?:[ \n]+['"](.*)['"][,]?[ \n]*)+;/gm;
if (regex.test(content)) {
return content.replace(regex, function(m, capture) {
var text = "";

// Divide the import into multiple files.
regex = /['"]([^'"]*)['"]/g;
var captures = m.match(regex);
for (var x in captures) {
text += getReplace(captures[x].replace(/['"]+/g, ''), baseDir, paths, parsedFiles) + "\n";
}

return text;
});
}

return content;
}

gulp.task('combine-scss', function(done) {
var paths = [
'node_modules/ionic-angular/themes/',
'node_modules/font-awesome/scss/',
'node_modules/ionicons/dist/scss/'
];

var parsedFiles = [];

gulp.src([
'./src/theme/variables.scss',
'./node_modules/ionic-angular/themes/ionic.globals.*.scss',
'./node_modules/ionic-angular/themes/ionic.components.scss',
'./src/**/*.scss']) // define a source files
.pipe(through(function(file, encoding, callback) {
if (file.isNull()) {
return;
}

parsedFiles.push(file);
file.contents = bufferFrom(scssCombine(file.contents, path.dirname(file.path), paths, parsedFiles));

this.emit('data', file);
})) // combine them based on @import and save it to stream
.pipe(concat('combined.scss')) // concat the stream output in single file
.pipe(gulp.dest('.')) // save file to destination.
.on('end', done);
});
Loading