Skip to content

Commit 1509c33

Browse files
russellwheatleyLyokone
authored andcommitted
feat(database): Swift Package Manager support (#16783)
1 parent 164421e commit 1509c33

32 files changed

+324
-128
lines changed

.github/workflows/scripts/swift-integration.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ void main() async {
1414
await buildSwiftExampleApp('macos', 'firebase_remote_config');
1515
await buildSwiftExampleApp('ios', 'cloud_functions');
1616
await buildSwiftExampleApp('macos', 'cloud_functions');
17+
await buildSwiftExampleApp('ios', 'firebase_database');
18+
await buildSwiftExampleApp('macos', 'firebase_database');
1719
}
1820

1921
Future<void> deleteFirstLine(String filePath) async {

packages/firebase_database/firebase_database/example/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
*.swp
66
.DS_Store
77
.atom/
8+
.build/
89
.buildlog/
910
.history
1011
.svn/
12+
.swiftpm/
1113
migrate_working_dir/
1214

1315
# IntelliJ related

packages/firebase_database/firebase_database/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 25 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88

99
/* Begin PBXBuildFile section */
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11-
28220DBFD8511F8203F69B5D /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E272CCB32B805BD1E8B419D /* Pods_RunnerTests.framework */; };
1211
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
1312
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
1413
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
14+
78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */ = {isa = PBXBuildFile; productRef = 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */; };
1515
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
1616
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
1717
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
18-
FB9B1AE36B8614676A3FA6B7 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B759EA3B02AE88AECC794C6 /* Pods_Runner.framework */; };
1918
/* End PBXBuildFile section */
2019

2120
/* Begin PBXContainerItemProxy section */
@@ -47,9 +46,6 @@
4746
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
4847
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
4948
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
50-
4B759EA3B02AE88AECC794C6 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
51-
5E272CCB32B805BD1E8B419D /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
52-
6FEEF58C9913C35E77FF7501 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
5349
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
5450
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
5551
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
@@ -60,27 +56,21 @@
6056
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
6157
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
6258
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
63-
B471B01028E43C4D3FC88438 /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; };
64-
C87474AC2993C90748DC97EE /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
65-
CA7BEC5DBA01DE75A7764F66 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
66-
E75A29D73D8F0FBB8F1BCEF6 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
67-
FA592A902E5A8F56EB0F0580 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = "<group>"; };
6859
/* End PBXFileReference section */
6960

7061
/* Begin PBXFrameworksBuildPhase section */
7162
3A1CC5C1C175EAC210B3D882 /* Frameworks */ = {
7263
isa = PBXFrameworksBuildPhase;
7364
buildActionMask = 2147483647;
7465
files = (
75-
28220DBFD8511F8203F69B5D /* Pods_RunnerTests.framework in Frameworks */,
7666
);
7767
runOnlyForDeploymentPostprocessing = 0;
7868
};
7969
97C146EB1CF9000F007C117D /* Frameworks */ = {
8070
isa = PBXFrameworksBuildPhase;
8171
buildActionMask = 2147483647;
8272
files = (
83-
FB9B1AE36B8614676A3FA6B7 /* Pods_Runner.framework in Frameworks */,
73+
78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */,
8474
);
8575
runOnlyForDeploymentPostprocessing = 0;
8676
};
@@ -95,29 +85,6 @@
9585
path = RunnerTests;
9686
sourceTree = "<group>";
9787
};
98-
575D9720CE0D60A3D7621C90 /* Pods */ = {
99-
isa = PBXGroup;
100-
children = (
101-
6FEEF58C9913C35E77FF7501 /* Pods-Runner.debug.xcconfig */,
102-
C87474AC2993C90748DC97EE /* Pods-Runner.release.xcconfig */,
103-
CA7BEC5DBA01DE75A7764F66 /* Pods-Runner.profile.xcconfig */,
104-
FA592A902E5A8F56EB0F0580 /* Pods-RunnerTests.debug.xcconfig */,
105-
B471B01028E43C4D3FC88438 /* Pods-RunnerTests.release.xcconfig */,
106-
E75A29D73D8F0FBB8F1BCEF6 /* Pods-RunnerTests.profile.xcconfig */,
107-
);
108-
name = Pods;
109-
path = Pods;
110-
sourceTree = "<group>";
111-
};
112-
7ED75894B38C838548EB0C52 /* Frameworks */ = {
113-
isa = PBXGroup;
114-
children = (
115-
4B759EA3B02AE88AECC794C6 /* Pods_Runner.framework */,
116-
5E272CCB32B805BD1E8B419D /* Pods_RunnerTests.framework */,
117-
);
118-
name = Frameworks;
119-
sourceTree = "<group>";
120-
};
12188
9740EEB11CF90186004384FC /* Flutter */ = {
12289
isa = PBXGroup;
12390
children = (
@@ -136,8 +103,6 @@
136103
97C146F01CF9000F007C117D /* Runner */,
137104
97C146EF1CF9000F007C117D /* Products */,
138105
331C8082294A63A400263BE5 /* RunnerTests */,
139-
575D9720CE0D60A3D7621C90 /* Pods */,
140-
7ED75894B38C838548EB0C52 /* Frameworks */,
141106
);
142107
sourceTree = "<group>";
143108
};
@@ -172,7 +137,6 @@
172137
isa = PBXNativeTarget;
173138
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
174139
buildPhases = (
175-
A6B77F0192F6136F59EF9AF0 /* [CP] Check Pods Manifest.lock */,
176140
331C807D294A63A400263BE5 /* Sources */,
177141
331C807F294A63A400263BE5 /* Resources */,
178142
3A1CC5C1C175EAC210B3D882 /* Frameworks */,
@@ -191,20 +155,21 @@
191155
isa = PBXNativeTarget;
192156
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
193157
buildPhases = (
194-
5CC3C84F88673AFB90740BBB /* [CP] Check Pods Manifest.lock */,
195158
9740EEB61CF901F6004384FC /* Run Script */,
196159
97C146EA1CF9000F007C117D /* Sources */,
197160
97C146EB1CF9000F007C117D /* Frameworks */,
198161
97C146EC1CF9000F007C117D /* Resources */,
199162
9705A1C41CF9048500538489 /* Embed Frameworks */,
200163
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
201-
7E3B5081D674CDB84A95EFDA /* [CP] Embed Pods Frameworks */,
202164
);
203165
buildRules = (
204166
);
205167
dependencies = (
206168
);
207169
name = Runner;
170+
packageProductDependencies = (
171+
78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */,
172+
);
208173
productName = Runner;
209174
productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
210175
productType = "com.apple.product-type.application";
@@ -238,6 +203,9 @@
238203
Base,
239204
);
240205
mainGroup = 97C146E51CF9000F007C117D;
206+
packageReferences = (
207+
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */,
208+
);
241209
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
242210
projectDirPath = "";
243211
projectRoot = "";
@@ -286,45 +254,6 @@
286254
shellPath = /bin/sh;
287255
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
288256
};
289-
5CC3C84F88673AFB90740BBB /* [CP] Check Pods Manifest.lock */ = {
290-
isa = PBXShellScriptBuildPhase;
291-
buildActionMask = 2147483647;
292-
files = (
293-
);
294-
inputFileListPaths = (
295-
);
296-
inputPaths = (
297-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
298-
"${PODS_ROOT}/Manifest.lock",
299-
);
300-
name = "[CP] Check Pods Manifest.lock";
301-
outputFileListPaths = (
302-
);
303-
outputPaths = (
304-
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
305-
);
306-
runOnlyForDeploymentPostprocessing = 0;
307-
shellPath = /bin/sh;
308-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
309-
showEnvVarsInLog = 0;
310-
};
311-
7E3B5081D674CDB84A95EFDA /* [CP] Embed Pods Frameworks */ = {
312-
isa = PBXShellScriptBuildPhase;
313-
buildActionMask = 2147483647;
314-
files = (
315-
);
316-
inputFileListPaths = (
317-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
318-
);
319-
name = "[CP] Embed Pods Frameworks";
320-
outputFileListPaths = (
321-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
322-
);
323-
runOnlyForDeploymentPostprocessing = 0;
324-
shellPath = /bin/sh;
325-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
326-
showEnvVarsInLog = 0;
327-
};
328257
9740EEB61CF901F6004384FC /* Run Script */ = {
329258
isa = PBXShellScriptBuildPhase;
330259
alwaysOutOfDate = 1;
@@ -340,28 +269,6 @@
340269
shellPath = /bin/sh;
341270
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
342271
};
343-
A6B77F0192F6136F59EF9AF0 /* [CP] Check Pods Manifest.lock */ = {
344-
isa = PBXShellScriptBuildPhase;
345-
buildActionMask = 2147483647;
346-
files = (
347-
);
348-
inputFileListPaths = (
349-
);
350-
inputPaths = (
351-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
352-
"${PODS_ROOT}/Manifest.lock",
353-
);
354-
name = "[CP] Check Pods Manifest.lock";
355-
outputFileListPaths = (
356-
);
357-
outputPaths = (
358-
"$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt",
359-
);
360-
runOnlyForDeploymentPostprocessing = 0;
361-
shellPath = /bin/sh;
362-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
363-
showEnvVarsInLog = 0;
364-
};
365272
/* End PBXShellScriptBuildPhase section */
366273

367274
/* Begin PBXSourcesBuildPhase section */
@@ -474,6 +381,7 @@
474381
DEVELOPMENT_TEAM = 7K2HVKAM5V;
475382
ENABLE_BITCODE = NO;
476383
INFOPLIST_FILE = Runner/Info.plist;
384+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
477385
LD_RUNPATH_SEARCH_PATHS = (
478386
"$(inherited)",
479387
"@executable_path/Frameworks",
@@ -488,7 +396,6 @@
488396
};
489397
331C8088294A63A400263BE5 /* Debug */ = {
490398
isa = XCBuildConfiguration;
491-
baseConfigurationReference = FA592A902E5A8F56EB0F0580 /* Pods-RunnerTests.debug.xcconfig */;
492399
buildSettings = {
493400
BUNDLE_LOADER = "$(TEST_HOST)";
494401
CODE_SIGN_STYLE = Automatic;
@@ -506,7 +413,6 @@
506413
};
507414
331C8089294A63A400263BE5 /* Release */ = {
508415
isa = XCBuildConfiguration;
509-
baseConfigurationReference = B471B01028E43C4D3FC88438 /* Pods-RunnerTests.release.xcconfig */;
510416
buildSettings = {
511417
BUNDLE_LOADER = "$(TEST_HOST)";
512418
CODE_SIGN_STYLE = Automatic;
@@ -522,7 +428,6 @@
522428
};
523429
331C808A294A63A400263BE5 /* Profile */ = {
524430
isa = XCBuildConfiguration;
525-
baseConfigurationReference = E75A29D73D8F0FBB8F1BCEF6 /* Pods-RunnerTests.profile.xcconfig */;
526431
buildSettings = {
527432
BUNDLE_LOADER = "$(TEST_HOST)";
528433
CODE_SIGN_STYLE = Automatic;
@@ -657,6 +562,7 @@
657562
DEVELOPMENT_TEAM = 7K2HVKAM5V;
658563
ENABLE_BITCODE = NO;
659564
INFOPLIST_FILE = Runner/Info.plist;
565+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
660566
LD_RUNPATH_SEARCH_PATHS = (
661567
"$(inherited)",
662568
"@executable_path/Frameworks",
@@ -680,6 +586,7 @@
680586
DEVELOPMENT_TEAM = 7K2HVKAM5V;
681587
ENABLE_BITCODE = NO;
682588
INFOPLIST_FILE = Runner/Info.plist;
589+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
683590
LD_RUNPATH_SEARCH_PATHS = (
684591
"$(inherited)",
685592
"@executable_path/Frameworks",
@@ -726,6 +633,20 @@
726633
defaultConfigurationName = Release;
727634
};
728635
/* End XCConfigurationList section */
636+
637+
/* Begin XCLocalSwiftPackageReference section */
638+
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = {
639+
isa = XCLocalSwiftPackageReference;
640+
relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage;
641+
};
642+
/* End XCLocalSwiftPackageReference section */
643+
644+
/* Begin XCSwiftPackageProductDependency section */
645+
78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */ = {
646+
isa = XCSwiftPackageProductDependency;
647+
productName = FlutterGeneratedPluginSwiftPackage;
648+
};
649+
/* End XCSwiftPackageProductDependency section */
729650
};
730651
rootObject = 97C146E61CF9000F007C117D /* Project object */;
731652
}

packages/firebase_database/firebase_database/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES">
8+
<PreActions>
9+
<ExecutionAction
10+
ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
11+
<ActionContent
12+
title = "Run Prepare Flutter Framework Script"
13+
scriptText = "/bin/sh &quot;$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh&quot; prepare&#10;">
14+
<EnvironmentBuildable>
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
18+
BuildableName = "Runner.app"
19+
BlueprintName = "Runner"
20+
ReferencedContainer = "container:Runner.xcodeproj">
21+
</BuildableReference>
22+
</EnvironmentBuildable>
23+
</ActionContent>
24+
</ExecutionAction>
25+
</PreActions>
826
<BuildActionEntries>
927
<BuildActionEntry
1028
buildForTesting = "YES"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
22
#include "ephemeral/Flutter-Generated.xcconfig"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
22
#include "ephemeral/Flutter-Generated.xcconfig"
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
4-
<dict>
5-
<key>com.apple.security.app-sandbox</key>
6-
<true/>
7-
<key>com.apple.security.network.client</key>
8-
<true/>
9-
</dict>
4+
<dict/>
105
</plist>

packages/firebase_database/firebase_database/ios/firebase_database.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Pod::Spec.new do |s|
2525
s.authors = 'The Chromium Authors'
2626
s.source = { :path => '.' }
2727

28-
s.source_files = 'Classes/**/*.{h,m}'
29-
s.public_header_files = 'Classes/*.h'
28+
s.source_files = 'firebase_database/Sources/firebase_database/**/*.{h,m}'
29+
s.public_header_files = 'firebase_database/Sources/firebase_database/include/*.h'
3030

3131
s.ios.deployment_target = '13.0'
3232
s.dependency 'Flutter'
@@ -36,7 +36,7 @@ Pod::Spec.new do |s|
3636

3737
s.static_framework = true
3838
s.pod_target_xcconfig = {
39-
'GCC_PREPROCESSOR_DEFINITIONS' => "LIBRARY_VERSION=\\@\\\"#{library_version}\\\" LIBRARY_NAME=\\@\\\"flutter-fire-rtdb\\\"",
39+
'GCC_PREPROCESSOR_DEFINITIONS' => "LIBRARY_VERSION=\\\"#{library_version}\\\" LIBRARY_NAME=\\\"flutter-fire-rtdb\\\"",
4040
'DEFINES_MODULE' => 'YES'
4141
}
4242
end

0 commit comments

Comments
 (0)