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 | 66d4bfb | 2022-08-05 23:45:32 +0200 | [diff] [blame] | 11 | minSdk 29 |
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 { |
| 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 Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | dependencies { |
| 35 | implementation 'androidx.core:core-ktx:1.8.0' |
| 36 | implementation 'androidx.appcompat:appcompat:1.4.2' |
LuK1337 | 9d7f971 | 2022-08-18 14:11:01 +0200 | [diff] [blame] | 37 | implementation 'com.google.android.material:material:1.7.0-beta01' |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 38 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4' |
LuK1337 | 6d117b4 | 2022-08-10 15:06:48 +0200 | [diff] [blame] | 39 | implementation 'androidx.lifecycle:lifecycle-viewmodel:2.5.1' |
| 40 | implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1' |
Sebastiano Barezzi | 0468006 | 2022-08-04 15:28:34 +0200 | [diff] [blame] | 41 | implementation 'androidx.preference:preference:1.2.0' |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 42 | |
| 43 | // CameraX core library using the camera2 implementation |
| 44 | def camerax_version = "1.2.0-alpha04" |
| 45 | // The following line is optional, as the core library is included indirectly by camera-camera2 |
| 46 | implementation "androidx.camera:camera-core:${camerax_version}" |
| 47 | implementation "androidx.camera:camera-camera2:${camerax_version}" |
| 48 | // If you want to additionally use the CameraX Lifecycle library |
| 49 | implementation "androidx.camera:camera-lifecycle:${camerax_version}" |
| 50 | // If you want to additionally use the CameraX VideoCapture library |
| 51 | implementation "androidx.camera:camera-video:${camerax_version}" |
| 52 | // If you want to additionally use the CameraX View class |
| 53 | implementation "androidx.camera:camera-view:${camerax_version}" |
| 54 | // If you want to additionally add CameraX ML Kit Vision Integration |
| 55 | implementation "androidx.camera:camera-mlkit-vision:${camerax_version}" |
| 56 | // If you want to additionally use the CameraX Extensions library |
| 57 | implementation "androidx.camera:camera-extensions:${camerax_version}" |
LuK1337 | 66e9a2a | 2022-08-09 22:45:30 +0200 | [diff] [blame] | 58 | |
| 59 | // ZXing |
| 60 | implementation 'com.google.zxing:core:3.5.0' |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 61 | } |