Hi,

I am trying to filter some of my resource files with build specific 
properties.

I have tried the following:

    applicationVariants.all { variant ->
        // override data in resource after merge task
        variant.processResources.doLast {
            if (variant.buildType.name == "release")
                filter (
                    ReplaceTokens, tokens:
                    [ftpPort      : "21"]
                )
            else if (variant.buildType.name == "debug")
                filter (
                    ReplaceTokens, tokens:
                    [ftpPort      : "7655"]
                )
        }
    }

but it says that "filter()" was not found.

how would you guys solve this issue?

-- 
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/d/optout.

Reply via email to