1
+ group " vn.hunghd.flutterdownloader"
2
+ version " 1.0-SNAPSHOT"
3
+
1
4
buildscript {
2
- ext. kotlin_version = " 1.9.0"
3
5
repositories {
4
6
google()
5
7
mavenCentral()
@@ -8,50 +10,47 @@ buildscript {
8
10
9
11
dependencies {
10
12
classpath " com.android.tools.build:gradle:7.4.2"
11
- classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$k otlin_version "
13
+ classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0 "
12
14
classpath " org.jlleitschuh.gradle:ktlint-gradle:11.5.0"
13
15
}
14
16
}
15
17
18
+ repositories {
19
+ google()
20
+ mavenCentral()
21
+ }
22
+
16
23
apply plugin : " com.android.library"
17
24
apply plugin : " kotlin-android"
18
25
apply plugin : " org.jlleitschuh.gradle.ktlint"
19
26
20
- group " vn.hunghd.flutterdownloader"
21
- version " 1.0-SNAPSHOT"
22
-
23
- rootProject. allprojects {
24
- repositories {
25
- google()
26
- mavenCentral()
27
- }
28
- }
29
-
30
27
android {
31
- namespace " vn.hunghd.flutterdownloader"
32
- compileSdk 34
28
+ namespace = " vn.hunghd.flutterdownloader"
29
+ compileSdk = 34
33
30
34
31
compileOptions {
35
32
sourceCompatibility JavaVersion . VERSION_1_8
36
33
targetCompatibility JavaVersion . VERSION_1_8
37
34
}
38
35
39
36
kotlinOptions {
40
- jvmTarget = " 1.8"
37
+ jvmTarget = JavaVersion . VERSION_1_8
38
+ // allWarningsAsErrors = true // TODO(bartekpacia): Re-enable
41
39
}
42
40
43
41
sourceSets {
44
42
main. java. srcDirs + = " src/main/kotlin"
43
+ test. java. srcDirs + = " src/test/kotlin"
45
44
}
46
45
47
46
defaultConfig {
48
- minSdk 19
49
- targetSdk 33
47
+ minSdk = 21
48
+ targetSdk = 34
50
49
}
51
50
}
52
51
53
52
dependencies {
54
- implementation " androidx.work:work-runtime:2 .7.1"
55
- implementation " androidx.annotation:annotation :1.5.0 "
56
- implementation " androidx.core:core-ktx:1 .9.0"
53
+ compileOnly( " androidx.annotation:annotation:1 .7.1" )
54
+ implementation( " androidx.core:core-ktx :1.13.1 " )
55
+ implementation( " androidx.work:work-runtime:2 .9.0" )
57
56
}
0 commit comments