Skip to content

Instantly share code, notes, and snippets.

@rubensousa
rubensousa / publish_github.gradle
Last active Feb 26, 2020
A helper plugin for publishing Android libraries to GitHub Packages
View publish_github.gradle
/*
* Copyright 2013 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@rubensousa
rubensousa / AccountAuthenticatorAppCompatActivity.java
Created Mar 14, 2016
AccountAuthenticatorActivity changed to extend from AppCompatActivity
View AccountAuthenticatorAppCompatActivity.java
import android.accounts.AccountAuthenticatorResponse;
import android.accounts.AccountManager;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
/**
* Base class for implementing an Activity that is used to help implement an
* AbstractAccountAuthenticator. If the AbstractAccountAuthenticator needs to use an activity
* to handle the request then it can have the activity extend AccountAuthenticatorActivity.
* The AbstractAccountAuthenticator passes in the response to the intent using the following:
You can’t perform that action at this time.