|
1 | | -/* |
2 | | - * * |
3 | | - * * Created by Ali YÜCE on 3/2/20 11:18 PM |
4 | | - * * https://github.com/mayuce/ |
5 | | - * * Copyright (c) 2020 . All rights reserved. |
6 | | - * * Last modified 3/2/20 11:17 PM |
7 | | - * |
8 | | - */ |
9 | | - |
10 | | -apply plugin: 'com.android.application' |
11 | | -apply plugin: 'kotlin-android' |
12 | | -apply plugin: 'kotlin-kapt' |
13 | | -apply plugin: 'kotlin-android-extensions' |
| 1 | +plugins { |
| 2 | + id 'com.android.application' |
| 3 | + id 'org.jetbrains.kotlin.android' |
| 4 | + id 'org.jetbrains.kotlin.kapt' |
| 5 | +} |
14 | 6 |
|
15 | 7 | android { |
16 | | - compileSdkVersion 31 |
| 8 | + namespace "com.labters.documentscannerandroid" |
| 9 | + compileSdk = 34 |
| 10 | + |
17 | 11 | defaultConfig { |
18 | 12 | applicationId "com.labters.documentscannerandroid" |
19 | | - minSdkVersion 21 |
20 | | - targetSdkVersion 31 |
21 | | - versionCode 1 |
22 | | - versionName "1.0" |
| 13 | + minSdk = 21 |
| 14 | + targetSdk = 34 |
| 15 | + versionCode = 1 |
| 16 | + versionName = "1.0" |
| 17 | + |
23 | 18 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
24 | | - multiDexEnabled true |
| 19 | + multiDexEnabled = true |
25 | 20 | } |
| 21 | + |
26 | 22 | buildTypes { |
27 | 23 | debug { |
28 | 24 | minifyEnabled false |
29 | | - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| 25 | + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
30 | 26 | } |
31 | 27 | release { |
32 | 28 | minifyEnabled true |
33 | | - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| 29 | + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
34 | 30 | } |
35 | 31 | } |
36 | 32 |
|
37 | | - dexOptions { |
38 | | - jumboMode = true |
39 | | - javaMaxHeapSize "12g" |
| 33 | + buildFeatures { |
| 34 | + dataBinding = true |
| 35 | + viewBinding = true |
40 | 36 | } |
41 | 37 |
|
42 | | - buildTypes { |
43 | | - release { |
44 | | - minifyEnabled false |
45 | | - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
46 | | - } |
47 | | - } |
48 | | - dataBinding { |
49 | | - enabled true |
50 | | - } |
51 | 38 | compileOptions { |
52 | | - sourceCompatibility JavaVersion.VERSION_1_8 |
53 | | - targetCompatibility JavaVersion.VERSION_1_8 |
| 39 | + sourceCompatibility JavaVersion.VERSION_21 |
| 40 | + targetCompatibility JavaVersion.VERSION_21 |
54 | 41 | } |
| 42 | + |
| 43 | + kotlinOptions { |
| 44 | + jvmTarget = JavaVersion.VERSION_21.toString() |
| 45 | + } |
| 46 | + |
55 | 47 | splits { |
56 | 48 | abi { |
57 | | - enable true |
| 49 | + enable = true |
58 | 50 | reset() |
59 | | - include 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'mips', 'mips64', 'arm64-v8a' |
60 | | - universalApk false |
| 51 | + include 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' |
| 52 | + universalApk = false |
61 | 53 | } |
62 | 54 | } |
63 | 55 | } |
64 | 56 |
|
65 | 57 | dependencies { |
66 | 58 | implementation fileTree(include: ['*.jar'], dir: 'libs') |
67 | | - implementation 'androidx.appcompat:appcompat:1.4.0' |
68 | | - implementation "androidx.core:core-ktx:1.7.0" |
69 | | - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
70 | | - implementation 'ru.superjob:kotlin-permissions:1.0.3' |
| 59 | + |
| 60 | + implementation 'androidx.appcompat:appcompat:1.6.1' |
| 61 | + implementation "androidx.core:core-ktx:1.12.0" |
| 62 | + implementation "org.jetbrains.kotlin:kotlin-stdlib" |
| 63 | +// implementation 'ru.superjob:kotlin-permissions:1.0.3' |
71 | 64 | implementation project(':documentscanner') |
| 65 | + implementation project(':kotlin-permissions') |
72 | 66 | } |
0 commit comments