Skip to content

Commit a05edb2

Browse files
committed
(Re)move plugins from the repository
1 parent 8d92075 commit a05edb2

File tree

60 files changed

+15
-4528
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+15
-4528
lines changed

buildSrc/src/main/kotlin/Modules.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ import org.jetbrains.compose.desktop.DesktopExtension
22
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
33
import org.jetbrains.kotlin.gradle.plugin.KotlinDependencyHandler
44

5-
enum class SupabaseModule(val module: String) {
5+
enum class SupabaseModule(val module: String, val extern: Boolean = false) {
66
SUPABASE("supabase-kt"),
77
AUTH("auth-kt"),
88
STORAGE("storage-kt"),
99
REALTIME("realtime-kt"),
1010
FUNCTIONS("functions-kt"),
1111
POSTGREST("postgrest-kt"),
12-
COMPOSE_AUTH("plugins:compose-auth"),
13-
COMPOSE_AUTH_UI("plugins:compose-auth-ui"),
1412
}
1513

1614
fun KotlinDependencyHandler.addModules(vararg modules: SupabaseModule) {

gradle/wrapper/gradle-wrapper.jar

59 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ case "$( uname )" in #(
114114
NONSTOP* ) nonstop=true ;;
115115
esac
116116

117-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
117+
CLASSPATH="\\\"\\\""
118118

119119

120120
# Determine the Java command to use to start the JVM.
@@ -213,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
213213
set -- \
214214
"-Dorg.gradle.appname=$APP_BASE_NAME" \
215215
-classpath "$CLASSPATH" \
216-
org.gradle.wrapper.GradleWrapperMain \
216+
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
217217
"$@"
218218

219219
# Stop when "xargs" is not available.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ goto fail
7070
:execute
7171
@rem Setup the command line
7272

73-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73+
set CLASSPATH=
7474

7575

7676
@rem Execute Gradle
77-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
77+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
7878

7979
:end
8080
@rem End local scope for the variables with windows NT shell

plugins/ApolloGraphQL/README.md

Lines changed: 1 addition & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,3 @@
11
# Supabase-kt ApolloGraphQL
22

3-
Extends Supabase-kt with an Apollo GraphQL Client.
4-
5-
Supported targets:
6-
7-
| Target | **JVM** | **Android** | **JS** | **Wasm** | **Apple** |
8-
|--------|---------|-------------|--------|----------|-----------|
9-
| Status ||||||
10-
11-
<details>
12-
13-
<summary>In-depth Kotlin targets</summary>
14-
15-
**JS**: Browser, NodeJS
16-
17-
**Wasm**: wasm-js
18-
19-
**Apple:**
20-
21-
- iOS: iosArm64, iosSimulatorArm64, iosX64
22-
23-
- tvOS: tvosArm64, tvosX64, tvosSimulatorArm64
24-
25-
- watchOS: watchosArm64, watchosX64, watchosSimulatorArm64
26-
27-
- MacOS: macosX64, macosArm64
28-
29-
</details>
30-
31-
# Installation
32-
33-
Newest version: [![](https://img.shields.io/github/release/supabase-community/supabase-kt?label=)](https://github.com/supabase-community/supabase-kt/releases)
34-
35-
```kotlin
36-
dependencies {
37-
implementation("io.github.jan-tennert.supabase:apollo-graphql:VERSION")
38-
}
39-
```
40-
41-
Install the plugin in your SupabaseClient. See the [documentation](https://supabase.com/docs/reference/kotlin/initializing) for more information
42-
43-
```kotlin
44-
val supabase = createSupabaseClient(
45-
supabaseUrl = "https://id.supabase.co",
46-
supabaseKey = "apikey"
47-
) {
48-
//...
49-
50-
install(GraphQL) {
51-
apolloConfiguration {
52-
// settings
53-
}
54-
}
55-
56-
}
57-
```
58-
59-
# Usage
60-
61-
The plugin automatically creates an Apollo Client with the corresponding headers for Authorization depending on your session.
62-
63-
To access the client, you can use the `apolloClient` property of the `GraphQL` plugin instance.
64-
65-
```kotlin
66-
supabase.graphql.apolloClient.query(YourQuery()).execute().data //execute a query
67-
```
68-
69-
To learn about how to use Apollo GraphQL, see [Apollo Kotlin](https://github.com/apollographql/apollo-kotlin#getting-started).
3+
Moved to [new repository](https://github.com/supabase-community/supabase-kt-plugins/ApolloGraphQL)

plugins/Coil3Integration/README.md

Lines changed: 1 addition & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,3 @@
11
# Supabase-kt Coil 3 Integration
22

3-
Extends supabase-kt with a Coil3 integration for image loading.
4-
**Requires supabase-kt `3.0.0` or higher.**
5-
6-
Current supported Coil3 version: `3.0.0-rc01`
7-
8-
Supported targets:
9-
10-
| Target | **JVM** | **Android** | **JS** | **Wasm** | **iOS** |
11-
|--------|---------|-------------|--------|----------|---------|
12-
| Status ||||||
13-
14-
<details>
15-
16-
<summary>In-depth Kotlin targets</summary>
17-
18-
**JS**: Browser
19-
20-
**Wasm**: wasm-js
21-
22-
**iOS**: iosArm64, iosSimulatorArm64, iosX64
23-
24-
</details>
25-
26-
# Installation
27-
28-
Newest version: [![](https://img.shields.io/github/release/supabase-community/supabase-kt?label=)](https://github.com/supabase-community/supabase-kt/releases)
29-
30-
```kotlin
31-
dependencies {
32-
implementation("io.github.jan-tennert.supabase:coil3-integration:VERSION")
33-
}
34-
```
35-
36-
Install plugin in main SupabaseClient. See the [documentation](https://supabase.com/docs/reference/kotlin/initializing) for more information
37-
```kotlin
38-
val client = createSupabaseClient(
39-
supabaseUrl = "https://id.supabase.co",
40-
supabaseKey = "apikey"
41-
) {
42-
//...
43-
install(Storage) {
44-
//your config
45-
}
46-
install(Coil3Integration)
47-
}
48-
```
49-
50-
If you don't have a coil-network artifact in your dependencies, you will need to add it. See the [Coil documentation](https://coil-kt.github.io/coil/upgrading_to_coil3/#network-images) for more information.
51-
52-
# Usage
53-
54-
### Add Supabase Fetcher to Coil
55-
56-
Create a new ImageLoader with the Supabase Fetcher and a [network fetcher](https://coil-kt.github.io/coil/upgrading_to_coil3/#network-images).
57-
58-
```kotlin
59-
ImageLoader.Builder(context)
60-
.components {
61-
add(supabaseClient.coil3)
62-
//You also need the add the network fetcher factory if you don't have it already
63-
//Depending on the network artifact you added, this will be different
64-
add(KtorNetworkFetcherFactory())
65-
}
66-
.build()
67-
```
68-
69-
You can also replace the default Coil Image Loader in your application.
70-
For Compose Multiplatform Applications using the `coil-compose` dependency, you can use the `setSingletonImageLoaderFactory` composable function:
71-
```kotlin
72-
setSingletonImageLoaderFactory { platformContext ->
73-
ImageLoader.Builder(platformContext)
74-
.components {
75-
add(supabaseClient.coil3)
76-
//Your network fetcher factory
77-
add(KtorNetworkFetcherFactory())
78-
}
79-
.build()
80-
}
81-
```
82-
You call this composable before any `Image` composable is used. Presumably in your `Root` composable.
83-
84-
See the [Coil documentation](https://coil-kt.github.io/coil/getting_started/#image-loaders) for more information.
85-
86-
### Display images from Supabase Storage
87-
88-
You can easily create an image request like this:
89-
90-
```kotlin
91-
val request = ImageRequest.Builder(context)
92-
.data(authenticatedStorageItem("icons", "profile.png")) //for non-public buckets
93-
.build()
94-
```
95-
96-
Or if you are using [Compose Multiplatform](https://coil-kt.github.io/coil/compose/):
97-
98-
```kotlin
99-
AsyncImage(
100-
model = publicStorageItem("icons", "profile.png"), //for public buckets
101-
contentDescription = null,
102-
)
103-
```
104-
105-
The Coil integration will automatically add the Authorization header to the request if the bucket is not public.
3+
Moved to [new repository](https://github.com/supabase-community/supabase-kt-plugins/Coil3Integration)

plugins/Coil3Integration/build.gradle.kts

Lines changed: 0 additions & 27 deletions
This file was deleted.

plugins/Coil3Integration/src/androidMain/AndroidManifest.xml

Lines changed: 0 additions & 2 deletions
This file was deleted.

plugins/Coil3Integration/src/commonMain/kotlin/io/github/jan/supabase/coil/Coil3Integration.kt

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)