Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

Neptune

> 编程语言
Open source

A flexible, powerful and lightweight plugin framework for Android

761 stars0 likes1 views
WebsiteGitHub

About

A flexible, powerful and lightweight plugin framework for Android

Neptune

Neptune is a flexible, powerful and lightweight plugin framework for Android.

It now runs plugins dynamically on billions of devices every day and carries many separated business modules of IQIYI such as Reader, Movie Tickets and etc..

Especially, Neptune is greatly compatible with Android P . It can run on Android P devices seamlessly and stably. Only few APIs in light greylist are used.

中文文档

Supported Features

Feature Detail
Supported Components Activity/Service/Receiver
Component registration in Host Manifest.xml No Need
Share Host App Class Supported
Share Host App Resources Supported
Resources Isolation Supported
Run individual App Supported
Android Features Almost all features
Compatibility Almost all roms
Process Isolation Supported
Plugin Dependency Supported
Plugin Development like normal app
Supported Android versions API Level 14+

Architecture

Getting Started

Host Project

compile Neptune in application module of build.gradle.

gradle
    implementation 'org.qiyi.video:neptune:2.7.0'

Initialize sdk in your Application#onCreate().

java
public class XXXApplication extends Application {
    
    @Override
    public void onCreate() {
        NeptuneConfig config = new NeptuneConfig.NeptuneConfigBuilder()
                    .configSdkMode(NeptuneConfig.INSTRUMENTATION_MODE)
                    .enableDebug(BuildConfig.DEBUG)
                    .build();
        Neptune.init(this, config);
    }
}

more details and developer guide see wiki

Plugin Project

If plugin app wants to share resources with host app, you need add dependency in the buildscript block of build.gradle in root of plugin project as following.

gradle
dependencies {
    classpath  'com.iqiyi.tools.build:neptune-gradle:1.4.0'
}

Apply gradle plugin in application module of build.gradle and config it.

gradle
apply plugin: 'com.qiyi.neptune.plugin'

neptune {
    pluginMode = true      // In plugin apk build mode
    packageId = 0x30       // The package id of Resources
    hostDependencies = "{group1}:{artifact1};{group2}:{artifact2}" // host app resources dependencies
}

Developer Guide

  • API document wiki
  • Host App Sample Project
  • Plugin App Sample Project
  • Read SDKLibrary source code

Contribution

We sincerely appreciate your PR contribution of any kind , including codes, suggestions or documentation to improve our project.

License

Neptune is Apache v2.0 Licensed.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaandroiddynamiclightweightplugin-framework

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言