Skip to content

Commit e972bf1

Browse files
authored
Merge pull request #1147 from moodlehq/integration
Integration
2 parents 185b364 + d9475c9 commit e972bf1

File tree

176 files changed

+1895
-357
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+1895
-357
lines changed

config.xml

Lines changed: 85 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,91 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" id="com.moodle.moodlemobile" version="3.3.1">
3-
<name>Moodle Mobile</name>
4-
<description>
2+
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" id="com.moodle.moodlemobile" version="3.3.2">
3+
<name>Moodle Mobile</name>
4+
<description>
55
Moodle Mobile official app
66
</description>
7-
<author href="http://moodle.com" email="[email protected]">
7+
<author href="http://moodle.com" email="[email protected]">
88
Moodle Mobile team
99
</author>
10-
<content src="index.html"/>
11-
<access origin="*"/>
12-
<access origin="tel:*" launch-external="yes"/>
13-
<access origin="mailto:*" launch-external="yes"/>
14-
<access origin="geo:*" launch-external="yes"/>
15-
<allow-navigation href="cdvfile:*"/>
16-
<allow-navigation href="content:*"/>
17-
<allow-navigation href="data:*"/>
18-
<allow-navigation href="*"/>
19-
<allow-intent href="*"/>
20-
<preference name="orientation" value="default"/>
21-
<preference name="target-device" value="universal"/>
22-
<preference name="fullscreen" value="false"/>
23-
<preference name="webviewbounce" value="false"/>
24-
<preference name="AppendUserAgent" value="MoodleMobile"/>
25-
<preference name="android-minSdkVersion" value="14"/>
26-
<preference name="android-targetSdkVersion" value="19"/>
27-
<preference name="UIWebViewBounce" value="false"/>
28-
<preference name="DisallowOverscroll" value="true"/>
29-
<preference name="BackupWebStorage" value="none"/>
30-
<preference name="KeyboardDisplayRequiresUserAction" value="false"/>
31-
<preference name="AndroidPersistentFileLocation" value="Compatibility"/>
32-
<preference name="iosPersistentFileLocation" value="Compatibility"/>
33-
<preference name="SplashScreen" value="screen"/>
34-
<preference name="SplashScreenDelay" value="3000"/>
35-
<feature name="StatusBar">
36-
<param name="ios-package" value="CDVStatusBar" onload="true"/>
37-
</feature>
38-
<platform name="android">
39-
<splash src="resources/android/splash/drawable-land-ldpi-screen.png" qualifier="land-ldpi"/>
40-
<splash src="resources/android/splash/drawable-land-mdpi-screen.png" qualifier="land-mdpi"/>
41-
<splash src="resources/android/splash/drawable-land-hdpi-screen.png" qualifier="land-hdpi"/>
42-
<splash src="resources/android/splash/drawable-land-xhdpi-screen.png" qualifier="land-xhdpi"/>
43-
<splash src="resources/android/splash/drawable-land-xxhdpi-screen.png" qualifier="land-xxhdpi"/>
44-
<splash src="resources/android/splash/drawable-land-xxxhdpi-screen.png" qualifier="land-xxxhdpi"/>
45-
<splash src="resources/android/splash/drawable-port-ldpi-screen.png" qualifier="port-ldpi"/>
46-
<splash src="resources/android/splash/drawable-port-mdpi-screen.png" qualifier="port-mdpi"/>
47-
<splash src="resources/android/splash/drawable-port-hdpi-screen.png" qualifier="port-hdpi"/>
48-
<splash src="resources/android/splash/drawable-port-xhdpi-screen.png" qualifier="port-xhdpi"/>
49-
<splash src="resources/android/splash/drawable-port-xxhdpi-screen.png" qualifier="port-xxhdpi"/>
50-
<splash src="resources/android/splash/drawable-port-xxxhdpi-screen.png" qualifier="port-xxxhdpi"/>
51-
<icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/>
52-
<icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/>
53-
<icon src="resources/android/icon/drawable-hdpi-icon.png" density="hdpi"/>
54-
<icon src="resources/android/icon/drawable-xhdpi-icon.png" density="xhdpi"/>
55-
<icon src="resources/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi"/>
56-
<icon src="resources/android/icon/drawable-xxxhdpi-icon.png" density="xxxhdpi"/>
57-
</platform>
58-
<platform name="ios">
59-
<splash src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" height="1136"/>
60-
<splash src="resources/ios/splash/Default-667h.png" width="750" height="1334"/>
61-
<splash src="resources/ios/splash/Default-736h.png" width="1242" height="2208"/>
62-
<splash src="resources/ios/splash/Default-Landscape-736h.png" width="2208" height="1242"/>
63-
<splash src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" height="1536"/>
64-
<splash src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" height="768"/>
65-
<splash src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" height="2048"/>
66-
<splash src="resources/ios/splash/Default-Portrait~ipad.png" width="768" height="1024"/>
67-
<splash src="resources/ios/splash/Default@2x~iphone.png" width="640" height="960"/>
68-
<splash src="resources/ios/splash/Default~iphone.png" width="320" height="480"/>
69-
<icon src="resources/ios/icon/icon.png" width="57" height="57"/>
70-
<icon src="resources/ios/icon/[email protected]" width="114" height="114"/>
71-
<icon src="resources/ios/icon/icon-40.png" width="40" height="40"/>
72-
<icon src="resources/ios/icon/[email protected]" width="80" height="80"/>
73-
<icon src="resources/ios/icon/[email protected]" width="120" height="120"/>
74-
<icon src="resources/ios/icon/icon-50.png" width="50" height="50"/>
75-
<icon src="resources/ios/icon/[email protected]" width="100" height="100"/>
76-
<icon src="resources/ios/icon/icon-60.png" width="60" height="60"/>
77-
<icon src="resources/ios/icon/[email protected]" width="120" height="120"/>
78-
<icon src="resources/ios/icon/[email protected]" width="180" height="180"/>
79-
<icon src="resources/ios/icon/icon-72.png" width="72" height="72"/>
80-
<icon src="resources/ios/icon/[email protected]" width="144" height="144"/>
81-
<icon src="resources/ios/icon/icon-76.png" width="76" height="76"/>
82-
<icon src="resources/ios/icon/[email protected]" width="152" height="152"/>
83-
<icon src="resources/ios/icon/[email protected]" width="167" height="167"/>
84-
<icon src="resources/ios/icon/icon-small.png" width="29" height="29"/>
85-
<icon src="resources/ios/icon/[email protected]" width="58" height="58"/>
86-
<icon src="resources/ios/icon/[email protected]" width="87" height="87"/>
87-
</platform>
88-
<icon src="resources/ios/icon/[email protected]"/>
10+
<content src="index.html"/>
11+
<access origin="*"/>
12+
<access origin="tel:*" launch-external="yes"/>
13+
<access origin="mailto:*" launch-external="yes"/>
14+
<access origin="geo:*" launch-external="yes"/>
15+
<allow-navigation href="cdvfile:*"/>
16+
<allow-navigation href="content:*"/>
17+
<allow-navigation href="data:*"/>
18+
<allow-navigation href="*"/>
19+
<allow-intent href="*"/>
20+
<preference name="orientation" value="default"/>
21+
<preference name="target-device" value="universal"/>
22+
<preference name="fullscreen" value="false"/>
23+
<preference name="webviewbounce" value="false"/>
24+
<preference name="AppendUserAgent" value="MoodleMobile"/>
25+
<preference name="android-minSdkVersion" value="14"/>
26+
<preference name="android-targetSdkVersion" value="19"/>
27+
<preference name="UIWebViewBounce" value="false"/>
28+
<preference name="DisallowOverscroll" value="true"/>
29+
<preference name="BackupWebStorage" value="none"/>
30+
<preference name="KeyboardDisplayRequiresUserAction" value="false"/>
31+
<preference name="AndroidPersistentFileLocation" value="Compatibility"/>
32+
<preference name="iosPersistentFileLocation" value="Compatibility"/>
33+
<preference name="SplashScreen" value="screen"/>
34+
<preference name="SplashScreenDelay" value="3000"/>
35+
<feature name="StatusBar">
36+
<param name="ios-package" value="CDVStatusBar" onload="true"/>
37+
</feature>
38+
<platform name="android">
39+
<splash src="resources/android/splash/drawable-land-ldpi-screen.png" qualifier="land-ldpi"/>
40+
<splash src="resources/android/splash/drawable-land-mdpi-screen.png" qualifier="land-mdpi"/>
41+
<splash src="resources/android/splash/drawable-land-hdpi-screen.png" qualifier="land-hdpi"/>
42+
<splash src="resources/android/splash/drawable-land-xhdpi-screen.png" qualifier="land-xhdpi"/>
43+
<splash src="resources/android/splash/drawable-land-xxhdpi-screen.png" qualifier="land-xxhdpi"/>
44+
<splash src="resources/android/splash/drawable-land-xxxhdpi-screen.png" qualifier="land-xxxhdpi"/>
45+
<splash src="resources/android/splash/drawable-port-ldpi-screen.png" qualifier="port-ldpi"/>
46+
<splash src="resources/android/splash/drawable-port-mdpi-screen.png" qualifier="port-mdpi"/>
47+
<splash src="resources/android/splash/drawable-port-hdpi-screen.png" qualifier="port-hdpi"/>
48+
<splash src="resources/android/splash/drawable-port-xhdpi-screen.png" qualifier="port-xhdpi"/>
49+
<splash src="resources/android/splash/drawable-port-xxhdpi-screen.png" qualifier="port-xxhdpi"/>
50+
<splash src="resources/android/splash/drawable-port-xxxhdpi-screen.png" qualifier="port-xxxhdpi"/>
51+
<icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/>
52+
<icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/>
53+
<icon src="resources/android/icon/drawable-hdpi-icon.png" density="hdpi"/>
54+
<icon src="resources/android/icon/drawable-xhdpi-icon.png" density="xhdpi"/>
55+
<icon src="resources/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi"/>
56+
<icon src="resources/android/icon/drawable-xxxhdpi-icon.png" density="xxxhdpi"/>
57+
</platform>
58+
<platform name="ios">
59+
<icon src="resources/ios/icon/icon.png" width="57" height="57"/>
60+
<icon src="resources/ios/icon/[email protected]" width="114" height="114"/>
61+
<icon src="resources/ios/icon/icon-40.png" width="40" height="40"/>
62+
<icon src="resources/ios/icon/[email protected]" width="80" height="80"/>
63+
<icon src="resources/ios/icon/[email protected]" width="120" height="120"/>
64+
<icon src="resources/ios/icon/icon-50.png" width="50" height="50"/>
65+
<icon src="resources/ios/icon/[email protected]" width="100" height="100"/>
66+
<icon src="resources/ios/icon/icon-60.png" width="60" height="60"/>
67+
<icon src="resources/ios/icon/[email protected]" width="120" height="120"/>
68+
<icon src="resources/ios/icon/[email protected]" width="180" height="180"/>
69+
<icon src="resources/ios/icon/icon-72.png" width="72" height="72"/>
70+
<icon src="resources/ios/icon/[email protected]" width="144" height="144"/>
71+
<icon src="resources/ios/icon/icon-76.png" width="76" height="76"/>
72+
<icon src="resources/ios/icon/[email protected]" width="152" height="152"/>
73+
<icon src="resources/ios/icon/[email protected]" width="167" height="167"/>
74+
<icon src="resources/ios/icon/icon-small.png" width="29" height="29"/>
75+
<icon src="resources/ios/icon/[email protected]" width="58" height="58"/>
76+
<icon src="resources/ios/icon/[email protected]" width="87" height="87"/>
77+
<splash src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" height="1136"/>
78+
<splash src="resources/ios/splash/Default-667h.png" width="750" height="1334"/>
79+
<splash src="resources/ios/splash/Default-736h.png" width="1242" height="2208"/>
80+
<splash src="resources/ios/splash/Default-Landscape-736h.png" width="2208" height="1242"/>
81+
<splash src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" height="1536"/>
82+
<splash src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" height="2048"/>
83+
<splash src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" height="768"/>
84+
<splash src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" height="2048"/>
85+
<splash src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" height="2732"/>
86+
<splash src="resources/ios/splash/Default-Portrait~ipad.png" width="768" height="1024"/>
87+
<splash src="resources/ios/splash/Default@2x~iphone.png" width="640" height="960"/>
88+
<splash src="resources/ios/splash/Default~iphone.png" width="320" height="480"/>
89+
</platform>
90+
<icon src="resources/ios/icon/[email protected]"/>
8991
</widget>

gulpfile.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ function treatMergedData(data) {
125125

126126
addProperties(merged, data[filepath], 'mm.core.country-');
127127

128+
} else if (filepath.indexOf('core/assets/mimetypes') === 0) {
129+
130+
addProperties(merged, data[filepath], 'mm.core.mimetype-');
131+
128132
}
129133
}
130134

@@ -352,6 +356,7 @@ var paths = {
352356
'./www/core/components/**/lang/',
353357
'./www/addons/**/lang/',
354358
'./www/core/assets/countries/',
359+
'./www/core/assets/mimetypes/',
355360
'!./www/**/' + remoteAddonPackageFolder + '/*.json',
356361
'!./www/**/' + remoteAddonPackageFolder + '/**/*.json',
357362
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "moodlemobile",
3-
"version": "3.3.1",
3+
"version": "3.3.2",
44
"description": "The official app for Moodle.",
55
"author": {
66
"name": "Moodle Pty Ltd.",

resources/ios/icon/icon-40.png

0 Bytes
0 Bytes
0 Bytes

resources/ios/icon/icon-50.png

0 Bytes
0 Bytes

resources/ios/icon/icon-60.png

0 Bytes
0 Bytes

0 commit comments

Comments
 (0)