Sample still using Deprecated Firebase AdMob firebase::admob
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- cpp
- 领域
- mobile-dev
调研方向
首先定位 AdMob 示例文件以及 common_main.cc 中显示的 firebase::admob 引用,然后检查当前的 Google Mobile Ads C++ SDK API。当受影响的示例不再使用已弃用的命名空间,并且能够为报告的 Android 目标成功构建时,工作就完成了。
由索引模型根据 Issue 内容生成。
描述
[REQUIRED] Please fill in the following fields:
- Which Firebase Sample: Admob(Auth, Database, etc.)
- Firebase C++ SDK version: firebase_cpp_sdk_11.6.0
- Additional SDKs you are using: Admob (Facebook, AdMob, etc.)
- Platform you are using the SDK on: Windows (Mac, Windows, or Linux)
- Platform you are targeting: Android(iOS, Android, and/or desktop)
[REQUIRED] Please describe the issue here:
The sample files seem to be out of date, they have not been update to include the change from
recated Firebase AdMob C++ SDK"firebase::admob" to New Google Mobile Ads C++ SDK
(Please list the full steps to reproduce the issue. Include device logs, and stack traces if available.)
Steps to reproduce:
What's the issue repro rate? (eg 100%, 1/5 etc)
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
Download and following information in sample to setup and run a sample code
If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.
// A simple listener that logs changes to a BannerView.
class LoggingBannerViewListener : public firebase::admob::BannerView::Listener {
public:
LoggingBannerViewListener() {}
void OnPresentationStateChanged(
firebase::admob::BannerView* banner_view,
firebase::admob::BannerView::PresentationState state) override {
::LogMessage("BannerView PresentationState has changed to %d.", state);
}
void OnBoundingBoxChanged(firebase::admob::BannerView* banner_view,
firebase::admob::BoundingBox box) override {
::LogMessage(
"BannerView BoundingBox has changed to (x: %d, y: %d, width: %d, "
"height %d).",
box.x, box.y, box.width, box.height);
}
};`// A simple listener that logs changes to a BannerView.
class LoggingBannerViewListener : public firebase::admob::BannerView::Listener {
public:
LoggingBannerViewListener() {}
void OnPresentationStateChanged(
firebase::admob::BannerView* banner_view,
firebase::admob::BannerView::PresentationState state) override {
::LogMessage("BannerView PresentationState has changed to %d.", state);
}
void OnBoundingBoxChanged(firebase::admob::BannerView* banner_view,
firebase::admob::BoundingBox box) override {
::LogMessage(
"BannerView BoundingBox has changed to (x: %d, y: %d, width: %d, "
"height %d).",
box.x, box.y, box.width, box.height);
}
};
E:/code2023/123456/testapp/src/common_main.cc:26:52: error: no member named 'admob' in namespace 'firebase'
class LoggingBannerViewListener : public firebase::admob::BannerView::Listener {`
- 主要语言
- C++
- 星标
- 260
- 派生
- 147
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
firebase/quickstart-cpp 的其他 Issue
-
Mireb commercial 未关闭new
难度 5/5 一周以上 新手友好度 1/100
firebase/quickstart-cpp#151 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 10/100
firebase/quickstart-cpp#128 · 2 条评论 ·
-
new
难度 5/5 一周以上 新手友好度 15/100
firebase/quickstart-cpp#126 · 1 条评论 ·
-
type: feature request
难度 4/5 3-5 天 新手友好度 35/100
firebase/quickstart-cpp#23 · 3 条评论 · 1 个 reaction ·
查看 firebase/quickstart-cpp 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 65/100
duckdb/duckdb-wasm#2258 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
objectionary/eo-graphs#75 ·
-
Coarray integration tests carry no LABELS, so run_tests.py silently skips them under every backend 未关闭coarray
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
FISCO-BCOS/FISCO-BCOS#5642 ·