提交 f6d321ec 编写于 作者: A asure

修改BundleUrl地址,确保跳转路径正确

上级 ebb327e8
<?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">
......
......@@ -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')
......
......@@ -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()
......
......@@ -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:26.0.2"
api "com.android.support:appcompat-v7:28.0.0"
api 'com.android.support.constraint:constraint-layout:1.1.3'
}
......@@ -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"
}
此差异已折叠。
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
......
文件已添加
......@@ -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'
}
}
......
......@@ -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'
}
}
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册