Skip to content

Commit

Permalink
Set Android demo default to English (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 committed Aug 8, 2023
1 parent 8ae2594 commit bcb6d2d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ios-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
-configuration Debug
-workspace RhinoDemo.xcworkspace
-sdk iphoneos
-scheme enDemo
-scheme _enDemo
-derivedDataPath ddp
CODE_SIGNING_ALLOWED=NO

Expand Down
4 changes: 4 additions & 0 deletions demo/android/Activity/rhino-activity-demo-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ android {

flavorDimensions "language"
productFlavors {
en {
getIsDefault().set(true)
}

languages.each { languageInfo ->
"${languageInfo.get(0)}" {
applicationIdSuffix ".${languageInfo.get(0)}"
Expand Down
2 changes: 1 addition & 1 deletion resources/scripts/update_languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def update_ios_demo(contexts):
base_scheme = os.path.join(
os.path.dirname(__file__),
scheme_dir,
"enDemo.xcscheme")
"_enDemo.xcscheme")

for language, context in contexts.items():
if language == 'en':
Expand Down

0 comments on commit bcb6d2d

Please sign in to comment.