forked from Adyen/adyen-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
106 lines (90 loc) · 3.29 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
apply from: "config/gradle/checksums.gradle"
apply from: "config/gradle/dependenciesCheck.gradle"
ext {
checkoutRedirectScheme = "adyencheckout"
// This is a quirk in the Spotbugs plugin, the class name isn't findable in the separate spotbugs.gradle file
// unless you define classpath "gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.3.0" there.
SpotBugsTask = com.github.spotbugs.snom.SpotBugsTask
}
buildscript {
// Build Script
ext.android_gradle_plugin_version = '4.2.2'
ext.kotlin_version = '1.5.21'
ext.detekt_gradle_plugin_version = "1.13.1"
ext.spotbugs_gradle_plugin_version = "4.5.1"
ext.dokka_version = "1.4.20"
repositories {
google()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.android.tools.build:gradle:$android_gradle_plugin_version"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detekt_gradle_plugin_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:$spotbugs_gradle_plugin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:latest.release"
}
}
apply from: "config/gradle/dokkaRoot.gradle"
allprojects {
// SDK
ext.min_sdk_version = 21
ext.target_sdk_version = 30
ext.compile_sdk_version = 30
// App version
// just for example app, don't need to increment
ext.version_code = 1
// The version_name format is "major.minor.patch(-(alpha|beta|rc)[0-9]{2}){0,1}" (e.g. 3.0.0, 3.1.1-alpha04 or 3.1.4-rc01 etc).
ext.version_name = "4.1.0-spin"
// Code quality
ext.ktlint_version = '0.40.0'
ext.detekt_version = "1.13.1"
// Android Dependencies
// api
ext.annotation_version = "1.2.0"
ext.coroutines_version = "1.5.0"
ext.fragment_version = "1.3.6"
// implementation
ext.appcompat_version = "1.3.1"
ext.recyclerview_version = "1.2.1"
ext.material_version = "1.4.0"
ext.browser_version = "1.3.0"
// Adyen Dependencies
ext.adyen3ds2_version = "2.2.4"
// External Dependencies
ext.play_services_wallet_version = '18.1.3'
ext.wechat_pay_version = "6.6.4"
// Drop-in
// Example app
ext.kotlinx_version = "1.3.9"
ext.multidex_version = "2.0.1"
ext.constraintlayout_version = '2.0.2'
ext.preference_version = "1.1.1"
ext.koin_version = "2.2.2"
ext.retrofit2_version = '2.9.0'
ext.coroutines_adapter_version = "0.9.2"
ext.moshi_adapters_version = '1.11.0'
ext.moshi_kotlin_adapter_version = '1.11.0'
ext.okhttp_logging_version = "4.9.0"
ext.okhttp_idling_resource_version = "1.0.0"
// Tests
ext.junit_version = '4.13.2'
ext.test_ext_version = "1.1.3"
ext.espresso_version = "3.4.0"
ext.arch_core_testing_version = "2.1.0"
ext.mockito_version = "3.11.2"
ext.robolectric_version = "4.4"
ext.json_version = '20201115'
ext.test_rules_version = "1.3.0"
ext.uiautomator_version = "2.2.0"
repositories {
google()
mavenCentral()
jcenter() // Koin is still not migrated
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}