我有多维风味:
flavorDimensions "app", "endpoint"
productFlavors {
ph {
applicationIdSuffix ".app1"
dimension "app"
}
pac {
applicationIdSuffix ".app2"
dimension "app"
}
production {
dimension "endpoint"
// applicationIdSuffix ".production"
}
staging {
dimension "endpoint"
// applicationIdSuffix ".staging"
}
}
但我希望应用程序 ID 同时具有应用程序和环境名称。喜欢:com.company.application.app1.staging
然后是目录结构中的混乱,将google-services.json
每个包名称分开放置。
我试过像app/src/app1Staging/google-services.json
但它在构建中失败。