Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
14e3dc3
feat(auth): Swift Package Manager support
russellwheatley Nov 26, 2024
9e2ab8f
move header files
russellwheatley Nov 26, 2024
a288c27
move more header files
russellwheatley Nov 26, 2024
8dc15fd
ios package.swift file
russellwheatley Nov 26, 2024
bf6ac96
update podspec
russellwheatley Nov 26, 2024
de20865
update pigeon output
russellwheatley Nov 26, 2024
6797f64
revert paths
russellwheatley Nov 26, 2024
9f5ac3c
fix some paths
russellwheatley Nov 26, 2024
e5b7527
fix string literals
russellwheatley Nov 26, 2024
7b8370e
format
russellwheatley Nov 26, 2024
ce6035b
fix
russellwheatley Nov 26, 2024
8d720ff
fix: header imports
russellwheatley Nov 26, 2024
cdca8b1
create macOS symlinks
russellwheatley Nov 26, 2024
4686567
package.swift macos
russellwheatley Nov 26, 2024
ca45bed
macos podspec
russellwheatley Nov 26, 2024
5b4c066
test: swift integration
russellwheatley Nov 26, 2024
2b2329c
Merge branch 'main' into auth-spm-support
russellwheatley Dec 5, 2024
1074570
update tests
russellwheatley Dec 5, 2024
89287bf
update swift integration test
russellwheatley Dec 5, 2024
eaf3fc9
fix workflow
russellwheatley Dec 5, 2024
7fa7e65
update path
russellwheatley Dec 5, 2024
860e510
arguments
russellwheatley Dec 5, 2024
2f5049e
update variable name
russellwheatley Dec 5, 2024
5917e7b
update logic
russellwheatley Dec 5, 2024
c6e1f45
tweak script
russellwheatley Dec 5, 2024
7acdcf8
cat out pubspec.yaml
russellwheatley Dec 5, 2024
e496249
add dependencies
russellwheatley Dec 5, 2024
3958ca7
fix imports
russellwheatley Dec 5, 2024
ef6cbf9
fix imports and format
russellwheatley Dec 5, 2024
bceab30
fix import
russellwheatley Dec 5, 2024
517ffed
fix: macOS
russellwheatley Dec 5, 2024
83b4ee0
format
russellwheatley Dec 5, 2024
bf27785
fix macOS build
russellwheatley Dec 6, 2024
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
Prev Previous commit
Next Next commit
update tests
  • Loading branch information
russellwheatley committed Dec 5, 2024
commit 1074570cfb115cd5ea444e27493c366d372f5e1d
2 changes: 1 addition & 1 deletion .github/workflows/all_plugins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
"flutter build web"
swift-integration:
runs-on: macos-latest
timeout-minutes: 40
timeout-minutes: 60
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225
Expand Down
29 changes: 5 additions & 24 deletions .github/workflows/scripts/swift-integration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,6 @@ void main() async {
await buildSwiftExampleApp('macos', 'firebase_database');
}

Future<void> deleteFirstLine(String filePath) async {
final file = File(filePath);

if (!file.existsSync()) {
print('File does not exist: $filePath');
return;
}

final lines = await file.readAsLines();
if (lines.isNotEmpty) {
final updatedContent = lines.skip(1).join('\n');
await file.writeAsString(updatedContent);
print('First line deleted from $filePath');
} else {
print('File is empty: $filePath');
}
}

Future<void> buildSwiftExampleApp(String platform, String plugin) async {
final initialDirectory = Directory.current;
Expand All @@ -50,16 +33,14 @@ Future<void> buildSwiftExampleApp(String platform, String plugin) async {
exit(1);
}

if (platform == 'macos') {
await deleteFirstLine(
'packages/$plugin/$plugin/example/macos/Flutter/Flutter-Release.xcconfig');
}
// Change to the appropriate directory
Directory.current = directory;

// Remove Podfile and deintegrate pods
await _runCommand('rm', ['Podfile']);
await _runCommand('pod', ['deintegrate']);
if (plugin != 'firebase_messaging' || plugin == 'firebase_auth') {
// Firebase messaging & auth have FlutterFire plugin without SPM support so this will cause failure
await _runCommand('rm', ['Podfile']);
await _runCommand('pod', ['deintegrate']);
}

// Determine the arguments for the flutter build command
final flutterArgs = ['build', platform];
Expand Down