Skip to content

Commit

Permalink
Update tutorial and docs (#262)
Browse files Browse the repository at this point in the history
* Update tutorial and docs

Signed-off-by: Ruslan Mingaliev <[email protected]>

* Update breaking changes

Signed-off-by: Ruslan Mingaliev <[email protected]>

* Add link to mavenCentral

Signed-off-by: Ruslan Mingaliev <[email protected]>

* Remove version

Signed-off-by: Ruslan Mingaliev <[email protected]>
  • Loading branch information
RuslanMingaliev authored Jun 16, 2021
1 parent 96d16a9 commit e7bd534
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Kaspresso-green.svg?style=flat )](https://android-arsenal.com/details/1/7896)
[![Android Weekly](https://img.shields.io/badge/Android%20Weekly-383-green.svg)](http://androidweekly.net/issues/issue-383)
[![Android Weekly](https://img.shields.io/badge/Android%20Weekly-392-green.svg)](http://androidweekly.net/issues/issue-392)
[![Download](https://api.bintray.com/packages/ruslanmingaliev/Kaspresso/Kaspresso/images/download.svg?version=1.2.0) ](https://bintray.com/ruslanmingaliev/Kaspresso/Kaspresso/1.2.0/link)
[![MavenCentral](https://img.shields.io/maven-central/v/com.kaspersky.android-components/kaspresso)](https://search.maven.org/artifact/com.kaspersky.android-components/kaspresso)
![Build and Deploy](https://github.com/KasperskyLab/Kaspresso/workflows/Build%20and%20Deploy/badge.svg)
[![Telegram](https://img.shields.io/static/v1?label=Telegram&message=RU&color=0088CC)](https://t.me/kaspresso)
[![Telegram](https://img.shields.io/static/v1?label=Telegram&message=EN&color=0088CC)](https://t.me/kaspresso_en)
Expand Down Expand Up @@ -215,12 +215,12 @@ For all information check [Kaspresso wiki](/wiki/00_Home.md)
## Integration

To integrate Kaspresso into your project:
1. If the `jcenter` repository does not exist, include it to your root `build.gradle` file:
1. If the `mavenCentral` repository does not exist, include it to your root `build.gradle` file:

```groovy
allprojects {
repositories {
jcenter()
mavenCentral()
}
}
```
Expand All @@ -229,7 +229,7 @@ allprojects {

```groovy
dependencies {
androidTestImplementation 'com.kaspersky.android-components:kaspresso:1.2.0'
androidTestImplementation 'com.kaspersky.android-components:kaspresso:1.2.1'
}
```

Expand All @@ -253,7 +253,7 @@ repositories {
}
dependencies {
androidTestImplementation 'com.kaspersky.android-components:kaspresso:1.2.1-SNAPSHOT'
androidTestImplementation 'com.kaspersky.android-components:kaspresso:1.2.2-SNAPSHOT'
}
```

Expand All @@ -270,11 +270,15 @@ cd ~/Workspace/Kaspresso
java -jar artifacts/adbserver-desktop.jar
```

## Breaking changes in 1.2.0
1. We've totally reworked AdbServer and Kaspresso 1.2.0 works only with new `artifacts/adbserver-desktop.jar`<br>
## Breaking changes
### 1.2.0
- We've totally reworked AdbServer and Kaspresso 1.2.0 works only with new `artifacts/adbserver-desktop.jar`<br>
The old version `artifacts/desktop_1_1_0.jar` is also available for use with older versions of Kaspresso.
2. If you use `device.logcat` in your tests, you should call `device.logcat.disableChatty` in the `before` section of your test.
- If you use `device.logcat` in your tests, you should call `device.logcat.disableChatty` in the `before` section of your test.
In previous version of Kaspresso, `device.logcat.disableChatty` was called automatically during initialization. This resulted in the need to always run AdbServer before tests.
### 1.2.1
- Kaspresso migrated to a new version of Kakao which has `io.github.kakaocup.kakao` package name. Replace all imports using command
`find . -type f \( -name "*.kt" -o -name "*.java" \) -print0 | xargs -0 sed -i '' -e 's/com.agoda/io.github.kakaocup/g'` or using global replacement tool in IDE.

## Contribution
Kaspresso is an open source project, so you are welcome to contribute (see the [Contribution Guidelines](https://github.com/KasperskyLab/Kaspresso/blob/master/CONTRIBUTING.md)).
Expand Down
1 change: 0 additions & 1 deletion build-conventions/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
jcenter()
}
}
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ dependencyResolutionManagement {
repositories {
mavenCentral()
google()
jcenter() // Remove after migration to mavenCentral
maven { url = uri("https://kotlin.bintray.com/kotlinx") }
}
}
Expand Down
2 changes: 1 addition & 1 deletion tutorial/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ dependencies {
implementation("androidx.appcompat:appcompat:1.3.0")
implementation("com.google.android.material:material:1.3.0")

androidTestImplementation("com.kaspersky.android-components:kaspresso:1.2.0")
androidTestImplementation("com.kaspersky.android-components:kaspresso:1.2.1")
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.kaspersky.kaspresso.tutorial.screen

import com.agoda.kakao.text.KButton
import com.kaspersky.kaspresso.screens.KScreen
import com.kaspersky.kaspresso.tutorial.MainActivity
import com.kaspersky.kaspresso.tutorial.R
import io.github.kakaocup.kakao.text.KButton

object MainScreen : KScreen<MainScreen>() {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.kaspersky.kaspresso.tutorial.screen

import com.agoda.kakao.edit.KEditText
import com.agoda.kakao.text.KButton
import com.kaspersky.kaspresso.screens.KScreen
import com.kaspersky.kaspresso.tutorial.R
import com.kaspersky.kaspresso.tutorial.simple.SimpleActivity
import io.github.kakaocup.kakao.edit.KEditText
import io.github.kakaocup.kakao.text.KButton

object SimpleScreen : KScreen<SimpleScreen>() {

Expand Down

0 comments on commit e7bd534

Please sign in to comment.