This repository has been archived by the owner on Dec 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
build.gradle
129 lines (106 loc) · 4.58 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
119
120
121
122
123
124
125
126
127
128
129
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlinx-serialization'
apply plugin: 'kotlin-parcelize'
apply plugin: 'dagger.hilt.android.plugin'
// A properties file is located at projectFolder/keys.properties
def keysPropertiesFile = rootProject.file("keys.properties")
def keys = new Properties()
keys.load(new FileInputStream(keysPropertiesFile))
android {
defaultConfig {
applicationId "com.marknkamau.justjava"
versionCode 14
versionName "2.2.1"
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "com.marknkamau.justjava.testUtils.TestApplicationRunner"
buildConfigField("String", "googleClientId", '"565628649475-4vp8dm790n2kuuhqpu3o662e9odht703.apps.googleusercontent.com"')
buildConfigField("String", "sentryDsn", keys['SENTRY_DSN'])
resValue "string", "google_maps_key", keys['GOOGLE_MAPS_API_KEY'] // Generates @strings/google_maps_key
javaCompileOptions {
annotationProcessorOptions {
arguments += [
"room.incremental": "true",
]
}
}
}
buildFeatures {
viewBinding = true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
signingConfigs {
debugConfig {
storeFile file("../keystore/justjava-debug.jks")
storePassword "justjava-debug"
keyAlias "key0"
keyPassword "justjava-debug"
}
}
buildTypes {
debug {
applicationIdSuffix ".debug"
signingConfig signingConfigs.debugConfig
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation project(':core')
implementation fileTree(include: ['*.jar'], dir: 'libs')
// Kotlin
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.1"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.5.0"
//Android libraries
implementation "com.google.android.material:material:1.3.0"
implementation "androidx.cardview:cardview:1.0.0"
implementation "androidx.appcompat:appcompat:1.3.0"
implementation "androidx.recyclerview:recyclerview:1.2.1"
implementation "androidx.constraintlayout:constraintlayout:2.0.4"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
implementation "androidx.activity:activity-ktx:1.2.3"
// Firebase libraries
implementation "com.google.firebase:firebase-messaging:22.0.0"
// Lifecycle
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.3.1"
// Room
implementation "androidx.room:room-runtime:2.3.0"
implementation "androidx.room:room-ktx:2.3.0"
kapt "androidx.room:room-compiler:2.3.0"
// DI
implementation "com.google.dagger:hilt-android:2.35"
kapt "com.google.dagger:hilt-compiler:2.35"
// Other libraries
implementation "com.squareup.picasso:picasso:2.71828"
implementation "com.jakewharton.timber:timber:4.7.1"
implementation "com.facebook.shimmer:shimmer:0.5.0"
implementation "com.google.android.gms:play-services-auth:19.0.0"
implementation "com.google.android.gms:play-services-maps:17.0.1"
implementation ("com.google.android.libraries.places:places:2.4.0")
implementation 'io.sentry:sentry-android:5.0.1'
implementation "com.android.volley:volley:1.2.0"
// Test libraries
testImplementation "junit:junit:4.13.2"
testImplementation "io.mockk:mockk:1.11.0"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.5"
testImplementation "androidx.arch.core:core-testing:2.1.0"
androidTestImplementation "io.mockk:mockk:1.11.0"
androidTestImplementation "io.mockk:mockk-android:1.11.0"
androidTestImplementation "androidx.test:runner:1.4.0"
androidTestImplementation "androidx.test:rules:1.4.0"
androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0"
androidTestImplementation "androidx.test.espresso:espresso-intents:3.4.0"
androidTestImplementation "androidx.test.espresso:espresso-contrib:3.4.0"
androidTestImplementation "androidx.test:core:1.4.0"
androidTestImplementation 'com.google.dagger:hilt-android-testing:2.35'
kaptAndroidTest 'com.google.dagger:hilt-android-compiler:2.35'
}
apply plugin: 'com.google.gms.google-services'