-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
98 lines (75 loc) · 3.89 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
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-parcelize'
apply plugin: 'kotlinx-serialization'
apply plugin: 'com.google.devtools.ksp'
apply plugin: 'androidx.navigation.safeargs.kotlin'
android {
namespace 'com.infomaniak.lib.core'
rootProject.ext {
coreMinSdk = 21
coreTargetSdk = 34
javaVersion = JavaVersion.VERSION_17
}
compileSdk rootProject.ext.coreTargetSdk
defaultConfig {
minSdkVersion rootProject.ext.coreMinSdk
targetSdkVersion rootProject.ext.coreTargetSdk
testOptions.unitTests.includeAndroidResources = true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField 'String', 'AUTOLOG_URL', '"https://manager.infomaniak.com/v3/mobile_login"'
buildConfigField 'String', 'TERMINATE_ACCOUNT_URL', '"https://manager.infomaniak.com/v3/ng/profile/user/dashboard?open-terminate-account-modal"'
buildConfigField 'String', 'LOGIN_ENDPOINT_URL', '"https://login.infomaniak.com/"'
buildConfigField 'String', 'INFOMANIAK_API_V1', '"https://api.infomaniak.com/1"'
buildConfigField 'String', 'INFOMANIAK_API', '"https://api.infomaniak.com/2/"'
buildConfigField 'String', 'MATOMO_URL', '"https://analytics.infomaniak.com/matomo.php"'
ksp { arg("room.schemaLocation", "$projectDir/schemas") }
}
compileOptions {
sourceCompatibility rootProject.ext.javaVersion
targetCompatibility rootProject.ext.javaVersion
}
buildFeatures {
viewBinding true
buildConfig true
}
kotlinOptions { jvmTarget = rootProject.ext.javaVersion }
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
api 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.22' // Doesn't build when bumped to 1.9.24 (waiting for Kotlin 2.0)
api 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0' // Doesn't build when bumped to 1.10.1 (waiting for Kotlin 2.0)
api 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3' // Doesn't build when bumped to 1.7.3 (waiting for Kotlin 2.0)
def navigationVersion = '2.7.7' // Doesn't build when bumped to 2.8.0 (waiting for Kotlin 2.0)
api "androidx.navigation:navigation-fragment-ktx:$navigationVersion"
api "androidx.navigation:navigation-ui-ktx:$navigationVersion"
api 'androidx.constraintlayout:constraintlayout:2.2.0'
api 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
api 'androidx.core:core-ktx:1.13.1' // Doesn't build when bumped to 1.15.0 (waiting for Kotlin 2.0)
api 'androidx.lifecycle:lifecycle-livedata-ktx:2.8.7'
api 'androidx.recyclerview:recyclerview:1.3.2'
api 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
def appcompatVersion = '1.7.0'
api "androidx.appcompat:appcompat:$appcompatVersion"
api "androidx.appcompat:appcompat-resources:$appcompatVersion"
def roomVersion = '2.6.1'
api "androidx.room:room-ktx:$roomVersion"
api "androidx.room:room-runtime:$roomVersion"
ksp "androidx.room:room-compiler:$roomVersion"
api 'com.google.android.material:material:1.12.0'
api 'com.google.code.gson:gson:2.11.0'
api "io.coil-kt:coil:2.7.0"
api 'com.github.infomaniak:android-login:2.8.0'
api 'com.facebook.stetho:stetho-okhttp3:1.6.0'
api 'com.squareup.okhttp3:okhttp:4.12.0'
def sentryVersion = '7.20.0'
api "io.sentry:sentry-android:$sentryVersion"
implementation "io.sentry:sentry-okhttp:$sentryVersion"
implementation 'com.github.razir.progressbutton:progressbutton:2.1.0'
api 'com.github.matomo-org:matomo-sdk-android:4.1.4'
testImplementation 'junit:junit:4.13.2'
testImplementation 'androidx.test.ext:junit:1.2.1'
testImplementation 'androidx.test:core-ktx:1.6.1'
testImplementation 'androidx.test:core:1.6.1'
testImplementation 'org.robolectric:robolectric:4.13' // Don't update this because it breaks tests
}