From 0bba0e67bc41b2711dab1aba672c3882bc25f472 Mon Sep 17 00:00:00 2001 From: superq_sky Date: Thu, 6 Sep 2018 19:40:18 +0800 Subject: [PATCH 1/2] Updated the version. --- CoreLibrary/upload.gradle | 2 +- PluginDemo/app/build.gradle | 2 +- PluginDemo/app/gradle.properties | 2 ++ PluginDemo/build.gradle | 2 +- README.md | 8 ++++---- RELEASE-NOTES.md | 10 ++++++++++ app/build.gradle | 2 +- build.gradle | 2 +- virtualapk-gradle-plugin/gradle.properties | 2 +- 9 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 PluginDemo/app/gradle.properties 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 From e049bcb2da35c7940ae46a2caad38483fafe5922 Mon Sep 17 00:00:00 2001 From: qinchao Date: Tue, 2 Oct 2018 01:59:36 +0800 Subject: [PATCH 2/2] bugfix: libxx.so could not be loaded --- .../java/com/didi/virtualapk/internal/utils/PluginUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;