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 { |
| 7 | compileSdk 32 |
| 8 | |
| 9 | defaultConfig { |
| 10 | applicationId "org.lineageos.aperture" |
Sebastiano Barezzi | 123564c | 2022-08-04 03:29:48 +0200 | [diff] [blame] | 11 | minSdk 31 |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 12 | targetSdk 32 |
| 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 | } |
| 32 | |
| 33 | buildFeatures { |
| 34 | viewBinding true |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | dependencies { |
| 39 | implementation 'androidx.core:core-ktx:1.8.0' |
| 40 | implementation 'androidx.appcompat:appcompat:1.4.2' |
| 41 | implementation 'com.google.android.material:material:1.6.1' |
| 42 | implementation 'androidx.constraintlayout:constraintlayout:2.1.4' |
Sebastiano Barezzi | 0468006 | 2022-08-04 15:28:34 +0200 | [diff] [blame^] | 43 | implementation 'androidx.preference:preference:1.2.0' |
Sebastiano Barezzi | 418f32c | 2022-08-01 18:04:08 +0200 | [diff] [blame] | 44 | testImplementation 'junit:junit:4.13.2' |
| 45 | androidTestImplementation 'androidx.test.ext:junit:1.1.3' |
| 46 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' |
| 47 | |
| 48 | // CameraX core library using the camera2 implementation |
| 49 | def camerax_version = "1.2.0-alpha04" |
| 50 | // The following line is optional, as the core library is included indirectly by camera-camera2 |
| 51 | implementation "androidx.camera:camera-core:${camerax_version}" |
| 52 | implementation "androidx.camera:camera-camera2:${camerax_version}" |
| 53 | // If you want to additionally use the CameraX Lifecycle library |
| 54 | implementation "androidx.camera:camera-lifecycle:${camerax_version}" |
| 55 | // If you want to additionally use the CameraX VideoCapture library |
| 56 | implementation "androidx.camera:camera-video:${camerax_version}" |
| 57 | // If you want to additionally use the CameraX View class |
| 58 | implementation "androidx.camera:camera-view:${camerax_version}" |
| 59 | // If you want to additionally add CameraX ML Kit Vision Integration |
| 60 | implementation "androidx.camera:camera-mlkit-vision:${camerax_version}" |
| 61 | // If you want to additionally use the CameraX Extensions library |
| 62 | implementation "androidx.camera:camera-extensions:${camerax_version}" |
| 63 | } |