Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #204 from Unlimity/release-2.3.0
Browse files Browse the repository at this point in the history
2.3.0 release preparations
  • Loading branch information
Unlimity authored Feb 25, 2020
2 parents 04cab97 + 21ca37c commit 27e2451
Show file tree
Hide file tree
Showing 122 changed files with 1,822 additions and 72 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ Maven
<dependency>
<groupId>com.agoda.kakao</groupId>
<artifactId>kakao</artifactId>
<version>2.2.0</version>
<version>2.3.0</version>
<type>pom</type>
</dependency>
```
Expand All @@ -274,7 +274,7 @@ repositories {
}
dependencies {
androidTestImplementation 'com.agoda.kakao:kakao:2.2.0'
androidTestImplementation 'com.agoda.kakao:kakao:2.3.0'
}
```

Expand Down
24 changes: 13 additions & 11 deletions buildsystem/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ ext.versions = [
bintray : '1.7.3',
maven : '1.5',
oss : '4.5.4',
appcompat : '1.0.2',
recyclerview : '1.0.0',
annotation : '1.0.0',
design : '1.0.0',
appcompat : '1.1.0',
recyclerview : '1.1.0',
viewpager2 : '1.0.0',
swiperefresh : '1.0.0',
annotation : '1.1.0',
design : '1.1.0',
espresso : '3.1.1',
espresso_rules : '1.1.1',
espresso_runner: '1.1.1',
junit : '4.12',
viewpager2 : '1.0.0'
junit : '4.12'
]

ext.libraries = [
kotlin : "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin",
kotlin_stdlib : "org.jetbrains.kotlin:kotlin-stdlib:$versions.kotlin",
Expand All @@ -26,6 +26,8 @@ ext.libraries = [
oss : "org.jfrog.buildinfo:build-info-extractor-gradle:$versions.oss",
appcompat : "androidx.appcompat:appcompat:$versions.appcompat",
recyclerview : "androidx.recyclerview:recyclerview:$versions.recyclerview",
viewpager2 : "androidx.viewpager2:viewpager2:$versions.viewpager2",
swiperefresh : "androidx.swiperefreshlayout:swiperefreshlayout:$versions.swiperefresh",
annotation : "androidx.annotation:annotation:$versions.annotation",
design : "com.google.android.material:material:$versions.design",
espresso_runner : "androidx.test:runner:$versions.espresso_runner",
Expand All @@ -34,10 +36,10 @@ ext.libraries = [
espresso_web : "androidx.test.espresso:espresso-web:$versions.espresso",
espresso_contrib: "androidx.test.espresso:espresso-contrib:$versions.espresso",
espresso_intents: "androidx.test.espresso:espresso-intents:$versions.espresso",
junit : "junit:junit:$versions.junit",
viewpager2 : "androidx.viewpager2:viewpager2:$versions.viewpager2"
junit : "junit:junit:$versions.junit"
]


def alias = System.getenv('BINTRAY_ALIAS')

if (alias == null) {
Expand All @@ -49,8 +51,8 @@ ext.kakao = [
artifact : 'kakao',
name : 'kakao',
description : 'Kotlin based DSL for fluent AT with Espresso',
version : "2.2.0$alias",
version_desc : "Kakao 2.2.0$alias",
version : "2.3.0$alias",
version_desc : "Kakao 2.3.0$alias",
site : 'https://github.com/agoda-com/Kakao',
github : 'https://github.com/agoda-com/Kakao.git'
]
19 changes: 19 additions & 0 deletions docs/kakao/alltypes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
| [com.agoda.kakao.intent.BundleBuilder](../com.agoda.kakao.intent/-bundle-builder/index.md) | Class for building Bundle matchers |
| [com.agoda.kakao.check.CheckableActions](../com.agoda.kakao.check/-checkable-actions/index.md) | Provides action for checking views |
| [com.agoda.kakao.check.CheckableAssertions](../com.agoda.kakao.check/-checkable-assertions/index.md) | Provides checkable based assertions for views |
| [com.agoda.kakao.common.matchers.ChildCountMatcher](../com.agoda.kakao.common.matchers/-child-count-matcher/index.md) | Matches view with size no of children |
| [com.agoda.kakao.chipgroup.ChipGroupActions](../com.agoda.kakao.chipgroup/-chip-group-actions/index.md) | |
| [com.agoda.kakao.chipgroup.ChipGroupAssertions](../com.agoda.kakao.chipgroup/-chip-group-assertions/index.md) | Provides assertions for a ChipGroup |
| [com.agoda.kakao.intent.ComponentNameBuilder](../com.agoda.kakao.intent/-component-name-builder/index.md) | Class for building ComponentName matchers |
| [com.agoda.kakao.list.DataBuilder](../com.agoda.kakao.list/-data-builder/index.md) | Class for building data matchers |
| [com.agoda.kakao.delegate.DataInteractionDelegate](../com.agoda.kakao.delegate/-data-interaction-delegate/index.md) | Delegation class for [DataInteraction](#). Wraps all available public calls and intercepts [check](../com.agoda.kakao.delegate/-data-interaction-delegate/check.md) and [perform](../com.agoda.kakao.delegate/-data-interaction-delegate/perform.md). |
Expand Down Expand Up @@ -46,12 +49,14 @@
| [com.agoda.kakao.bottomnav.KBottomNavigationView](../com.agoda.kakao.bottomnav/-k-bottom-navigation-view/index.md) | View for acting and asserting on BottomNavigationView |
| [com.agoda.kakao.text.KButton](../com.agoda.kakao.text/-k-button/index.md) | View with BaseActions and TextViewAssertions |
| [com.agoda.kakao.check.KCheckBox](../com.agoda.kakao.check/-k-check-box/index.md) | View with CheckableActions, CheckableAssertions and TextViewAssertions |
| [com.agoda.kakao.chipgroup.KChipGroup](../com.agoda.kakao.chipgroup/-k-chip-group/index.md) | View with ChipGroupActions and ChipGroupAssertions |
| [com.agoda.kakao.picker.date.KDatePicker](../com.agoda.kakao.picker.date/-k-date-picker/index.md) | View for interact with default date picker |
| [com.agoda.kakao.picker.date.KDatePickerDialog](../com.agoda.kakao.picker.date/-k-date-picker-dialog/index.md) | View for interact with default date picker dialog |
| [com.agoda.kakao.drawer.KDrawerView](../com.agoda.kakao.drawer/-k-drawer-view/index.md) | View with DrawerActions and BaseAssertions |
| [com.agoda.kakao.edit.KEditText](../com.agoda.kakao.edit/-k-edit-text/index.md) | View with EditableActions and TextViewAssertions |
| [com.agoda.kakao.list.KEmptyAdapterItem](../com.agoda.kakao.list/-k-empty-adapter-item/index.md) | Empty implementation of KAdapterItem |
| [com.agoda.kakao.recycler.KEmptyRecyclerItem](../com.agoda.kakao.recycler/-k-empty-recycler-item/index.md) | Empty implementation of KRecyclerItem |
| [com.agoda.kakao.pager2.KEmptyViewPagerItem](../com.agoda.kakao.pager2/-k-empty-view-pager-item/index.md) | Empty implementation of KViewPagerItem |
| [com.agoda.kakao.image.KImageView](../com.agoda.kakao.image/-k-image-view/index.md) | View with BaseActions and ImageViewAssertions |
| [com.agoda.kakao.intent.KIntent](../com.agoda.kakao.intent/-k-intent/index.md) | This class is intended to be used when you need to check if some intent has been sent or to mock specific intent with result |
| [com.agoda.kakao.navigation.KNavigationView](../com.agoda.kakao.navigation/-k-navigation-view/index.md) | View with NavigationViewActions and NavigationViewAssertions |
Expand All @@ -64,6 +69,8 @@
| [com.agoda.kakao.scroll.KScrollView](../com.agoda.kakao.scroll/-k-scroll-view/index.md) | View with ScrollViewActions and BaseAssertions |
| [com.agoda.kakao.progress.KSeekBar](../com.agoda.kakao.progress/-k-seek-bar/index.md) | View with SeekBarActions and ProgressBarAssertions |
| [com.agoda.kakao.text.KSnackbar](../com.agoda.kakao.text/-k-snackbar/index.md) | View with internal TextView and a Button |
| [com.agoda.kakao.spinner.KSpinner](../com.agoda.kakao.spinner/-k-spinner/index.md) | |
| [com.agoda.kakao.spinner.KSpinnerItem](../com.agoda.kakao.spinner/-k-spinner-item/index.md) | KTextView implementation of KAdapterItem |
| [com.agoda.kakao.swiperefresh.KSwipeRefreshLayout](../com.agoda.kakao.swiperefresh/-k-swipe-refresh-layout/index.md) | View with SwipeRefreshLayoutActions and SwipeRefreshLayoutAssertions |
| [com.agoda.kakao.common.views.KSwipeView](../com.agoda.kakao.common.views/-k-swipe-view/index.md) | View with SwipeableActions and BaseAssertions |
| [com.agoda.kakao.switch.KSwitch](../com.agoda.kakao.switch/-k-switch/index.md) | View with SwitchableActions, CheckableAssertions and TextViewAssertions |
Expand All @@ -74,6 +81,10 @@
| [com.agoda.kakao.picker.time.KTimePickerDialog](../com.agoda.kakao.picker.time/-k-time-picker-dialog/index.md) | View for interact with default date picker dialog |
| [com.agoda.kakao.common.views.KView](../com.agoda.kakao.common.views/-k-view/index.md) | Simple view with BaseActions and BaseAssertions |
| [com.agoda.kakao.pager.KViewPager](../com.agoda.kakao.pager/-k-view-pager/index.md) | View with SwipeableActions and ViewPagerAssertions |
| [com.agoda.kakao.pager2.KViewPager2](../com.agoda.kakao.pager2/-k-view-pager2/index.md) | View with SwipeableActions and ViewPager2Assertions |
| [com.agoda.kakao.pager2.KViewPagerItem](../com.agoda.kakao.pager2/-k-view-pager-item/index.md) | Base class for KViewPager2 adapter items |
| [com.agoda.kakao.pager2.KViewPagerItemType](../com.agoda.kakao.pager2/-k-view-pager-item-type/index.md) | For internal use. Don't use manually. |
| [com.agoda.kakao.pager2.KViewPagerItemTypeBuilder](../com.agoda.kakao.pager2/-k-view-pager-item-type-builder/index.md) | Class that maps types to providing functions |
| [com.agoda.kakao.web.KWebView](../com.agoda.kakao.web/-k-web-view/index.md) | Class for interacting with WebViews |
| [com.agoda.kakao.common.matchers.NavigationItemMatcher](../com.agoda.kakao.common.matchers/-navigation-item-matcher/index.md) | Matches NavigationView with given item id checked |
| [com.agoda.kakao.navigation.NavigationViewActions](../com.agoda.kakao.navigation/-navigation-view-actions/index.md) | Provides actions for navigation view |
Expand All @@ -96,6 +107,11 @@
| [com.agoda.kakao.common.actions.ScrollableActions](../com.agoda.kakao.common.actions/-scrollable-actions/index.md) | Provides scrolling actions for view |
| [com.agoda.kakao.scroll.ScrollViewActions](../com.agoda.kakao.scroll/-scroll-view-actions/index.md) | Provides ScrollableActions implementation for ScrollView |
| [com.agoda.kakao.progress.SeekBarActions](../com.agoda.kakao.progress/-seek-bar-actions/index.md) | Provides action for SeekBar |
| [com.agoda.kakao.common.matchers.SelectedChipMatcher](../com.agoda.kakao.common.matchers/-selected-chip-matcher/index.md) | Matches checked chip |
| [com.agoda.kakao.spinner.SpinnerAdapterActions](../com.agoda.kakao.spinner/-spinner-adapter-actions/index.md) | |
| [com.agoda.kakao.spinner.SpinnerAdapterAssertions](../com.agoda.kakao.spinner/-spinner-adapter-assertions/index.md) | Provides assertions for Spinner adapter |
| [com.agoda.kakao.common.matchers.SpinnerAdapterSizeMatcher](../com.agoda.kakao.common.matchers/-spinner-adapter-size-matcher/index.md) | Matches Spinner with count of children |
| [com.agoda.kakao.common.matchers.SpinnerPopupMatcher](../com.agoda.kakao.common.matchers/-spinner-popup-matcher/index.md) | Matches Root View is popup window and contains DropDownView |
| [com.agoda.kakao.common.actions.SwipeableActions](../com.agoda.kakao.common.actions/-swipeable-actions/index.md) | Provides swipe actions for views |
| [com.agoda.kakao.swiperefresh.SwipeRefreshLayoutActions](../com.agoda.kakao.swiperefresh/-swipe-refresh-layout-actions/index.md) | Provides actions for SwipeRefreshLayout |
| [com.agoda.kakao.swiperefresh.SwipeRefreshLayoutAssertions](../com.agoda.kakao.swiperefresh/-swipe-refresh-layout-assertions/index.md) | Provides assertion for SwipeRefreshLayout |
Expand All @@ -114,6 +130,9 @@
| [com.agoda.kakao.intent.UriBuilder](../com.agoda.kakao.intent/-uri-builder/index.md) | Class for building Uri matchers |
| [com.agoda.kakao.common.builders.ViewBuilder](../com.agoda.kakao.common.builders/-view-builder/index.md) | Class for building view matchers and interactions |
| [com.agoda.kakao.delegate.ViewInteractionDelegate](../com.agoda.kakao.delegate/-view-interaction-delegate/index.md) | Delegation class for [ViewInteraction](#). Wraps all available public calls and intercepts [check](../com.agoda.kakao.delegate/-view-interaction-delegate/check.md) and [perform](../com.agoda.kakao.delegate/-view-interaction-delegate/perform.md). |
| [com.agoda.kakao.pager2.ViewPager2Actions](../com.agoda.kakao.pager2/-view-pager2-actions/index.md) | Provides ScrollableActions implementation for ViewPager2 |
| [com.agoda.kakao.pager2.ViewPager2AdapterAssertions](../com.agoda.kakao.pager2/-view-pager2-adapter-assertions/index.md) | Provides assertions for viewpager2 adapter |
| [com.agoda.kakao.common.matchers.ViewPager2AdapterSizeMatcher](../com.agoda.kakao.common.matchers/-view-pager2-adapter-size-matcher/index.md) | Matches ViewPager2 with count of children |
| [com.agoda.kakao.pager.ViewPagerAssertions](../com.agoda.kakao.pager/-view-pager-assertions/index.md) | Provides assertions for view pagers |
| [com.agoda.kakao.web.WebActions](../com.agoda.kakao.web/-web-actions/index.md) | Provides action for interacting with WebViews |
| [com.agoda.kakao.web.WebAssertions](../com.agoda.kakao.web/-web-assertions/index.md) | Interface that provides assertions for WebViews |
Expand Down
37 changes: 37 additions & 0 deletions docs/kakao/com.agoda.kakao.chipgroup/-chip-group-actions/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[kakao](../../index.md) / [com.agoda.kakao.chipgroup](../index.md) / [ChipGroupActions](./index.md)

# ChipGroupActions

`interface ChipGroupActions : `[`BaseActions`](../../com.agoda.kakao.common.actions/-base-actions/index.md)

### Inherited Properties

| Name | Summary |
|---|---|
| [view](../../com.agoda.kakao.common.actions/-base-actions/view.md) | `abstract val view: `[`ViewInteractionDelegate`](../../com.agoda.kakao.delegate/-view-interaction-delegate/index.md) |

### Functions

| Name | Summary |
|---|---|
| [selectChip](select-chip.md) | `open fun selectChip(text: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Select a Chip in a ChipGroup with matching text`open fun selectChip(id: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Select a Chip in a ChipGroup with matching id |
| [selectChipAt](select-chip-at.md) | `open fun selectChipAt(index: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Select a Chip in a ChipGroup at a particular index |

### Inherited Functions

| Name | Summary |
|---|---|
| [act](../../com.agoda.kakao.common.actions/-base-actions/act.md) | `open fun act(function: () -> ViewAction): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Performs custom action on a view |
| [click](../../com.agoda.kakao.common.actions/-base-actions/click.md) | `open fun click(location: GeneralLocation = GeneralLocation.VISIBLE_CENTER): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Performs click on view |
| [doubleClick](../../com.agoda.kakao.common.actions/-base-actions/double-click.md) | `open fun doubleClick(location: GeneralLocation = GeneralLocation.VISIBLE_CENTER): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Performs double click on view |
| [longClick](../../com.agoda.kakao.common.actions/-base-actions/long-click.md) | `open fun longClick(location: GeneralLocation = GeneralLocation.VISIBLE_CENTER): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Performs long click on view |
| [onFailure](../../com.agoda.kakao.common.actions/-base-actions/on-failure.md) | `open fun onFailure(function: (error: `[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`, matcher: Matcher<`[`View`](https://developer.android.com/reference/android/view/View.html)`>) -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Adds failure handler to the view |
| [pressImeAction](../../com.agoda.kakao.common.actions/-base-actions/press-ime-action.md) | `open fun pressImeAction(): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Presses IME action, if supported view is in focus |
| [repeatUntil](../../com.agoda.kakao.common.actions/-base-actions/repeat-until.md) | `open fun repeatUntil(maxAttempts: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = 1, action: () -> ViewAction, matcher: `[`ViewBuilder`](../../com.agoda.kakao.common.builders/-view-builder/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Repeats given action on the view until this view will match the given matcher |
| [scrollTo](../../com.agoda.kakao.common.actions/-base-actions/scroll-to.md) | `open fun scrollTo(): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Scrolls to the view, if possible |

### Inheritors

| Name | Summary |
|---|---|
| [KChipGroup](../-k-chip-group/index.md) | `class KChipGroup : `[`KBaseView`](../../com.agoda.kakao.common.views/-k-base-view/index.md)`<`[`KChipGroup`](../-k-chip-group/index.md)`>, `[`ChipGroupActions`](./index.md)`, `[`ChipGroupAssertions`](../-chip-group-assertions/index.md)<br>View with ChipGroupActions and ChipGroupAssertions |
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[kakao](../../index.md) / [com.agoda.kakao.chipgroup](../index.md) / [ChipGroupActions](index.md) / [selectChipAt](./select-chip-at.md)

# selectChipAt

`open fun selectChipAt(index: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)

Select a Chip in a ChipGroup at a particular index

### Parameters

`index` - ChipGroup Chip indes
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[kakao](../../index.md) / [com.agoda.kakao.chipgroup](../index.md) / [ChipGroupActions](index.md) / [selectChip](./select-chip.md)

# selectChip

`open fun selectChip(text: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)

Select a Chip in a ChipGroup with matching text

### Parameters

`text` - Text to match`open fun selectChip(@IdRes id: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)

Select a Chip in a ChipGroup with matching id

### Parameters

`id` - Chip id
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[kakao](../../index.md) / [com.agoda.kakao.chipgroup](../index.md) / [ChipGroupAssertions](index.md) / [hasChip](./has-chip.md)

# hasChip

`open fun hasChip(text: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)

Check for Chip with text

### Parameters

`text` - expected text in chip`open fun hasChip(matcher: Matcher<`[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)

Check for Chip with matcher

### Parameters

`matcher` - expected matcher for chip`open fun hasChip(@IdRes id: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)

Check if ChipGroup has a Chip with id

### Parameters

`id` - Chip id
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[kakao](../../index.md) / [com.agoda.kakao.chipgroup](../index.md) / [ChipGroupAssertions](index.md) / [hasSize](./has-size.md)

# hasSize

`open fun hasSize(size: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)

Check if ChipGroup has size number of chips

### Parameters

`size` - Chip id
Loading

0 comments on commit 27e2451

Please sign in to comment.