Skip to content

Commit

Permalink
fix ads enabling in example on android
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofMoch committed Nov 27, 2024
1 parent 9bb9753 commit c960201
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions examples/bare/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,15 @@ buildscript {
}

ext {
// For CI builds
useExoplayerIMA = System.getenv("RNV_SAMPLE_ENABLE_ADS") ?: false
// For CI builds
// check System.getenv("RNV_SAMPLE_ENABLE_ADS")
// check gradle.properties "RNVideo_useExoplayerIMA"
// else default to false
if (System.getenv("RNV_SAMPLE_ENABLE_ADS") == "true" || project.hasProperty("RNVideo_useExoplayerIMA")) {
useExoplayerIMA = true
} else {
useExoplayerIMA = false
}
}

allprojects {
Expand Down

0 comments on commit c960201

Please sign in to comment.