This repository has been archived by the owner on Jun 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 479
/
Copy pathbuild.gradle
107 lines (91 loc) · 2.81 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
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
}
}
repositories {
maven {
// Used for downloading dependency com.github.lkorth:device-automator
url "https://jitpack.io"
}
jcenter()
mavenCentral()
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '24.0.1'
defaultConfig {
minSdkVersion 18
targetSdkVersion 26
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
}
signingConfigs {
debug {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
release {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
// Only for SampleApp.
// It is failing because the okio version and okhttp is not found, which is expected.
lintOptions {
abortOnError false
}
buildTypes {
debug {
applicationIdSuffix ".debug"
signingConfig signingConfigs.debug
}
release{
minifyEnabled true
proguardFile getDefaultProguardFile('proguard-android.txt')
signingConfig signingConfigs.release
}
}
android.applicationVariants.all { variant ->
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.apk')) {
output.outputFile = new File(outputFile.parent, "paypal-sample-app-${variant.name}.apk")
}
}
}
productFlavors {
general
partner
}
}
configurations.all {
resolutionStrategy.force 'com.android.support:support-annotations:24.0.0'
}
dependencies {
if (parent != null) {
generalCompile project(path: ':androidSDK', configuration: 'generalDebug')
partnerCompile project(path: ':androidSDK', configuration: 'partnerDebug')
} else {
compile('com.paypal.sdk:paypal-android-sdk:2.16.0')
}
compile 'com.google.android.gms:play-services-wallet:8.4.0'
testCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
androidTestCompile 'com.github.lkorth:device-automator:30238040d8'
testCompile 'com.google.dexmaker:dexmaker-mockito:1.1'
testCompile 'com.android.support.test.espresso:espresso-intents:2.2.1'
testCompile 'com.android.support.test.espresso:espresso-web:2.2.1'
testCompile 'com.android.support.test:runner:0.4.1'
testCompile 'com.android.support.test:rules:0.4.1'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.14.1'
}