Skip to content

Commit

Permalink
修改LoaderFactoryImpl包名。保留原有包名类兼容旧版本host。
Browse files Browse the repository at this point in the history
  • Loading branch information
shifujun committed May 20, 2019
1 parent 7b8a552 commit 1500bcc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class LoaderImplLoader extends ImplLoader {
};

private final static String sLoaderFactoryImplClassName
= "com.tencent.shadow.dynamic.impl.LoaderFactoryImpl";
= "com.tencent.shadow.dynamic.loader.impl.LoaderFactoryImpl";

PluginLoaderImpl load(InstalledApk installedApk, String uuid, Context appContext) throws Exception {
ApkClassLoader pluginLoaderClassLoader = new ApkClassLoader(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
package com.tencent.shadow.dynamic.impl

import android.content.Context
import com.tencent.shadow.dynamic.host.LoaderFactory
import com.tencent.shadow.dynamic.host.PluginLoaderImpl
import com.tencent.shadow.dynamic.loader.impl.DynamicPluginLoader
import com.tencent.shadow.dynamic.loader.impl.PluginLoaderBinder

class LoaderFactoryImpl : LoaderFactory {
override fun buildLoader(p0: String, p2: Context): PluginLoaderImpl {
return PluginLoaderBinder(DynamicPluginLoader(p2, p0))
}
@Deprecated("兼容旧版本dynamic-host访问这个类名", level = DeprecationLevel.HIDDEN)
class LoaderFactoryImpl : com.tencent.shadow.dynamic.loader.impl.LoaderFactoryImpl() {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.tencent.shadow.dynamic.loader.impl

import android.content.Context
import com.tencent.shadow.dynamic.host.LoaderFactory
import com.tencent.shadow.dynamic.host.PluginLoaderImpl

open class LoaderFactoryImpl : LoaderFactory {
override fun buildLoader(p0: String, p2: Context): PluginLoaderImpl {
return PluginLoaderBinder(DynamicPluginLoader(p2, p0))
}
}

0 comments on commit 1500bcc

Please sign in to comment.