To prepare cake, lightly spoon 1 1/2 cups flour into dry measuring cups; level with a knife. Combine flour and next 4 ingredients (through salt) in a large bowl, stirring with a whisk. Make a well in center of mixture. Combine milk, melted butter, vanilla, and egg, stirring with a whisk; add to flour mixture, stirring just until moist. Fold in apple. Pour batter into an 8-inch square baking pan coated with cooking spray.