forked from Tencent/Shadow
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
重构demo为test。重新组织目录结构以便后续添加多插件测试。缩短了test的模块名,由于packagePlugin插件不支持自定义模块…
…名,修改了packagePlugin插件。
- Loading branch information
Showing
238 changed files
with
169 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
projects/demo/host_interface/build.gradle → ...lib/plugin-use-host-code-lib/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
105 changes: 105 additions & 0 deletions
105
projects/test/plugin/plugin-main/plugin-main-app/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
apply from: "../plugin-main-app-no-shadow/build.gradle" | ||
|
||
android { | ||
defaultConfig { | ||
applicationId "com.tencent.shadow.demo_host" | ||
} | ||
} | ||
|
||
buildscript { | ||
repositories { | ||
maven { | ||
url "http://maven.oa.com/nexus/content/repositories/jcenter" | ||
} | ||
maven { | ||
url "http://maven.oa.com/nexus/content/repositories/google-maven/" | ||
} | ||
} | ||
|
||
dependencies { | ||
classpath 'com.tencent.shadow.core:runtime-debug' | ||
classpath 'com.tencent.shadow.core:gradle-plugin' | ||
classpath 'org.javassist:javassist:3.22.0-GA' | ||
} | ||
} | ||
|
||
apply plugin: 'com.tencent.shadow.plugin' | ||
|
||
|
||
shadow { | ||
transform { | ||
// useHostContext = ['abc'] | ||
} | ||
|
||
packagePlugin { | ||
pluginTypes { | ||
debug { | ||
loaderApkConfig = new Tuple2('dynamic-loader-debug.apk', ':dynamic-loader:assembleDebug') | ||
runtimeApkConfig = new Tuple2('dynamic-runtime-debug.apk', ':dynamic-runtime:assembleDebug') | ||
pluginApks { | ||
pluginApk1 { | ||
businessName = 'demo' | ||
partKey = 'demo_main' | ||
buildTask = ':plugin-main-app:assembleDebug' | ||
apkName = 'plugin-main-app-debug.apk' | ||
apkPath = 'projects/test/plugin/plugin-main/plugin-main-app/build/outputs/apk/debug/plugin-main-app-debug.apk' | ||
hostWhiteList = ["androidx.test.espresso",//这个包添加是为了插件demo中可以访问测试框架的类 | ||
"com.tencent.shadow.demo.interfaces"]//测试插件访问宿主白名单类 | ||
} | ||
pluginApk2 { | ||
businessName = 'plugin-multidex' | ||
partKey = 'plugin-multidex-v1_0_2' | ||
buildTask = ':plugin-multidex-v1_0_2:assembleDebug' | ||
apkName = 'plugin-multidex-v1_0_2-debug.apk' | ||
apkPath = 'projects/test/plugin/plugin-multidex/plugin-multidex-v1_0_2/build/outputs/apk/debug/plugin-multidex-v1_0_2-debug.apk' | ||
} | ||
pluginApk3 { | ||
businessName = 'plugin-multidex' | ||
partKey = 'plugin-multidex-v2_0_1' | ||
buildTask = ':plugin-multidex-v2_0_1:assembleDebug' | ||
apkName = 'plugin-multidex-v2_0_1-debug.apk' | ||
apkPath = 'projects/test/plugin/plugin-multidex/plugin-multidex-v2_0_1/build/outputs/apk/debug/plugin-multidex-v2_0_1-debug.apk' | ||
} | ||
} | ||
} | ||
|
||
release { | ||
loaderApkConfig = new Tuple2('dynamic-loader-release.apk', ':dynamic-loader:assembleRelease') | ||
runtimeApkConfig = new Tuple2('dynamic-runtime-release.apk', ':dynamic-runtime:assembleRelease') | ||
pluginApks { | ||
pluginApk1 { | ||
businessName = 'demo' | ||
partKey = 'demo_main' | ||
buildTask = ':plugin-main-app:assembleRelease' | ||
apkName = 'plugin-main-app-release.apk' | ||
apkPath = 'projects/test/plugin/plugin-main/plugin-main-app/build/outputs/apk/release/plugin-main-app-release.apk' | ||
hostWhiteList = ["androidx.test.espresso",//这个包添加是为了插件demo中可以访问测试框架的类 | ||
"com.tencent.shadow.demo.interfaces"]//测试插件访问宿主白名单类 | ||
} | ||
pluginApk2 { | ||
businessName = 'plugin-multidex' | ||
partKey = 'plugin-multidex-v1_0_2' | ||
buildTask = ':plugin-multidex-v1_0_2:assembleRelease' | ||
apkName = 'plugin-multidex-v1_0_2-release.apk' | ||
apkPath = 'projects/test/plugin/plugin-multidex/plugin-multidex-v1_0_2/build/outputs/apk/release/plugin-multidex-v1_0_2-release-unsigned.apk' | ||
} | ||
pluginApk3 { | ||
businessName = 'plugin-multidex' | ||
partKey = 'plugin-multidex-v2_0_1' | ||
buildTask = ':plugin-multidex-v2_0_1:assembleRelease' | ||
apkName = 'plugin-multidex-v2_0_1-release.apk' | ||
apkPath = 'projects/test/plugin/plugin-multidex/plugin-multidex-v2_0_1/build/outputs/apk/release/plugin-multidex-v2_0_1-release-unsigned.apk' | ||
} | ||
} | ||
} | ||
} | ||
|
||
loaderApkProjectPath = 'projects/test/host/dynamic/dynamic-loader' | ||
|
||
runtimeApkProjectPath = 'projects/test/host/dynamic/dynamic-runtime' | ||
|
||
version = 4 | ||
compactVersion = [1, 2, 3] | ||
uuidNickName = "1.1.5" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.