Optimized version of MVP, using annotation generics to simplify code writing, using modular protocols to facilitate maintenance, APT process uses annotation parser to use JavaPoet. Complete the writing of repetitive modules, use ASpect+GradlePlugin to complete horizontal AOP programming+Javassist dynamic bytecode injection+Tinker to achieve hot repair+Retrofit to achieve elegant network operations+RxJava to easily play with data processing. In MVP, Presenter completely separates Model and View, and the main program logic is implemented in Presenter. Moreover, the Presenter is not directly related to the specific View, but interacts through the defined interface (we only need to pass parameters according to the interface when testing alone), so that the Presenter can be kept unchanged when changing the View. i.e. reuse! Not only that, we can also write a View for testing to simulate various operations of the user, so as to test the Presenter - without using automated testing tools.

Features

  • Reduced class creation through modularization
  • Common way of writing: interface a class, implement a class, there will be 6 classes in this MVP
  • Through annotations, hide Presenter creation and reduce code
  • Add the Gradle plugin to use the Aspectj compiler
  • Realize TimeLog time-consuming printing through Aspectj, and customize Buidlconfig to realize the switch
  • Add Lru cache slice by using @MemoryCache annotation
  • Add a login cache slice to detect whether to log in

Project Samples

Project Activity

See All Activity >

Follow S-MVP

S-MVP Web Site

You Might Also Like
Top-Rated Free CRM Software Icon
Top-Rated Free CRM Software

216,000+ customers in over 135 countries grow their businesses with HubSpot

HubSpot is an AI-powered customer platform with all the software, integrations, and resources you need to connect your marketing, sales, and customer service. HubSpot's connected platform enables you to grow your business faster by focusing on what matters most: your customers.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of S-MVP!

Additional Project Details

Programming Language

Java

Related Categories

Java Frameworks, Java Code Generators

Registered

2023-02-23