Skip to content

Commit 3773a19

Browse files
committed
fix ads enabling in example on android
1 parent 600d1e1 commit 3773a19

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

examples/bare/android/build.gradle

+9-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,15 @@ buildscript {
2323
}
2424

2525
ext {
26-
// For CI builds
27-
useExoplayerIMA = System.getenv("RNV_SAMPLE_ENABLE_ADS") ?: false
26+
// For CI builds
27+
// check System.getenv("RNV_SAMPLE_ENABLE_ADS")
28+
// check gradle.properties "RNVideo_useExoplayerIMA"
29+
// else default to false
30+
if (System.getenv("RNV_SAMPLE_ENABLE_ADS") == "true" || project.hasProperty("RNVideo_useExoplayerIMA")) {
31+
useExoplayerIMA = true
32+
} else {
33+
useExoplayerIMA = false
34+
}
2835
}
2936

3037
allprojects {

0 commit comments

Comments
 (0)