Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid repeating configuration #253

Open
tolotrasamuel opened this issue Apr 2, 2024 · 0 comments
Open

Avoid repeating configuration #253

tolotrasamuel opened this issue Apr 2, 2024 · 0 comments

Comments

@tolotrasamuel
Copy link

tolotrasamuel commented Apr 2, 2024

Thank you for building this tool.

Is there a way to preventing repeating strings in the config file like this:

ide: idea


flavors:
  prod:
    app:
      name: "My App Prod"

    android:
      applicationId: "com.myapp.prod"
      icon: "assets/icon/transparent-icon_launch_app.png"
    ios:
      bundleId: "com.myapp.prod"
      icon: "assets/icon/transparent-icon_launch_app.png"

    macos:
      bundleId: "com.myapp.prod"
      icon: "assets/icon/transparent-icon_launch_app.png"

  dev:
    app:
      name: "My App Dev"

    android:
      applicationId: "com.myapp.dev"
      icon: "assets/icon/transparent-icon_launch_app.png"
    ios:
      bundleId: "com.myapp.dev"
      icon: "assets/icon/transparent-icon_launch_app.png"

    macos:
      bundleId: "com.myapp.dev"
      icon: "assets/icon/transparent-icon_launch_app.png"

  preprod:
    app:
      name: "My App Preprod"

    android:
      applicationId: "com.myapp.preprod"
      icon: "assets/icon/transparent-icon_launch_app.png"

    ios:
      bundleId: "com.myapp.preprod"
      icon: "assets/icon/transparent-icon_launch_app.png"

    macos:
      bundleId: "com.myapp.preprod"
      icon: "assets/icon/transparent-icon_launch_app.png"

I think the above is too repetitive. A nice way would be only overriding what changes

ide: idea
app:
  name: "My App Prod"
  buildFor: [android, ios, macos]
  icon: "assets/icon/transparent-icon_launch_app.png"
  android:
    icon: "assets/icon/transparent-icon_launch_android_app.png"

flavors:
  prod:
    app:
      id: "com.myapp.dev"
    macos:
      icon: "assets/icon/transparent-icon_launch_app_macos.png"

  dev:
    app:
      name: "My App Dev"
      id: "com.myapp.dev"

    ios:
      bundleId: "com.myapp.ios.dev"
      icon: "assets/icon/transparent-icon_launch_app_ios.png"

  preprod:
    app:
      name: "My App Preprod"
      id: "com.myapp.preprod"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant