thuanpm

update config ndk

## 0.0.12
- Fix config ndk to version 25.2.9519653.
## 0.0.11
- Fix error with new version of package image.
... ...
... ... @@ -22,7 +22,7 @@ rootProject.allprojects {
apply plugin: 'com.android.library'
android {
compileSdkVersion 30
compileSdkVersion 33
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
... ... @@ -31,6 +31,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
ndkVersion "25.2.9519653"
}
externalNativeBuild{
... ...
... ... @@ -41,14 +41,17 @@ android {
}
defaultConfig {
compileSdkVersion 33
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "vn.thuanpm.example"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 21
targetSdkVersion flutter.targetSdkVersion
targetSdkVersion 33
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
ndkVersion "25.2.9519653"
}
buildTypes {
... ...
... ... @@ -70,7 +70,7 @@ class _MyHomePageState extends State<MyHomePage> {
Future<void> initCamera() async {
final cameras = await availableCameras();
_cameraController = CameraController(cameras[0], ResolutionPreset.low,
_cameraController = CameraController(cameras[0], ResolutionPreset.medium,
imageFormatGroup: ImageFormatGroup.yuv420);
await _cameraController.initialize();
await _cameraController.startImageStream((image) {
... ... @@ -90,10 +90,10 @@ class _MyHomePageState extends State<MyHomePage> {
plane0: savedImage.planes[0].bytes,
plane1: savedImage.planes[1].bytes,
plane2: savedImage.planes[2].bytes,
rotationAngle: 15,
// rotationAngle: 15,
width: savedImage.width,
isFlipHoriozntal: true,
isFlipVectical: true,
// isFlipHoriozntal: true,
// isFlipVectical: true,
);
// return _processingCameraImage.processCameraImageToGrayIOS(
... ... @@ -124,7 +124,7 @@ class _MyHomePageState extends State<MyHomePage> {
body: Center(
child: currentImage != null
? Image.memory(Uint8List.fromList(
imglib.encodePng(currentImage!)))
imglib.encodeJpg(currentImage!)))
: Container(),
),
)));
... ...
name: processing_camera_image
description: A Plutter plugin with C native for processing camera image from package camera
version: 0.0.11
version: 0.0.12
repository: https://github.com/thuanpham98/processing_camera_image
homepage: https://github.com/thuanpham98/processing_camera_image
... ...