Skip to content

Commit af890eb

Browse files
authored
Upgrade to C++ SDK 8.10.0 and iOS SDK 8.13.0 (#3)
* Upgrade to cpp 8.10.0 and ios 8.13.0 * Update bob.yml
1 parent cc63c70 commit af890eb

File tree

165 files changed

+1608
-1754
lines changed

Some content is hidden

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

165 files changed

+1608
-1754
lines changed

.github/workflows/bob.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
build_with_bob_macos:
4343
strategy:
4444
matrix:
45-
platform: [armv7-darwin, x86_64-darwin]
45+
platform: [arm64-darwin, x86_64-darwin]
4646
runs-on: macOS-latest
4747

4848
name: Build

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
[![Actions Status Alpha](https://github.com/defold/extension-firebase/actions/workflows/bob.yml/badge.svg)](https://github.com/defold/extension-firebase/actions)
22

3+
![](https://img.shields.io/badge/Firebase%20CPP%20SDK-8.10.0-green)
4+
![](https://img.shields.io/badge/Firebase%20iOS%20SDK-8.13.0-green)
5+
6+
37
# Firebase
48
Firebase is Google's mobile platform that helps you quickly develop high-quality apps and grow your business. This repository contains the core components required by the various products included in Firebase. It is not intended for use on its own.
59

610
---
711

812
## Development notes
9-
Use this guide when setting up or upgrading this core extension and the extensions for each of the Firebase products (such as analytics and remote config). The extensions are using the [Firebase C++ SDK](https://firebase.google.com/docs/cpp/setup). Current version: 7.3.0.
10-
11-
* Download link: https://firebase.google.com/download/cpp
12-
* Direct download link: https://dl.google.com/firebase/sdk/cpp/firebase_cpp_sdk_7.3.0.zip
13+
Use this guide when setting up or upgrading this core extension and the extensions for each of the Firebase products (such as analytics and remote config). The extensions are using the [Firebase C++ SDK](https://firebase.google.com/docs/cpp/setup) and the [Firebase iOS SDK](https://github.com/firebase/firebase-ios-sdk).
1314

15+
* Firebase C++ SDK download link: https://firebase.google.com/download/cpp
16+
* Firebase C++ SDK direct download link: https://dl.google.com/firebase/sdk/cpp/firebase_cpp_sdk_8.8.0.zip
1417

1518
### Copy includes
1619
Copy header files from `firebase_cpp_sdk/include`.
@@ -33,7 +36,9 @@ Android C++ libraries should be copied from the Firebase C++ SDK to your extensi
3336

3437

3538
#### Copy iOS dependencies
36-
Setup for iOS is made without CocoaPods using a direct download of the [Firebase iOS SDK from GitHub](https://github.com/firebase/firebase-ios-sdk/releases). It is important to use a version of the iOS SDK matching the iOS dependencies in `firebase_cpp_sdk/readme.md`.
39+
Setup for iOS is made without CocoaPods using a direct download of the Firebase iOS SDK. It is important to use a version of the iOS SDK matching the iOS dependencies in `firebase_cpp_sdk/readme.md`.
40+
41+
* Firebase iOS SDK direct download link: https://github.com/firebase/firebase-ios-sdk/releases/download/8.10.0/Firebase.zip
3742

3843
* Copy frameworks from iOS SDK. Check the included `firebase_ios_sdk/README.md` to learn which frameworks you need (most Firebase products require the frameworks for Firebase Analytics as well as the frameworks specific to the product). Note that Defold doesn't support `*.xcframework` files. You need to unpack/open all the `*.framework` files from `*.xcframework` and put to folders according to architecture.
3944
* `firebase_ios_sdk/FirebaseProduct/*.xcframework/ios-arm64_armv7/*.framework` -> `extension/lib/ios`

firebase/include/firebase/admob.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
#ifndef FIREBASE_ADMOB_CLIENT_CPP_SRC_INCLUDE_FIREBASE_ADMOB_H_
18-
#define FIREBASE_ADMOB_CLIENT_CPP_SRC_INCLUDE_FIREBASE_ADMOB_H_
17+
#ifndef FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_H_
18+
#define FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_H_
1919

2020
#include "firebase/internal/platform.h"
2121

@@ -154,4 +154,4 @@ void Terminate();
154154
} // namespace admob
155155
} // namespace firebase
156156

157-
#endif // FIREBASE_ADMOB_CLIENT_CPP_SRC_INCLUDE_FIREBASE_ADMOB_H_
157+
#endif // FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_H_

firebase/include/firebase/admob/banner_view.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
#ifndef FIREBASE_ADMOB_CLIENT_CPP_INCLUDE_FIREBASE_ADMOB_BANNER_VIEW_H_
18-
#define FIREBASE_ADMOB_CLIENT_CPP_INCLUDE_FIREBASE_ADMOB_BANNER_VIEW_H_
17+
#ifndef FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_BANNER_VIEW_H_
18+
#define FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_BANNER_VIEW_H_
1919

2020
#include "firebase/admob/types.h"
2121
#include "firebase/future.h"
@@ -239,4 +239,4 @@ class BannerView {
239239
} // namespace admob
240240
} // namespace firebase
241241

242-
#endif // FIREBASE_ADMOB_CLIENT_CPP_INCLUDE_FIREBASE_ADMOB_BANNER_VIEW_H_
242+
#endif // FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_BANNER_VIEW_H_

firebase/include/firebase/admob/interstitial_ad.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
#ifndef FIREBASE_ADMOB_CLIENT_CPP_INCLUDE_FIREBASE_ADMOB_INTERSTITIAL_AD_H_
18-
#define FIREBASE_ADMOB_CLIENT_CPP_INCLUDE_FIREBASE_ADMOB_INTERSTITIAL_AD_H_
17+
#ifndef FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_INTERSTITIAL_AD_H_
18+
#define FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_INTERSTITIAL_AD_H_
1919

2020
#include "firebase/admob/types.h"
2121
#include "firebase/future.h"
@@ -160,4 +160,4 @@ class InterstitialAd {
160160
} // namespace admob
161161
} // namespace firebase
162162

163-
#endif // FIREBASE_ADMOB_CLIENT_CPP_INCLUDE_FIREBASE_ADMOB_INTERSTITIAL_AD_H_
163+
#endif // FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_INTERSTITIAL_AD_H_

firebase/include/firebase/admob/native_express_ad_view.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
#ifndef FIREBASE_ADMOB_CLIENT_CPP_SRC_INCLUDE_FIREBASE_ADMOB_NATIVE_EXPRESS_AD_VIEW_H_
18-
#define FIREBASE_ADMOB_CLIENT_CPP_SRC_INCLUDE_FIREBASE_ADMOB_NATIVE_EXPRESS_AD_VIEW_H_
17+
#ifndef FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_NATIVE_EXPRESS_AD_VIEW_H_
18+
#define FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_NATIVE_EXPRESS_AD_VIEW_H_
1919

2020
#include "firebase/admob/types.h"
2121
#include "firebase/future.h"
@@ -313,4 +313,4 @@ class NativeExpressAdView {
313313
} // namespace admob
314314
} // namespace firebase
315315

316-
#endif // FIREBASE_ADMOB_CLIENT_CPP_SRC_INCLUDE_FIREBASE_ADMOB_NATIVE_EXPRESS_AD_VIEW_H_
316+
#endif // FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_NATIVE_EXPRESS_AD_VIEW_H_

firebase/include/firebase/admob/rewarded_video.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
#ifndef FIREBASE_ADMOB_CLIENT_CPP_SRC_INCLUDE_FIREBASE_ADMOB_REWARDED_VIDEO_H_
18-
#define FIREBASE_ADMOB_CLIENT_CPP_SRC_INCLUDE_FIREBASE_ADMOB_REWARDED_VIDEO_H_
17+
#ifndef FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_REWARDED_VIDEO_H_
18+
#define FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_REWARDED_VIDEO_H_
1919

2020
#include <queue>
2121
#include <string>
@@ -227,4 +227,4 @@ void SetListener(Listener* listener);
227227
} // namespace admob
228228
} // namespace firebase
229229

230-
#endif // FIREBASE_ADMOB_CLIENT_CPP_SRC_INCLUDE_FIREBASE_ADMOB_REWARDED_VIDEO_H_
230+
#endif // FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_REWARDED_VIDEO_H_

firebase/include/firebase/admob/types.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,19 @@
1414
* limitations under the License.
1515
*/
1616

17-
#ifndef FIREBASE_ADMOB_CLIENT_CPP_SRC_INCLUDE_FIREBASE_ADMOB_TYPES_H_
18-
#define FIREBASE_ADMOB_CLIENT_CPP_SRC_INCLUDE_FIREBASE_ADMOB_TYPES_H_
17+
#ifndef FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_TYPES_H_
18+
#define FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_TYPES_H_
1919

2020
#include "firebase/internal/platform.h"
2121

2222
#if FIREBASE_PLATFORM_ANDROID
2323
#include <jni.h>
24-
#elif FIREBASE_PLATFORM_IOS
24+
#elif FIREBASE_PLATFORM_IOS || FIREBASE_PLATFORM_TVOS
2525
extern "C" {
2626
#include <objc/objc.h>
2727
} // extern "C"
28-
#endif // FIREBASE_PLATFORM_ANDROID, FIREBASE_PLATFORM_IOS
28+
#endif // FIREBASE_PLATFORM_ANDROID, FIREBASE_PLATFORM_IOS,
29+
// FIREBASE_PLATFORM_TVOS
2930

3031
namespace firebase {
3132
namespace admob {
@@ -40,13 +41,14 @@ namespace admob {
4041
#if FIREBASE_PLATFORM_ANDROID
4142
/// An Android Activity from Java.
4243
typedef jobject AdParent;
43-
#elif FIREBASE_PLATFORM_IOS
44+
#elif FIREBASE_PLATFORM_IOS || FIREBASE_PLATFORM_TVOS
4445
/// A pointer to an iOS UIView.
4546
typedef id AdParent;
4647
#else
4748
/// A void pointer for stub classes.
4849
typedef void *AdParent;
49-
#endif // FIREBASE_PLATFORM_ANDROID, FIREBASE_PLATFORM_IOS
50+
#endif // FIREBASE_PLATFORM_ANDROID, FIREBASE_PLATFORM_IOS,
51+
// FIREBASE_PLATFORM_TVOS
5052

5153
#ifdef INTERNAL_EXPERIMENTAL
5254
// LINT.IfChange
@@ -175,4 +177,4 @@ struct BoundingBox {
175177
} // namespace admob
176178
} // namespace firebase
177179

178-
#endif // FIREBASE_ADMOB_CLIENT_CPP_SRC_INCLUDE_FIREBASE_ADMOB_TYPES_H_
180+
#endif // FIREBASE_ADMOB_SRC_INCLUDE_FIREBASE_ADMOB_TYPES_H_

firebase/include/firebase/analytics.h

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17-
#ifndef FIREBASE_ANALYTICS_CLIENT_CPP_INCLUDE_FIREBASE_ANALYTICS_H_
18-
#define FIREBASE_ANALYTICS_CLIENT_CPP_INCLUDE_FIREBASE_ANALYTICS_H_
17+
#ifndef FIREBASE_ANALYTICS_SRC_INCLUDE_FIREBASE_ANALYTICS_H_
18+
#define FIREBASE_ANALYTICS_SRC_INCLUDE_FIREBASE_ANALYTICS_H_
1919

2020
#include <cstddef>
2121
#include <cstdint>
@@ -497,18 +497,6 @@ void SetUserId(const char* user_id);
497497
/// session.
498498
void SetSessionTimeoutDuration(int64_t milliseconds);
499499

500-
/// @brief Sets the current screen name and screen class, which specifies the
501-
/// current visual context in your app. This helps identify the areas in your
502-
/// app where users spend their time and how they interact with your app.
503-
///
504-
/// @param screen_name The name of the current screen. Set to nullptr to clear
505-
/// the current screen name. Limited to 100 characters.
506-
/// @param screen_class The name of the screen class. If you specify nullptr for
507-
/// this, it will use the default. On Android, the default is the class name of
508-
/// the current Activity. On iOS, the default is the class name of the current
509-
/// UIViewController. Limited to 100 characters.
510-
void SetCurrentScreen(const char* screen_name, const char* screen_class);
511-
512500
/// Clears all analytics data for this app from the device and resets the app
513501
/// instance id.
514502
void ResetAnalyticsData();
@@ -533,4 +521,4 @@ Future<std::string> GetAnalyticsInstanceIdLastResult();
533521
} // namespace analytics
534522
} // namespace firebase
535523

536-
#endif // FIREBASE_ANALYTICS_CLIENT_CPP_INCLUDE_FIREBASE_ANALYTICS_H_
524+
#endif // FIREBASE_ANALYTICS_SRC_INCLUDE_FIREBASE_ANALYTICS_H_

0 commit comments

Comments
 (0)