Skip to content

Commit

Permalink
chore: update gradle dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
qii committed Apr 13, 2022
1 parent f5f4103 commit f81d230
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 10 deletions.
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
21 changes: 16 additions & 5 deletions README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,其中:
Expand Down

0 comments on commit f81d230

Please sign in to comment.