During the last four years of the Second Polish Republic , the major politicians included President Ignacy Mościcki , Foreign Minister Józef Beck and the Commander-in-Chief of the Polish Army , Edward Rydz-Śmigły .