Skip to content

Commit 4486618

Browse files
committed
fix: ios macos constants
1 parent 859cb5a commit 4486618

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

packages/firebase_database/firebase_database/ios/firebase_database.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if defined?($FirebaseSDKVersion)
77
Pod::UI.puts "#{pubspec['name']}: Using user specified Firebase SDK version '#{$FirebaseSDKVersion}'"
88
firebase_sdk_version = $FirebaseSDKVersion
99
else
10-
firebase_core_script = File.join(File.expand_path('..', File.expand_path('..', File.dirname(__FILE__))), 'firebase_core/ios/firebase_sdk_version.rb')
10+
firebase_core_script = File.join(File.expand_path('..', File.expand_path('..', File.dirname(__FILE__))), 'firebase_core/firebase_core/ios/firebase_sdk_version.rb')
1111
if File.exist?(firebase_core_script)
1212
require firebase_core_script
1313
firebase_sdk_version = firebase_sdk_version!
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 = "12.0.2"

packages/firebase_database/firebase_database/macos/firebase_database.podspec

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if defined?($FirebaseSDKVersion)
77
Pod::UI.puts "#{pubspec['name']}: Using user specified Firebase SDK version '#{$FirebaseSDKVersion}'"
88
firebase_sdk_version = $FirebaseSDKVersion
99
else
10-
firebase_core_script = File.join(File.expand_path('..', File.expand_path('..', File.dirname(__FILE__))), 'firebase_core/ios/firebase_sdk_version.rb')
10+
firebase_core_script = File.join(File.expand_path('..', File.expand_path('..', File.dirname(__FILE__))), 'firebase_core/firebase_core/ios/firebase_sdk_version.rb')
1111
if File.exist?(firebase_core_script)
1212
require firebase_core_script
1313
firebase_sdk_version = firebase_sdk_version!
@@ -59,7 +59,6 @@ Pod::Spec.new do |s|
5959
s.static_framework = true
6060
s.pod_target_xcconfig = {
6161
'GCC_PREPROCESSOR_DEFINITIONS' => "LIBRARY_VERSION=\\\"#{library_version}\\\" LIBRARY_NAME=\\\"flutter-fire-rtdb\\\"",
62-
'DEFINES_MODULE' => 'YES',
63-
'SWIFT_INCLUDE_PATHS' => '"${PODS_TARGET_SRCROOT}/firebase_database/Sources"'
62+
'DEFINES_MODULE' => 'YES'
6463
}
6564
end
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 = "12.0.2"

packages/firebase_database/firebase_database/macos/firebase_database/Sources/firebase_database/FLTFirebaseDatabasePlugin.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ public class FLTFirebaseDatabasePlugin: NSObject, FlutterPlugin, FLTFirebasePlug
6464
}
6565

6666
@objc public func firebaseLibraryVersion() -> String {
67-
"12.0.1"
67+
versionNumber
6868
}
6969

7070
@objc public func flutterChannelName() -> String {
71-
"plugins.flutter.io/firebase_database"
71+
FLTFirebaseDatabaseChannelName
7272
}
7373
}

0 commit comments

Comments
 (0)