• Home
Name Date Size #Lines LOC

..--

.github/workflows/06-Sep-2024-212170

.idea/06-Sep-2024-422421

app/06-Sep-2024-2,5711,695

benchmark/06-Sep-2024-464266

core/common/06-Sep-2024-472301

data/settings/06-Sep-2024-1,6961,077

docs/06-Sep-2024-12895

domain/camera/06-Sep-2024-2,4861,209

feature/06-Sep-2024-7,0245,295

gradle/06-Sep-2024-169139

hooks/06-Sep-2024-243

spotless/06-Sep-2024-461

.editorconfigD06-Sep-202490 33

.gitignoreD06-Sep-2024279 1817

Android.bpD06-Sep-2024261 1714

LICENSED06-Sep-202411.1 KiB203169

METADATAD06-Sep-2024671 2119

MODULE_LICENSE_APACHE2D06-Sep-20240

OWNERSD06-Sep-2024268 87

README.mdD06-Sep-20242.6 KiB5939

TEST_MAPPINGD06-Sep-2024221 1513

build.gradle.ktsD06-Sep-20241.7 KiB5128

gradle.propertiesD06-Sep-20242.1 KiB3434

gradlewD06-Sep-20245.6 KiB186125

gradlew.batD06-Sep-20242.7 KiB9068

settings.gradle.ktsD06-Sep-20241.3 KiB4427

README.md

1![Video Capture with Jetpack Camera App](docs/images/JCA-video-capture.gif "Video Capture with Jetpack Camera App")
2# Jetpack Camera App ��
3
4Jetpack Camera App (JCA) is a camera app, focused on features used by app developers, and built
5entirely with CameraX, Kotlin and Jetpack Compose. It follows Android
6design and development best practices and it's intended to be a useful reference for developers and
7OEMs looking to validate their camera feature implementations.
8
9# Development Environment ⚒️
10
11This project uses the gradle build system, and can be imported directly into Android Studio.
12
13Currently, Jetpack Camera App is built using the Android Gradle Plugin 8.4, which is only compatible
14with Android Studio Jellyfish or newer.
15
16# Architecture ��
17
18JCA is built with [modern android development (MAD)](https://developer.android.com/modern-android-development) principles in mind,
19including [architecture and testing best practices](https://developer.android.com/topic/architecture).
20
21The app is split into multiple modules, with a clear separation between the UI and data layers.
22
23# Testing ��
24
25Thorough testing is a key directive of JCA. We use [Compose Test](https://developer.android.com/develop/ui/compose/testing) and
26[UI Automator](https://developer.android.com/training/testing/other-components/ui-automator) to write instrumentation
27tests that run on-device.
28
29These tests can be run on a connected device via Android Studio, or can be tested on an Android
30Emulator using built-in Gradle Managed Device tasks. Currently, we include Pixel 2 (API 28) and
31Pixel 8 (API 34) emulators which can be used to run instrumentation tests with:
32
33`$ ./gradlew pixel2Api28DebugAndroidTest` and
34`$ ./gradlew pixel8Api34DebugAndroidTest`
35
36
37## Source Code Headers
38
39Every file containing source code must include copyright and license
40information. This includes any JS/CSS files that you might be serving out to
41browsers. (This is to help well-intentioned people avoid accidental copying that
42doesn't comply with the license.)
43
44Apache header:
45
46    Copyright (C) 2024 The Android Open Source Project
47
48    Licensed under the Apache License, Version 2.0 (the "License");
49    you may not use this file except in compliance with the License.
50    You may obtain a copy of the License at
51
52        https://www.apache.org/licenses/LICENSE-2.0
53
54    Unless required by applicable law or agreed to in writing, software
55    distributed under the License is distributed on an "AS IS" BASIS,
56    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
57    See the License for the specific language governing permissions and
58    limitations under the License.
59