11/*
22 * WiFiAnalyzer
3- * Copyright (C) 2018 VREM Software Development <[email protected] > 3+ * Copyright (C) 2019 VREM Software Development <[email protected] > 44 *
55 * This program is free software: you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
1717 */
1818
1919apply plugin : " com.android.application"
20- apply plugin : " jacoco-android"
20+
21+ apply from : " jacoco.gradle"
2122
2223ext {
2324 supportVersion = " 28.0.0"
24- lang3Version = " 3.8.1 "
25- collections4Version = " 4.2 "
25+ lang3Version = " 3.9 "
26+ collections4Version = " 4.3 "
2627 graphviewVersion = " 4.2.2"
27- powermockVersion = " 1.7.4 "
28- robolectricVersion = " 4.0 "
28+ powermockVersion = " 2.0.0 "
29+ robolectricVersion = " 4.1 "
2930 junitVersion = " 4.12"
3031 junitToolboxVersion = " 2.4"
31- shadowsVersion = " 3.4-rc2"
3232 espressoVersion = " 3.0.2"
3333 testVersion = " 1.0.2"
3434}
3535
36+ // dependencies -------------------------------------------------
37+ dependencies {
38+ // Compile Build Dependencies
39+ implementation fileTree(include : [" *.jar" ], dir : " libs" )
40+ implementation " com.android.support:design:$supportVersion "
41+ implementation " com.android.support:preference-v7:$supportVersion "
42+ implementation " com.android.support:support-v4:$supportVersion "
43+ implementation " com.android.support:support-media-compat:$supportVersion "
44+ implementation " org.apache.commons:commons-lang3:$lang3Version "
45+ implementation " org.apache.commons:commons-collections4:$collections4Version "
46+ implementation " com.jjoe64:graphview:$graphviewVersion "
47+ // Unit Test Dependencies
48+ testImplementation " junit:junit:$junitVersion "
49+ testImplementation " org.powermock:powermock-module-junit4:$powermockVersion "
50+ testImplementation " org.powermock:powermock-api-mockito2:$powermockVersion "
51+ testImplementation " com.googlecode.junit-toolbox:junit-toolbox:$junitToolboxVersion "
52+ testImplementation " org.robolectric:robolectric:$robolectricVersion "
53+ testImplementation " org.robolectric:shadows-supportv4:$robolectricVersion "
54+ // Android Test Dependencies
55+ androidTestImplementation " com.android.support.test.espresso:espresso-core:$espressoVersion "
56+ androidTestImplementation " com.android.support.test:runner:$testVersion "
57+ androidTestImplementation " com.android.support.test:rules:$testVersion "
58+ }
59+
3660android {
3761 compileSdkVersion 28
3862 buildToolsVersion " 28.0.3"
@@ -86,21 +110,7 @@ android {
86110 }
87111}
88112
89- jacoco {
90- toolVersion = " 0.8.2"
91- }
92-
93- tasks. withType(Test ) {
94- jacoco. includeNoLocationClasses = true
95- }
96-
97- jacocoAndroidUnitTestReport {
98- excludes + = [" **/com/jjoe64/*" ]
99- html. enabled true
100- xml. enabled true
101- csv. enabled false
102- }
103-
113+ // keystore -------------------------------------------------
104114if (project. hasProperty(" keyAlias" )) {
105115 def propertiesFile = file(" ../../keystores/androidkeystore.properties" )
106116 Properties properties = readProperties(propertiesFile)
@@ -112,29 +122,7 @@ if (project.hasProperty("keyAlias")) {
112122 android. buildTypes. release. signingConfig. storePassword = properties[" store_password" ]. toString()
113123}
114124
115- dependencies {
116- // Compile Build Dependencies
117- implementation fileTree(include : [" *.jar" ], dir : " libs" )
118- implementation " com.android.support:design:$supportVersion "
119- implementation " com.android.support:preference-v7:$supportVersion "
120- implementation " com.android.support:support-v4:$supportVersion "
121- implementation " com.android.support:support-media-compat:$supportVersion "
122- implementation " org.apache.commons:commons-lang3:$lang3Version "
123- implementation " org.apache.commons:commons-collections4:$collections4Version "
124- implementation " com.jjoe64:graphview:$graphviewVersion "
125- // Unit Test Dependencies
126- testImplementation " junit:junit:$junitVersion "
127- testImplementation " org.powermock:powermock-module-junit4:$powermockVersion "
128- testImplementation " org.powermock:powermock-api-mockito2:$powermockVersion "
129- testImplementation " com.googlecode.junit-toolbox:junit-toolbox:$junitToolboxVersion "
130- testImplementation " org.robolectric:robolectric:$robolectricVersion "
131- testImplementation " org.robolectric:shadows-support-v4:$shadowsVersion "
132- // Android Test Dependencies
133- androidTestImplementation " com.android.support.test.espresso:espresso-core:$espressoVersion "
134- androidTestImplementation " com.android.support.test:runner:$testVersion "
135- androidTestImplementation " com.android.support.test:rules:$testVersion "
136- }
137-
125+ // version -------------------------------------------------
138126updateVersion()
139127
140128def updateVersion () {
0 commit comments