Skip to content

Commit

Permalink
release 4.0.0-beta.6 (#5844)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin authored Apr 23, 2024
1 parent 7079290 commit a118e3d
Show file tree
Hide file tree
Showing 20 changed files with 50 additions and 50 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ Add the plugin to your `build.gradle.kts`:

```kotlin
plugins {
id("com.apollographql.apollo3") version "4.0.0-beta.5"
id("com.apollographql.apollo3") version "4.0.0-beta.6"
}
```

Add the runtime dependency:

```kotlin
dependencies {
implementation("com.apollographql.apollo3:apollo-runtime:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-runtime:4.0.0-beta.6")
}
```

Expand Down Expand Up @@ -188,21 +188,21 @@ Releases are hosted on [Maven Central](https://repo1.maven.org/maven2/com/apollo

```kotlin
plugins {
id("com.apollographql.apollo3") version "4.0.0-beta.5"
id("com.apollographql.apollo3") version "4.0.0-beta.6"
}

repositories {
mavenCentral()
}

dependencies {
implementation("com.apollographql.apollo3:apollo-runtime:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-runtime:4.0.0-beta.6")

// optional: if you want to use the normalized cache
implementation("com.apollographql.apollo3:apollo-normalized-cache-sqlite:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-normalized-cache-sqlite:4.0.0-beta.6")
// optional: if you just want the generated models and parsers and write your own HTTP code/cache code, you can remove apollo-runtime
// and use apollo-api instead
implementation("com.apollographql.apollo3:apollo-api:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-api:4.0.0-beta.6")
}
```

Expand Down Expand Up @@ -233,7 +233,7 @@ pluginManagement {
}
```

And then use the `4.0.0-beta.6-SNAPSHOT` version for the plugin and libraries.
And then use the `4.0.0-beta.7-SNAPSHOT` version for the plugin and libraries.

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

Expand Down
2 changes: 1 addition & 1 deletion docs/source/advanced/apollo-ast.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Add the `apollo-ast` dependency to your project:
dependencies {
// ...

implementation("com.apollographql.apollo3:apollo-ast:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-ast:4.0.0-beta.6")
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/source/advanced/compiler-plugins.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ plugins {

dependencies {
// Add apollo-compiler as a dependency
implementation("com.apollographql.apollo3:apollo-compiler:4.0.0-beta.4")
implementation("com.apollographql.apollo3:apollo-compiler:4.0.0-beta.6")
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/source/advanced/java.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies {
// ...

// Use apollo-runtime-java instead of apollo-runtime
implementation("com.apollographql.apollo3:apollo-runtime-java:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-runtime-java:4.0.0-beta.6")
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/source/advanced/no-runtime.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: Using the models without apollo-runtime
For this, remove the `com.apollographql.apollo3:apollo-runtime` dependency and replace it with:

```kotlin title="build.gradle"
implementation("com.apollographql.apollo3:apollo-api:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-api:4.0.0-beta.6")
```

## Composing an HTTP request body
Expand Down
2 changes: 1 addition & 1 deletion docs/source/caching/http-cache.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To enable HTTP cache support, add the dependency to your project's `build.gradle

```kotlin title="build.gradle[.kts]"
dependencies {
implementation("com.apollographql.apollo3:apollo-http-cache:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-http-cache:4.0.0-beta.6")
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/source/caching/normalized-cache.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Apollo Kotlin's `MemoryCache` is a normalized, in-memory cache for storing objec

```kotlin title="build.gradle[.kts]"
dependencies {
implementation("com.apollographql.apollo3:apollo-normalized-cache:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-normalized-cache:4.0.0-beta.6")
}
```

Expand Down Expand Up @@ -106,7 +106,7 @@ To enable SQLite cache support, add the `apollo-normalized-cache-sqlite` depende

```kotlin title="build.gradle.kts"
dependencies {
implementation("com.apollographql.apollo3:apollo-normalized-cache-sqlite:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-normalized-cache-sqlite:4.0.0-beta.6")
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/source/essentials/custom-scalars.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ For example, to use `DateAdapter`, configure your Gradle scripts like so:

```kotlin title="build.gradle[.kts]"
dependencies {
implementation("com.apollographql.apollo3:apollo-adapters:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-adapters:4.0.0-beta.6")
}

apollo {
Expand Down
14 changes: 7 additions & 7 deletions docs/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ Add the plugin to your `build.gradle.kts`:

```kotlin
plugins {
id("com.apollographql.apollo3") version "4.0.0-beta.5"
id("com.apollographql.apollo3") version "4.0.0-beta.6"
}
```

Add the runtime dependency:

```kotlin
dependencies {
implementation("com.apollographql.apollo3:apollo-runtime:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-runtime:4.0.0-beta.6")
}
```

Expand Down Expand Up @@ -169,21 +169,21 @@ Releases are hosted on [Maven Central](https://repo1.maven.org/maven2/com/apollo

```kotlin
plugins {
id("com.apollographql.apollo3") version "4.0.0-beta.5"
id("com.apollographql.apollo3") version "4.0.0-beta.6"
}

repositories {
mavenCentral()
}

dependencies {
implementation("com.apollographql.apollo3:apollo-runtime:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-runtime:4.0.0-beta.6")

// optional: if you want to use the normalized cache
implementation("com.apollographql.apollo3:apollo-normalized-cache-sqlite:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-normalized-cache-sqlite:4.0.0-beta.6")
// optional: if you just want the generated models and parsers and write your own HTTP code/cache code, you can remove apollo-runtime
// and use apollo-api instead
implementation("com.apollographql.apollo3:apollo-api:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-api:4.0.0-beta.6")
}
```

Expand Down Expand Up @@ -213,7 +213,7 @@ pluginManagement {
}
}
```
And then use the `4.0.0-beta.6-SNAPSHOT` version for the plugin and libraries.
And then use the `4.0.0-beta.7-SNAPSHOT` version for the plugin and libraries.

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

Expand Down
2 changes: 1 addition & 1 deletion docs/source/testing/apollo-debug-server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies {
// ...

// For security, add the dependency to your debug builds only
debugImplementation("com.apollographql.apollo3:apollo-debug-server:4.0.0-beta.5")
debugImplementation("com.apollographql.apollo3:apollo-debug-server:4.0.0-beta.6")
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/source/testing/mocking-graphql-responses.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Add the dependency to your project's `build.gradle` file:

```kotlin title="build.gradle[.kts]"
dependencies {
testImplementation("com.apollographql.apollo3:apollo-testing-support:4.0.0-beta.5")
testImplementation("com.apollographql.apollo3:apollo-testing-support:4.0.0-beta.6")
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/source/testing/mocking-http-responses.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Add the dependency to your project's `build.gradle` file:

```kotlin title="build.gradle[.kts]"
dependencies {
testImplementation("com.apollographql.apollo3:apollo-mockserver:4.0.0-beta.5")
testImplementation("com.apollographql.apollo3:apollo-mockserver:4.0.0-beta.6")
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/source/testing/ui-tests.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Apollo Kotlin provides a built-in [`IdlingResource`](https://developer.android.c
Add the `apollo-idling-resource` dependency:

```kotlin title="build.gradle[.kts]"
implementation("com.apollographql.apollo3:apollo-idling-resource:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-idling-resource:4.0.0-beta.6")
```

> If you have multiple `ApolloClient`s, you need to create and register a different `ApolloIdlingResource` with a different name for each. Registering multiple `IdlingResource`s with the same name will cause your test suite to crash.
Expand Down
6 changes: 3 additions & 3 deletions docs/source/tutorial/01-configure-project.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Now let's add Apollo Kotlin to the project.

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/).

This tutorial uses `4.0.0-beta.5` because it is the latest version at the time of writing. Feel free to use a more recent version if one is available.
This tutorial uses `4.0.0-beta.6` because it is the latest version at the time of writing. Feel free to use a more recent version if one is available.

## Apply the plugin

Expand All @@ -45,7 +45,7 @@ Apply the Apollo plugin in `app/build.gradle.kts`. There are two `build.gradle.k
plugins {
id("com.android.application")
// ...
id("com.apollographql.apollo3") version "4.0.0-beta.5"
id("com.apollographql.apollo3") version "4.0.0-beta.6"
}
```

Expand All @@ -72,7 +72,7 @@ Now add `apollo-runtime` to the list of dependencies. This is the code that exec
```kotlin title="app/build.gradle.kts"
dependencies {
// ...
implementation("com.apollographql.apollo3:apollo-runtime:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-runtime:4.0.0-beta.6")
}
```

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Publishing defaults, could ultimately be moved to build scripts
GROUP=com.apollographql.apollo3
VERSION_NAME=4.0.0-beta.6-SNAPSHOT
VERSION_NAME=4.0.0-beta.6

POM_URL=https://github.com/apollographql/apollo-kotlin/
POM_SCM_URL=https://github.com/apollographql/apollo-kotlin/
Expand Down
2 changes: 1 addition & 1 deletion gradle/libraries.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ android-sdkversion-benchmark-min = "24"
android-sdkversion-target = "30"
androidx-sqlite = "2.3.1"
# This is used by the gradle integration tests to get the artifacts locally
apollo = "4.0.0-beta.6-SNAPSHOT"
apollo = "4.0.0-beta.6"
# Used by the apollo-tooling project which uses a published version of Apollo
apollo-published = "4.0.0-beta.3"
atomicfu = "0.23.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import com.intellij.openapi.project.Project
*/
class ApolloV3ToV4MigrationProcessor(project: Project) : ApolloMigrationRefactoringProcessor(project) {
companion object {
const val apollo4LatestVersion = "4.0.0-beta.5"
const val apollo4LatestVersion = "4.0.0-beta.6"
}

override val refactoringName = ApolloBundle.message("ApolloV3ToV4MigrationProcessor.title")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
plugins {
kotlin("jvm") version "1.8.10"
val myVar = ""
id("com.apollographql.apollo3") version "4.0.0-beta.5"
id("com.apollographql.apollo3") version "4.0.0-beta.6"
id("com.apollographql.apollo3") version "3.8.2" // should report
id("com.apollographql.apollo3") version myVar
id("com.apollographql.apollo3") version "3${"8.2"}"

id("com.apollographql.apollo3").version("4.0.0-beta.5")
id("com.apollographql.apollo3").version("4.0.0-beta.6")
id("com.apollographql.apollo3").version("3.8.2") // should report
id("com.apollographql.apollo3").version(myVar)
id("com.apollographql.apollo3").version("3${"8.2"}")
Expand All @@ -20,14 +20,14 @@ plugins {
dependencies {
val myVar = ""
implementation("com.apollographql.apollo3", "apollo-runtime")
implementation("com.apollographql.apollo3", "apollo-runtime", "4.0.0-beta.5")
implementation("com.apollographql.apollo3", "apollo-runtime", "4.0.0-beta.6")
implementation("com.apollographql.apollo3", "apollo-runtime", "3.8.2") // should report
implementation("com.apollographql.apollo3", "apollo-runtime", myVar)
implementation("com.apollographql.apollo3", "apollo-runtime", "3${"8.2"}")
implementation("some.other.group", "some.artifact", "3.8.2")

implementation("com.apollographql.apollo3:apollo-runtime")
implementation("com.apollographql.apollo3:apollo-runtime:4.0.0-beta.5")
implementation("com.apollographql.apollo3:apollo-runtime:4.0.0-beta.6")
implementation("com.apollographql.apollo3:apollo-runtime:3.8.2") // should report
implementation("com.apollographql.apollo3:apollo-runtime:${myVar}")
implementation("com.apollographql.apollo3:apollo-runtime:3${"8.2"}")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[versions]
# gradlePlugin versions
androidBuildTools = "7.2.1"
apollo = "4.0.0-beta.5"
apollo = "4.0.0-beta.6"

[libraries]
accompanist-insets = { module = "com.google.accompanist:accompanist-insets", version.ref = "accompanist" }
apollo-runtime-short = "com.apollographql.apollo3:apollo-runtime:4.0.0-beta.5"
apollo-runtime-medium-version = { module = "com.apollographql.apollo3:apollo-runtime", version = "4.0.0-beta.5" }
apollo-runtime-short = "com.apollographql.apollo3:apollo-runtime:4.0.0-beta.6"
apollo-runtime-medium-version = { module = "com.apollographql.apollo3:apollo-runtime", version = "4.0.0-beta.6" }
apollo-runtime-medium-ref = { module = "com.apollographql.apollo3:apollo-runtime", version.ref = "apollo" }
apollo-runtime-long-version = { group = "com.apollographql.apollo3", name = "apollo-runtime", version = "4.0.0-beta.5" }
apollo-runtime-long-version = { group = "com.apollographql.apollo3", name = "apollo-runtime", version = "4.0.0-beta.6" }
apollo-runtime-long-ref = { group = "com.apollographql.apollo3", name = "apollo-runtime", version.ref = "apollo" }

[plugins]
apollo-shortNotation = "com.apollographql.apollo3:4.0.0-beta.5"
apollo-shortNotation = "com.apollographql.apollo3:4.0.0-beta.6"
apollo-longNotation = { id = "com.apollographql.apollo3", version.ref = "apollo" }
apollo-referenceNotation = { id = "com.apollographql.apollo3", version = "4.0.0-beta.5" }
apollo-referenceNotation = { id = "com.apollographql.apollo3", version = "4.0.0-beta.6" }
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ plugins {
java
kotlin("jvm") version "1.6.10"
id("com.apollographql.apollo3")
id("com.apollographql.apollo3") version "4.0.0-beta.5"
id("com.apollographql.apollo3") version "4.0.0-beta.5" apply false
// TODO: Update version to 4.0.0-beta.5
id("com.apollographql.apollo3") version "4.0.0-beta.6"
id("com.apollographql.apollo3") version "4.0.0-beta.6" apply false
// TODO: Update version to 4.0.0-beta.6
id("com.apollographql.apollo3") version someClass.someConstant
// TODO: Update version to 4.0.0-beta.5
// TODO: Update version to 4.0.0-beta.6
id("com.apollographql.apollo3") version "${someClass.someConstant}"
id("com.apollographql.apollo3") version "4.0.0-beta.5"
id("com.apollographql.apollo3") version "4.0.0-beta.5" apply false
// TODO: Update version to 4.0.0-beta.5
id("com.apollographql.apollo3") version "4.0.0-beta.6"
id("com.apollographql.apollo3") version "4.0.0-beta.6" apply false
// TODO: Update version to 4.0.0-beta.6
id("com.apollographql.apollo3") version someClass.someConstant
// TODO: Update version to 4.0.0-beta.5
// TODO: Update version to 4.0.0-beta.6
id("com.apollographql.apollo3") version "${someClass.someConstant}"
}

0 comments on commit a118e3d

Please sign in to comment.