Qigsaw

??Qigsaw ['tʃɪɡsɔ] is a dynamic modularization library which is based on Android App Bundles(Do not need Google Play Service). It supports dynamic delivery for split APKs without reinstalling the base one.

Github星跟蹤圖

Qigsaw



Qigsaw is a dynamic modularization library which is based on Android App Bundles. It supports dynamic delivery for split APK without reinstalling the base one.

README 中文版

qigsaw

Getting started

Import qigsaw-gradle-plugin as a dependency in your main build.gradle in the root of your project:

buildscript {
    dependencies {
        classpath 'com.iqiyi.android.qigsaw:gradle-plugin:1.2.3'
    }
}

Then "apply" the plugin and import dependencies by adding the following lines to your app/build.gradle.

dependencies {
    //qigsaw core lib
    implementation "com.iqiyi.android.qigsaw:splitcore:1.2.3"
}
...
...
apply plugin: 'com.iqiyi.qigsaw.application'

At Last, "apply" another plugin by adding the following lines to your dynamicfeature/build.gradle.

...
...
apply plugin: 'com.iqiyi.qigsaw.dynamicfeature'

Considering that every app has its own downloader, qigsaw just provides an interface Downloader and you are expected to implement it. Learn more from the sample SampleDownloader.

Qigsaw-gradle-plugin will upload split APKs which require dynamic delivery during compilation, so you have to implement SplitApkUploader to upload split APKs to your own CND server. Learn more from the sample SampleSplitApkUploader.

How to install qigsaw? Learn more from the sample QigsawApplication.

For proguard, we have already made the proguard config automatically via qigsaw-gradle-plugin.

For multiDex, learn more from the sample multidexkeep.pro.

For more qigsaw configurations, learn more from the sample app/build.gradle.

How to install split APKs? Qigsaw provides the same APIs to Play Core Library, so you may read google developer docs to install.

How to build base and split APKs? During development, you may use qigsawAssembleDebug task or just click Run app in Android Studio to build. When releasing your app, use qigsawAssembleRelease task to build.

How to update splits? Please see our Split Update Guide.

Known Issues

There are some issues which Qigsaw can't update or support at present.

  1. Can't update split AndroidManifest.xml dynamically, for example adding Android Component.
  2. Can't update base APK dynamically.
  3. Doesn't support Android OS version lower than 4.0.
  4. Doesn't support incremental update for split APK.
  5. Learn more from the Known issues about Android App Bundle.

Extensive Functions

Qigsaw supports some functions which Android App Bundle doesn't yet.

  1. Supports to declare Application in split AndroidManifest. Qigsaw will invoke Applicaton#attachBaseContext and Applicaton#onCreate methods for split application.
  2. Supports to declare ContentProvider in split AndroidManifest.

Support

  1. Learn more from qigsaw-sample-android.
  2. Study the source code.
  3. Check wiki or FAQ for help.
  4. Contact us kisson_cjw@hotmail.com.
  5. Join QQ group chat.

qigsaw_qq_group_chat

Contributing

For more information about contributing, issues or pull requests, please check our Qigsaw Contributing Guide.

License

Qigsaw is MIT licensed. Read the LICENSE file for detail.

主要指標

概覽
名稱與所有者iqiyi/Qigsaw
主編程語言Java
編程語言Java (語言數: 5)
平台
許可證Other
所有者活动
創建於2019-06-24 06:09:28
推送於2023-10-25 03:57:57
最后一次提交2021-07-14 10:49:35
發布數22
最新版本名稱v1.4.1-hotfix01 (發布於 )
第一版名稱v_1.1.3 (發布於 2019-06-26 04:12:12)
用户参与
星數1.7k
關注者數52
派生數273
提交數310
已啟用問題?
問題數63
打開的問題數36
拉請求數13
打開的拉請求數3
關閉的拉請求數8
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?