blob: 19ee83a4bbce5f0891e7b31913371d119012bb34 [file] [log] [blame]
Sebastiano Barezzi418f32c2022-08-01 18:04:08 +02001plugins {
2 id 'com.android.application'
3 id 'org.jetbrains.kotlin.android'
4}
5
6android {
Sebastiano Barezzi445c24a2022-08-18 15:47:55 +02007 compileSdk 33
Sebastiano Barezzi418f32c2022-08-01 18:04:08 +02008
9 defaultConfig {
10 applicationId "org.lineageos.aperture"
Sebastiano Barezzi586a4992022-08-24 03:25:25 +020011 minSdk 31
Sebastiano Barezzi445c24a2022-08-18 15:47:55 +020012 targetSdk 33
Sebastiano Barezzi418f32c2022-08-01 18:04:08 +020013 versionCode 1
14 versionName "1.0"
15
16 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
17 }
18
19 buildTypes {
20 release {
21 minifyEnabled false
22 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
23 }
24 }
25 compileOptions {
26 sourceCompatibility JavaVersion.VERSION_1_8
27 targetCompatibility JavaVersion.VERSION_1_8
28 }
29 kotlinOptions {
30 jvmTarget = '1.8'
31 }
Sebastiano Barezzi418f32c2022-08-01 18:04:08 +020032}
33
34dependencies {
35 implementation 'androidx.core:core-ktx:1.8.0'
Sebastiano Barezzi76739912022-08-18 15:51:05 +020036 implementation 'androidx.appcompat:appcompat:1.5.0'
LuK1337a3e60532022-08-19 13:16:24 +020037 implementation 'androidx.concurrent:concurrent-futures-ktx:1.1.0'
LuK13379d7f9712022-08-18 14:11:01 +020038 implementation 'com.google.android.material:material:1.7.0-beta01'
Sebastiano Barezzi418f32c2022-08-01 18:04:08 +020039 implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
LuK1337a3e60532022-08-19 13:16:24 +020040 implementation 'androidx.exifinterface:exifinterface:1.3.3'
LuK13376d117b42022-08-10 15:06:48 +020041 implementation 'androidx.lifecycle:lifecycle-viewmodel:2.5.1'
42 implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1'
Sebastiano Barezzi04680062022-08-04 15:28:34 +020043 implementation 'androidx.preference:preference:1.2.0'
Sebastiano Barezzi418f32c2022-08-01 18:04:08 +020044
45 // CameraX core library using the camera2 implementation
LuK133750ef0072022-08-27 15:10:12 +020046 def camerax_version = "1.2.0-beta02"
Sebastiano Barezzi418f32c2022-08-01 18:04:08 +020047 // The following line is optional, as the core library is included indirectly by camera-camera2
LuK133750ef0072022-08-27 15:10:12 +020048 implementation "androidx.camera:camera-core:${camerax_version}"
49 implementation "androidx.camera:camera-camera2:${camerax_version}"
Sebastiano Barezzi418f32c2022-08-01 18:04:08 +020050 // If you want to additionally use the CameraX Lifecycle library
LuK133750ef0072022-08-27 15:10:12 +020051 implementation "androidx.camera:camera-lifecycle:${camerax_version}"
Sebastiano Barezzi418f32c2022-08-01 18:04:08 +020052 // If you want to additionally use the CameraX VideoCapture library
LuK133750ef0072022-08-27 15:10:12 +020053 implementation "androidx.camera:camera-video:${camerax_version}"
Sebastiano Barezzi418f32c2022-08-01 18:04:08 +020054 // If you want to additionally use the CameraX View class
LuK133750ef0072022-08-27 15:10:12 +020055 implementation "androidx.camera:camera-view:${camerax_version}"
Sebastiano Barezzi418f32c2022-08-01 18:04:08 +020056 // If you want to additionally add CameraX ML Kit Vision Integration
LuK133750ef0072022-08-27 15:10:12 +020057 implementation "androidx.camera:camera-mlkit-vision:${camerax_version}"
Sebastiano Barezzi418f32c2022-08-01 18:04:08 +020058 // If you want to additionally use the CameraX Extensions library
LuK133750ef0072022-08-27 15:10:12 +020059 implementation "androidx.camera:camera-extensions:${camerax_version}"
LuK133766e9a2a2022-08-09 22:45:30 +020060
61 // ZXing
62 implementation 'com.google.zxing:core:3.5.0'
Sebastiano Barezzi418f32c2022-08-01 18:04:08 +020063}