Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 1 | plugins { |
| 2 | id 'com.android.application' |
| 3 | id 'org.jetbrains.kotlin.android' |
| 4 | } |
| 5 | |
| 6 | android { |
Sebastiano Barezzi | 445c24a | 2022-08-18 15:47:55 +0200 | [diff] [blame] | 7 | compileSdk 33 |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 8 | |
| 9 | defaultConfig { |
| 10 | applicationId "org.lineageos.aperture" |
Sebastiano Barezzi | 586a499 | 2022-08-24 03:25:25 +0200 | [diff] [blame] | 11 | minSdk 31 |
Sebastiano Barezzi | 445c24a | 2022-08-18 15:47:55 +0200 | [diff] [blame] | 12 | targetSdk 33 |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 13 | versionCode 1 |
| 14 | versionName "1.0" |
| 15 | |
| 16 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| 17 | } |
| 18 | |
| 19 | buildTypes { |
| 20 | release { |
Luca Stefani | dcec426 | 2022-08-28 14:55:58 +0200 | [diff] [blame] | 21 | // Enables code shrinking, obfuscation, and optimization. |
| 22 | minifyEnabled true |
| 23 | |
| 24 | // Enables resource shrinking. |
| 25 | shrinkResources true |
| 26 | |
| 27 | // Includes the default ProGuard rules files. |
| 28 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), |
| 29 | 'proguard-rules.pro' |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 30 | } |
| 31 | } |
| 32 | compileOptions { |
| 33 | sourceCompatibility JavaVersion.VERSION_1_8 |
| 34 | targetCompatibility JavaVersion.VERSION_1_8 |
| 35 | } |
| 36 | kotlinOptions { |
| 37 | jvmTarget = '1.8' |
| 38 | } |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | dependencies { |
| 42 | implementation 'androidx.core:core-ktx:1.8.0' |
Sebastiano Barezzi | 7673991 | 2022-08-18 15:51:05 +0200 | [diff] [blame] | 43 | implementation 'androidx.appcompat:appcompat:1.5.0' |
LuK1337 | a3e6053 | 2022-08-19 13:16:24 +0200 | [diff] [blame] | 44 | implementation 'androidx.concurrent:concurrent-futures-ktx:1.1.0' |
LuK1337 | 9d7f971 | 2022-08-18 14:11:01 +0200 | [diff] [blame] | 45 | implementation 'com.google.android.material:material:1.7.0-beta01' |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 46 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4' |
LuK1337 | a3e6053 | 2022-08-19 13:16:24 +0200 | [diff] [blame] | 47 | implementation 'androidx.exifinterface:exifinterface:1.3.3' |
LuK1337 | 6d117b4 | 2022-08-10 15:06:48 +0200 | [diff] [blame] | 48 | implementation 'androidx.lifecycle:lifecycle-viewmodel:2.5.1' |
| 49 | implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1' |
Sebastiano Barezzi | 0468006 | 2022-08-04 15:28:34 +0200 | [diff] [blame] | 50 | implementation 'androidx.preference:preference:1.2.0' |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 51 | |
| 52 | // CameraX core library using the camera2 implementation |
LuK1337 | 50ef007 | 2022-08-27 15:10:12 +0200 | [diff] [blame] | 53 | def camerax_version = "1.2.0-beta02" |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 54 | // The following line is optional, as the core library is included indirectly by camera-camera2 |
LuK1337 | 50ef007 | 2022-08-27 15:10:12 +0200 | [diff] [blame] | 55 | implementation "androidx.camera:camera-core:${camerax_version}" |
| 56 | implementation "androidx.camera:camera-camera2:${camerax_version}" |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 57 | // If you want to additionally use the CameraX Lifecycle library |
LuK1337 | 50ef007 | 2022-08-27 15:10:12 +0200 | [diff] [blame] | 58 | implementation "androidx.camera:camera-lifecycle:${camerax_version}" |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 59 | // If you want to additionally use the CameraX VideoCapture library |
LuK1337 | 50ef007 | 2022-08-27 15:10:12 +0200 | [diff] [blame] | 60 | implementation "androidx.camera:camera-video:${camerax_version}" |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 61 | // If you want to additionally use the CameraX View class |
LuK1337 | 50ef007 | 2022-08-27 15:10:12 +0200 | [diff] [blame] | 62 | implementation "androidx.camera:camera-view:${camerax_version}" |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 63 | // If you want to additionally use the CameraX Extensions library |
LuK1337 | 50ef007 | 2022-08-27 15:10:12 +0200 | [diff] [blame] | 64 | implementation "androidx.camera:camera-extensions:${camerax_version}" |
LuK1337 | 66e9a2a | 2022-08-09 22:45:30 +0200 | [diff] [blame] | 65 | |
| 66 | // ZXing |
| 67 | implementation 'com.google.zxing:core:3.5.0' |
Luca Stefani | 3e5fb9a | 2022-08-28 14:33:28 +0200 | [diff] [blame] | 68 | |
| 69 | // Coil |
| 70 | implementation 'io.coil-kt:coil:2.2.0' |
| 71 | implementation 'io.coil-kt:coil-video:2.2.0' |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 72 | } |