23 lines
		
	
	
		
			642 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			23 lines
		
	
	
		
			642 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
								 | 
							
								ws_dir = Pathname.new(__dir__)
							 | 
						||
| 
								 | 
							
								ws_dir = ws_dir.parent until
							 | 
						||
| 
								 | 
							
								  File.exist?("#{ws_dir}/node_modules/react-native-test-app/test_app.rb") ||
							 | 
						||
| 
								 | 
							
								  ws_dir.expand_path.to_s == '/'
							 | 
						||
| 
								 | 
							
								require "#{ws_dir}/node_modules/react-native-test-app/test_app.rb"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								workspace 'BareExample.xcworkspace'
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								use_test_app!
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# This is used by CI to test different configurations
							 | 
						||
| 
								 | 
							
								# If you want to enable it look to README.md
							 | 
						||
| 
								 | 
							
								if ENV['RNV_SAMPLE_ENABLE_ADS']
							 | 
						||
| 
								 | 
							
								  $RNVideoUseGoogleIMA = true
							 | 
						||
| 
								 | 
							
								end
							 | 
						||
| 
								 | 
							
								if ENV['RNV_SAMPLE_VIDEO_CACHING']
							 | 
						||
| 
								 | 
							
								  $RNVideoUseVideoCaching = true
							 | 
						||
| 
								 | 
							
								end
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# Chache dependencies need to have modular headers
							 | 
						||
| 
								 | 
							
								if defined?($RNVideoUseVideoCaching)
							 | 
						||
| 
								 | 
							
								  use_modular_headers!
							 | 
						||
| 
								 | 
							
								end
							 |