From 13e384484b6270ae2eac3e7375ba44aed7d21e3c Mon Sep 17 00:00:00 2001 From: Max Sokolski Date: Tue, 11 Jun 2024 10:19:50 +0300 Subject: [PATCH] feat: apply a new configuration template file (#22) Source: https://github.com/openedx/openedx-app-android/blob/main/default_config/prod/config.yaml --- .../20240610_132027_cmltawt0_fix_config.md | 1 + .../templates/android/build/config/tutor.yaml | 87 ++++++++++++++++--- 2 files changed, 77 insertions(+), 11 deletions(-) create mode 100644 changelog.d/20240610_132027_cmltawt0_fix_config.md diff --git a/changelog.d/20240610_132027_cmltawt0_fix_config.md b/changelog.d/20240610_132027_cmltawt0_fix_config.md new file mode 100644 index 0000000..8ab9ad9 --- /dev/null +++ b/changelog.d/20240610_132027_cmltawt0_fix_config.md @@ -0,0 +1 @@ +- [Feature] Update the tutor.yaml configuration to align with the new app’s default settings. See the default configuration here: [default_config/prod/config.yaml](https://github.com/openedx/openedx-app-android/blob/main/default_config/prod/config.yaml) (by @cmltawt0). diff --git a/tutorandroid/templates/android/build/config/tutor.yaml b/tutorandroid/templates/android/build/config/tutor.yaml index d5ecc8d..c284cba 100644 --- a/tutorandroid/templates/android/build/config/tutor.yaml +++ b/tutorandroid/templates/android/build/config/tutor.yaml @@ -1,18 +1,83 @@ # See docs: https://openedx.atlassian.net/wiki/spaces/LEARNER/pages/48792067/App+Configuration+Flags API_HOST_URL: "{{ "https" if ENABLE_HTTPS else "http" }}://{{ LMS_HOST }}" +APPLICATION_ID: 'org.openedx.app' ENVIRONMENT_DISPLAY_NAME: "tutor" -PLATFORM_NAME: "{{ PLATFORM_NAME }}" -PLATFORM_DESTINATION_NAME: "{{ LMS_HOST }}" +URI_SCHEME: '' FEEDBACK_EMAIL_ADDRESS: "{{ CONTACT_EMAIL }}" +FAQ_URL: '' OAUTH_CLIENT_ID: "android" -COURSE_VIDEOS_ENABLED: true -CERTIFICATES_ENABLED: true -DISCUSSIONS_ENABLED: true +# Keep empty to hide setting +AGREEMENT_URLS: + PRIVACY_POLICY_URL: '' + COOKIE_POLICY_URL: '' + DATA_SELL_CONSENT_URL: '' + TOS_URL: '' + EULA_URL: '' + SUPPORTED_LANGUAGES: [ ] #en is default language + DISCOVERY: - COURSE: - TYPE: native -DOWNLOAD_TO_SD_CARD_ENABLED: true -NEW_LOGISTRATION_ENABLED: true -USER_PROFILES_ENABLED : true -VIDEO_TRANSCRIPT_ENABLED: true \ No newline at end of file + TYPE: 'native' + WEBVIEW: + BASE_URL: '' + COURSE_DETAIL_TEMPLATE: '' + PROGRAM_DETAIL_TEMPLATE: '' + +PROGRAM: + TYPE: 'native' + WEBVIEW: + PROGRAM_URL: '' + PROGRAM_DETAIL_URL_TEMPLATE: '' + +FIREBASE: + ENABLED: false + ANALYTICS_SOURCE: '' # segment | none + CLOUD_MESSAGING_ENABLED: false + PROJECT_NUMBER: '' + PROJECT_ID: '' + APPLICATION_ID: '' #App ID field from the Firebase console or mobilesdk_app_id from the google-services.json file. + API_KEY: '' + +SEGMENT_IO: + ENABLED: false + SEGMENT_IO_WRITE_KEY: '' + +BRAZE: + ENABLED: false + PUSH_NOTIFICATIONS_ENABLED: false + +GOOGLE: + ENABLED: false + CLIENT_ID: '' + +MICROSOFT: + ENABLED: false + CLIENT_ID: '' + PACKAGE_SIGNATURE: '' + +FACEBOOK: + ENABLED: false + FACEBOOK_APP_ID: '' + CLIENT_TOKEN: '' + +BRANCH: + ENABLED: false + KEY: '' + URI_SCHEME: '' + HOST: '' + ALTERNATE_HOST: '' + +#Platform names +PLATFORM_NAME: "{{ PLATFORM_NAME }}" +PLATFORM_FULL_NAME: "{{ PLATFORM_NAME }}" +#App sourceSets dir +THEME_DIRECTORY: "openedx" +#tokenType enum accepts JWT and BEARER only +TOKEN_TYPE: "JWT" +#feature flag for activating What’s New feature +WHATS_NEW_ENABLED: false +#feature flag enable Social Login buttons +SOCIAL_AUTH_ENABLED: false +#Course navigation feature flags +COURSE_NESTED_LIST_ENABLED: false +COURSE_UNIT_PROGRESS_ENABLED: false