Skip to content

Commit

Permalink
chore: bump version to 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dingyi222666 committed Apr 21, 2023
1 parent 3845410 commit 266a420
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ An TreeView implement in Android with RecyclerView written in kotlin.

- [x] Select or Deselect Node
- [x] Better TreeNodeGenerator API
- [ ] Sorted Data in
- [ ] More API to operate the node in the tree, such as expand, collapse, etc.
- [ ] Draggable nodes

Expand All @@ -31,7 +30,7 @@ An TreeView implement in Android with RecyclerView written in kotlin.
- Add the dependency to your gradle file

```groovy
implementation("io.github.dingyi222666:treeview:1.1.0")
implementation("io.github.dingyi222666:treeview:1.2.0")
```

- Use the `DataSource` DSL to create tree used for the TreeView. Also you can [use the `TreeNodeGenerator`](https://github.com/dingyi222666/TreeView/issues/4) to create the tree.
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/com/dingyi/treeview/FileActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,8 @@ class FileNodeGenerator(
)
}


}


class FileListLoader {

private val cacheFiles = mutableMapOf<String, MutableList<File>>()
Expand Down
8 changes: 6 additions & 2 deletions treeview/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("com.vanniktech.maven.publish") version "0.23.1"
id("com.vanniktech.maven.publish") version "0.25.2"
id("maven-publish")
signing
}

android {
Expand Down Expand Up @@ -34,12 +35,14 @@ android {
}
}



mavenPublishing {
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.S01)

signAllPublications()

coordinates("io.github.dingyi222666", "treeview", "1.1.0")
coordinates("io.github.dingyi222666", "treeview", "1.2.0")

pom {
name.set("TreeView")
Expand Down Expand Up @@ -69,6 +72,7 @@ mavenPublishing {
}



dependencies {
compileOnly("androidx.core:core-ktx:1.9.0")
compileOnly("androidx.appcompat:appcompat:1.6.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ class Tree<T : Any> internal constructor() : AbstractTree<T> {
if (targetNode.path == "/root" && targetNode != rootNode) {
targetNode.path = parentNode.path + "/" + targetNode.name
}
Log.d(
/*Log.d(
"LogTest",
"targetNode.path = ${targetNode.path}, parentNode.path = ${parentNode.path}, targetNode == rootNode = ${targetNode == rootNode}"
)
)*/
oldNodes.remove(targetNode)
targetChildNodeList.add(targetNode)
}
Expand Down

0 comments on commit 266a420

Please sign in to comment.