|
1 |
| -group 'com.sharmadhiraj.installed_apps' |
2 |
| -version '1.0-SNAPSHOT' |
| 1 | +group = "com.sharmadhiraj.installed_apps" |
| 2 | +version = "1.0-SNAPSHOT" |
3 | 3 |
|
4 | 4 | buildscript {
|
5 |
| - ext.kotlin_version = '1.8.20' |
| 5 | + ext.kotlin_version = "1.8.22" |
6 | 6 | repositories {
|
7 | 7 | google()
|
8 | 8 | mavenCentral()
|
9 | 9 | }
|
10 | 10 |
|
11 | 11 | dependencies {
|
12 |
| - classpath 'com.android.tools.build:gradle:4.2.2' |
13 |
| - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" |
| 12 | + classpath("com.android.tools.build:gradle:8.1.4") |
| 13 | + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version") |
14 | 14 | }
|
15 | 15 | }
|
16 | 16 |
|
17 |
| -rootProject.allprojects { |
| 17 | +allprojects { |
18 | 18 | repositories {
|
19 | 19 | google()
|
20 | 20 | mavenCentral()
|
21 | 21 | }
|
22 | 22 | }
|
23 | 23 |
|
24 |
| -apply plugin: 'com.android.library' |
25 |
| -apply plugin: 'kotlin-android' |
| 24 | +apply plugin: "com.android.library" |
| 25 | +apply plugin: "kotlin-android" |
26 | 26 |
|
27 | 27 | android {
|
28 | 28 | if (project.android.hasProperty("namespace")) {
|
29 |
| - namespace 'com.sharmadhiraj.installed_apps' |
| 29 | + namespace = "com.sharmadhiraj.installed_apps" |
30 | 30 | }
|
31 | 31 |
|
32 |
| - compileSdkVersion 30 |
| 32 | + compileSdk = 34 |
| 33 | + |
| 34 | + compileOptions { |
| 35 | + sourceCompatibility = JavaVersion.VERSION_1_8 |
| 36 | + targetCompatibility = JavaVersion.VERSION_1_8 |
| 37 | + } |
| 38 | + |
| 39 | + kotlinOptions { |
| 40 | + jvmTarget = JavaVersion.VERSION_1_8 |
| 41 | + } |
33 | 42 |
|
34 | 43 | sourceSets {
|
35 |
| - main.java.srcDirs += 'src/main/kotlin' |
| 44 | + main.java.srcDirs += "src/main/kotlin" |
| 45 | + test.java.srcDirs += "src/test/kotlin" |
36 | 46 | }
|
| 47 | + |
37 | 48 | defaultConfig {
|
38 |
| - minSdkVersion 16 |
| 49 | + minSdk = 16 |
39 | 50 | }
|
40 |
| - lintOptions { |
41 |
| - disable 'InvalidPackage' |
42 |
| - } |
43 |
| - compileOptions { |
44 |
| - sourceCompatibility "17" |
45 |
| - targetCompatibility JavaVersion.VERSION_17 |
| 51 | + |
| 52 | + dependencies { |
46 | 53 | }
|
47 |
| - namespace 'com.sharmadhiraj.installed_apps' |
48 |
| -} |
49 | 54 |
|
50 |
| -dependencies { |
51 |
| - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
52 | 55 | }
|
0 commit comments