src/debug/res/values/strings.xml:
<string name="ftp_port">7655</string>
src/release/res/values/strings.xml:
<string name="ftp_post">21</string>
and reference in code by getResources().getString(R.string.ftp_port).
or
android {
buildTypes {
debug {
buildConfigField "int" "FTP_PORT" "7655"
}
release {
buildConfigField "int" "FTP_PORT" "21"
}
}
}
and reference in code by BuildConfig.FTP_PORT.
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.