File tree 6 files changed +18
-4
lines changed
src/main/java/ovh/plrapps/mapcompose
6 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ There's an example in the demo app.
75
75
76
76
Add this to your module's build.gradle
77
77
``` groovy
78
- implementation 'ovh.plrapps:mapcompose:2.16.0 '
78
+ implementation 'ovh.plrapps:mapcompose:2.16.1 '
79
79
```
80
80
81
81
Starting with v.2.4.1, the library is using the
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ buildscript {
10
10
mavenCentral()
11
11
}
12
12
dependencies {
13
- classpath ' com.android.tools.build:gradle:8.8.2 '
13
+ classpath ' com.android.tools.build:gradle:8.9.1 '
14
14
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
15
15
16
16
// NOTE: Do not place your application dependencies here; they belong
Original file line number Diff line number Diff line change 1
1
# Wed Apr 21 20:01:30 CEST 2021
2
2
distributionBase =GRADLE_USER_HOME
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.10.2 -bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.11.1 -bin.zip
4
4
distributionPath =wrapper/dists
5
5
zipStorePath =wrapper/dists
6
6
zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change 1
1
GROUP =ovh.plrapps
2
- VERSION_NAME =2.16.0
2
+ VERSION_NAME =2.16.1
3
3
ARTIFACT_ID =mapcompose
4
4
5
5
POM_NAME =MapCompose
Original file line number Diff line number Diff line change @@ -145,6 +145,13 @@ fun MapState.removeAllPaths() {
145
145
pathState.removeAllPaths()
146
146
}
147
147
148
+ /* *
149
+ * Remove paths given a predicate which operates on path id.
150
+ */
151
+ fun MapState.removePaths (predicate : (id: String ) -> Boolean ) {
152
+ pathState.removePaths(predicate)
153
+ }
154
+
148
155
/* *
149
156
* Check whether a path was already added or not.
150
157
*
Original file line number Diff line number Diff line change @@ -65,6 +65,13 @@ internal class PathState(
65
65
pathState.clear()
66
66
}
67
67
68
+ fun removePaths (predicate : (String ) -> Boolean ) {
69
+ val iter = pathState.iterator()
70
+ for ((id, _) in iter) {
71
+ if (predicate(id)) iter.remove()
72
+ }
73
+ }
74
+
68
75
fun updatePath (
69
76
id : String ,
70
77
pathData : PathData ? = null,
You can’t perform that action at this time.
0 commit comments