Skip to content

Commit 12a6023

Browse files
committed
[anno] [complete autowire params fetches from intent-bundle]
1 parent be26d30 commit 12a6023

File tree

27 files changed

+600
-11
lines changed

27 files changed

+600
-11
lines changed

app/gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ org.gradle.jvmargs=-Xmx1536m
1212
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1313
# org.gradle.parallel=true
1414
isRunAlone=true
15-
debugComponent=readercomponent,com.mrzhang.share:sharecomponent
15+
debugComponent=readercomponent,sharecomponent,jsoncomponent,dicomponent
16+
#debugComponent=readercomponent,com.mrzhang.share:sharecomponent,jsoncomponent,dicomponent
17+
1618
compileComponent=readercomponent,sharecomponent,jsoncomponent,dicomponent
1719

1820

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
package com.ljsw.component.di.applike;
22

3+
import com.ljsw.component.di.serviceimpl.AutowiredServiceImpl;
34
import com.mrzhang.component.componentlib.applicationlike.IApplicationLike;
5+
import com.mrzhang.component.componentlib.router.Router;
6+
import com.mrzhang.component.componentlib.router.ui.UIRouter;
7+
import com.mrzhang.componentservice.di.AutowiredService;
48

59
/**
610
* <p><b>Package:</b> com.ljsw.component.di.applike </p>
@@ -11,15 +15,18 @@
1115
*/
1216

1317
public class DepInjectAppLike implements IApplicationLike {
14-
//nothing for router
18+
UIRouter uiRouter = UIRouter.getInstance();
19+
Router router = Router.getInstance();
20+
21+
//no ui-router for register
1522

1623
@Override
1724
public void onCreate() {
18-
25+
router.addService(AutowiredService.class.getSimpleName(),new AutowiredServiceImpl());
1926
}
2027

2128
@Override
2229
public void onStop() {
23-
30+
router.removeService(AutowiredService.class.getSimpleName());
2431
}
2532
}

jsoncompnent/src/androidTest/java/com/ljsw/component/json/ExampleInstrumentedTest.java renamed to jsoncomponent/src/androidTest/java/com/ljsw/component/json/ExampleInstrumentedTest.java

File renamed without changes.
File renamed without changes.

jsoncompnent/src/main/java/com/ljsw/component/json/applike/JsonAppLike.java renamed to jsoncomponent/src/main/java/com/ljsw/component/json/applike/JsonAppLike.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
package com.ljsw.component.json.applike;
22

3+
import com.ljsw.component.json.serviceimpl.JsonServiceImpl;
34
import com.mrzhang.component.componentlib.applicationlike.IApplicationLike;
5+
import com.mrzhang.component.componentlib.router.Router;
6+
import com.mrzhang.component.componentlib.router.ui.UIRouter;
7+
import com.mrzhang.componentservice.json.JsonService;
48

59
/**
610
* <p><b>Package:</b> com.ljsw.component.json.applike </p>
@@ -12,15 +16,18 @@
1216

1317
public class JsonAppLike implements IApplicationLike {
1418

15-
// UIRouter uiRouter = UIRouter.getInstance();
19+
UIRouter uiRouter = UIRouter.getInstance();
20+
Router router = Router.getInstance();
1621

1722
//no ui-router for register
1823

1924
@Override
2025
public void onCreate() {
26+
router.addService(JsonService.class.getSimpleName(),new JsonServiceImpl());
2127
}
2228

2329
@Override
2430
public void onStop() {
31+
router.removeService(JsonService.class.getSimpleName());
2532
}
2633
}

jsoncompnent/src/main/java/com/ljsw/component/json/serviceimpl/JsonServiceImpl.java renamed to jsoncomponent/src/main/java/com/ljsw/component/json/serviceimpl/JsonServiceImpl.java

File renamed without changes.

0 commit comments

Comments
 (0)