-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.gradle
executable file
·118 lines (101 loc) · 3.79 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
apply plugin: "com.android.application"
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'androidx.room'
android {
signingConfigs {
release {
}
}
defaultConfig {
compileSdk 34
applicationId "com.mikifus.padland"
minSdkVersion 19
targetSdkVersion 34
versionName '3.1'
versionCode 27
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
// used by Room, to test migrations
sourceSets {
getByName("androidTest").assets.srcDir("$projectDir/schemas")
}
buildTypes {
debug {
pseudoLocalesEnabled true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
lint {
abortOnError false
checkReleaseBuilds false
disable 'InvalidPackage'
}
namespace 'com.mikifus.padland'
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
}
room {
schemaDirectory("$projectDir/schemas")
}
dependencies {
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'com.github.paolorotolo:appintro:6.3.1'
implementation 'androidx.recyclerview:recyclerview:1.3.2'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.recyclerview:recyclerview-selection:1.1.0'
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
implementation "androidx.preference:preference-ktx:1.2.1"
implementation 'com.github.martin-stone:hsv-alpha-color-picker-android:3.1.0'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'androidx.webkit:webkit:1.11.0'
// Room database
def room_version = "2.6.1"
implementation("androidx.room:room-runtime:$room_version")
annotationProcessor("androidx.room:room-compiler:$room_version")
// To use Kotlin annotation processing tool (kapt)
kapt("androidx.room:room-compiler:$room_version")
// To use Kotlin Symbol Processing (KSP)
annotationProcessor("androidx.room:room-compiler:$room_version")
// // optional - Kotlin Extensions and Coroutines support for Room
implementation("androidx.room:room-ktx:$room_version")
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.4"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.8.4"
constraints {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0") {
because("kotlin-stdlib-jdk7 is now a part of kotlin-stdlib")
}
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0") {
because("kotlin-stdlib-jdk8 is now a part of kotlin-stdlib")
}
}
// 'androidTest' dependencies for instrumentation (tests on device).
// These are for room database migration test.
androidTestImplementation "androidx.test.ext:junit-ktx:1.2.1"
androidTestImplementation "androidx.room:room-testing:2.6.1"
androidTestImplementation "androidx.test:runner:1.6.2"
// 'test' dependencies to run unit tests from the IDE
testImplementation "androidx.test.ext:junit-ktx:1.2.1"
testImplementation 'org.robolectric:robolectric:4.11.1'
// AndroidJUnitRunner and JUnit Rules
testImplementation "androidx.test:runner:1.6.2"
testImplementation "androidx.test:rules:1.6.1"
}