Zest half the orange for the pastry and set aside. Peel wide strips from the other half.
Put the orange peel, orange juice, sugar and diced apples in a small saucepan. Simmer over medium heat for 5 minutes, then set aside to cool slightly.
Preheat the oven to 180°C (350°F). Line a 20 to 23 cm (8 to 9 inch) square tin with baking paper.
Pulse the flour, almond flour, caster sugar, orange zest and butter in a food processor until a soft dough forms.
Press two-thirds of the pastry evenly into the base of the tin.
Drain the apples, discard the orange peel and mix the apples with the fruit mince.
Spread the fruit mixture over the pastry. Grate the remaining pastry over the top and scatter over the flaked almonds.
Bake for 40 to 45 minutes until golden.
Leave to cool, then cut into squares and dust with icing sugar.