I am able to get the correct api_key.txt
on debug
builds because that is a buildType
. However I am unable to get this working with the productFlavor amazon
.
I’ve tried doing this in my build.gradle
file which compiles but it will not actually reference the correct file at run time:
sourceSets {
amazon {
assets.srcDirs = ['app/src/amazon/assets']
}
Here is my folder structure:
How can I reference api_key.txt
in the amazon/assets
folder when my product flavor is amazon
?
All help is greatly appreciated, thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…