diff --git a/README.md b/README.md index a5550360..b0d0458f 100644 --- a/README.md +++ b/README.md @@ -53,13 +53,24 @@ At the same time, we provide a series of migration solutions to help developers ## Get Started -Add to your build.gradle: +Add it to your root build.gradle at the end of repositories: +```gradle +allprojects { + repositories { + ... + maven { url 'https://jitpack.io' } + } +} +``` +Add it to your build.gradle: ```gradle -implementation 'com.github.bytedance.scene:scene:$latest_version' -implementation 'com.github.bytedance.scene:scene_ui:$latest_version' -implementation 'com.github.bytedance.scene:scene_shared_element_animation:$latest_version' -implementation 'com.github.bytedance.scene:scene_ktx:$latest_version' +dependencies { + implementation 'com.github.bytedance.scene:scene:$latest_version' + implementation 'com.github.bytedance.scene:scene_ui:$latest_version' + implementation 'com.github.bytedance.scene:scene_shared_element_animation:$latest_version' + implementation 'com.github.bytedance.scene:scene_ktx:$latest_version' +} ``` Scene has 2 subclasses: NavigationScene and GroupScene: diff --git a/README_cn.md b/README_cn.md index 9b2858ac..8e994a17 100644 --- a/README_cn.md +++ b/README_cn.md @@ -50,13 +50,24 @@ Scene框架尝试去解决上面提到的Activity和Fragment存在的问题 ## Get Started -在依赖中添加: +添加仓库源: +```gradle +allprojects { + repositories { + ... + maven { url 'https://jitpack.io' } + } +} +``` +添加依赖: ```gradle -implementation 'com.github.bytedance.scene:scene:$latest_version' -implementation 'com.github.bytedance.scene:scene_ui:$latest_version' -implementation 'com.github.bytedance.scene:scene_shared_element_animation:$latest_version' -implementation 'com.github.bytedance.scene:scene_ktx:$latest_version' +dependencies { + implementation 'com.github.bytedance.scene:scene:$latest_version' + implementation 'com.github.bytedance.scene:scene_ui:$latest_version' + implementation 'com.github.bytedance.scene:scene_shared_element_animation:$latest_version' + implementation 'com.github.bytedance.scene:scene_ktx:$latest_version' +} ``` Scene有2个子类:NavigationScene和GroupScene,其中: