Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set Config. #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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