>From the notes:
- Build config improvements and DSL changes.
- buildConfigLine is replaced by buildConfigField
- Only one field per property
- expects 3 values, type, name, value.
- This allows overriding a value in flavor or build type.
- See "basic" sample.
So you'd need to do something like:
buildConfigField String, "COMMIT_HASH", getGitHash()
---
Jake Wharton
http://about.me/jakewharton
On Thu, Dec 19, 2013 at 1:08 AM, Christoffer Hirsimaa <[email protected]>wrote:
> I earlier had this in my build file:
> defaultConfig {
> minSdkVersion 14
> targetSdkVersion 19
> buildConfig "public static final String COMMIT_HASH =
> \""+getGitHash()+"\";"
> }
>
> So I can put my git hash in the application. Now it gives this error:
>
> > Could not find method buildConfig() for arguments [public static final
> String COMMIT_HASH = "1.0-sprint7-56-g2ba6a8a";] on
> ProductFlavorDsl_Decorated{name=main, minSdkVersion=14,
> targetSdkVersion=19, renderscriptTargetApi=-1,
> renderscriptSupportMode=null, renderscriptNdkMode=null, versionCode=-1,
> versionName=null, packageName=null, testPackageName=null,
> testInstrumentationRunner=null, testHandleProfiling=null,
> testFunctionalTest=null, signingConfig=null, resConfig=null}.
>
> What is wrong with this now?
>
> --
> You received this message because you are subscribed to the Google Groups
> "adt-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.