Skip to content

Commit 796afda

Browse files
authored
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
1 parent b1863a9 commit 796afda

File tree

106 files changed

+8814
-178
lines changed

Some content is hidden

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

106 files changed

+8814
-178
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<TestPlans>
31+
<TestPlanReference
32+
reference = "container:Supabase.xctestplan"
33+
default = "YES">
34+
</TestPlanReference>
35+
</TestPlans>
36+
</TestAction>
37+
<LaunchAction
38+
buildConfiguration = "Debug"
39+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
40+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
41+
launchStyle = "0"
42+
useCustomWorkingDirectory = "NO"
43+
ignoresPersistentStateOnLaunch = "NO"
44+
debugDocumentVersioning = "YES"
45+
debugServiceExtension = "internal"
46+
allowLocationSimulation = "YES">
47+
</LaunchAction>
48+
<ProfileAction
49+
buildConfiguration = "Release"
50+
shouldUseLaunchSchemeArgsEnv = "YES"
51+
savedToolIdentifier = ""
52+
useCustomWorkingDirectory = "NO"
53+
debugDocumentVersioning = "YES">
54+
<MacroExpansion>
55+
<BuildableReference
56+
BuildableIdentifier = "primary"
57+
BlueprintIdentifier = "Supabase"
58+
BuildableName = "Supabase"
59+
BlueprintName = "Supabase"
60+
ReferencedContainer = "container:">
61+
</BuildableReference>
62+
</MacroExpansion>
63+
</ProfileAction>
64+
<AnalyzeAction
65+
buildConfiguration = "Debug">
66+
</AnalyzeAction>
67+
<ArchiveAction
68+
buildConfiguration = "Release"
69+
revealArchiveInOrganizer = "YES">
70+
</ArchiveAction>
71+
</Scheme>

.swiftpm/xcode/xcshareddata/xcschemes/Supabase.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1420"
3+
LastUpgradeVersion = "1500"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Examples/Examples.xcodeproj/project.pbxproj

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
793895D22954AC000044F2B8 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 793895D12954AC000044F2B8 /* Preview Assets.xcassets */; };
1414
794EF1222955F26A008C9526 /* AddTodoListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 794EF1212955F26A008C9526 /* AddTodoListView.swift */; };
1515
794EF1242955F3DE008C9526 /* TodoListRow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 794EF1232955F3DE008C9526 /* TodoListRow.swift */; };
16-
7956405C2954AC3E0088A06F /* Supabase in Frameworks */ = {isa = PBXBuildFile; productRef = 7956405B2954AC3E0088A06F /* Supabase */; };
1716
7956405E2954ADE00088A06F /* Secrets.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7956405D2954ADE00088A06F /* Secrets.swift */; };
1817
795640602954AE140088A06F /* AuthView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7956405F2954AE140088A06F /* AuthView.swift */; };
1918
795640622955AD2B0088A06F /* HomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 795640612955AD2B0088A06F /* HomeView.swift */; };
@@ -22,6 +21,7 @@
2221
7956406A2955AFBD0088A06F /* ErrorText.swift in Sources */ = {isa = PBXBuildFile; fileRef = 795640692955AFBD0088A06F /* ErrorText.swift */; };
2322
7956406D2955B3500088A06F /* SwiftUINavigation in Frameworks */ = {isa = PBXBuildFile; productRef = 7956406C2955B3500088A06F /* SwiftUINavigation */; };
2423
795640702955B5190088A06F /* IdentifiedCollections in Frameworks */ = {isa = PBXBuildFile; productRef = 7956406F2955B5190088A06F /* IdentifiedCollections */; };
24+
79719ECE2ADF26C400737804 /* Supabase in Frameworks */ = {isa = PBXBuildFile; productRef = 79719ECD2ADF26C400737804 /* Supabase */; };
2525
/* End PBXBuildFile section */
2626

2727
/* Begin PBXFileReference section */
@@ -48,7 +48,7 @@
4848
files = (
4949
795640702955B5190088A06F /* IdentifiedCollections in Frameworks */,
5050
7956406D2955B3500088A06F /* SwiftUINavigation in Frameworks */,
51-
7956405C2954AC3E0088A06F /* Supabase in Frameworks */,
51+
79719ECE2ADF26C400737804 /* Supabase in Frameworks */,
5252
);
5353
runOnlyForDeploymentPostprocessing = 0;
5454
};
@@ -124,9 +124,9 @@
124124
);
125125
name = Examples;
126126
packageProductDependencies = (
127-
7956405B2954AC3E0088A06F /* Supabase */,
128127
7956406C2955B3500088A06F /* SwiftUINavigation */,
129128
7956406F2955B5190088A06F /* IdentifiedCollections */,
129+
79719ECD2ADF26C400737804 /* Supabase */,
130130
);
131131
productName = Examples;
132132
productReference = 793895C62954ABFF0044F2B8 /* Examples.app */;
@@ -140,7 +140,7 @@
140140
attributes = {
141141
BuildIndependentTargetsInParallel = 1;
142142
LastSwiftUpdateCheck = 1410;
143-
LastUpgradeCheck = 1410;
143+
LastUpgradeCheck = 1500;
144144
TargetAttributes = {
145145
793895C52954ABFF0044F2B8 = {
146146
CreatedOnToolsVersion = 14.1;
@@ -235,9 +235,11 @@
235235
CLANG_WARN_UNREACHABLE_CODE = YES;
236236
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
237237
COPY_PHASE_STRIP = NO;
238+
DEAD_CODE_STRIPPING = YES;
238239
DEBUG_INFORMATION_FORMAT = dwarf;
239240
ENABLE_STRICT_OBJC_MSGSEND = YES;
240241
ENABLE_TESTABILITY = YES;
242+
ENABLE_USER_SCRIPT_SANDBOXING = YES;
241243
GCC_C_LANGUAGE_STANDARD = gnu11;
242244
GCC_DYNAMIC_NO_PIC = NO;
243245
GCC_NO_COMMON_BLOCKS = YES;
@@ -293,9 +295,11 @@
293295
CLANG_WARN_UNREACHABLE_CODE = YES;
294296
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
295297
COPY_PHASE_STRIP = NO;
298+
DEAD_CODE_STRIPPING = YES;
296299
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
297300
ENABLE_NS_ASSERTIONS = NO;
298301
ENABLE_STRICT_OBJC_MSGSEND = YES;
302+
ENABLE_USER_SCRIPT_SANDBOXING = YES;
299303
GCC_C_LANGUAGE_STANDARD = gnu11;
300304
GCC_NO_COMMON_BLOCKS = YES;
301305
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -319,6 +323,7 @@
319323
CODE_SIGN_ENTITLEMENTS = Examples/Examples.entitlements;
320324
CODE_SIGN_STYLE = Automatic;
321325
CURRENT_PROJECT_VERSION = 1;
326+
DEAD_CODE_STRIPPING = YES;
322327
DEVELOPMENT_ASSET_PATHS = "\"Examples/Preview Content\"";
323328
DEVELOPMENT_TEAM = ELTTE7K8TT;
324329
ENABLE_HARDENED_RUNTIME = YES;
@@ -357,6 +362,7 @@
357362
CODE_SIGN_ENTITLEMENTS = Examples/Examples.entitlements;
358363
CODE_SIGN_STYLE = Automatic;
359364
CURRENT_PROJECT_VERSION = 1;
365+
DEAD_CODE_STRIPPING = YES;
360366
DEVELOPMENT_ASSET_PATHS = "\"Examples/Preview Content\"";
361367
DEVELOPMENT_TEAM = ELTTE7K8TT;
362368
ENABLE_HARDENED_RUNTIME = YES;
@@ -416,24 +422,20 @@
416422
repositoryURL = "https://github.com/pointfreeco/swiftui-navigation.git";
417423
requirement = {
418424
kind = upToNextMajorVersion;
419-
minimumVersion = 0.4.5;
425+
minimumVersion = 1.0.0;
420426
};
421427
};
422428
7956406E2955B5190088A06F /* XCRemoteSwiftPackageReference "swift-identified-collections" */ = {
423429
isa = XCRemoteSwiftPackageReference;
424430
repositoryURL = "https://github.com/pointfreeco/swift-identified-collections.git";
425431
requirement = {
426432
kind = upToNextMajorVersion;
427-
minimumVersion = 0.5.0;
433+
minimumVersion = 1.0.0;
428434
};
429435
};
430436
/* End XCRemoteSwiftPackageReference section */
431437

432438
/* Begin XCSwiftPackageProductDependency section */
433-
7956405B2954AC3E0088A06F /* Supabase */ = {
434-
isa = XCSwiftPackageProductDependency;
435-
productName = Supabase;
436-
};
437439
7956406C2955B3500088A06F /* SwiftUINavigation */ = {
438440
isa = XCSwiftPackageProductDependency;
439441
package = 7956406B2955B3500088A06F /* XCRemoteSwiftPackageReference "swiftui-navigation" */;
@@ -444,6 +446,10 @@
444446
package = 7956406E2955B5190088A06F /* XCRemoteSwiftPackageReference "swift-identified-collections" */;
445447
productName = IdentifiedCollections;
446448
};
449+
79719ECD2ADF26C400737804 /* Supabase */ = {
450+
isa = XCSwiftPackageProductDependency;
451+
productName = Supabase;
452+
};
447453
/* End XCSwiftPackageProductDependency section */
448454
};
449455
rootObject = 793895BE2954ABFF0044F2B8 /* Project object */;

Examples/Examples/ExamplesApp.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,12 @@ import SwiftUI
1010

1111
@main
1212
struct ExamplesApp: App {
13-
@State var supabaseInitialized = false
1413
@StateObject var auth = AuthController()
1514

1615
var body: some Scene {
1716
WindowGroup {
18-
main
19-
}
20-
}
21-
22-
@ViewBuilder
23-
var main: some View {
24-
if supabaseInitialized {
2517
RootView()
2618
.environmentObject(auth)
27-
} else {
28-
ProgressView()
29-
.task {
30-
await supabase.auth.initialize()
31-
supabaseInitialized = true
32-
}
3319
}
3420
}
3521
}

Examples/Examples/RootView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct RootView: View {
2121
}
2222
}
2323
.task {
24-
for await event in supabase.auth.authEventChange {
24+
for await event in supabase.auth.authEventChange.values {
2525
withAnimation {
2626
authEvent = event
2727
}

Examples/Package.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// swift-tools-version:5.7
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import Foundation
5+
import PackageDescription
6+
7+
var package = Package(
8+
name: "Examples",
9+
platforms: [],
10+
products: [],
11+
dependencies: [],
12+
targets: []
13+
)

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
PLATFORM_IOS = iOS Simulator,name=iPhone 14 Pro Max
1+
PLATFORM_IOS = iOS Simulator,name=iPhone 15 Pro Max
22

33
test-library:
44
xcodebuild test \
55
-workspace supabase-swift.xcworkspace \
6-
-scheme Supabase \
6+
-scheme Supabase-Package \
77
-destination platform="$(PLATFORM_IOS)" || exit 1;
88

99
build-example:

Package.resolved

Lines changed: 12 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)