Skip to content

Instantly share code, notes, and snippets.

@erd
erd / build.gradle
Last active Oct 9, 2015
Android set localhost address to local ip
View build.gradle
android {
buildTypes {
debug {
debuggable true
buildConfigField "String", "API_HOST", '"http://' + getIpAddress() + ':3000"'
buildConfigField "String", "API_PATH", '"/api/v1"'
}
}
}
View keybase.md

Keybase proof

I hereby claim:

  • I am erd on github.
  • I am erd (https://keybase.io/erd) on keybase.
  • I have a public key whose fingerprint is 8EE5 07DC A5A5 BA0F A679 2F4C 8716 A285 E8B2 DBD9

To claim this, I am signing this object: