Skip to content

Commit 9ebc7bc

Browse files
authored
feat(functions): migrate cloud functions Apple implementation to Swift (#17232)
* feat: migrate cloud functions ios implementation to swift * chore: delete Obj C code and modifications * chore: delete obj c files in macos directory * chore: add symlink to ios file in macos * chore: resolve comments * chore: change error code to IllegalArgumentException
1 parent e97eb0b commit 9ebc7bc

File tree

15 files changed

+200
-237
lines changed

15 files changed

+200
-237
lines changed

packages/cloud_functions/cloud_functions/ios/cloud_functions.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ Pod::Spec.new do |s|
2424
s.license = { :file => '../LICENSE' }
2525
s.authors = 'The Chromium Authors'
2626
s.source = { :path => '.' }
27-
s.source_files = 'cloud_functions/Sources/cloud_functions/**/*.{h,m}'
28-
s.public_header_files = 'cloud_functions/Sources/cloud_functions/include/*.h'
27+
s.source_files = 'cloud_functions/Sources/**/*.swift'
2928
s.ios.deployment_target = '13.0'
3029

30+
s.swift_version = '5.0'
31+
3132
# Flutter dependencies
3233
s.dependency 'Flutter'
3334

@@ -37,7 +38,6 @@ Pod::Spec.new do |s|
3738

3839
s.static_framework = true
3940
s.pod_target_xcconfig = {
40-
'GCC_PREPROCESSOR_DEFINITIONS' => "LIBRARY_VERSION=\\\"#{library_version}\\\" LIBRARY_NAME=\\\"flutter-fire-fn\\\"",
4141
'DEFINES_MODULE' => 'YES'
4242
}
4343
end

packages/cloud_functions/cloud_functions/ios/cloud_functions/Package.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,6 @@ let package = Package(
104104
],
105105
resources: [
106106
.process("Resources"),
107-
],
108-
cSettings: [
109-
.headerSearchPath("include"),
110-
.define("LIBRARY_VERSION", to: "\"\(library_version)\""),
111-
.define("LIBRARY_NAME", to: "\"flutter-fire-fn\""),
112107
]
113108
),
114109
]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Copyright 2021 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// Auto-generated file. Do not edit.
6+
public let versionNumber = "5.3.4"

packages/cloud_functions/cloud_functions/ios/cloud_functions/Sources/cloud_functions/FLTFirebaseFunctionsPlugin.m

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)