supabase-kt

A Kotlin Multiplatform Client for Supabase.

MIT License

Stars
389
Committers
22

Bot releases are hidden (Show)

supabase-kt - 0.6.0

Published by jan-tennert almost 2 years ago

Features/Changes

  • untrack local.properties by @brezinajn in https://github.com/supabase-community/supabase-kt/pull/22
  • Throw exceptions if the supabaseUrl contains things like realtime/v1, auth/v1 etc. (Can be disabled)
  • Add ability to configure disconnect on session loss (Realtime)
  • Add a bom dependency by @jan-tennert in https://github.com/supabase-community/supabase-kt/pull/21 (suggested in #20)
  • Add captchaToken function parameter to authentication methods
  • Remove GoTrue#currentSession
  • Remove GoTrue#status
  • Add new GoTrue#sessionStatus
    Which can hold 4 different statuses:
    SessionStatus.NotAuthenticated
    SessionStatus.LoadingFromStorage
    SessionStatus.NetworkError
    SessionStatus.Authenticated(session)
    
  • Rename GoTrue#currentAccessToken() to GoTrue#currentAccessTokenOrNull()
  • Add GoTrue#currentSessionOrNull()
  • Update to Kotlin 1.7.20
  • Remove GoTrue#initializeAndroid

Bug fixes

  • Fix realtime auto disconnect on internet loss
  • Fix auto refresh
  • Fix realtime exception when disconnecting
  • Fix GoTrue#loginWith blocking indefinetly

Full Changelog: https://github.com/supabase-community/supabase-kt/compare/0.5.1...0.6.0

supabase-kt - 0.6.0-RC-1

Published by jan-tennert almost 2 years ago

Full Changelog: https://github.com/supabase-community/supabase-kt/compare/0.6.0-beta-1...0.6.0-RC-1

supabase-kt - 0.6.0-beta-1

Published by jan-tennert almost 2 years ago

supabase-kt - 0.6.0-alpha-8

Published by jan-tennert almost 2 years ago

  • Fix realtime auto disconnect on internet loss
supabase-kt - 0.6.0-alpha-7

Published by jan-tennert almost 2 years ago

  • Fix realtime error when disconnecting
supabase-kt - 0.6.0-alpha-5

Published by jan-tennert almost 2 years ago

  • Fix auto refresh
supabase-kt - 0.6.0-alpha-4

Published by jan-tennert almost 2 years ago

  • Fix GoTrue#loginWith blocking indefinetly
supabase-kt - 0.6.0-alpha-2

Published by jan-tennert almost 2 years ago

  • Fix auto refresh on android
  • Remove GoTrue#initializeAndroid
supabase-kt - 0.6.0-alpha-1

Published by jan-tennert almost 2 years ago

  • Update to Kotlin 1.7.20
  • Add captchaToken function parameter to authentication methods
  • Remove GoTrue#currentSession
  • Remove GoTrue#status
  • Add new GoTrue#sessionStatus
    Which can hold 4 different statuses:
    SessionStatus.NotAuthenticated
    SessionStatus.LoadingFromStorage
    SessionStatus.NetworkError
    SessionStatus.Authenticated(session)
    
  • Rename GoTrue#currentAccessToken() to GoTrue#currentAccessTokenOrNull()
  • Add GoTrue#currentSessionOrNull()
supabase-kt - 0.5.1

Published by jan-tennert almost 2 years ago

  • Add ability to create standalone modules:

    val gotrue = standaloneSupabaseModule(GoTrue, url = "https://someurl.com", apiKey = "somekey")
    
  • Fix Functions module not having config property customUrl mutable

  • Add jwtToken to MainConfig

supabase-kt - 0.5.0

Published by jan-tennert almost 2 years ago

Changes

Everything marked as [n] wasn't in included in a beta or release candidate

  • Add Wiki: https://github.com/supabase-community/supabase-kt/wiki [n]
  • Add GoTrue#verifyPhone() [n]
  • Add PostgrestResult#decodeList, decodeSingle, decodeSingleOrNull [n]
  • Add SessionManager interface
  • Add sessionManager to GoTrue config
  • Add default SessionManager: SettingsSessionManager using multiplatorm settings. If you want to use another Settings implementation for SettingsSessionManager just pass it in the constructor and replace the default sessionManager
  • Deprecate Activity#initializeAndroid(SupabaseClient) (no longer mandatory)
  • Add SupabaseClient.handleDeeplinks(intent)
  • Add GoTrue tests
  • Make GoTrue no longer mandatory for all other modules
  • Add some missing OAuthProviders
  • Add easy option for creating OAuthProviders:
    val provider = OAuthProvider("github")
    

Breaking

  • Move schema from the RealtimeChannel#postgresChangeFlow DSL to function parameter
  • Move supabaseUrl & supabaseKey from the SupabaseClientBuilder's DSL properties to function parameter
  • Remove useless Edge Function builder (everything is now inside the function params)
  • Remove Realtime#createAndJoinChannel
  • Remove settings property from GoTrueConfig
  • Renamed group io.github.jan.supacompose to io.github.jan.supabase
  • Renamed Auth Plugin to GoTrue
  • Renamed SupacomposePluginProvider to SupabasePluginProvider
  • Renamed SupacomposePlugin to SupabasePlugin
  • Changed group on publishing (check https://github.com/jan-tennert/supabase-kt#installation)
  • Renamed repository
  • Renamed SupabaseClient#auth to SupabaseClient#gotrue
supabase-kt - 0.5.0-RC-2

Published by jan-tennert about 2 years ago

  • Fix GoTrue using the wrong plugin id
  • Add some GoTrue tests
  • Make GoTrue no longer mandatory for all other modules
  • Add some missing OAuthProviders
  • Add easy option for creating OAuthProviders:
    val provider = OAuthProvider("github")
    
supabase-kt - 0.5.0-beta-4 Breaking

Published by jan-tennert about 2 years ago

Forgot to rename the package so here it is now (should be the last one):

  • Renamed package io.github.jan.supabase.auth to io.github.jan.supabase.gotrue
  • Renamed SupabaseClient#auth to SupabaseClient#gotrue
supabase-kt - 0.5.0-beta-3

Published by jan-tennert about 2 years ago

  • Deprecate Actitity#initializeAndroid(SupabaseClient) (no longer mandatory)
  • Add SupabaseClient.handleDeeplinks(intent)
  • Move supabaseUrl & supabaseKey from the SupabaseClientBuilder's DSL properties to function parameter
  • Move schema from the RealtimeChannel#postgresChangeFlow DSL to function parameter
  • Remove useless Edge Function builder (everything is now inside the function params)
supabase-kt - 0.5.0-beta-2

Published by jan-tennert about 2 years ago

  • Add SessionManager interface
  • Add sessionManager to GoTrue config
  • Remove settings property from GoTrueConfig
  • Add default SessionManager: SettingsSessionManager using multiplatorm settings. If you want to use another Settings implementation for SettingsSessionManager just pass it in the constructor and replace the default sessionManager
supabase-kt - 0.5.0-beta-1 Breaking

Published by jan-tennert about 2 years ago

  • Renamed group io.github.jan.supacompose to io.github.jan.supabase
  • Renamed Auth Plugin to GoTrue
  • Renamed SupacomposePluginProvider to SupabasePluginProvider
  • Renamed SupacomposePlugin to SupabasePlugin
  • Changed group on publishing (check https://github.com/jan-tennert/supabase-kt#installation)
  • Renamed repository
supabase-kt - 0.4.0

Published by jan-tennert about 2 years ago

Full Changelog: https://github.com/jan-tennert/SupaCompose/compare/0.3.0...0.4.0

supabase-kt - 0.4.0-beta-2

Published by jan-tennert about 2 years ago

supabase-kt - 0.4.0-beta

Published by jan-tennert about 2 years ago

Full Changelog: https://github.com/jan-tennert/SupaCompose/compare/0.3.0...0.4.0-beta

supabase-kt - 0.3.0 - Execute database functions

Published by jan-tennert about 2 years ago

Full Changelog: https://github.com/jan-tennert/SupaCompose/compare/0.2.5...0.3.0