forked from liodali/osm_flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
89 lines (73 loc) · 2.4 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
group 'hamza.dali.flutter_osm_plugin'
version '1.0'
buildscript {
ext.kotlin_version = '1.8.0'
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.android.tools.build:gradle:7.1.3'
}
}
rootProject.allprojects {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
compileSdk 33
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
minSdkVersion 19
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
disable 'InvalidPackage'
}
buildFeatures {
viewBinding true
}
compileOptions {
coreLibraryDesugaringEnabled true
// Sets Java compatibility to Java 8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
/*kotlinOptions {
jvmTarget = '1.8'
}*/
}
dependencies {
def coroutines_version ="1.6.1"
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.7.0-alpha02'
//implementation 'androidx.core:core-ktx:1.9.0'
//implementation 'androidx.legacy:legacy-support-v4:1.0.0'
// Retrofit and relevant converters
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-moshi:2.9.0'
//picasso
implementation 'com.squareup.picasso:picasso:2.71828'
//Preference
implementation 'androidx.preference:preference-ktx:1.2.0'
// Coroutines
//implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.5.1"
//implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
implementation 'org.osmdroid:osmdroid-android:6.1.13'
implementation 'com.github.MKergall:osmbonuspack:6.9.0'
implementation 'com.google.android.material:material:1.9.0'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'
}