chore(sample): fix lint and ts sample & add ci jobs to build samples (#3365)

* chore: start fixing linter and tsc warning and errors
* chore(ci): add basic example build
* chore: allow to build with or without ads on android
* chore: fix job definition

---------

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
Co-authored-by: Krzysztof Moch <krzysmoch.programs@gmail.com>
This commit is contained in:
Olivier Bouillet
2023-11-30 21:17:41 +01:00
committed by GitHub
parent cac802fb77
commit 472820123a
5 changed files with 287 additions and 3 deletions

View File

@@ -29,8 +29,13 @@ target 'videoplayer' do
config = use_native_modules!
use_frameworks! :linkage => :static
# $RNVideoUseGoogleIMA = true
$RNVideoUseVideoCaching = true
if ENV['RNV_SAMPLE_ENABLE_ADS']
$RNVideoUseGoogleIMA = true
end
if ENV['RNV_SAMPLE_VIDEO_CACHING']
$RNVideoUseVideoCaching = true
end
# Flags change depending on the env values.
flags = get_default_flags()