Skip to content

Instantly share code, notes, and snippets.

@lopspower
Last active April 18, 2020 23:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lopspower/5d03dab81abf6c35517e to your computer and use it in GitHub Desktop.
Save lopspower/5d03dab81abf6c35517e to your computer and use it in GitHub Desktop.
Dynamic folder for specific build variant

Dynamic folder for specific build variant

Twitter

In your build.gradle (App):

android {
  //...
  sourceSets {
      debug {
          res.srcDirs = ['src/main/res-debug/']
          assets.srcDirs = ['src/main/assets-dev/']
      }
      release {
          assets.srcDirs = ['src/main/assets-release/']
      }
  }
}

📚 Best Android Gists

You can see other best Android Gists or offer your just here https://github.com/lopspower/BestAndroidGists 👍.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment