Skip to content

Commit d852f3c

Browse files
authored
RewardedAds for Android (#741)
### Description > Provide details of the change, and generalize the change in the PR title above. - Implemented RewardedAd on Android, and created stubs for iOS and Desktop builds. - Revamped C++ JNI function signatures to have much shorter names, and to reuse functions common to interstitial and rewarded ads. - Created a new internal base class for full screen event listeners to share its implementation across RewardedAds and InsterstitialAds. This allows us to reuse some JNI callback functions. - Grouped those integration tests which require user interaction so that they execute one after the next, and front load them to the start of the itest flow (after a few quick sanity checks). This should make running the manual tests easier.
1 parent f122ff8 commit d852f3c

25 files changed

+2118
-591
lines changed

admob/CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ set(common_SRCS
2020
src/common/banner_view.cc
2121
src/common/banner_view_internal.cc
2222
src/common/interstitial_ad.cc
23-
src/common/interstitial_ad_internal.cc)
23+
src/common/interstitial_ad_internal.cc
24+
src/common/full_screen_ad_event_listener.cc
25+
src/common/rewarded_ad.cc
26+
src/common/rewarded_ad_internal.cc)
2427

2528
# Define the resource build needed for Android
2629
firebase_cpp_gradle(":admob:admob_resources:generateDexJarRelease"
@@ -39,7 +42,8 @@ set(android_SRCS
3942
src/android/admob_android.cc
4043
src/android/banner_view_internal_android.cc
4144
src/android/interstitial_ad_internal_android.cc
42-
src/android/response_info_android.cc)
45+
src/android/response_info_android.cc
46+
src/android/rewarded_ad_internal_android.cc)
4347

4448
# Source files used by the iOS implementation.
4549
set(ios_SRCS
@@ -52,7 +56,8 @@ set(ios_SRCS
5256
src/ios/admob_ios.mm
5357
src/ios/banner_view_internal_ios.mm
5458
src/ios/interstitial_ad_internal_ios.mm
55-
src/ios/response_info_ios.mm)
59+
src/ios/response_info_ios.mm
60+
src/ios/rewarded_ad_internal_ios.mm)
5661

5762
# Source files used by the stub implementation.
5863
set(stub_SRCS

0 commit comments

Comments
 (0)