Skip to content

Commit 22a62be

Browse files
authored
release 4.0.0-rc.2 (#6065)
1 parent c36df17 commit 22a62be

14 files changed

+36
-36
lines changed

docs/source/advanced/apollo-ast.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add the `apollo-ast` dependency to your project:
2121
dependencies {
2222
// ...
2323

24-
implementation("com.apollographql.apollo:apollo-ast:4.0.0-rc.1")
24+
implementation("com.apollographql.apollo:apollo-ast:4.0.0-rc.2")
2525
}
2626
```
2727

docs/source/advanced/compiler-plugins.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ plugins {
3333

3434
dependencies {
3535
// Add apollo-compiler as a dependency
36-
implementation("com.apollographql.apollo:apollo-compiler:4.0.0-rc.1")
36+
implementation("com.apollographql.apollo:apollo-compiler:4.0.0-rc.2")
3737
}
3838
```
3939

docs/source/advanced/no-runtime.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Using the models without apollo-runtime
77
For this, remove the `com.apollographql.apollo:apollo-runtime` dependency and replace it with:
88

99
```kotlin title="build.gradle"
10-
implementation("com.apollographql.apollo:apollo-api:4.0.0-rc.1")
10+
implementation("com.apollographql.apollo:apollo-api:4.0.0-rc.2")
1111
```
1212

1313
## Composing an HTTP request body

docs/source/caching/http-cache.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To enable HTTP cache support, add the dependency to your project's `build.gradle
1717

1818
```kotlin title="build.gradle[.kts]"
1919
dependencies {
20-
implementation("com.apollographql.apollo:apollo-http-cache:4.0.0-rc.1")
20+
implementation("com.apollographql.apollo:apollo-http-cache:4.0.0-rc.2")
2121
}
2222
```
2323

docs/source/caching/normalized-cache.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Apollo Kotlin's `MemoryCache` is a normalized, in-memory cache for storing objec
7474

7575
```kotlin title="build.gradle[.kts]"
7676
dependencies {
77-
implementation("com.apollographql.apollo:apollo-normalized-cache:4.0.0-rc.1")
77+
implementation("com.apollographql.apollo:apollo-normalized-cache:4.0.0-rc.2")
7878
}
7979
```
8080

@@ -110,7 +110,7 @@ To enable SQLite cache support, add the `apollo-normalized-cache-sqlite` depende
110110

111111
```kotlin title="build.gradle.kts"
112112
dependencies {
113-
implementation("com.apollographql.apollo:apollo-normalized-cache-sqlite:4.0.0-rc.1")
113+
implementation("com.apollographql.apollo:apollo-normalized-cache-sqlite:4.0.0-rc.2")
114114
}
115115
```
116116

docs/source/index.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ Add the plugin to your `build.gradle.kts`:
3939

4040
```kotlin
4141
plugins {
42-
id("com.apollographql.apollo") version "4.0.0-rc.1"
42+
id("com.apollographql.apollo") version "4.0.0-rc.2"
4343
}
4444
```
4545

4646
Add the runtime dependency:
4747

4848
```kotlin
4949
dependencies {
50-
implementation("com.apollographql.apollo:apollo-runtime:4.0.0-rc.1")
50+
implementation("com.apollographql.apollo:apollo-runtime:4.0.0-rc.2")
5151
}
5252
```
5353

@@ -159,29 +159,29 @@ Installation instructions and more information can be found [here](testing/andro
159159

160160
## Releases
161161

162-
The latest version is `4.0.0-rc.1`.
162+
The latest version is `4.0.0-rc.2`.
163163

164164
Check the [changelog](https://github.com/apollographql/apollo-kotlin/releases) for the release history.
165165

166166
Releases are hosted on [Maven Central](https://repo1.maven.org/maven2/com/apollographql/apollo/). The plugin is additionally hosted on the [Gradle Plugin Portal](https://plugins.gradle.org/plugin/com.apollographql.apollo)
167167

168168
```kotlin
169169
plugins {
170-
id("com.apollographql.apollo") version "4.0.0-rc.1"
170+
id("com.apollographql.apollo") version "4.0.0-rc.2"
171171
}
172172

173173
repositories {
174174
mavenCentral()
175175
}
176176

177177
dependencies {
178-
implementation("com.apollographql.apollo:apollo-runtime:4.0.0-rc.1")
178+
implementation("com.apollographql.apollo:apollo-runtime:4.0.0-rc.2")
179179

180180
// Optional: if you want to use the normalized cache
181-
implementation("com.apollographql.apollo:apollo-normalized-cache-sqlite:4.0.0-rc.1")
181+
implementation("com.apollographql.apollo:apollo-normalized-cache-sqlite:4.0.0-rc.2")
182182
// Optional: if you just want the generated models and parsers and write your own HTTP code/cache code, you can remove apollo-runtime
183183
// and use apollo-api instead
184-
implementation("com.apollographql.apollo:apollo-api:4.0.0-rc.1")
184+
implementation("com.apollographql.apollo:apollo-api:4.0.0-rc.2")
185185
}
186186
```
187187

@@ -212,7 +212,7 @@ pluginManagement {
212212
}
213213
```
214214

215-
And then use the `4.0.0-rc.2-SNAPSHOT` version for the plugin and libraries.
215+
And then use the `4.0.0-rc.3-SNAPSHOT` version for the plugin and libraries.
216216

217217
These snapshots are updated on each push to `main`.
218218

docs/source/testing/apollo-debug-server.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies {
1717
// ...
1818

1919
// For security, add the dependency to your debug builds only
20-
debugImplementation("com.apollographql.apollo:apollo-debug-server:4.0.0-rc.1")
20+
debugImplementation("com.apollographql.apollo:apollo-debug-server:4.0.0-rc.2")
2121
}
2222
```
2323

docs/source/testing/mocking-graphql-responses.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Add the dependency to your project's `build.gradle` file:
1616

1717
```kotlin title="build.gradle[.kts]"
1818
dependencies {
19-
testImplementation("com.apollographql.apollo:apollo-testing-support:4.0.0-rc.1")
19+
testImplementation("com.apollographql.apollo:apollo-testing-support:4.0.0-rc.2")
2020
}
2121
```
2222

docs/source/tutorial/01-configure-project.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Now let's add Apollo Kotlin to the project.
3535

3636
You can find the latest version of Apollo Kotlin from the [GitHub releases page](https://github.com/apollographql/apollo-kotlin/releases). It is also displayed at the top of the [apollo-kotlin repo](https://github.com/apollographql/apollo-kotlin/).
3737

38-
This tutorial uses `4.0.0-rc.1` because it is the latest version at the time of writing. Feel free to use a more recent version if one is available.
38+
This tutorial uses `4.0.0-rc.2` because it is the latest version at the time of writing. Feel free to use a more recent version if one is available.
3939

4040
## Apply the plugin
4141

@@ -45,7 +45,7 @@ Apply the Apollo plugin in `app/build.gradle.kts`. There are two `build.gradle.k
4545
plugins {
4646
id("com.android.application")
4747
// ...
48-
id("com.apollographql.apollo") version "4.0.0-rc.1"
48+
id("com.apollographql.apollo") version "4.0.0-rc.2"
4949
}
5050
```
5151

@@ -72,7 +72,7 @@ Now add `apollo-runtime` to the list of dependencies. This is the code that exec
7272
```kotlin title="app/build.gradle.kts"
7373
dependencies {
7474
// ...
75-
implementation("com.apollographql.apollo:apollo-runtime:4.0.0-rc.1")
75+
implementation("com.apollographql.apollo:apollo-runtime:4.0.0-rc.2")
7676
}
7777
```
7878

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Publishing defaults, could ultimately be moved to build scripts
22
GROUP=com.apollographql.apollo
3-
VERSION_NAME=4.0.0-rc.2-SNAPSHOT
3+
VERSION_NAME=4.0.0-rc.2
44

55
POM_URL=https://github.com/apollographql/apollo-kotlin/
66
POM_SCM_URL=https://github.com/apollographql/apollo-kotlin/

gradle/libraries.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ android-sdkversion-benchmark-min = "24"
1414
android-sdkversion-target = "30"
1515
androidx-sqlite = "2.3.1"
1616
# This is used by the gradle integration tests to get the artifacts locally
17-
apollo = "4.0.0-rc.2-SNAPSHOT"
17+
apollo = "4.0.0-rc.2"
1818
apollo-execution = "0.0.2"
1919
apollo-normalizedcache-incubating-snapshot = "0.0.3-SNAPSHOT"
2020
# Used by the apollo-tooling project which uses a published version of Apollo

intellij-plugin/src/main/kotlin/com/apollographql/ijplugin/refactoring/migration/v3tov4/ApolloV3ToV4MigrationProcessor.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import com.intellij.openapi.project.Project
3434
*/
3535
class ApolloV3ToV4MigrationProcessor(project: Project) : ApolloMigrationRefactoringProcessor(project) {
3636
companion object {
37-
const val apollo4LatestVersion = "4.0.0-rc.1"
37+
const val apollo4LatestVersion = "4.0.0-rc.2"
3838
}
3939

4040
override val refactoringName = ApolloBundle.message("ApolloV3ToV4MigrationProcessor.title")
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[versions]
22
# gradlePlugin versions
33
androidBuildTools = "7.2.1"
4-
apollo = "4.0.0-rc.1"
4+
apollo = "4.0.0-rc.2"
55

66
[libraries]
77
accompanist-insets = { module = "com.google.accompanist:accompanist-insets", version.ref = "accompanist" }
8-
apollo-runtime-short = "com.apollographql.apollo:apollo-runtime:4.0.0-rc.1"
9-
apollo-runtime-medium-version = { module = "com.apollographql.apollo:apollo-runtime", version = "4.0.0-rc.1" }
8+
apollo-runtime-short = "com.apollographql.apollo:apollo-runtime:4.0.0-rc.2"
9+
apollo-runtime-medium-version = { module = "com.apollographql.apollo:apollo-runtime", version = "4.0.0-rc.2" }
1010
apollo-runtime-medium-ref = { module = "com.apollographql.apollo:apollo-runtime", version.ref = "apollo" }
11-
apollo-runtime-long-version = { group = "com.apollographql.apollo", name = "apollo-runtime", version = "4.0.0-rc.1" }
11+
apollo-runtime-long-version = { group = "com.apollographql.apollo", name = "apollo-runtime", version = "4.0.0-rc.2" }
1212
apollo-runtime-long-ref = { group = "com.apollographql.apollo", name = "apollo-runtime", version.ref = "apollo" }
1313

1414
[plugins]
15-
apollo-shortNotation = "com.apollographql.apollo:4.0.0-rc.1"
15+
apollo-shortNotation = "com.apollographql.apollo:4.0.0-rc.2"
1616
apollo-longNotation = { id = "com.apollographql.apollo", version.ref = "apollo" }
17-
apollo-referenceNotation = { id = "com.apollographql.apollo", version = "4.0.0-rc.1" }
17+
apollo-referenceNotation = { id = "com.apollographql.apollo", version = "4.0.0-rc.2" }
1818
apollo-shortNotationNoVersion = "com.apollographql.apollo"
1919
apollo-longNotationNoVersion = { id = "com.apollographql.apollo" }

intellij-plugin/src/test/testData/migration/v3-to-v4/upgradeGradlePluginInBuildGradleKts_after.gradle.kts

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ plugins {
22
java
33
kotlin("jvm") version "1.6.10"
44
id("com.apollographql.apollo")
5-
id("com.apollographql.apollo") version "4.0.0-rc.1"
6-
id("com.apollographql.apollo") version "4.0.0-rc.1" apply false
7-
// TODO: Update version to 4.0.0-rc.1
5+
id("com.apollographql.apollo") version "4.0.0-rc.2"
6+
id("com.apollographql.apollo") version "4.0.0-rc.2" apply false
7+
// TODO: Update version to 4.0.0-rc.2
88
id("com.apollographql.apollo") version someClass.someConstant
9-
// TODO: Update version to 4.0.0-rc.1
9+
// TODO: Update version to 4.0.0-rc.2
1010
id("com.apollographql.apollo") version "${someClass.someConstant}"
11-
id("com.apollographql.apollo") version "4.0.0-rc.1"
12-
id("com.apollographql.apollo") version "4.0.0-rc.1" apply false
13-
// TODO: Update version to 4.0.0-rc.1
11+
id("com.apollographql.apollo") version "4.0.0-rc.2"
12+
id("com.apollographql.apollo") version "4.0.0-rc.2" apply false
13+
// TODO: Update version to 4.0.0-rc.2
1414
id("com.apollographql.apollo") version someClass.someConstant
15-
// TODO: Update version to 4.0.0-rc.1
15+
// TODO: Update version to 4.0.0-rc.2
1616
id("com.apollographql.apollo") version "${someClass.someConstant}"
1717
}

0 commit comments

Comments
 (0)