Pin AGP 'debug.keystore' in the repo.

This change adds shared 'debug.keystore' into the repository and
sets all the tests to use it.

Fixes issue when keystore was created by AGP 7+, but then consumed in
the test using lower versions of AGP.

^KT-45745 In Progress
This commit is contained in:
Yahor Berdnikau
2021-12-01 22:28:04 +01:00
committed by Space
parent 782b4f64be
commit 59ec10eb9c
26 changed files with 349 additions and 10 deletions
@@ -103,6 +103,43 @@ fun someTest(
}
```
##### Common test fixes
Test infrastructure adds following common fixes to all test projects:
- applies 'org.jetbrains.kotlin.test.fixes.android' [plugin](../gradle/android-test-fixes/Readme.md). If you are using custom `settings.gradle`
or `settings.gradle.kts` content in the test project, you need to add this plugin into `pluginManagement`:
<details open>
<summary>Kotlin script</summary>
```kotlin
pluginManagement {
repositories {
mavenLocal()
}
val test_fixes_version: String by settings
plugins {
id("org.jetbrains.kotlin.test.fixes.android") version test_fixes_version
}
}
```
</details>
<details>
<summary>Groovy</summary>
```groovy
pluginManagement {
repositories {
mavenLocal()
}
plugins {
id "org.jetbrains.kotlin.test.fixes.android" version $test_fixes_version
}
}
```
</details>
##### Deprecated tests setup
When you create a new test, figure out which Gradle versions it is supposed to run on. Then, when you instantiate a test project, specify one of: