-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update behavioural events API (#1923)
* Try out new behavioural event API * Remove sample & tests * Add licensing header * Create type alias for wrapper * Add modifier
- 67.4.0
- 67.3.0
- 67.2.0
- 67.1.0
- 67.0.2
- 67.0.1
- 67.0.0
- 66.15.1
- 66.15.0
- 66.14.1
- 66.14.0
- 66.13.0
- 66.12.1
- 66.12.0
- 66.11.0
- 66.10.0
- 66.9.0
- 66.8.0
- 66.7.0
- 66.6.1
- 66.6.0
- 66.5.0
- 66.4.1
- 66.4.0
- 66.3.0
- 66.2.0
- 66.1.2
- 66.1.1
- 66.1.0
- 66.0.1
- 66.0.0
- 65.6.1
- 65.6.0
- 65.5.0
- 65.4.0
- 65.3.0
- 65.2.0
- 65.1.0
- 65.0.0
- 64.1.0
- 64.0.0
- 63.3.0
- 63.2.1
- 63.2.0
- 63.1.3
- 63.1.2
- 63.1.1
- 63.1.0
- 63.0.0
- 62.3.3
- 62.3.2
- 62.3.1
- 62.3.0
- 62.2.0
- 62.1.0
- 62.0.0
- 61.6.1
Maria Neumayer
authored
Apr 9, 2024
1 parent
77a546e
commit 4edcdc3
Showing
8 changed files
with
62 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
186 changes: 0 additions & 186 deletions
186
...ndroidTest/kotlin/net/skyscanner/backpack/compose/appsearchmodal/BpkAppSearchModalTest.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 0 additions & 62 deletions
62
...ack-compose/src/main/kotlin/net/skyscanner/backpack/compose/utils/BehaviouralModifiers.kt
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
...mpose/src/main/kotlin/net/skyscanner/backpack/compose/utils/BpkBehaviouralEventWrapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* Backpack for Android - Skyscanner's Design System | ||
* | ||
* Copyright 2018 Skyscanner Ltd | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package net.skyscanner.backpack.compose.utils | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
|
||
/** | ||
* This is used for registering components for behavioural events. Right now this supports `onClick` events, while any other | ||
* events must be handled by the consumer. | ||
*/ | ||
|
||
typealias BpkBehaviouralEventWrapper = @Composable (item: Any, modifier: Modifier, content: @Composable BpkClickHandleScope.() -> Unit) -> Unit | ||
|
||
interface BpkClickHandleScope { | ||
fun notifyClick() | ||
} |