Skip to content

Commit c8581fc

Browse files
authored
prerelease 1.0.0 (#119)
* Update sub-libraries to use `dependency-free` branches (#117) * Update libs * Remove Get import * Update storage * Update GoTrue to dependency-free branch * Monorepo (#118) * Move functions-swift to repo * Move postgrest to repo * Move gotrue to repo * Add realtime to repo * Add storage to repo * Update dependencies on release * Add Test Plan to run all tests * Update CI * Default to build for iPhone 14 * Revert Makefile and default only on CI * Fix CI * Rename Makefile variable * CI * Remove Mocker * feat(storage): use Codable types (#120) * Start Codable support on Storage * wip * Use Request type * Use default parameter value * Fix Storage tests * Remove old code * Remove commented code * Fix branch name on CI * Remove deprecated code * Add return type to closure * Create Product Sample app (#121) * Create Product Sample app * Use dependency container * Add logger * Working on image upload * Fix image download * Swipe to delete * Add missing use cases * Build ProductSample app on build-example job * Organize sample app * Start adding auth * Fix GoTrueClient memory leaks, fix listening for auth changes * Move models to specific files * Send owner_id when creating product * Move Info.plist file * Refactor SessionManager and add tests to it * Add some tests to GoTrueClient * Skip Storage tests * Fix Example build issues * Specify PLATFORM_IOS * Do not use uuid for selecting device * wip CI * Add common settings to project instead of target * ci * Remove Preview * ci * Add support for PKCE flow (#123) * Add PKCE flow * Fix tests * Make some types internal and remove CodingKeys implementations * Add PKCE to SupabaseClient * Add debug log to GoTrueClient * Use LockIsolated on GoTrueClient * Support PKCE when signing in with redirect URL * Make session from url method store session by default * Fix flaky test * Remove example job from CI * Make GoTrueClient an actor * Move request executor to APIClient actor * Add makeStream factory method when swift version less than 5.9 * Fix flaky test by inserting a mega yield * Add MFA Support to GoTrue (#124) * Add interface for MFA methods * Implement all MFA methods * Move EventEmitter * Code cleanup * Do not use enums on some response models * Adding MFA Flow to Example project * Add MFA Enrollment view * Use Dependency Container * Add MFA verify flow * Fix tests * Remove commented code * Fix flaky test * Refactor EventEmitter * Refactor dependencies and tests * Realtime (#126) * Bring SwiftPhoenixClient to Realtime * Sync postgrest changes between client and server * Add track, untrack and send methods to channel * Start adding transformer and implementing trigger method * Refactoring Example project * Adding channel filter * Fix bindings sync between server and client * Set access token * Rollback Examples * Format Realtime package * Clean up * Handle error when subscribing to channel * Remove unused files from example project * Remove Realtime tests * Code format projecct * Update realtime access token when token changes * Add ExpressibleByLiteral conformances to AnyJSON * Add SPI badges to README * Add PKCE support to getOAuthSignInURL * Implement method for getting user * Fix setSession method * Fix test * Add updateBucket method * Adding missing methods on Storage * Add integration tests to Storage
1 parent 7088b85 commit c8581fc

File tree

176 files changed

+12872
-367
lines changed

Some content is hidden

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

176 files changed

+12872
-367
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,50 @@ name: CI
33
on:
44
push:
55
branches:
6-
- main
6+
- master
77
pull_request:
88
branches:
9-
- "*"
9+
- '*'
10+
workflow_dispatch:
1011

1112
concurrency:
1213
group: ci-${{ github.ref }}
1314
cancel-in-progress: true
1415

1516
jobs:
16-
example:
17-
runs-on: macos-12
17+
library:
18+
strategy:
19+
matrix:
20+
platform:
21+
- iOS Simulator,name=iPhone 14 Pro
22+
- macOS
23+
- macOS,variant=Mac Catalyst
24+
- tvOS Simulator,name=Apple TV
25+
- watchOS Simulator,name=Apple Watch Series 8 (41mm)
26+
runs-on: macos-13
27+
name: Test Library
1828
steps:
1929
- uses: actions/checkout@v3
20-
- name: Setup Secrets.swift
21-
run: cp Examples/Examples/_Secrets.swift Examples/Examples/Secrets.swift
22-
- name: Build example
23-
run: make build-example
30+
- name: Select Xcode 14.3
31+
run: sudo xcode-select -s /Applications/Xcode_14.3.app
32+
- name: Run tests
33+
run: env PLATFORM="${{ matrix.platform }}" make test-library
2434

25-
test-library:
26-
runs-on: macos-12
27-
steps:
28-
- uses: actions/checkout@v3
29-
- name: Setup Secrets.swift
30-
run: cp Examples/Examples/_Secrets.swift Examples/Examples/Secrets.swift
31-
- name: Test library
32-
run: make test-library
33-
35+
# example:
36+
# strategy:
37+
# matrix:
38+
# platform:
39+
# - iOS Simulator,name=iPhone 14 Pro
40+
# example:
41+
# - Examples
42+
# - ProductSample
43+
# runs-on: macos-13
44+
# name: Build Example
45+
# steps:
46+
# - uses: actions/checkout@v3
47+
# - name: Select Xcode 14.3
48+
# run: sudo xcode-select -s /Applications/Xcode_14.3.app
49+
# - name: Run pre-build script
50+
# run: sh Examples/${{ matrix.example }}/.ci/pre_build.sh || exit 0;
51+
# - name: Build example
52+
# run: env PLATFORM="${{ matrix.platform }}" EXAMPLE="${{ matrix.example }}" make build-example
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1500"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "Functions"
18+
BuildableName = "Functions"
19+
BlueprintName = "Functions"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
shouldAutocreateTestPlan = "YES">
31+
</TestAction>
32+
<LaunchAction
33+
buildConfiguration = "Debug"
34+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
35+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
36+
launchStyle = "0"
37+
useCustomWorkingDirectory = "NO"
38+
ignoresPersistentStateOnLaunch = "NO"
39+
debugDocumentVersioning = "YES"
40+
debugServiceExtension = "internal"
41+
allowLocationSimulation = "YES">
42+
</LaunchAction>
43+
<ProfileAction
44+
buildConfiguration = "Release"
45+
shouldUseLaunchSchemeArgsEnv = "YES"
46+
savedToolIdentifier = ""
47+
useCustomWorkingDirectory = "NO"
48+
debugDocumentVersioning = "YES">
49+
<MacroExpansion>
50+
<BuildableReference
51+
BuildableIdentifier = "primary"
52+
BlueprintIdentifier = "Functions"
53+
BuildableName = "Functions"
54+
BlueprintName = "Functions"
55+
ReferencedContainer = "container:">
56+
</BuildableReference>
57+
</MacroExpansion>
58+
</ProfileAction>
59+
<AnalyzeAction
60+
buildConfiguration = "Debug">
61+
</AnalyzeAction>
62+
<ArchiveAction
63+
buildConfiguration = "Release"
64+
revealArchiveInOrganizer = "YES">
65+
</ArchiveAction>
66+
</Scheme>
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1500"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "Realtime"
18+
BuildableName = "Realtime"
19+
BlueprintName = "Realtime"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
shouldAutocreateTestPlan = "YES">
31+
</TestAction>
32+
<LaunchAction
33+
buildConfiguration = "Debug"
34+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
35+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
36+
launchStyle = "0"
37+
useCustomWorkingDirectory = "NO"
38+
ignoresPersistentStateOnLaunch = "NO"
39+
debugDocumentVersioning = "YES"
40+
debugServiceExtension = "internal"
41+
allowLocationSimulation = "YES">
42+
</LaunchAction>
43+
<ProfileAction
44+
buildConfiguration = "Release"
45+
shouldUseLaunchSchemeArgsEnv = "YES"
46+
savedToolIdentifier = ""
47+
useCustomWorkingDirectory = "NO"
48+
debugDocumentVersioning = "YES">
49+
<MacroExpansion>
50+
<BuildableReference
51+
BuildableIdentifier = "primary"
52+
BlueprintIdentifier = "Realtime"
53+
BuildableName = "Realtime"
54+
BlueprintName = "Realtime"
55+
ReferencedContainer = "container:">
56+
</BuildableReference>
57+
</MacroExpansion>
58+
</ProfileAction>
59+
<AnalyzeAction
60+
buildConfiguration = "Debug">
61+
</AnalyzeAction>
62+
<ArchiveAction
63+
buildConfiguration = "Release"
64+
revealArchiveInOrganizer = "YES">
65+
</ArchiveAction>
66+
</Scheme>
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1500"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "Storage"
18+
BuildableName = "Storage"
19+
BlueprintName = "Storage"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
shouldAutocreateTestPlan = "YES">
31+
</TestAction>
32+
<LaunchAction
33+
buildConfiguration = "Debug"
34+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
35+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
36+
launchStyle = "0"
37+
useCustomWorkingDirectory = "NO"
38+
ignoresPersistentStateOnLaunch = "NO"
39+
debugDocumentVersioning = "YES"
40+
debugServiceExtension = "internal"
41+
allowLocationSimulation = "YES">
42+
</LaunchAction>
43+
<ProfileAction
44+
buildConfiguration = "Release"
45+
shouldUseLaunchSchemeArgsEnv = "YES"
46+
savedToolIdentifier = ""
47+
useCustomWorkingDirectory = "NO"
48+
debugDocumentVersioning = "YES">
49+
<MacroExpansion>
50+
<BuildableReference
51+
BuildableIdentifier = "primary"
52+
BlueprintIdentifier = "Storage"
53+
BuildableName = "Storage"
54+
BlueprintName = "Storage"
55+
ReferencedContainer = "container:">
56+
</BuildableReference>
57+
</MacroExpansion>
58+
</ProfileAction>
59+
<AnalyzeAction
60+
buildConfiguration = "Debug">
61+
</AnalyzeAction>
62+
<ArchiveAction
63+
buildConfiguration = "Release"
64+
revealArchiveInOrganizer = "YES">
65+
</ArchiveAction>
66+
</Scheme>
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1500"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "Supabase"
18+
BuildableName = "Supabase"
19+
BlueprintName = "Supabase"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "YES"
27+
buildForArchiving = "YES"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "GoTrue"
32+
BuildableName = "GoTrue"
33+
BlueprintName = "GoTrue"
34+
ReferencedContainer = "container:">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
<BuildActionEntry
38+
buildForTesting = "YES"
39+
buildForRunning = "YES"
40+
buildForProfiling = "YES"
41+
buildForArchiving = "YES"
42+
buildForAnalyzing = "YES">
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "PostgREST"
46+
BuildableName = "PostgREST"
47+
BlueprintName = "PostgREST"
48+
ReferencedContainer = "container:">
49+
</BuildableReference>
50+
</BuildActionEntry>
51+
<BuildActionEntry
52+
buildForTesting = "YES"
53+
buildForRunning = "YES"
54+
buildForProfiling = "YES"
55+
buildForArchiving = "YES"
56+
buildForAnalyzing = "YES">
57+
<BuildableReference
58+
BuildableIdentifier = "primary"
59+
BlueprintIdentifier = "Realtime"
60+
BuildableName = "Realtime"
61+
BlueprintName = "Realtime"
62+
ReferencedContainer = "container:">
63+
</BuildableReference>
64+
</BuildActionEntry>
65+
<BuildActionEntry
66+
buildForTesting = "YES"
67+
buildForRunning = "YES"
68+
buildForProfiling = "YES"
69+
buildForArchiving = "YES"
70+
buildForAnalyzing = "YES">
71+
<BuildableReference
72+
BuildableIdentifier = "primary"
73+
BlueprintIdentifier = "Storage"
74+
BuildableName = "Storage"
75+
BlueprintName = "Storage"
76+
ReferencedContainer = "container:">
77+
</BuildableReference>
78+
</BuildActionEntry>
79+
</BuildActionEntries>
80+
</BuildAction>
81+
<TestAction
82+
buildConfiguration = "Debug"
83+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
84+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
85+
shouldUseLaunchSchemeArgsEnv = "YES">
86+
<TestPlans>
87+
<TestPlanReference
88+
reference = "container:Supabase.xctestplan"
89+
default = "YES">
90+
</TestPlanReference>
91+
</TestPlans>
92+
</TestAction>
93+
<LaunchAction
94+
buildConfiguration = "Debug"
95+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
96+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
97+
launchStyle = "0"
98+
useCustomWorkingDirectory = "NO"
99+
ignoresPersistentStateOnLaunch = "NO"
100+
debugDocumentVersioning = "YES"
101+
debugServiceExtension = "internal"
102+
allowLocationSimulation = "YES">
103+
</LaunchAction>
104+
<ProfileAction
105+
buildConfiguration = "Release"
106+
shouldUseLaunchSchemeArgsEnv = "YES"
107+
savedToolIdentifier = ""
108+
useCustomWorkingDirectory = "NO"
109+
debugDocumentVersioning = "YES">
110+
<MacroExpansion>
111+
<BuildableReference
112+
BuildableIdentifier = "primary"
113+
BlueprintIdentifier = "Supabase"
114+
BuildableName = "Supabase"
115+
BlueprintName = "Supabase"
116+
ReferencedContainer = "container:">
117+
</BuildableReference>
118+
</MacroExpansion>
119+
</ProfileAction>
120+
<AnalyzeAction
121+
buildConfiguration = "Debug">
122+
</AnalyzeAction>
123+
<ArchiveAction
124+
buildConfiguration = "Release"
125+
revealArchiveInOrganizer = "YES">
126+
</ArchiveAction>
127+
</Scheme>

0 commit comments

Comments
 (0)