Skip to content

Commit

Permalink
暂时先手动加载的方式
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojinzi123 committed Jan 30, 2024
1 parent e425644 commit 826e904
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Demo/app/src/main/java/com/xiaojinzi/componentdemo/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import androidx.multidex.MultiDexApplication;

import com.xiaojinzi.base.ModuleConfig;
import com.xiaojinzi.component.Component;
import com.xiaojinzi.component.Config;
import com.xiaojinzi.component.impl.application.ModuleManager;
import com.xiaojinzi.component.support.LogUtil;
import com.xiaojinzi.component.support.RxErrorIgnoreUtil;

Expand Down Expand Up @@ -46,6 +48,15 @@ public void onCreate() {
// 如果不是 rx 的版本, 请忽略
RxErrorIgnoreUtil.ignoreError();

// 手动加载
ModuleManager.getInstance().registerArr(
ModuleConfig.App.NAME,
ModuleConfig.User.NAME,
ModuleConfig.Help.NAME,
ModuleConfig.Module1.NAME,
ModuleConfig.Module2.NAME
);

}

}

0 comments on commit 826e904

Please sign in to comment.