Argus


Source link: https://github.com/moldedbits/argus-android

Argus- Onboarding Simplified

Argus Android makes it hassle free of managing all onboarding related tasks such as Signup/Login/Forgot Password and Social Logins.

Gradle

compile 'com.moldedbits.argus:argus:0.2.0'

Maven

<dependency>
  <groupId>com.moldedbits.argus</groupId>
  <artifactId>argus</artifactId>
  <version>0.1.0</version>
  <type>pom</type> </dependency> 

Screenshots

Features

1. Built in Login/Signup Providers

Argus comes with built in social login providers as well as an EmailLoginProvider which can be easily integrated with your custom APIs. Adding different providers is as simple as this

 List<BaseProvider> loginProviders = new ArrayList<>();
  loginProviders.add(new GoogleOnBoardingProvider());
  loginProviders.add(new FacebookOnBoardingProvider())

and then supply these providers to Argus object

new Argus.Builder().loginProviders(loginProviders)

2. Custom Layouts for Signup and Login

If you don't like Argus default UI you can provide your own layout and Argus will take care of rest

new Argus.Builder().signupLayout(R.layout.custom_signup_layout)

3. Adaptive Look and Feel

Argus is built keeping Material design in mind it automatically adapts colors defined in your styles.xml

4. Customizable Look and Feel

Argus can be customized as per your needs using ArgusTheme

ArgusTheme argusTheme

= new ArgusTheme.Builder()
  .buttonColor(R.color.com_facebook_blue)
  .logo(R.drawable.app_logo)
  .build();

Usage

Argus exposes ArgusActivity which can be set as launcher activity in AndroidManifest or started using an Intent. Currently it redirects to Login screen by default but in future we would let developer choose where he want to start.

A basic configuration of Argus looks like this

// initialize Argus

ArrayList<BaseProvider> loginProviders = new ArrayList<>();

ArrayList<BaseProvider> signupProviders = new ArrayList<>();

PlaygroundSignupProvider playgroundSignupProvider = new PlaygroundSignupProvider(false);

playgroundSignupProvider.getValidationEngine()

  .addPasswordValidation(new LengthValidation(4, 8, getString(R.string.password_length)));

 loginProviders.add(new PlaygroundLoginProvider());

signupProviders.add(playgroundSignupProvider);

 ArgusTheme.Builder themeBuilder = new ArgusTheme.Builder();

themeBuilder.logo(R.drawable.logo_3x);

 new Argus.Builder()

  .argusStorage(new DefaultArgusStorage(getApplicationContext()))

  .nextScreenProvider(new SimpleNextScreenProvider(ProjectListActivity.class))

  .signupProviders(signupProviders)

  .loginProviders(loginProviders)

  .theme(themeBuilder.build())

  .build();

Please feel free to contribute or report issues.

License

Copyright 2013 moldedbits  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 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 

Resources

A TextView that blinks, just like the good old HTML <blink> tag.

Account Chooser for Android, backported from JellyBean.

An easy-to-integrate tab bar for Android that completely respects the Material Design guidelines and supports all versions of Android since API 9!

Allows you to retrieve exceptions of an Android Wear app in your handheld's one. It is particularly useful if you're using a Crash Reporting library or if you implemented a way to retrieve crashes.

This plugin let's you easily use the jarjar tool in your gradle builds. This is handy for dependencies, which need to be repackaged, e.g. the full bouncy castle library for Android projects.

The OpenCV library for Android as Gradle project.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes