galaxy_store_import_from_supply

The Galaxy Store fastlane plugin action galaxy_store_import_from_supply imports app metadata from a supply (Google Play) metadata directory into Galaxy Store format. It is used to populate fastlane/metadata/galaxystore/ from an existing fastlane/metadata/android/ directory so that you can reuse Play Store content for your Galaxy Store listing.

Action

galaxy_store_import_from_supply(
    default_language_code: "ENG"
)

Parameter

Description

Required

Default

metadata_path

Path to the metadata folder containing the android supply directory

No

fastlane/metadata

default_language_code

Galaxy Store language code for the default listing. Determines which language's icon, YouTube URL, hero image are used

No

ENG

language_priority

Hash overriding which BCP-47 variant to use per Galaxy Store language code

No

import_hero_image

Copy the default language's featureGraphic to galaxystore/hero_image.png

No

false

version_code

APK version code matching the release being uploaded. When set, picks changelogs/<version_code>.txt per language and falls back to default.txt. When omitted, only default.txt is used

No

The action does the following:

  • Maps BCP-47 language codes (used by supply) to Galaxy Store language codes (see fastlane-plugin-galaxystore/lib/fastlane/plugin/galaxystore/helper/language_mapper.rb)
  • Copies title.txt, short_description.txt, and copies the content of full_description.txt to long_description.txt for each language
  • Copies phone screenshots from each language's phoneScreenshots directory
  • Copies a file in the changelogs directory as <galaxy_code>/new_feature.txt per language. When version_code is set, looks for changelogs/<version_code>.txt and falls back to changelogs/default.txt. When version_code is omitted, uses default.txt
  • Copies icon.png from the default language's directory to the top-level galaxystore folder
  • Copies the default language's video.txt to top-level youtube_url.txt
  • Optionally copies the default language's featureGraphic to top-level hero_image.png (Game category apps only — see import_hero_image below)
  • When multiple regional variants of a language exist (for example, es, es-ES, es-419), selects the best one automatically with a warning

Resolving language variant conflicts with language_priority

If your supply metadata contains multiple variants for the same language (for example, both es-ES and es-419), the action picks one automatically. Use language_priority to control which variant is used for a specific Galaxy Store language code:

galaxy_store_import_from_supply(
    language_priority: {
        "SPA" => "es-419",
        "POR" => "pt-BR"
    }
)

Results

galaxy_store_import_from_supply returns a hash mapping Galaxy Store language codes to the BCP-47 directories they were imported from.