I am using AWS Amplify and have two environments that I am switching between, therefore I have two awsconfiguration.json
files, but need a way to switch between the two at runtime. I've heard you can use sourceSets, but can't figure out how. I tried the following, but with no success. I believe I have to setup a productFlavor
and/or buildType
?
sourceSets {
prod {
res.srcDirs = ['res-prod']
}
dev {
res.srcDirs = ['res-dev']
}
}