Code Monkey home page Code Monkey logo

vanite's Introduction

Vanite

New Project

Maven Central

What is Vanite

Vanite is an Open Source Library That Focus on Providing The Base Code of Android Applications with Utility Classes For Common Use Cases Under Multi Modular Architecture From Managing the State to Utils Classes to Providing Base Code in Base ViewModels, Fragments, Activities

Multi Modular Application

The Library Focus on Main Modules

  1. UI
  2. Data
  3. Domain

The UI Layer Contact with Domain to handle the logic from ViewModels, Use Cases, etc and This Layer Contact with Data Layer to get the Data from Repositories, this Layers could be provided by Modules or Packages because vanite is Built based on Modules and you can add the Required Dependency to one Module as you want

Application Flow Components

  1. Actions
  2. State
  3. ViewModel
  4. User Interface

The UI Contact With ViewModel By execute Method Only and Send to ViewModel Actions, Each Action Should Execute specific Code or move to Use Case Then ViewModel Respond to View With New State For This ViewModel

Also to Provide Utility Classes As much as Possible for Common Use Cases

Setup

  1. The Build.gradle Root File
allprojects {
    repositories {
        mavenCentral()
    }
}
  1. Application Module
dependencies {
   implementation 'com.yazantarifi:vanite:2.0.0'
   implementation 'com.yazantarifi:vanite-data:2.0.0'
   implementation 'com.yazantarifi:vanite-utils:2.0.0'
   implementation 'com.yazantarifi:vanite-ui-binding:2.0.0'
   implementation 'com.yazantarifi:vanite-ui:2.0.0'
   implementation 'com.yazantarifi:vanite-prefs:2.0.0'
   implementation 'com.yazantarifi:vanite-permissions:2.0.0'
   implementation 'com.yazantarifi:vanite-log:2.0.0'
   implementation 'com.yazantarifi:vanite-firebase:2.0.0'
   implementation 'com.yazantarifi:vanite-secured-prefs:2.0.0'
   implementation 'com.yazantarifi:vanite-compose:2.0.0'
}

Library Dependencies Description

This Library has 2 Ways to Create the Integration, first We have applications Built based on XML and Other Apps Built with Jetpack Compose this Library Support Jetpack Compose Applications Under one Dependency that has the base code for Composables

Dependency Information for Jetpack Compose Applications

    implementation 'com.yazantarifi:vanite-compose:2.0.0'

Dependency Information for XML Applications

   implementation 'com.yazantarifi:vanite:2.0.0'
   implementation 'com.yazantarifi:vanite-data:2.0.0'
   implementation 'com.yazantarifi:vanite-utils:2.0.0'
   implementation 'com.yazantarifi:vanite-ui-binding:2.0.0'
   implementation 'com.yazantarifi:vanite-ui:2.0.0'

Dependency Information for Utility Classes

   implementation 'com.yazantarifi:vanite-secured-prefs:2.0.0'
   implementation 'com.yazantarifi:vanite-firebase:2.0.0'
   implementation 'com.yazantarifi:vanite-log:2.0.0'
   implementation 'com.yazantarifi:vanite-permissions:2.0.0'
   implementation 'com.yazantarifi:vanite-utils:2.0.0'

Push Update

This Command Will Generate Build File and Jars for All Modules

    gradle publishReleasePublicationToSonatypeRepository

Vanite Documentation

Coming Soon Vanite still Under Development

License

Copyright (C) 2019 Vanite is An Open Source Library (Licensed under the Apache License, Version 2.0)

vanite's People

Contributors

yazan98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

wyazan6

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.