Skip to content

Commit ec13222

Browse files
Merge IID removal code to master (#7814)
1 parent ec746cb commit ec13222

File tree

70 files changed

+7909
-625
lines changed

Some content is hidden

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

70 files changed

+7909
-625
lines changed

FirebaseMessaging.podspec

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ device, and it is completely free.
3838
base_dir + 'Sources/**/*.[mh]',
3939
'Interop/Analytics/Public/*.h',
4040
'FirebaseCore/Sources/Private/*.h',
41+
'FirebaseInstallations/Source/Library/Private/*.h',
4142
'Firebase/InstanceID/Private/*.h',
4243
'Firebase/InstanceID/Public/*.h',
43-
'FirebaseInstallations/Source/Library/Private/*.h',
4444
]
45-
s.requires_arc = base_dir + 'Sources/*.m'
4645
s.public_header_files = base_dir + 'Sources/Public/FirebaseMessaging/*.h'
4746
s.library = 'sqlite3'
4847
s.pod_target_xcconfig = {
@@ -54,8 +53,9 @@ device, and it is completely free.
5453
s.tvos.framework = 'SystemConfiguration'
5554
s.osx.framework = 'SystemConfiguration'
5655
s.weak_framework = 'UserNotifications'
57-
s.dependency 'FirebaseCore', '~> 7.0'
5856
s.dependency 'FirebaseInstanceID', '~> 7.0'
57+
s.dependency 'FirebaseInstallations', '~> 7.0'
58+
s.dependency 'FirebaseCore', '~> 7.0'
5959
s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 7.0'
6060
s.dependency 'GoogleUtilities/Reachability', '~> 7.0'
6161
s.dependency 'GoogleUtilities/Environment', '~> 7.0'
@@ -68,7 +68,10 @@ device, and it is completely free.
6868
:osx => osx_deployment_target,
6969
:tvos => tvos_deployment_target
7070
}
71-
unit_tests.source_files = 'FirebaseMessaging/Tests/UnitTests*/*.{m,h,swift}'
71+
unit_tests.source_files = [
72+
'FirebaseMessaging/Tests/UnitTests*/*.{m,h,swift}',
73+
'SharedTestUtilities/URLSession/*.[mh]',
74+
]
7275
unit_tests.requires_app_host = true
7376
unit_tests.pod_target_xcconfig = {
7477
'CLANG_ENABLE_OBJC_WEAK' => 'YES'

FirebaseMessaging/Apps/Shared/ContentView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ struct ContentView: View {
142142
.multilineTextAlignment(.leading)
143143
}
144144
.navigationBarTitle("Firebase Messaging")
145-
146145
}.buttonStyle(IdentityButtonStyle())
147146
}
148147
}
@@ -338,8 +337,9 @@ struct IdentityButtonStyle: ButtonStyle {
338337
.padding()
339338
.foregroundColor(.white)
340339
.background(Color.yellow)
341-
.cornerRadius(40)
340+
.cornerRadius(20)
342341
// Push the button down a bit when it's pressed.
343342
.scaleEffect(configuration.isPressed ? 0.9 : 1)
343+
.font(.footnote)
344344
}
345345
}

FirebaseMessaging/Apps/Shared/SceneDelegate.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import Combine
1616
import UIKit
1717
import SwiftUI
18-
import FirebaseInstanceID
1918
import FirebaseMessaging
2019
import FirebaseInstallations
2120

FirebaseMessaging/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 2021-04 -- v7.11.0
2+
- [changed] Refactor Messaging to internally not depending on InstanceID, but can co-exist. Will remove InstanceID dependency in the next Firebase breaking change. (#7814)
3+
14
# 2021-02 -- v7.7.0
25
- [fixed] Fixed an issue in which, when checking storage size before writing to disk, the client was checking document folders that were no longer used. (#7480)
36

0 commit comments

Comments
 (0)