Over the past two years, Foxconn has spent millions of dollars building up its operations around the world to lessen its dependence on China.President-elect Donald Trump has promised to impose tariffs on goods imported from China and elsewhere on his first day in office next month. Foxconn has been preparing for this possibility for years.