diff --git a/app/build.gradle b/app/build.gradle index f34c1fb..6fc80b8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,12 +1,12 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 29 + compileSdkVersion 28 buildToolsVersion "29.0.3" defaultConfig { applicationId "com.ichangemycity.ichangemycommunity" - minSdkVersion 19 + minSdkVersion 21 targetSdkVersion 29 versionCode 1 versionName "1.0" @@ -28,6 +28,9 @@ android { } dependencies { + + def camerax_version = "1.0.0-rc01" + implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.0.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' @@ -64,4 +67,22 @@ dependencies { // Cluster Markers implementation 'com.google.maps.android:android-maps-utils:2.1.0' + + // CameraX core library using camera2 implementation + implementation "androidx.camera:camera-camera2:$camerax_version" + + // CameraX Lifecycle Library + implementation "androidx.camera:camera-lifecycle:$camerax_version" + + // CameraX View class + implementation "androidx.camera:camera-view:1.0.0-alpha20" + implementation "androidx.camera:camera-core:${camerax_version}" + + implementation "com.android.support:support-v4:28.0.0" + implementation "com.android.support:support-v13:28.0.0" + implementation "com.android.support:cardview-v7:28.0.0" + implementation "com.android.support:appcompat-v7:28.0.0" + + + implementation 'com.android.support:recyclerview-v7:28.0.0' } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index b8ff0c2..ccd7868 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -25,6 +25,8 @@ + + + - + - \ No newline at end of file + + + + + + + + + diff --git a/app/src/main/res/layout/camera_activity.xml b/app/src/main/res/layout/camera_activity.xml new file mode 100644 index 0000000..7499327 --- /dev/null +++ b/app/src/main/res/layout/camera_activity.xml @@ -0,0 +1,27 @@ + + + +