2023-11-23 17:08:19 +08:00
|
|
|
ext {
|
2023-11-29 20:46:12 +08:00
|
|
|
isolationMode = Boolean.valueOf(isolation_mode)
|
2023-11-23 17:08:19 +08:00
|
|
|
println("是否隔离模式:" + isolationMode)
|
2023-11-28 02:01:10 +08:00
|
|
|
|
|
|
|
package_name = project.hasProperty('package_name') ? package_name
|
|
|
|
: (isolationMode ? 'com.example.gogo.none' : 'com.example.live')
|
|
|
|
println("applicationId is " + package_name)
|
2023-11-23 17:08:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
boolean isReleaseBuildType() {
|
|
|
|
for (String s : gradle.startParameter.taskNames) {
|
|
|
|
if (s.contains("Release") | s.contains("release")) {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|