File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed
app/src/main/java/com/luojilab/componentdemo
router-annotation/src/main/java/com/luojilab/router/facade/annotation
sharecomponent/src/main/java/com/luojilab/share Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1313import com .luojilab .componentservice .readerbook .ReadBookService ;
1414import com .luojilab .router .facade .annotation .RouteNode ;
1515
16- @ RouteNode (host = "app" , path = "/main" )
16+ @ RouteNode (path = "/main" )
1717public class MainActivity extends AppCompatActivity implements View .OnClickListener {
1818
1919 Fragment fragment ;
Original file line number Diff line number Diff line change 1919 * path of one route
2020 */
2121 String path ();
22-
2322 /**
24- * host of one route, each component has an uinque host
23+ * The priority of route.
2524 */
26- String host () ;
25+ int priority () default - 1 ;
2726
2827 /**
29- * The priority of route.
28+ * description of the activity, user for gen route table
3029 */
31- int priority () default - 1 ;
30+ String desc () default "" ;
3231}
Original file line number Diff line number Diff line change 1414/**
1515 * Created by mrzhang on 2017/12/19.
1616 */
17- @ RouteNode (host = "share" , path = "/shareMagazine" )
17+ @ RouteNode (path = "/shareMagazine" )
1818public class Share2Activity extends AppCompatActivity {
1919
2020 @ Autowired (name = "bookName" )
Original file line number Diff line number Diff line change 1515/**
1616 * Created by mrzhang on 2017/6/20.
1717 */
18- @ RouteNode (host = "share" , path = "/shareBook" )
18+ @ RouteNode (path = "/shareBook" )
1919public class ShareActivity extends AppCompatActivity {
2020
2121 @ Autowired
You can’t perform that action at this time.
0 commit comments