GrabVer icon indicating copy to clipboard operation
GrabVer copied to clipboard

Code, Patch,Build number doesn't work well with product flavors

Open dineshmm23 opened this issue 6 years ago • 2 comments

When using product falvors; Code, Patch,Build number doesn't increment On assembleFlavor1Release,assembleFlavor2Release ,assembleFlavor1Debug and soon.

Console always outputs-> GrabVer - No save task detected

dineshmm23 avatar Nov 27 '19 11:11 dineshmm23

Versioning{
         dev{
              major 2
              minor 3
                .
                .
          }
         prod{
              major 1
              minor 1
                .
                .
         }
}

android {
  ...
  defaultConfig {...}
  buildTypes {...}



  flavorDimensions "stage", "mode"

  productFlavors {
    dev {
      dimension "stage"
      minSdkVersion 21
      versionNameSuffix "-dev"
      applicationIdSuffix '.dev'
      ...
    }

    prod {
      dimension "stage"
      ...
    }

  }
}

Is there way increment the code,build no , patch for different flavors?

dineshmm23 avatar Nov 27 '19 11:11 dineshmm23