Skip to content

Instantly share code, notes, and snippets.

View noook's full-sized avatar
🐧
I'd like to learn fun things and Rust

Neil Richter noook

🐧
I'd like to learn fun things and Rust
View GitHub Profile
@crowelch
crowelch / MainActivity.kt
Created September 28, 2017 01:54
Google Sign In implemented in Kotlin
class MainActivity : AppCompatActivity(), GoogleApiClient.OnConnectionFailedListener {
private val RC_SIGN_IN = 9001
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val binding : MainActivityBinding = DataBindingUtil.setContentView(this, R.layout.activity_main)
val googleSignInOptions : GoogleSignInOptions = GoogleSignInOptions
.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestEmail()