Skip to content

Commit 2402368

Browse files
authored
Merge pull request #68 from firebase/feat/updae-messaging
feat: Update messaging example
2 parents 6e7b5af + 583e7b0 commit 2402368

File tree

9 files changed

+213
-45
lines changed

9 files changed

+213
-45
lines changed

messaging/analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ linter:
3636
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
3737
# producing the lint.
3838
rules:
39-
# avoid_print: false # Uncomment to disable the `avoid_print` rule
39+
avoid_print: false # Uncomment to disable the `avoid_print` rule
4040
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
4141

4242
# Additional information about this file can be found at

messaging/ios/Podfile.lock

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
PODS:
2+
- Firebase/CoreOnly (10.18.0):
3+
- FirebaseCore (= 10.18.0)
4+
- Firebase/Messaging (10.18.0):
5+
- Firebase/CoreOnly
6+
- FirebaseMessaging (~> 10.18.0)
7+
- firebase_core (2.24.2):
8+
- Firebase/CoreOnly (= 10.18.0)
9+
- Flutter
10+
- firebase_messaging (14.7.9):
11+
- Firebase/Messaging (= 10.18.0)
12+
- firebase_core
13+
- Flutter
14+
- FirebaseCore (10.18.0):
15+
- FirebaseCoreInternal (~> 10.0)
16+
- GoogleUtilities/Environment (~> 7.12)
17+
- GoogleUtilities/Logger (~> 7.12)
18+
- FirebaseCoreInternal (10.19.0):
19+
- "GoogleUtilities/NSData+zlib (~> 7.8)"
20+
- FirebaseInstallations (10.19.0):
21+
- FirebaseCore (~> 10.0)
22+
- GoogleUtilities/Environment (~> 7.8)
23+
- GoogleUtilities/UserDefaults (~> 7.8)
24+
- PromisesObjC (~> 2.1)
25+
- FirebaseMessaging (10.18.0):
26+
- FirebaseCore (~> 10.0)
27+
- FirebaseInstallations (~> 10.0)
28+
- GoogleDataTransport (~> 9.2)
29+
- GoogleUtilities/AppDelegateSwizzler (~> 7.8)
30+
- GoogleUtilities/Environment (~> 7.8)
31+
- GoogleUtilities/Reachability (~> 7.8)
32+
- GoogleUtilities/UserDefaults (~> 7.8)
33+
- nanopb (< 2.30910.0, >= 2.30908.0)
34+
- Flutter (1.0.0)
35+
- GoogleDataTransport (9.3.0):
36+
- GoogleUtilities/Environment (~> 7.7)
37+
- nanopb (< 2.30910.0, >= 2.30908.0)
38+
- PromisesObjC (< 3.0, >= 1.2)
39+
- GoogleUtilities/AppDelegateSwizzler (7.12.0):
40+
- GoogleUtilities/Environment
41+
- GoogleUtilities/Logger
42+
- GoogleUtilities/Network
43+
- GoogleUtilities/Environment (7.12.0):
44+
- PromisesObjC (< 3.0, >= 1.2)
45+
- GoogleUtilities/Logger (7.12.0):
46+
- GoogleUtilities/Environment
47+
- GoogleUtilities/Network (7.12.0):
48+
- GoogleUtilities/Logger
49+
- "GoogleUtilities/NSData+zlib"
50+
- GoogleUtilities/Reachability
51+
- "GoogleUtilities/NSData+zlib (7.12.0)"
52+
- GoogleUtilities/Reachability (7.12.0):
53+
- GoogleUtilities/Logger
54+
- GoogleUtilities/UserDefaults (7.12.0):
55+
- GoogleUtilities/Logger
56+
- nanopb (2.30909.1):
57+
- nanopb/decode (= 2.30909.1)
58+
- nanopb/encode (= 2.30909.1)
59+
- nanopb/decode (2.30909.1)
60+
- nanopb/encode (2.30909.1)
61+
- PromisesObjC (2.3.1)
62+
63+
DEPENDENCIES:
64+
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
65+
- firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`)
66+
- Flutter (from `Flutter`)
67+
68+
SPEC REPOS:
69+
trunk:
70+
- Firebase
71+
- FirebaseCore
72+
- FirebaseCoreInternal
73+
- FirebaseInstallations
74+
- FirebaseMessaging
75+
- GoogleDataTransport
76+
- GoogleUtilities
77+
- nanopb
78+
- PromisesObjC
79+
80+
EXTERNAL SOURCES:
81+
firebase_core:
82+
:path: ".symlinks/plugins/firebase_core/ios"
83+
firebase_messaging:
84+
:path: ".symlinks/plugins/firebase_messaging/ios"
85+
Flutter:
86+
:path: Flutter
87+
88+
SPEC CHECKSUMS:
89+
Firebase: 414ad272f8d02dfbf12662a9d43f4bba9bec2a06
90+
firebase_core: 0af4a2b24f62071f9bf283691c0ee41556dcb3f5
91+
firebase_messaging: 875385354f623750aa03204a028d640108bc3412
92+
FirebaseCore: 2322423314d92f946219c8791674d2f3345b598f
93+
FirebaseCoreInternal: b444828ea7cfd594fca83046b95db98a2be4f290
94+
FirebaseInstallations: 033d199474164db20c8350736842a94fe717b960
95+
FirebaseMessaging: 9bc34a98d2e0237e1b121915120d4d48ddcf301e
96+
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
97+
GoogleDataTransport: 57c22343ab29bc686febbf7cbb13bad167c2d8fe
98+
GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34
99+
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
100+
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4
101+
102+
PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
103+
104+
COCOAPODS: 1.14.3

messaging/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 77 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 50;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
1010
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
1111
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12+
3D42CAD88B1C4D770A5FE4B1 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2250F8E0199FD6A09BF06BF0 /* Pods_Runner.framework */; };
1213
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
1314
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
1415
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
1516
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
17+
BB77A174F187F4B6B498B165 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 22C9BC45AC444ED0CF27A699 /* GoogleService-Info.plist */; };
1618
/* End PBXBuildFile section */
1719

1820
/* Begin PBXCopyFilesBuildPhase section */
@@ -31,30 +33,44 @@
3133
/* Begin PBXFileReference section */
3234
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
3335
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
36+
2250F8E0199FD6A09BF06BF0 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
37+
22C9BC45AC444ED0CF27A699 /* GoogleService-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "Runner/GoogleService-Info.plist"; sourceTree = "<group>"; };
3438
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
3539
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
3640
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
3741
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
42+
7B8E874F7B3FDC1EE989C3B9 /* 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>"; };
3843
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
3944
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
4045
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
4146
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
4247
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
4348
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
4449
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
50+
CB68245D29F47B52B540BD8B /* 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>"; };
51+
EF1AD5DD68545BD74F9DFE9B /* 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>"; };
4552
/* End PBXFileReference section */
4653

4754
/* Begin PBXFrameworksBuildPhase section */
4855
97C146EB1CF9000F007C117D /* Frameworks */ = {
4956
isa = PBXFrameworksBuildPhase;
5057
buildActionMask = 2147483647;
5158
files = (
59+
3D42CAD88B1C4D770A5FE4B1 /* Pods_Runner.framework in Frameworks */,
5260
);
5361
runOnlyForDeploymentPostprocessing = 0;
5462
};
5563
/* End PBXFrameworksBuildPhase section */
5664

5765
/* Begin PBXGroup section */
66+
72F8C7B8E5F8F1B6E54DA757 /* Frameworks */ = {
67+
isa = PBXGroup;
68+
children = (
69+
2250F8E0199FD6A09BF06BF0 /* Pods_Runner.framework */,
70+
);
71+
name = Frameworks;
72+
sourceTree = "<group>";
73+
};
5874
9740EEB11CF90186004384FC /* Flutter */ = {
5975
isa = PBXGroup;
6076
children = (
@@ -72,6 +88,9 @@
7288
9740EEB11CF90186004384FC /* Flutter */,
7389
97C146F01CF9000F007C117D /* Runner */,
7490
97C146EF1CF9000F007C117D /* Products */,
91+
22C9BC45AC444ED0CF27A699 /* GoogleService-Info.plist */,
92+
FAA9A6D24054917807377A99 /* Pods */,
93+
72F8C7B8E5F8F1B6E54DA757 /* Frameworks */,
7594
);
7695
sourceTree = "<group>";
7796
};
@@ -98,19 +117,32 @@
98117
path = Runner;
99118
sourceTree = "<group>";
100119
};
120+
FAA9A6D24054917807377A99 /* Pods */ = {
121+
isa = PBXGroup;
122+
children = (
123+
EF1AD5DD68545BD74F9DFE9B /* Pods-Runner.debug.xcconfig */,
124+
7B8E874F7B3FDC1EE989C3B9 /* Pods-Runner.release.xcconfig */,
125+
CB68245D29F47B52B540BD8B /* Pods-Runner.profile.xcconfig */,
126+
);
127+
name = Pods;
128+
path = Pods;
129+
sourceTree = "<group>";
130+
};
101131
/* End PBXGroup section */
102132

103133
/* Begin PBXNativeTarget section */
104134
97C146ED1CF9000F007C117D /* Runner */ = {
105135
isa = PBXNativeTarget;
106136
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107137
buildPhases = (
138+
A6641318B58DBF2B393E69CD /* [CP] Check Pods Manifest.lock */,
108139
9740EEB61CF901F6004384FC /* Run Script */,
109140
97C146EA1CF9000F007C117D /* Sources */,
110141
97C146EB1CF9000F007C117D /* Frameworks */,
111142
97C146EC1CF9000F007C117D /* Resources */,
112143
9705A1C41CF9048500538489 /* Embed Frameworks */,
113144
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
145+
C953D3EDDC0EA01133DAF727 /* [CP] Embed Pods Frameworks */,
114146
);
115147
buildRules = (
116148
);
@@ -127,7 +159,7 @@
127159
97C146E61CF9000F007C117D /* Project object */ = {
128160
isa = PBXProject;
129161
attributes = {
130-
LastUpgradeCheck = 1300;
162+
LastUpgradeCheck = 1430;
131163
ORGANIZATIONNAME = "";
132164
TargetAttributes = {
133165
97C146ED1CF9000F007C117D = {
@@ -163,6 +195,7 @@
163195
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164196
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165197
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
198+
BB77A174F187F4B6B498B165 /* GoogleService-Info.plist in Resources */,
166199
);
167200
runOnlyForDeploymentPostprocessing = 0;
168201
};
@@ -171,10 +204,12 @@
171204
/* Begin PBXShellScriptBuildPhase section */
172205
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173206
isa = PBXShellScriptBuildPhase;
207+
alwaysOutOfDate = 1;
174208
buildActionMask = 2147483647;
175209
files = (
176210
);
177211
inputPaths = (
212+
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
178213
);
179214
name = "Thin Binary";
180215
outputPaths = (
@@ -185,6 +220,7 @@
185220
};
186221
9740EEB61CF901F6004384FC /* Run Script */ = {
187222
isa = PBXShellScriptBuildPhase;
223+
alwaysOutOfDate = 1;
188224
buildActionMask = 2147483647;
189225
files = (
190226
);
@@ -197,6 +233,45 @@
197233
shellPath = /bin/sh;
198234
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199235
};
236+
A6641318B58DBF2B393E69CD /* [CP] Check Pods Manifest.lock */ = {
237+
isa = PBXShellScriptBuildPhase;
238+
buildActionMask = 2147483647;
239+
files = (
240+
);
241+
inputFileListPaths = (
242+
);
243+
inputPaths = (
244+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
245+
"${PODS_ROOT}/Manifest.lock",
246+
);
247+
name = "[CP] Check Pods Manifest.lock";
248+
outputFileListPaths = (
249+
);
250+
outputPaths = (
251+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
252+
);
253+
runOnlyForDeploymentPostprocessing = 0;
254+
shellPath = /bin/sh;
255+
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";
256+
showEnvVarsInLog = 0;
257+
};
258+
C953D3EDDC0EA01133DAF727 /* [CP] Embed Pods Frameworks */ = {
259+
isa = PBXShellScriptBuildPhase;
260+
buildActionMask = 2147483647;
261+
files = (
262+
);
263+
inputFileListPaths = (
264+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
265+
);
266+
name = "[CP] Embed Pods Frameworks";
267+
outputFileListPaths = (
268+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
269+
);
270+
runOnlyForDeploymentPostprocessing = 0;
271+
shellPath = /bin/sh;
272+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
273+
showEnvVarsInLog = 0;
274+
};
200275
/* End PBXShellScriptBuildPhase section */
201276

202277
/* Begin PBXSourcesBuildPhase section */

messaging/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1300"
3+
LastUpgradeVersion = "1430"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

messaging/ios/Runner.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)