diff --git a/tutor/config.py b/tutor/config.py index a25a3a9..c086b7c 100644 --- a/tutor/config.py +++ b/tutor/config.py @@ -166,6 +166,7 @@ def load_defaults(config): # Add extra configuration parameters that need to be computed separately config["lms_cms_common_domain"] = utils.common_domain(config["LMS_HOST"], config["CMS_HOST"]) + config["lms_host_reverse"] = config["LMS_HOST"].split(".")[::-1] def ask(question, key, config): default = env.render_str(config, config[key]) diff --git a/tutor/env.py b/tutor/env.py index d33d298..06cbf46 100644 --- a/tutor/env.py +++ b/tutor/env.py @@ -16,7 +16,7 @@ def render_full(root, config): """ Render the full environment, including version information. """ - for target in ["apps", "k8s", "local", "webui"]: + for target in ["android", "apps", "k8s", "local", "webui"]: render_target(root, config, target) copy_target(root, "build") with open(pathjoin(root, VERSION_FILENAME), 'w') as f: diff --git a/tutor/templates/android/gradle.properties b/tutor/templates/android/gradle.properties index 5031d45..d09ea98 100644 --- a/tutor/templates/android/gradle.properties +++ b/tutor/templates/android/gradle.properties @@ -1,4 +1,4 @@ -APPLICATION_ID={{ LMS_HOST_REVERSE }} +APPLICATION_ID={{ lms_host_reverse }} RELEASE_STORE_FILE=/openedx/config/app.keystore RELEASE_STORE_PASSWORD={{ ANDROID_STORE_PASSWORD }} RELEASE_KEY_PASSWORD={{ ANDROID_KEY_PASSWORD }}