Assigned
Status Update
Comments
xa...@android.com <xa...@android.com>
jw...@gmail.com <jw...@gmail.com> #2
I was trying to modify the values resources, as the logic below:
1. copy all the values resources from original folder to another working folder
2. do something in the working folder.
3. exclude all the values inside the original resources folder, and include the new resources working folder
But exclude patterns do not work on android.sourceSets."${buildType}".res, or is there a better way to achieve it?
Reference script:
def filterVariant = { variantToFilter, filterTask->
def vv = android.sourceSets."${variantToFilter}".res.srcDirs
println "${variantToFilter} --> ${vv*.toString()}"
def variantRes = android.sourceSets."${variantToFilter}".res
variantRes.srcDirs.each{ resDir->
def filterOutput = "${buildDir}/res-filter"
if (resDir.toString().contains(filterOutput)) {
return
}
println "begin filter ${resDir} to ${filterOutput}/${variantToFilter}"
filterTask.from fileTree(dir: resDir, include: 'values*/*.xml')
filterTask.into "${filterOutput}/${variantToFilter}"
variantRes.exclude "${resDir}/values*/*.xml"
variantRes.srcDirs = variantRes.srcDirs << "${filterOutput}/${variantToFilter}"
}
}
project.task('filterMainResources', type: Copy) {
filterVariant 'main', it
}
android.libraryVariants.all{ variant ->
project.task("filter${variant.name }Resources", type: Copy) { filterTask ->
filterVariant "${variant.name }", filterTask
filterTask.dependsOn "filterMainResources"
}
variant.mergeResources.dependsOn("filter${variant.name }Resources")
}
1. copy all the values resources from original folder to another working folder
2. do something in the working folder.
3. exclude all the values inside the original resources folder, and include the new resources working folder
But exclude patterns do not work on android.sourceSets."${buildType}".res, or is there a better way to achieve it?
Reference script:
def filterVariant = { variantToFilter, filterTask->
def vv = android.sourceSets."${variantToFilter}".res.srcDirs
println "${variantToFilter} --> ${vv*.toString()}"
def variantRes = android.sourceSets."${variantToFilter}".res
variantRes.srcDirs.each{ resDir->
def filterOutput = "${buildDir}/res-filter"
if (resDir.toString().contains(filterOutput)) {
return
}
println "begin filter ${resDir} to ${filterOutput}/${variantToFilter}"
filterTask.from fileTree(dir: resDir, include: 'values*/*.xml')
filterTask.into "${filterOutput}/${variantToFilter}"
variantRes.exclude "${resDir}/values*/*.xml"
variantRes.srcDirs = variantRes.srcDirs << "${filterOutput}/${variantToFilter}"
}
}
project.task('filterMainResources', type: Copy) {
filterVariant 'main', it
}
android.libraryVariants.all{ variant ->
project.task("filter${
filterVariant "${
filterTask.dependsOn "filterMainResources"
}
variant.mergeResources.dependsOn("filter${
}
xa...@android.com <xa...@android.com> #3
Thanks for your request. We will investigate this issue and see if we can implement the behavior you've requested.
xa...@android.com <xa...@android.com>
lo...@gmail.com <lo...@gmail.com> #4
As an additional alternative, it should be possible to specify a label in the options for GmailApp.sendEmail().
A work-around is proposed in StackOverflow:http://stackoverflow.com/a/18727687/1677912
A work-around is proposed in StackOverflow:
ar...@gmail.com <ar...@gmail.com> #5
Are there any news on adding the ability to archive and add a label to specific emails (not threads)? From a corporate shared mailbox perspective auto threading emails by subject is a serious issue (eg. we recive two emails from the same person with same subject but with different description).
Since it's available in pure mailbox view is that such a big effort to make it available also in Google Script?
Since it's available in pure mailbox view is that such a big effort to make it available also in Google Script?
r....@gmail.com <r....@gmail.com> #6
Looking forward to having this implemented. As has been mentioned automatic threading based on subject is a big no-no for our enterprise. We get automated reports and other documents sent to us by customers and suppliers and they are lumped together in threads making it very difficult for me to let Apps Script process them automatically since labels (i.e. outlook folders) have to be applied to entire threads (even though the messages in these threads often need to be treated differently).
ti...@gmail.com <ti...@gmail.com> #7
Please add this function (and message.getlabel too) we need to scan message not only the thread.
ch...@google.com <ch...@google.com>
go...@sentio.com <go...@sentio.com> #8
Will there be any progress on this issue? Threading is great for humans, but if you are scripting, accessing and manipulating individual messages is MUCH more important, especially if it can be done from the normal user interface. Anything you can do to the thread you should be able to do at the message level.
jo...@gmail.com <jo...@gmail.com> #9
Unassigning
lu...@google.com <lu...@google.com>
vs...@gmail.com <vs...@gmail.com> #10
Comment has been deleted.
lo...@gmail.com <lo...@gmail.com> #11
Thanks!
Description
We should do this for aidl/rs/jni/assets.
We could also do the same for res/ but it's a bit more complicated. Worth investigating.