diff --git a/app/src/main/java/com/alibaba/android/arouter/demo/MainActivity.java b/app/src/main/java/com/alibaba/android/arouter/demo/MainActivity.java index 217b791e..15659029 100644 --- a/app/src/main/java/com/alibaba/android/arouter/demo/MainActivity.java +++ b/app/src/main/java/com/alibaba/android/arouter/demo/MainActivity.java @@ -66,7 +66,7 @@ public void onClick(View v) { break; case R.id.kotlinNavigation: ARouter.getInstance() - .build("/test/kotlin") + .build("/kotlin/test") .withString("name", "老王") .withInt("age", 23) .navigation(); diff --git a/module-kotlin/src/main/java/com/alibaba/android/arouter/demo/kotlin/KotlinTestActivity.kt b/module-kotlin/src/main/java/com/alibaba/android/arouter/demo/kotlin/KotlinTestActivity.kt index 374226fc..28838ee7 100644 --- a/module-kotlin/src/main/java/com/alibaba/android/arouter/demo/kotlin/KotlinTestActivity.kt +++ b/module-kotlin/src/main/java/com/alibaba/android/arouter/demo/kotlin/KotlinTestActivity.kt @@ -7,7 +7,7 @@ import com.alibaba.android.arouter.facade.annotation.Route import com.alibaba.android.arouter.launcher.ARouter import kotlinx.android.synthetic.main.activity_kotlin_test.* -@Route(path = "/test/kotlin") +@Route(path = "/kotlin/test") class KotlinTestActivity : Activity() { @Autowired diff --git a/module-kotlin/src/main/java/com/alibaba/android/arouter/demo/kotlin/TestNormalActivity.java b/module-kotlin/src/main/java/com/alibaba/android/arouter/demo/kotlin/TestNormalActivity.java index d371abd5..f70c3802 100644 --- a/module-kotlin/src/main/java/com/alibaba/android/arouter/demo/kotlin/TestNormalActivity.java +++ b/module-kotlin/src/main/java/com/alibaba/android/arouter/demo/kotlin/TestNormalActivity.java @@ -5,7 +5,7 @@ import com.alibaba.android.arouter.facade.annotation.Route; -@Route(path = "/test/normal/activity") +@Route(path = "/kotlin/java") public class TestNormalActivity extends AppCompatActivity { @Override