Skip to content

An Android plugin framework that provides the ability to develop host application and plugins separately!

Notifications You must be signed in to change notification settings

mobilegg/android-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

##Introduction This plugin framework provide the ability to develop host application and plugins separately. More precisely, host application and plugins are compiled and packaged into different apk files.

###Features

  • Plugin apks are no need to be installed. Plugin apks could be placed anywhere, even be downloaded.
  • Host application can access the resources in plugin.
  • Android components, like Activity and Service, in plugin can be called in host application without installation.

##Usage The three projects in Samples directories show the basic usage of the plugin framework.

  1. Import Plugin1 and Plugin2 projects and make them be dependent on PluginSDK. Make sure the scope of module PluginSDK is "Provided";
  2. Compile the Plugin1 and Plugin2 to "Plugin1.apk" and "Plugin2.apk"
  3. Import PluginHost project and make it be dependent on PluginSDK.
  4. Copy the "Plugin1.apk" and "Plugin2.apk" to assets directory in PluginHost project.
  5. Compile and run the PluginHost.

##Implementation The article written in Chinese shows the basci principle.

##Contributing All contributions are welcome!

About

An Android plugin framework that provides the ability to develop host application and plugins separately!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%