Skip to content

Commit 31c835d

Browse files
committed
Integrate Latest @ 144490897
Changes to admob/testapp ... - Fix tag on logger element. Changes to messaging/testapp ... - Add iOS 10 SDK UserNotifications framework to Messaging testapp xcode project. - Update Firebase C++ Messaging notification code to use the Xcode 8 (iOS 10) SDK. Changes to storage/testapp ... - Force the Storage documents path to have a trailing slash, as with some SDKs it's not provided with a slash by the API. - Fixed output log message for GetDownloadUrl test. CL: 144490897
1 parent d064b8a commit 31c835d

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

admob/testapp/src/android/java/com/google/firebase/example/LoggingUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public static void initLogWindow(Activity activity) {
3333
LinearLayout linearLayout = new LinearLayout(activity);
3434
ScrollView scrollView = new ScrollView(activity);
3535
TextView textView = new TextView(activity);
36+
textView.setTag("Logger");
3637
linearLayout.addView(scrollView);
3738
scrollView.addView(textView);
3839
Window window = activity.getWindow();

messaging/testapp/testapp.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
529227241C85FB7600C89379 /* ios_main.mm in Sources */ = {isa = PBXBuildFile; fileRef = 529227221C85FB7600C89379 /* ios_main.mm */; };
1616
52B71EBB1C8600B600398745 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 52B71EBA1C8600B600398745 /* Images.xcassets */; };
1717
D66B16871CE46E8900E5638A /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D66B16861CE46E8900E5638A /* LaunchScreen.storyboard */; };
18+
D6E5B5581E29779D00CC1BF8 /* UserNotifications.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6E5B5571E29779D00CC1BF8 /* UserNotifications.framework */; };
1819
/* End PBXBuildFile section */
1920

2021
/* Begin PBXFileReference section */
@@ -30,13 +31,15 @@
3031
52B71EBA1C8600B600398745 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = testapp/Images.xcassets; sourceTree = "<group>"; };
3132
52FD1FF81C85FFA000BC68E3 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = testapp/Info.plist; sourceTree = "<group>"; };
3233
D66B16861CE46E8900E5638A /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = "<group>"; };
34+
D6E5B5571E29779D00CC1BF8 /* UserNotifications.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UserNotifications.framework; path = System/Library/Frameworks/UserNotifications.framework; sourceTree = SDKROOT; };
3335
/* End PBXFileReference section */
3436

3537
/* Begin PBXFrameworksBuildPhase section */
3638
529226CF1C85F68000C89379 /* Frameworks */ = {
3739
isa = PBXFrameworksBuildPhase;
3840
buildActionMask = 2147483647;
3941
files = (
42+
D6E5B5581E29779D00CC1BF8 /* UserNotifications.framework in Frameworks */,
4043
529226D81C85F68000C89379 /* CoreGraphics.framework in Frameworks */,
4144
529226DA1C85F68000C89379 /* UIKit.framework in Frameworks */,
4245
529226D61C85F68000C89379 /* Foundation.framework in Frameworks */,
@@ -70,6 +73,7 @@
7073
529226D41C85F68000C89379 /* Frameworks */ = {
7174
isa = PBXGroup;
7275
children = (
76+
D6E5B5571E29779D00CC1BF8 /* UserNotifications.framework */,
7377
529226D51C85F68000C89379 /* Foundation.framework */,
7478
529226D71C85F68000C89379 /* CoreGraphics.framework */,
7579
529226D91C85F68000C89379 /* UIKit.framework */,

storage/testapp/src/common_main.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ extern "C" int common_main(int argc, const char* argv[]) {
156156
firebase::storage::StorageReference ref =
157157
storage->GetReference("test_app_data").Child(saved_url);
158158

159-
LogMessage("Saved url: %s/test_app_data/%s", ref.bucket().c_str(),
160-
ref.name().c_str());
159+
LogMessage("Storage URL: gs://%s/%s", ref.bucket().c_str(),
160+
ref.full_path().c_str());
161161

162162
// Read and write from memory. This will save a small file and then read it
163163
// back from the storage to confirm that it was uploaded. Then it will remove

storage/testapp/src/ios/ios_main.mm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ bool ProcessEvents(int msec) {
6262
NSArray<NSString *> *paths =
6363
NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
6464
NSString *documentsDirectory = paths.firstObject;
65-
return std::string(documentsDirectory.UTF8String);
65+
// Force a trailing slash by removing any that exists, then appending another.
66+
return std::string(
67+
[[documentsDirectory stringByStandardizingPath] stringByAppendingString:@"/"].UTF8String);
6668
}
6769

6870
WindowContext GetWindowContext() {

0 commit comments

Comments
 (0)