Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(android): ads build and enable ads in android sample #3376

Merged
merged 9 commits into from
Nov 24, 2023

Conversation

freeboub
Copy link
Collaborator

@freeboub freeboub commented Nov 22, 2023

Ensure Sample builds correctly with IMA enable
Related issue: #3370

  • Fix bad ima import
  • Fix missing rework in ima stub
  • Apply kotlin workaround
  • Apply androidx.core workaround
  • enable RNVUseExoplayerIMA = true in sample by default

how to test

go to sample directory
yarn android
--> you should be able to see ads on big bug bunny sample
comment RNVUseExoplayerIMA = true
yarn android
--> you should NOT be able to see ads on big bug bunny sample (but playback works anyway !)

android/build.gradle Outdated Show resolved Hide resolved
android/build.gradle Show resolved Hide resolved
@@ -30,7 +30,7 @@ protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
packages.add(new ReactVideoPackage());
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KrzysztofMoch This one was missing ! but now it work fine, thank uyou for the tips of removing react-native-video from package.json !

@freeboub freeboub requested review from avencat and KrzysztofMoch and removed request for avencat November 23, 2023 21:43
@freeboub
Copy link
Collaborator Author

ping @YangJonghun ! here is aditionnal rework from you media3 PR !

@freeboub freeboub merged commit fe89122 into TheWidlarzGroup:master Nov 24, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants