-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
125 lines (104 loc) · 3.74 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: 'com.github.ksoichiro.console.reporter'
def nexusUID = System.getenv("CN_NEXUS_UID") ? System.getenv("CN_NEXUS_UID") : nexusUID
def nexusPWD = System.getenv("CN_NEXUS_PWD") ? System.getenv("CN_NEXUS_PWD") : nexusPWD
def TWITTER_CALLBACK_URI = System.getenv("TWITTER_CALLBACK_URI") ? System.getenv("TWITTER_CALLBACK_URI") : TWITTER_CALLBACK_URI
def TWITTER_SECRET = System.getenv("TWITTER_SECRET") ? System.getenv("TWITTER_SECRET") : TWITTER_SECRET
def TWITTER_API_KEY = System.getenv("TWITTER_API_KEY") ? System.getenv("TWITTER_API_KEY") : TWITTER_API_KEY
System.out.println("------ Run Configuration")
System.out.println(Runtime.runtime.availableProcessors().intdiv(2) ?: 1)
System.out.println("Run Configuration ------")
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
mavenCentral()
maven {
url 'https://maven.fabric.io/public'
}
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.github.ksoichiro:gradle-console-reporter:0.6.2'
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2'
classpath "com.github.triplet.gradle:play-publisher:2.2.1"
classpath 'de.felixschulze.gradle:gradle-hockeyapp-plugin:3.6'
classpath 'com.google.gms:google-services:4.3.2'
classpath "de.mannodermaus.gradle.plugins:android-junit5:1.3.2.0"
classpath 'io.fabric.tools:gradle:1.26.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
classpath 'com.adarshr:gradle-test-logger-plugin:1.7.0'
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
maven {
url "https://nexus.coinninja.net/repository/maven-releases/"
credentials {
username nexusUID
password nexusPWD
}
}
maven {
url "https://jitpack.io"
}
maven {
url 'https://maven.google.com/'
}
maven {
url 'https://plugins.gradle.org/m2/'
}
}
tasks.withType(Test) {
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
forkEvery = 100
reports.html.enabled = false
reports.junitXml.enabled = false
}
tasks.withType(JavaCompile) {
options.fork = true
options.incremental = true
}
apply plugin: 'kotlin-allopen'
allOpen {
annotations("app.dropbit.annotations.Mockable", "app.coinninja.annotations.Mockable")
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext {
room_version = "2.1.0"
// App Configuration
minSdkVersion = 21
targetSdkVersion = 28
buildToolsVersion = "29.0.2"
compileSdkVersion = 28
// Dependency Versions
retrofit_version = "2.5.0"
junit_version = "4.12"
appcompat_version = "1.1.0-beta01"
material_version = "1.1.0-alpha10"
constraintLayout_version = "1.1.3"
dagger_version = "2.22.1"
androidx_runner_version = "1.1.1"
robolectric_version = "4.2"
espresso_core_version = "3.2.0-beta01"
//espresso_core_version = "3.2.0-alpha04"
androidx_fragment_testing_version = "1.2.0-alpha03"
//androidx_fragment_testing_version = "1.1.0-alpha06"
expresso_intents_version = "3.1.1"
// shared vars
twitterApiKey = TWITTER_API_KEY
twitterSecret = TWITTER_SECRET
twitterCallbackUri = TWITTER_CALLBACK_URI
}