Skip to content

Commit

Permalink
doc:update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Petterpx committed Jul 22, 2024
1 parent cd75ca7 commit 45defba
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
```groovy
dependencies {
implementation 'io.github.petterpx:floatingx:2.2.1'
// system浮窗&&compose时需要导入
// 记得AppHelper里调用 enableComposeSupport()
implementation 'io.github.petterpx:floatingx-compose:2.2.1'
}
```

Expand Down
4 changes: 4 additions & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
```groovy
dependencies {
implementation 'io.github.petterpx:floatingx:2.2.1'
// System floating window && need to be imported when compose
// AppHelper invoke enableComposeSupport()
implementation 'io.github.petterpx:floatingx-compose:2.2.1'
}
```

Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ dependencies {
implementation "androidx.compose.ui:ui-tooling-preview"
implementation "androidx.compose.material3:material3"
debugImplementation 'androidx.compose.ui:ui-tooling'
// debugImplementation 'com.squareup.leakcanary:leakcanary-object-watcher-android-startup:2.10'
debugImplementation 'com.squareup.leakcanary:leakcanary-object-watcher-android-startup:2.10'
implementation isDev ? project(path: ':floatingx_compose') : "io.github.petterpx:floatingx-compose:$version_name"
implementation isDev ? project(path: ':floatingx') : "io.github.petterpx:floatingx:$version_name"
debugImplementation "com.bytedance.tools.codelocator:codelocator-core:2.0.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ class SimpleRvActivity : AppCompatActivity() {
event: MotionEvent,
control: IFxInternalHelper?
): Boolean {
val isHeader =
control?.checkPointerDownTouch(R.id.text, event)
val isHeader = control?.checkPointerDownTouch(R.id.text, event)
return isHeader ?: true
}
})
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Expand All @@ -11,8 +11,8 @@ pluginManagement {
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
google()
maven { url "https://jitpack.io" }
}
}
Expand Down

0 comments on commit 45defba

Please sign in to comment.