Skip to content

Update dependencies and disclaimer #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,13 @@ See the project website for documentation:<br/>

The Kdoc API reference can be found at:<br/>
[https://apollographql.github.io/apollo-kotlin-normalized-cache-incubating/kdoc](https://apollographql.github.io/apollo-kotlin-normalized-cache-incubating/kdoc)

## ⚠️ Disclaimer

The incubating version of the normalized cache is not stable and is subject to change. It is recommended to experiment with it in
non-critical projects/modules, or behind a feature flag.

In particular,

- there are no guarantees about the format of the cached data, so you should assume that it may be lost when upgrading
- performance and size may not be optimal
5 changes: 5 additions & 0 deletions Writerside/topics/welcome.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ This repository serves as a place to experiment with [Apollo Kotlin](https://git

> The incubating version of the normalized cache is not stable and is subject to change. It is recommended to experiment with it in
> non-critical projects/modules, or behind a feature flag.
>
> In particular,
> - there are no guarantees about the format of the cached data, so you should assume that it may be lost when upgrading
> - performance and size may not be optimal

{style="warning"}

Add the dependencies to your project.
Expand Down
3 changes: 1 addition & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
kotlin-plugin = "2.0.21"
android-plugin = "8.7.0"
apollo = "4.0.2-SNAPSHOT"
apollo = "4.1.0"
okio = "3.9.0"
atomicfu = "0.23.1" # Must be the same version as the one used by apollo-testing-support or native compilation will fail
sqldelight = "2.0.1"
Expand Down Expand Up @@ -42,4 +42,3 @@ librarian = { id = "com.gradleup.librarian", version.ref = "librarian" }
atomicfu = { id = "org.jetbrains.kotlin.plugin.atomicfu", version.ref = "kotlin-plugin" }
sqldelight = { id = "app.cash.sqldelight", version.ref = "sqldelight" }
apollo = { id = "com.apollographql.apollo", version.ref = "apollo" }
apollo-external = { id = "com.apollographql.apollo.external", version.ref = "apollo" }
6 changes: 3 additions & 3 deletions gradle/repositories.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
listOf(pluginManagement.repositories, dependencyResolutionManagement.repositories).forEach {
it.apply {
maven {
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
// maven {
// url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
// }
mavenCentral()
google()
gradlePluginPortal()
Expand Down
1 change: 0 additions & 1 deletion tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ plugins {

alias(libs.plugins.kotlin.multiplatform).apply(false)
alias(libs.plugins.apollo).apply(false)
alias(libs.plugins.apollo.external).apply(false)
}
4 changes: 1 addition & 3 deletions tests/cache-control/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
// TODO: Use the external plugin for now - switch to the regular one when Schema is not relocated
// See https://github.com/apollographql/apollo-kotlin/pull/6176
alias(libs.plugins.apollo.external)
alias(libs.plugins.apollo)
}

kotlin {
Expand Down
4 changes: 1 addition & 3 deletions tests/cache-variables-arguments/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
// TODO: Use the external plugin for now - switch to the regular one when Schema is not relocated
// See https://github.com/apollographql/apollo-kotlin/pull/6176
alias(libs.plugins.apollo.external)
alias(libs.plugins.apollo)
}

kotlin {
Expand Down
4 changes: 1 addition & 3 deletions tests/defer/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
plugins {
alias(libs.plugins.kotlin.multiplatform)
// TODO: Use the external plugin for now - switch to the regular one when Schema is not relocated
// See https://github.com/apollographql/apollo-kotlin/pull/6176
alias(libs.plugins.apollo.external)
alias(libs.plugins.apollo)
}

kotlin {
Expand Down
4 changes: 1 addition & 3 deletions tests/include-skip-operation-based/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import com.apollographql.apollo.annotations.ApolloExperimental

plugins {
alias(libs.plugins.kotlin.multiplatform)
// TODO: Use the external plugin for now - switch to the regular one when Schema is not relocated
// See https://github.com/apollographql/apollo-kotlin/pull/6176
alias(libs.plugins.apollo.external)
alias(libs.plugins.apollo)
}

kotlin {
Expand Down