@@ -0,0 +1,640 @@
+package io.fotoapparat.hardware.provider;%0A%0Aimport android.content.Context;%0Aimport android.os.Build;%0Aimport android.support.annotation.RequiresApi;%0A%0Aimport io.fotoapparat.hardware.CameraDevice;%0Aimport io.fotoapparat.hardware.v2.Camera2;%0Aimport io.fotoapparat.log.Logger;%0A%0A/**%0A * Always provides %7B@link Camera2%7D.%0A */%0A@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)%0Apublic class V2Provider implements CameraProvider %7B%0A%0A%09private Context context;%0A%0A%09// TODO: 31/03/17 try remove context?%0A%09public V2Provider(Context context) %7B%0A%09%09this.context = context;%0A%09%7D%0A%0A%09@Override%0A%09public CameraDevice get(Logger logger) %7B%0A%09%09return new Camera2(context);%0A%09%7D%0A%7D%0A

Add v2 provider