Skip to content

Commit bd9f4fb

Browse files
author
mrzhang
committed
remove host in routenode
1 parent dfc05f8 commit bd9f4fb

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

app/src/main/java/com/luojilab/componentdemo/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import com.luojilab.componentservice.readerbook.ReadBookService;
1414
import com.luojilab.router.facade.annotation.RouteNode;
1515

16-
@RouteNode(host = "app", path = "/main")
16+
@RouteNode(path = "/main")
1717
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
1818

1919
Fragment fragment;

router-annotation/src/main/java/com/luojilab/router/facade/annotation/RouteNode.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@
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
}

sharecomponent/src/main/java/com/luojilab/share/Share2Activity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Created by mrzhang on 2017/12/19.
1616
*/
17-
@RouteNode(host = "share", path = "/shareMagazine")
17+
@RouteNode(path = "/shareMagazine")
1818
public class Share2Activity extends AppCompatActivity {
1919

2020
@Autowired(name = "bookName")

sharecomponent/src/main/java/com/luojilab/share/ShareActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* Created by mrzhang on 2017/6/20.
1717
*/
18-
@RouteNode(host = "share", path = "/shareBook")
18+
@RouteNode(path = "/shareBook")
1919
public class ShareActivity extends AppCompatActivity {
2020

2121
@Autowired

0 commit comments

Comments
 (0)