With this library you can improve your app using a login with firebase integration and a custom login focusing only in the responses of each flow.
- ForgotPassword: A pair Presenter-View that implements activity flow and you only need to set the message of wrong password and flow to recover password;
- Login: A pair Presenter-View that implements activity flow and you only need to set ForgotPasswordActivityImplementer and specify the behavior of each possible login result (success or failure);
- Resources:
- Two default layouts (portrait and landscape) for login and forgot password;
- Colors for button background, text and ripple effect;
- Two booleans to disable forgot password or login with firebase.
This project depends on the following libraries
- Butterknife and its compiler
- Firebase auth and ui-auth
- Google play services
- Facebook login sdk
Get the latest artifact via gradle
implementation 'com.github.db1global:android-login-firebase:1.0.0'
To use in your project your must extends the classes below and implement their abstracts methods:
- LoginActivity
- LoginPresenter
- ForgotPasswordActivity
- ForgotPasswordPresenter
If you want to do provide firebase login:
- provide a properly configured google-service.json in app/
- put in AndroidManifest:
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id"
tools:replace="android:value" />
- override the strings:
- google_server_client_id - more details: https://goo.gl/7EM1jd
- facebook_app_id - more details: https://goo.gl/GC5Vog
- fb_login_protocol_scheme - more details: https://goo.gl/GC5Vog
MIT License
Copyright (c) 2018 DB1 Global Software
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.