Issue
I have got manifest placeholder for service:
<service
android:name=".MyService"
android:process="${processName}">
In my build.gradle I replaced it.
android {
defaultConfig {
manifestPlaceholders = [
processName: ':Proc'
]
}
}
But for my espresso tests (androidTest) I need empty value in the processName
. How can I do this?
I have tried to do this with buildTypes, but it doesn't work (BuildType names cannot start with "androidTest")
Solution
This example works for me with Gradle plugin 3.4.1:
android {
unitTestVariants.all {
it.mergedFlavor.manifestPlaceholders += [
placeHolderName: "placeHolderValue"
]
it.mergedFlavor.addResValue(new ClassFieldImpl("string", "resValueName", "resValueValue"))
}
}
Answered By - HotIceCream
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.