Skip to content

prerelease 1.0.0 #119

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 49 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
b1863a9
Update sub-libraries to use `dependency-free` branches (#117)
grdsdev Oct 17, 2023
796afda
Monorepo (#118)
grdsdev Oct 17, 2023
fa8b94c
Update CI
grdsdev Oct 17, 2023
02f8e9f
Default to build for iPhone 14
grdsdev Oct 17, 2023
8512d23
Revert Makefile and default only on CI
grdsdev Oct 17, 2023
64ddc4b
Fix CI
grdsdev Oct 17, 2023
1c633de
Rename Makefile variable
grdsdev Oct 17, 2023
37dab1e
CI
grdsdev Oct 18, 2023
641c4c0
Remove Mocker
grdsdev Oct 18, 2023
04c9725
feat(storage): use Codable types (#120)
grdsdev Oct 18, 2023
e19c701
Fix branch name on CI
grdsdev Oct 19, 2023
9efb499
Remove deprecated code
grdsdev Oct 23, 2023
7085cd9
Add return type to closure
grdsdev Oct 23, 2023
54b2a1c
Create Product Sample app (#121)
grdsdev Oct 23, 2023
18c0e8f
Refactor SessionManager and add tests to it
grdsdev Oct 23, 2023
0dcecb9
Add some tests to GoTrueClient
grdsdev Oct 24, 2023
549408b
Skip Storage tests
grdsdev Oct 24, 2023
ff15522
Fix Example build issues
grdsdev Oct 24, 2023
5a2a1e9
Specify PLATFORM_IOS
grdsdev Oct 24, 2023
75def37
Do not use uuid for selecting device
grdsdev Oct 24, 2023
ec3d287
wip CI
grdsdev Oct 24, 2023
4fe2dd5
Add common settings to project instead of target
grdsdev Oct 24, 2023
cec718b
ci
grdsdev Oct 24, 2023
65266a2
Remove Preview
grdsdev Oct 24, 2023
4a512cd
ci
grdsdev Oct 24, 2023
848f685
Add support for PKCE flow (#123)
grdsdev Oct 25, 2023
437c875
Make session from url method store session by default
grdsdev Oct 25, 2023
fd2c859
Fix flaky test
grdsdev Oct 25, 2023
89e0ecc
Remove example job from CI
grdsdev Oct 25, 2023
8ba922a
Make GoTrueClient an actor
grdsdev Oct 26, 2023
d60e8f2
Move request executor to APIClient actor
grdsdev Oct 26, 2023
6e79b0c
Add makeStream factory method when swift version less than 5.9
grdsdev Oct 26, 2023
d102867
Fix flaky test by inserting a mega yield
grdsdev Oct 26, 2023
3c91508
Add MFA Support to GoTrue (#124)
grdsdev Oct 27, 2023
d5f5ea1
Fix flaky test
grdsdev Oct 27, 2023
9fb45ab
Refactor EventEmitter
grdsdev Oct 27, 2023
ac9cc94
Refactor dependencies and tests
grdsdev Oct 27, 2023
3aa6b40
Realtime (#126)
grdsdev Oct 30, 2023
1765969
Code format projecct
grdsdev Oct 30, 2023
c7af42c
Update realtime access token when token changes
grdsdev Oct 30, 2023
5dd391b
Add ExpressibleByLiteral conformances to AnyJSON
grdsdev Oct 30, 2023
fff5e57
Add SPI badges to README
grdsdev Oct 30, 2023
f455c54
Add PKCE support to getOAuthSignInURL
grdsdev Oct 30, 2023
7d33ad4
Implement method for getting user
grdsdev Oct 30, 2023
22d2c7f
Fix setSession method
grdsdev Oct 30, 2023
ed2a8a2
Fix test
grdsdev Oct 30, 2023
ecb27f4
Add updateBucket method
grdsdev Oct 30, 2023
573b008
Adding missing methods on Storage
grdsdev Oct 30, 2023
e0e180a
Add integration tests to Storage
grdsdev Oct 30, 2023
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
53 changes: 36 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,50 @@ name: CI
on:
push:
branches:
- main
- master
pull_request:
branches:
- "*"
- '*'
workflow_dispatch:

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
example:
runs-on: macos-12
library:
strategy:
matrix:
platform:
- iOS Simulator,name=iPhone 14 Pro
- macOS
- macOS,variant=Mac Catalyst
- tvOS Simulator,name=Apple TV
- watchOS Simulator,name=Apple Watch Series 8 (41mm)
runs-on: macos-13
name: Test Library
steps:
- uses: actions/checkout@v3
- name: Setup Secrets.swift
run: cp Examples/Examples/_Secrets.swift Examples/Examples/Secrets.swift
- name: Build example
run: make build-example
- name: Select Xcode 14.3
run: sudo xcode-select -s /Applications/Xcode_14.3.app
- name: Run tests
run: env PLATFORM="${{ matrix.platform }}" make test-library

test-library:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Setup Secrets.swift
run: cp Examples/Examples/_Secrets.swift Examples/Examples/Secrets.swift
- name: Test library
run: make test-library

# example:
# strategy:
# matrix:
# platform:
# - iOS Simulator,name=iPhone 14 Pro
# example:
# - Examples
# - ProductSample
# runs-on: macos-13
# name: Build Example
# steps:
# - uses: actions/checkout@v3
# - name: Select Xcode 14.3
# run: sudo xcode-select -s /Applications/Xcode_14.3.app
# - name: Run pre-build script
# run: sh Examples/${{ matrix.example }}/.ci/pre_build.sh || exit 0;
# - name: Build example
# run: env PLATFORM="${{ matrix.platform }}" EXAMPLE="${{ matrix.example }}" make build-example
66 changes: 66 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/Functions.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Functions"
BuildableName = "Functions"
BlueprintName = "Functions"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Functions"
BuildableName = "Functions"
BlueprintName = "Functions"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
66 changes: 66 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/Realtime.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Realtime"
BuildableName = "Realtime"
BlueprintName = "Realtime"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Realtime"
BuildableName = "Realtime"
BlueprintName = "Realtime"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
66 changes: 66 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/Storage.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Storage"
BuildableName = "Storage"
BlueprintName = "Storage"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Storage"
BuildableName = "Storage"
BlueprintName = "Storage"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
127 changes: 127 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/Supabase-Package.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Supabase"
BuildableName = "Supabase"
BlueprintName = "Supabase"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "GoTrue"
BuildableName = "GoTrue"
BlueprintName = "GoTrue"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "PostgREST"
BuildableName = "PostgREST"
BlueprintName = "PostgREST"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Realtime"
BuildableName = "Realtime"
BlueprintName = "Realtime"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Storage"
BuildableName = "Storage"
BlueprintName = "Storage"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:Supabase.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Supabase"
BuildableName = "Supabase"
BlueprintName = "Supabase"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading