-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
126 lines (99 loc) · 4.3 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
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.dagger.hilt)
alias(libs.plugins.jetbrains.kotlin.android)
alias(libs.plugins.jetbrains.kotlin.serialization)
alias(libs.plugins.kapt)
id 'kotlin-parcelize'
id 'androidx.navigation.safeargs.kotlin'
alias(libs.plugins.realm.kotlin)
}
def javaVersion = JavaVersion.VERSION_17
def enableLeakCanary = false
android {
namespace 'com.infomaniak.mail'
compileSdk 34
defaultConfig {
applicationId 'com.infomaniak.mail'
minSdk 25
targetSdk 34
versionCode 1_06_002_01
versionName '1.6.2'
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
setProperty "archivesBaseName", "infomaniak-mail-$versionName ($versionCode)"
buildConfigField 'String', 'CLIENT_ID', '"E90BC22D-67A8-452C-BE93-28DA33588CA4"'
buildConfigField 'String', 'CREATE_ACCOUNT_URL', '"https://welcome.infomaniak.com/signup/ikmail?app=true"'
buildConfigField 'String', 'CREATE_ACCOUNT_SUCCESS_HOST', '"mail.infomaniak.com"'
buildConfigField 'String', 'CREATE_ACCOUNT_CANCEL_HOST', '"welcome.infomaniak.com"'
buildConfigField 'String', 'IMPORT_EMAILS_URL', '"https://import-email.infomaniak.com"'
buildConfigField 'String', 'MAIL_API', '"https://mail.infomaniak.com"'
// buildConfigField 'String', 'MAIL_API', '"https://mail.preprod.dev.infomaniak.ch"' // Pre-production environment
buildConfigField 'String', 'SHOP_URL', '"https://ik.me"'
buildConfigField 'String', 'CHATBOT_URL', '"https://www.infomaniak.com/chatbot"'
buildConfigField 'String', 'FAQ_URL', '"https://www.infomaniak.com/fr/support/faq/admin2/service-mail"'
buildConfigField 'String', 'MANAGE_SIGNATURES_URL', '"https://mail.infomaniak.com/0/settings/signatures"'
buildConfigField 'String', 'BUGTRACKER_MAIL_BUCKET_ID', '"app_mail"'
buildConfigField 'String', 'BUGTRACKER_MAIL_PROJECT_NAME', '"mail"'
buildConfigField 'String', 'GITHUB_REPO', '"android-mail"'
buildConfigField 'String', 'GITHUB_REPO_URL', '"https://github.com/Infomaniak/android-kMail"'
resValue 'string', 'ATTACHMENTS_AUTHORITY', 'com.infomaniak.mail.attachments'
resourceConfigurations += ["en", "de", "es", "fr", "it"]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
kotlinOptions { jvmTarget = javaVersion }
buildFeatures {
buildConfig true
viewBinding true
}
flavorDimensions += 'distribution'
productFlavors {
standard {
dimension 'distribution'
apply plugin: 'com.google.gms.google-services'
getIsDefault().set(true)
}
fdroid { dimension 'distribution' }
}
}
dependencies {
implementation project(path: ':Core')
implementation project(path: ':Core:AppLock')
implementation project(path: ':Core:BugTracker')
implementation project(path: ':Core:Confetti')
implementation project(path: ':Core:Stores')
implementation project(path: ':HtmlCleaner')
implementation libs.rich.html.editor
implementation libs.realm.kotlin.base
standardImplementation libs.firebase.messaging.ktx
implementation libs.lottie
implementation libs.dragdropswipe.recyclerview
implementation libs.dotsindicator
implementation libs.flexbox
implementation libs.lifecycle.process
implementation libs.webkit
implementation libs.work.concurrent.futures
implementation libs.work.runtime.ktx
implementation libs.hilt.android
implementation libs.hilt.work
// TODO: Migrate to KSP, actually Hilt is not yet supported with KSP
// https://kotlinlang.org/docs/ksp-overview.html#supported-libraries
// https://github.com/google/dagger/issues/2349
kapt libs.hilt.compiler
kapt libs.hilt.compiler.androidx
implementation libs.sentry.android.fragment
implementation libs.coil.svg
// Test
testImplementation libs.junit
androidTestImplementation libs.ext.junit
// Debug
if (enableLeakCanary) debugImplementation libs.leakcanary.android
}