Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
门心叼龙
VirtualAPKDemo
提交
f6d321ec
V
VirtualAPKDemo
项目概览
门心叼龙
/
VirtualAPKDemo
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
VirtualAPKDemo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
f6d321ec
编写于
12月 06, 2019
作者:
A
asure
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改BundleUrl地址,确保跳转路径正确
上级
ebb327e8
变更
11
展开全部
隐藏空白更改
内联
并排
Showing
11 changed file
with
1130 addition
and
1017 deletion
+1130
-1017
.idea/misc.xml
.idea/misc.xml
+1
-1
app/build.gradle
app/build.gradle
+0
-3
app/src/main/java/com/jason/plugin/project/MainActivity.kt
app/src/main/java/com/jason/plugin/project/MainActivity.kt
+2
-2
commom/build.gradle
commom/build.gradle
+1
-1
commom/src/main/java/com/jason/plugin/commom/BundleUrl.kt
commom/src/main/java/com/jason/plugin/commom/BundleUrl.kt
+2
-2
host/Host_R.txt
host/Host_R.txt
+1071
-998
host/versions.txt
host/versions.txt
+30
-10
plugin_key.jks
plugin_key.jks
+0
-0
plugin_one/build.gradle
plugin_one/build.gradle
+11
-0
plugin_two/build.gradle
plugin_two/build.gradle
+11
-0
plugin_two/src/main/AndroidManifest.xml
plugin_two/src/main/AndroidManifest.xml
+1
-0
未找到文件。
.idea/misc.xml
浏览文件 @
f6d321ec
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
8
"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
7
"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
</component>
<component
name=
"ProjectType"
>
...
...
app/build.gradle
浏览文件 @
f6d321ec
...
...
@@ -27,9 +27,6 @@ android {
dependencies
{
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
implementation
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation
"com.android.support:appcompat-v7:26.0.2"
implementation
'com.android.support.constraint:constraint-layout:1.1.3'
implementation
'com.didi.virtualapk:core:0.9.8'
implementation
project
(
path:
':commom'
)
...
...
app/src/main/java/com/jason/plugin/project/MainActivity.kt
浏览文件 @
f6d321ec
...
...
@@ -18,7 +18,7 @@ class MainActivity : AppCompatActivity() {
super
.
onCreate
(
savedInstanceState
)
setContentView
(
R
.
layout
.
activity_main
)
findViewById
<
Button
>(
R
.
id
.
go_plugin_one
).
setOnClickListener
{
findViewById
<
Button
>(
R
.
id
.
go_plugin_one
)
?
.
setOnClickListener
{
val
pkg
=
"com.jason.plugin.one"
if
(
PluginManager
.
getInstance
(
this
).
getLoadedPlugin
(
pkg
)
==
null
)
{
Toast
.
makeText
(
this
,
"plugin $pkg not loaded"
,
Toast
.
LENGTH_SHORT
).
show
()
...
...
@@ -31,7 +31,7 @@ class MainActivity : AppCompatActivity() {
}
findViewById
<
Button
>(
R
.
id
.
go_plugin_two
).
setOnClickListener
{
findViewById
<
Button
>(
R
.
id
.
go_plugin_two
)
?
.
setOnClickListener
{
val
pkg
=
"com.jason.plugin.two"
if
(
PluginManager
.
getInstance
(
this
).
getLoadedPlugin
(
pkg
)
==
null
)
{
Toast
.
makeText
(
this
,
"plugin $pkg not loaded"
,
Toast
.
LENGTH_SHORT
).
show
()
...
...
commom/build.gradle
浏览文件 @
f6d321ec
...
...
@@ -28,6 +28,6 @@ android {
dependencies
{
implementation
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
api
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
api
"com.android.support:appcompat-v7:2
6.0.2
"
api
"com.android.support:appcompat-v7:2
8.0.0
"
api
'com.android.support.constraint:constraint-layout:1.1.3'
}
commom/src/main/java/com/jason/plugin/commom/BundleUrl.kt
浏览文件 @
f6d321ec
...
...
@@ -6,7 +6,7 @@ package com.jason.plugin.commom
* @mobile 18711832023
*/
object
BundleUrl
{
const
val
PLUGIN_ONE_MAIN_URL
=
"com.jason.plugin.
plugin_one
.PluginOneActivity"
const
val
PLUGIN_TWO_MAIN_URL
=
"com.jason.plugin.
plugin_two
.PluginTwoActivity"
const
val
PLUGIN_ONE_MAIN_URL
=
"com.jason.plugin.
one.activitis
.PluginOneActivity"
const
val
PLUGIN_TWO_MAIN_URL
=
"com.jason.plugin.
two.activitis
.PluginTwoActivity"
const
val
HOST_MAIN_URL
=
"com.jason.plugin.project.MainActivity"
}
host/Host_R.txt
浏览文件 @
f6d321ec
此差异已折叠。
点击以展开。
host/versions.txt
浏览文件 @
f6d321ec
android.arch.core:common:1.1.1 11567
android.arch.core:runtime:1.1.1 160
android.arch.lifecycle:common:1.1.1 20618
android.arch.lifecycle:livedata-core:1.1.1 160
android.arch.lifecycle:livedata:1.1.1 160
android.arch.lifecycle:runtime:1.1.1 192
android.arch.lifecycle:viewmodel:1.1.1 192
com.android.support.constraint:constraint-layout-solver:1.1.3 120857
com.android.support.constraint:constraint-layout:1.1.3 192
com.android.support:animated-vector-drawable:26.0.2 192
com.android.support:appcompat-v7:26.0.2 224
com.android.support:support-annotations:26.0.2 24712
com.android.support:support-compat:26.0.2 256
com.android.support:support-core-ui:26.0.2 192
com.android.support:support-core-utils:26.0.2 160
com.android.support:support-fragment:26.0.2 160
com.android.support:support-media-compat:26.0.2 288
com.android.support:support-v4:26.0.2 160
com.android.support:support-vector-drawable:26.0.2 160
com.android.support:animated-vector-drawable:28.0.0 192
com.android.support:appcompat-v7:28.0.0 288
com.android.support:asynclayoutinflater:28.0.0 160
com.android.support:collections:28.0.0 42329
com.android.support:coordinatorlayout:28.0.0 288
com.android.support:cursoradapter:28.0.0 160
com.android.support:customview:28.0.0 160
com.android.support:documentfile:28.0.0 160
com.android.support:drawerlayout:28.0.0 192
com.android.support:interpolator:28.0.0 160
com.android.support:loader:28.0.0 160
com.android.support:localbroadcastmanager:28.0.0 160
com.android.support:print:28.0.0 192
com.android.support:slidingpanelayout:28.0.0 160
com.android.support:support-annotations:28.0.0 27865
com.android.support:support-compat:28.0.0 320
com.android.support:support-core-ui:28.0.0 160
com.android.support:support-core-utils:28.0.0 160
com.android.support:support-fragment:28.0.0 192
com.android.support:support-vector-drawable:28.0.0 160
com.android.support:swiperefreshlayout:28.0.0 192
com.android.support:versionedparcelable:28.0.0 224
com.android.support:viewpager:28.0.0 160
com.didi.virtualapk:core:0.9.8 224
commom:debug:unspecified 0
org.jetbrains.kotlin:kotlin-stdlib-common:1.3.21 153220
...
...
plugin_key.jks
0 → 100644
浏览文件 @
f6d321ec
文件已添加
plugin_one/build.gradle
浏览文件 @
f6d321ec
...
...
@@ -26,9 +26,20 @@ android {
}
signingConfigs
{
release
{
storeFile
file
(
"../plugin_key.jks"
)
storePassword
"plugin"
keyAlias
"plugin"
keyPassword
"plugin"
}
}
buildTypes
{
release
{
minifyEnabled
false
signingConfig
signingConfigs
.
release
proguardFiles
getDefaultProguardFile
(
'proguard-android-optimize.txt'
),
'proguard-rules.pro'
}
}
...
...
plugin_two/build.gradle
浏览文件 @
f6d321ec
...
...
@@ -23,11 +23,22 @@ android {
}
signingConfigs
{
release
{
storeFile
file
(
"../plugin_key.jks"
)
storePassword
"plugin"
keyAlias
"plugin"
keyPassword
"plugin"
}
}
buildTypes
{
release
{
minifyEnabled
false
signingConfig
signingConfigs
.
release
proguardFiles
getDefaultProguardFile
(
'proguard-android-optimize.txt'
),
'proguard-rules.pro'
}
}
...
...
plugin_two/src/main/AndroidManifest.xml
浏览文件 @
f6d321ec
...
...
@@ -16,6 +16,7 @@
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
<activity
android:name=
".TestTwoCommonActivity"
/>
</application>
</manifest>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录