Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ apply plugin: 'signing'

//定义GroupID和Version,ArtefactID会自动使用Project名
group = 'com.dynamicload.framework'
version = '4.2.160721'
version = '4.2.160829'

artifacts {
archives file('build/libs/' + project.name + '.jar')
Expand Down
13 changes: 12 additions & 1 deletion src/main/java/com/dynamicload/framework/util/FrameworkUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class FrameworkUtil {

private static final String TAG = "FrameworkUtil";

private static final String PROJECT_NAME = "vivavideo";
private static String PROJECT_NAME = "vivavideo";
//key: H5Core(Module Name) value: data/data/xxxxx/lib/libh5core.so
public static Map<String, Bundle> soPathMap = new HashMap<String, Bundle>();

Expand All @@ -42,11 +42,22 @@ public static Context getContext() {
return context;
}

@Deprecated
/**
* U need use setConfig.
*/
public static void setContext(Context context) {
FrameworkUtil.context = context;
Log.e(TAG, "Do u need setConfig?");
}

public static void setConfig(Context context, String projectName) {
setContext(context);
PROJECT_NAME = projectName;
}

public static void prepare() {

prepareSoMap();
//loadDex without lazy

Expand Down