Skip to content

Instantly share code, notes, and snippets.

@rubensousa
rubensousa / AccountAuthenticatorAppCompatActivity.java
Created March 14, 2016 22:55
AccountAuthenticatorActivity changed to extend from AppCompatActivity
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:
@rubensousa
rubensousa / publish_maven.gradle
Last active June 5, 2022 21:34
Publish to maven central
/*
* 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 / publish_github.gradle
Last active January 18, 2024 08:48
A helper plugin for publishing Android libraries to GitHub Packages
/*
* 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