diff --git a/CoreLibrary/src/main/java/com/didi/virtualapk/internal/utils/PluginUtil.java b/CoreLibrary/src/main/java/com/didi/virtualapk/internal/utils/PluginUtil.java index a1eea83..8d77bb8 100644 --- a/CoreLibrary/src/main/java/com/didi/virtualapk/internal/utils/PluginUtil.java +++ b/CoreLibrary/src/main/java/com/didi/virtualapk/internal/utils/PluginUtil.java @@ -229,7 +229,7 @@ private static boolean findAndCopyNativeLib(ZipFile zipfile, Context context, St continue; } if (entryName.charAt(0) > 'l') { - break; + continue; } if (!findLib && !entryName.startsWith("lib/")) { continue; diff --git a/CoreLibrary/upload.gradle b/CoreLibrary/upload.gradle index f8cbcd7..3f2b0e1 100644 --- a/CoreLibrary/upload.gradle +++ b/CoreLibrary/upload.gradle @@ -11,7 +11,7 @@ def gitUrl = 'https://github.com/didi/VirtualAPK' // Git仓库的url group = GROUP_ID archivesBaseName = 'core' -version = "0.9.7.1" +version = "0.9.8" install { diff --git a/PluginDemo/app/build.gradle b/PluginDemo/app/build.gradle index b169f9e..bf7b36d 100644 --- a/PluginDemo/app/build.gradle +++ b/PluginDemo/app/build.gradle @@ -54,7 +54,7 @@ dependencies { // the following aars are also compiled in host project, so they will be filterd when build plugin apk. // but, wo can still visit their Class and Resources. implementation 'com.android.support:appcompat-v7:23.4.0' - implementation 'com.didi.virtualapk:core:0.9.6' +// implementation 'com.didi.virtualapk:core:0.9.8' } apply plugin: 'com.didi.virtualapk.plugin' diff --git a/PluginDemo/app/gradle.properties b/PluginDemo/app/gradle.properties new file mode 100644 index 0000000..ba00769 --- /dev/null +++ b/PluginDemo/app/gradle.properties @@ -0,0 +1,2 @@ +#android.enableD8=false +android.useDexArchive=false \ No newline at end of file diff --git a/PluginDemo/build.gradle b/PluginDemo/build.gradle index 0d837ab..f283b2c 100644 --- a/PluginDemo/build.gradle +++ b/PluginDemo/build.gradle @@ -6,7 +6,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' - classpath 'com.didi.virtualapk:gradle:0.9.8.5.1-dev' + classpath 'com.didi.virtualapk:gradle:0.9.8.6' } } diff --git a/README.md b/README.md index 7be496e..d0ffb40 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # VirtualAPK [![license](http://img.shields.io/badge/license-Apache2.0-brightgreen.svg?style=flat)](https://github.com/didi/VirtualAPK/blob/master/LICENSE) -[![Release Version](https://img.shields.io/badge/release-0.9.7-dev-red.svg)](https://github.com/didi/VirtualAPK/releases) +[![Release Version](https://img.shields.io/badge/release-0.9.8-red.svg)](https://github.com/didi/VirtualAPK/releases) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/didi/VirtualAPK/pulls) VirtualAPK is a powerful yet lightweight plugin framework for Android. It can dynamically load and run an APK file (we call it `LoadedPlugin`) seamlessly as an installed application. Developers can use any Class, Resources, Activity, Service, Receiver and Provider in `LoadedPlugin` as if they are registered in app's manifest file. @@ -28,7 +28,7 @@ Add a dependency in `build.gradle` in root of host project as following. ``` java dependencies { - classpath 'com.didi.virtualapk:gradle:0.9.8.5-dev' + classpath 'com.didi.virtualapk:gradle:0.9.8.6' } ``` @@ -41,7 +41,7 @@ apply plugin: 'com.didi.virtualapk.host' Compile VirtualAPK in application module of `build.gradle`. ``` java -compile 'com.didi.virtualapk:core:0.9.7-dev' +compile 'com.didi.virtualapk:core:0.9.8' ``` Initialize `PluginManager` in `YourApplication::attachBaseContext()`. @@ -85,7 +85,7 @@ Add a dependency in `build.gradle` in root of plugin project as following. ``` java dependencies { - classpath 'com.didi.virtualapk:gradle:0.9.8.5-dev' + classpath 'com.didi.virtualapk:gradle:0.9.8.6' } ``` diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 64845e4..233cf88 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -33,6 +33,12 @@ ## com.didi.virtualapk:core:0.9.6 1. 修复部分空指针问题。 +## com.didi.virtualapk:core:0.9.6 +1. 代码重构。 +2. 修复部分空指针bug。 +3. 适配Android P。 +4. 修复webview初始化后插件资源不可用的bug。 + ## VirtualAPK 的构建部分已经开源了,![点击这里查看](https://github.com/didi/VirtualAPK/tree/master/virtualapk-gradle-plugin) ## com.didi.virtualapk:gradle:0.9.8.2 @@ -47,3 +53,7 @@ 1. 修复当插件依赖library module时构建失败的bug。 2. 修复依赖本地aar时构建失败的bug。 3. 修复当插件自定义attr属性时id错误的bug。 + +## com.didi.virtualapk:gradle:0.9.8.6 +1. 适配com.android.tools.build:gradle:3.1.0。 +2. 修复当插件未定义attr资源时anim资源找不到的bug。 diff --git a/app/build.gradle b/app/build.gradle index 08f829b..c8f8daa 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -49,7 +49,7 @@ dependencies { testImplementation 'junit:junit:4.12' implementation 'com.android.support:appcompat-v7:23.4.0' - implementation 'com.didi.virtualapk:core:0.9.7-dev' + implementation 'com.didi.virtualapk:core:0.9.8' // implementation project (':CoreLibrary') } \ No newline at end of file diff --git a/build.gradle b/build.gradle index a531b33..6064844 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' - classpath 'com.didi.virtualapk:gradle:0.9.8.5.1-dev' + classpath 'com.didi.virtualapk:gradle:0.9.8.6' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1' diff --git a/virtualapk-gradle-plugin/gradle.properties b/virtualapk-gradle-plugin/gradle.properties index 69c33d6..cc22c3b 100644 --- a/virtualapk-gradle-plugin/gradle.properties +++ b/virtualapk-gradle-plugin/gradle.properties @@ -1,3 +1,3 @@ GROUP_ID=com.didi.virtualapk ARTIFACT_ID=gradle -VERSION=0.9.8.5.1-dev +VERSION=0.9.8.6