|
33 | 33 | #include "admob/src/include/firebase/admob/types.h"
|
34 | 34 | #include "app/src/assert.h"
|
35 | 35 | #include "app/src/embedded_file.h"
|
| 36 | +#include "app/src/include/firebase/internal/common.h" |
36 | 37 | #include "app/src/include/google_play_services/availability.h"
|
37 | 38 | #include "app/src/reference_counted_future_impl.h"
|
38 | 39 | #include "app/src/util_android.h"
|
@@ -426,18 +427,16 @@ bool RegisterNatives() {
|
426 | 427 | };
|
427 | 428 | JNIEnv* env = GetJNI();
|
428 | 429 | return banner_view_helper::RegisterNatives(
|
429 |
| - env, kBannerMethods, |
430 |
| - sizeof(kBannerMethods) / sizeof(kBannerMethods[0])) && |
| 430 | + env, kBannerMethods, FIREBASE_ARRAYSIZE(kBannerMethods)) && |
431 | 431 | interstitial_ad_helper::RegisterNatives(
|
432 | 432 | env, kInterstitialMethods,
|
433 |
| - sizeof(kInterstitialMethods) / sizeof(kInterstitialMethods[0])) && |
| 433 | + FIREBASE_ARRAYSIZE(kInterstitialMethods)) && |
434 | 434 | native_express_ad_view_helper::RegisterNatives(
|
435 | 435 | env, kNativeExpressMethods,
|
436 |
| - sizeof(kNativeExpressMethods) / |
437 |
| - sizeof(kNativeExpressMethods[0])) && |
| 436 | + FIREBASE_ARRAYSIZE(kNativeExpressMethods)) && |
438 | 437 | rewarded_video::rewarded_video_helper::RegisterNatives(
|
439 | 438 | env, kRewardedVideoMethods,
|
440 |
| - sizeof(kRewardedVideoMethods) / sizeof(kRewardedVideoMethods[0])); |
| 439 | + FIREBASE_ARRAYSIZE(kRewardedVideoMethods)); |
441 | 440 | }
|
442 | 441 |
|
443 | 442 | } // namespace admob
|
|
0 commit comments