-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
查郁
committed
Apr 8, 2019
1 parent
52eb5d1
commit e543eb6
Showing
6 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...AtlasDemo/secondbundle/src/main/java/com/taobao/secondbundle/SecondBundleApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.taobao.secondbundle; | ||
|
||
import android.app.Application; | ||
|
||
/** | ||
* 创建日期:2019/4/8 on 下午2:21 | ||
* 描述: | ||
* 作者:zhayu.ll | ||
*/ | ||
public class SecondBundleApplication extends Application { | ||
|
||
public static SecondBundleIniter secondBundleIniter; | ||
// here is the second bundle init method | ||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
secondBundleIniter = new SecondBundleIniter(); | ||
secondBundleIniter.init(this); | ||
|
||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...demo/AtlasDemo/secondbundle/src/main/java/com/taobao/secondbundle/SecondBundleIniter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.taobao.secondbundle; | ||
|
||
import android.app.Application; | ||
|
||
/** | ||
* 创建日期:2019/4/8 on 下午2:25 | ||
* 描述: | ||
* 作者:zhayu.ll | ||
*/ | ||
public class SecondBundleIniter { | ||
|
||
|
||
private Application application; | ||
|
||
|
||
public void init(Application application){ | ||
|
||
this.application = application; | ||
} | ||
|
||
|
||
public Application getApplication(){ | ||
|
||
return application; | ||
} | ||
} |