blob: 4ed6d03674c0c03b032b1ba2a09fecceaa009828 [file] [log] [blame]
LuK13379c4638c2022-09-05 13:37:03 +02001plugins {
2 id("com.android.application")
3 id("kotlin-android")
4}
5
6android {
7 compileSdk = 33
8
9 defaultConfig {
10 applicationId = "org.lineageos.aperture"
11 minSdk = 31
12 targetSdk = 33
13 versionCode = 1
14 versionName = "1.0"
15
16 testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
17 }
18
19 buildTypes {
20 named("release") {
21 // Enables code shrinking, obfuscation, and optimization.
22 isMinifyEnabled = true
23
24 // Enables resource shrinking.
25 isShrinkResources = true
26
27 // Includes the default ProGuard rules files.
28 setProguardFiles(
29 listOf(
30 getDefaultProguardFile("proguard-android-optimize.txt"),
31 "proguard-rules.pro"
32 )
33 )
34 }
35 }
36
37 compileOptions {
38 sourceCompatibility = JavaVersion.VERSION_1_8
39 targetCompatibility = JavaVersion.VERSION_1_8
40 }
41
42 kotlinOptions {
43 jvmTarget = "1.8"
44 }
45}
46
47dependencies {
48 implementation("androidx.core:core-ktx:1.8.0")
49 implementation("androidx.appcompat:appcompat:1.5.0")
50 implementation("androidx.constraintlayout:constraintlayout:2.1.4")
51 implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1")
LuK1337afc94a32022-09-05 23:30:33 +020052 implementation("androidx.preference:preference:1.2.0")
LuK13379c4638c2022-09-05 13:37:03 +020053 implementation("com.google.android.material:material:1.8.0-alpha01")
54
55 // CameraX core library using the camera2 implementation
56 val cameraxVersion = "1.2.0-beta02"
57 // The following line is optional, as the core library is included indirectly by camera-camera2
58 implementation("androidx.camera:camera-core:${cameraxVersion}")
59 implementation("androidx.camera:camera-camera2:${cameraxVersion}")
60 // If you want to additionally use the CameraX Lifecycle library
61 implementation("androidx.camera:camera-lifecycle:${cameraxVersion}")
62 // If you want to additionally use the CameraX VideoCapture library
63 implementation("androidx.camera:camera-video:${cameraxVersion}")
64 // If you want to additionally use the CameraX View class
65 implementation("androidx.camera:camera-view:${cameraxVersion}")
66 // If you want to additionally use the CameraX Extensions library
67 implementation("androidx.camera:camera-extensions:${cameraxVersion}")
68
69 // ZXing
70 implementation("com.google.zxing:core:3.5.0")
71
72 // Coil
73 implementation("io.coil-kt:coil:2.2.0")
74 implementation("io.coil-kt:coil-video:2.2.0")
75}