I want to run a shell script to change the value in string.xml when my app is built. Where should I run my script in gradle, since there is no task in it. Or, because I will build the app use Jenkins, should I run the script on Jenkins server? Please help me out.
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion '22.0.1'
}
defaultConfig {
.......
}
buildTypes {
release {
.......
}
}
productFlavors {
development {}
production {}
}
sourceSets {
androidTest {
setRoot('src/test')
}
}
packagingOptions {..}
dependencies {...}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…