forked from braintree/braintree_android
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
126 lines (108 loc) · 5.86 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
buildscript {
repositories {
jcenter()
google()
maven {
url = "https://plugins.gradle.org/m2/"
}
}
ext.versions = [
"kotlin" : "1.5.32",
"androidxTest" : "1.4.0",
"powermock" : '2.0.9',
"powermockLegacy": "1.7.4",
"room" : "2.2.6",
// Version 19.0.0 of play-services-wallet has been released but should not be used per Google documentation
"playServices" : "18.1.3"
]
ext.deps = [
"appCompat" : "androidx.appcompat:appcompat:1.3.1",
"annotation" : "androidx.annotation:annotation:1.2.0",
"coreKtx" : "androidx.core:core-ktx:1.7.0",
// NEXT_MAJOR_VERSION: upgrade to 2.4.0 (or latest) when Java 7 support is explicitly dropped
"lifecycleRuntime" : "androidx.lifecycle:lifecycle-runtime:2.3.0",
"kotlinStdLib" : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}",
"kotlinTest" : "org.jetbrains.kotlin:kotlin-test-junit:${versions.kotlin}",
// This library doesn't seem to follow the versioning pattern of the other jetbrains
// kotlin libraries. Make sure to keep this dependency in line with the kotlin version used.
"kotlinCoroutinesCore" : "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2",
"browserSwitch" : "com.braintreepayments.api:browser-switch:2.1.1",
"cardinal" : "org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk:2.2.6-1",
"samsungPay" : "com.samsung.android.spay:sdk:2.5.01",
"playServicesWallet" : "com.google.android.gms:play-services-wallet:${versions.playServices}",
// 1.1.0-alpha or higher is required for API 21 support
"securityCrypto" : "androidx.security:security-crypto:1.1.0-alpha03",
// NEXT_MAJOR_VERSION: upgrade to 2.7.1 (or latest) when Java 7 support is explicitly dropped
"work" : "androidx.work:work-runtime:2.7.0-alpha05",
"workTesting" : "androidx.work:work-testing:2.5.0",
"roomCompiler" : "androidx.room:room-compiler:${versions.room}",
"roomRuntime" : "androidx.room:room-runtime:${versions.room}",
"androidxTestRules" : "androidx.test:rules:${versions.androidxTest}",
"androidxTestRunner" : "androidx.test:runner:${versions.androidxTest}",
"androidxTestCore" : "androidx.test:core:${versions.androidxTest}",
"junit" : "junit:junit:4.13",
"junitTest" : "androidx.test.ext:junit:1.1.3",
"robolectric" : "org.robolectric:robolectric:4.1",
"dexmakerMockito" : "com.google.dexmaker:dexmaker-mockito:1.2",
"mockitoCore" : "org.mockito:mockito-core:3.6.0",
"jsonAssert" : "org.skyscreamer:jsonassert:1.5.0",
"assertJ" : "com.squareup.assertj:assertj-android:1.1.1",
"mockk" : "io.mockk:mockk:1.12.0",
"powermockJunit" : "org.powermock:powermock-module-junit4:${versions.powermock}",
"powermockRule" : "org.powermock:powermock-module-junit4-rule:${versions.powermock}",
"powermockMockito" : "org.powermock:powermock-api-mockito2:${versions.powermock}",
"powermockClassloading" : "org.powermock:powermock-classloading-xstream:${versions.powermock}",
// Legacy versions of the powermock libraries are required until 3DS and Visa Checkout tests can be updated to resolve robolectric/powermock test issues
"powermockJunitLegacy" : "org.powermock:powermock-module-junit4:${versions.powermockLegacy}",
"powermockRuleLegacy" : "org.powermock:powermock-module-junit4-rule:${versions.powermockLegacy}",
"powermockMockitoLegacy" : "org.powermock:powermock-api-mockito:${versions.powermockLegacy}",
"powermockClassloadingLegacy": "org.powermock:powermock-classloading-xstream:${versions.powermockLegacy}",
]
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.21.2'
classpath 'de.marcphilipp.gradle:nexus-publish-plugin:0.4.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5'
}
}
plugins {
id 'io.codearte.nexus-staging' version '0.21.2'
id 'de.marcphilipp.nexus-publish' version '0.4.0' apply false
}
allprojects {
repositories {
flatDir {
dirs "${rootDir}/libs"
}
mavenLocal()
google()
jcenter()
}
}
version '4.10.2-SNAPSHOT'
ext {
compileSdkVersion = 31
minSdkVersion = 21
targetSdkVersion = 31
versionCode = 145
versionName = version
}
nexusStaging {
packageGroup = project.hasProperty('nexusPackageGroup') ? project.getProperty('nexusPackageGroup') : 'com.braintreepayments'
// give nexus sonatype more time to close the staging repository
delayBetweenRetriesInMillis = 20000
username = System.env['SONATYPE_USERNAME']
password = System.env['SONATYPE_PASSWORD']
}
subprojects {
repositories {
maven {
url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
credentials {
username 'braintree_team_sdk'
password 'AKCp8jQcoDy2hxSWhDAUQKXLDPDx6NYRkqrgFLRc3qDrayg6rrCbJpsKKyMwaykVL8FWusJpp'
}
}
}
}