Merge pull request #3022 from dpalou/MOBILE-3833

Mobile 3833
main
Dani Palou 2021-12-13 12:25:16 +01:00 committed by GitHub
commit b652377ca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 6 deletions

View File

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<widget android-versionCode="39600" id="com.moodle.moodlemobile" ios-CFBundleVersion="3.9.6.0" version="3.9.6-dev" versionCode="39600" 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 android-versionCode="40000" id="com.moodle.moodlemobile" ios-CFBundleVersion="4.0.0.0" version="4.0.0-dev" versionCode="40000" 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>

View File

@ -1,8 +1,8 @@
{
"app_id": "com.moodle.moodlemobile",
"appname": "Moodle Mobile",
"versioncode": 3960,
"versionname": "3.9.6-dev",
"versioncode": 4000,
"versionname": "4.0.0-dev",
"cache_update_frequency_usually": 420000,
"cache_update_frequency_often": 1200000,
"cache_update_frequency_sometimes": 3600000,

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "moodlemobile",
"version": "3.9.6-dev",
"version": "4.0.0-dev",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "moodlemobile",
"version": "3.9.6-dev",
"version": "4.0.0-dev",
"license": "Apache-2.0",
"dependencies": {
"@angular/animations": "~10.0.14",

View File

@ -1,6 +1,6 @@
{
"name": "moodlemobile",
"version": "3.9.6-dev",
"version": "4.0.0-dev",
"description": "The official app for Moodle.",
"author": {
"name": "Moodle Pty Ltd.",

View File

@ -0,0 +1,33 @@
// (C) Copyright 2015 Moodle Pty Ltd.
//
// 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.
import { EnvironmentConfig } from '@/types/config';
import { CoreConstants } from '../constants';
type DevelopmentWindow = Window & {
coreConstantsConfig?: EnvironmentConfig;
};
function exportData(window: DevelopmentWindow) {
window.coreConstantsConfig = CoreConstants.CONFIG;
}
export default function(): void {
if (!CoreConstants.CONFIG.versionname.includes('-dev')) {
// Only export data in development.
return;
}
exportData(window);
}