mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 17:18:52 -06:00
Downgrade Mockito to 1.0 on AndroidTest
This commit is contained in:
@@ -80,7 +80,6 @@ dependencies {
|
|||||||
androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.1'
|
androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.1'
|
||||||
androidTestImplementation 'com.google.dagger:dagger:2.9'
|
androidTestImplementation 'com.google.dagger:dagger:2.9'
|
||||||
androidTestImplementation 'com.linkedin.testbutler:test-butler-library:1.3.1'
|
androidTestImplementation 'com.linkedin.testbutler:test-butler-library:1.3.1'
|
||||||
androidTestImplementation "org.mockito:mockito-android:2.8.9"
|
|
||||||
androidTestCompileOnly 'com.google.auto.factory:auto-factory:1.0-beta3'
|
androidTestCompileOnly 'com.google.auto.factory:auto-factory:1.0-beta3'
|
||||||
androidTestImplementation 'com.android.support:support-annotations:25.3.1'
|
androidTestImplementation 'com.android.support:support-annotations:25.3.1'
|
||||||
androidTestImplementation 'com.android.support.test:rules:0.5'
|
androidTestImplementation 'com.android.support.test:rules:0.5'
|
||||||
@@ -88,6 +87,12 @@ dependencies {
|
|||||||
androidTestImplementation 'com.google.guava:guava:20.0'
|
androidTestImplementation 'com.google.guava:guava:20.0'
|
||||||
androidTestImplementation project(":uhabits-core")
|
androidTestImplementation project(":uhabits-core")
|
||||||
|
|
||||||
|
// mockito-android 2+ includes net.bytebuddy, which causes tests to fail.
|
||||||
|
// Excluding the package net.bytebuddy on AndroidManifest.xml breaks some
|
||||||
|
// AndroidJUnitRunner functionality, such as running individual methods.
|
||||||
|
androidTestImplementation "org.mockito:mockito-core:1+"
|
||||||
|
androidTestImplementation "com.google.dexmaker:dexmaker-mockito:+"
|
||||||
|
|
||||||
testAnnotationProcessor 'com.google.auto.factory:auto-factory:1.0-beta3'
|
testAnnotationProcessor 'com.google.auto.factory:auto-factory:1.0-beta3'
|
||||||
testAnnotationProcessor 'com.google.dagger:dagger-compiler:2.9'
|
testAnnotationProcessor 'com.google.dagger:dagger-compiler:2.9'
|
||||||
testAnnotationProcessor 'com.jakewharton:butterknife-compiler:8.6.1-SNAPSHOT'
|
testAnnotationProcessor 'com.jakewharton:butterknife-compiler:8.6.1-SNAPSHOT'
|
||||||
@@ -140,4 +145,4 @@ task coverageReport(type: JacocoReport) {
|
|||||||
sourceDirectories = files(androidSrc)
|
sourceDirectories = files(androidSrc)
|
||||||
classDirectories = files(fileTree(dir: androidClasses, excludes: excludes))
|
classDirectories = files(fileTree(dir: androidClasses, excludes: excludes))
|
||||||
executionData = files(jvmExecData, connectedExecData)
|
executionData = files(jvmExecData, connectedExecData)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
~ Copyright (C) 2016 Álinson Santos Xavier <isoron@gmail.com>
|
|
||||||
~
|
|
||||||
~ This file is part of Loop Habit Tracker.
|
|
||||||
~
|
|
||||||
~ Loop Habit Tracker is free software: you can redistribute it and/or modify
|
|
||||||
~ it under the terms of the GNU General Public License as published by the
|
|
||||||
~ Free Software Foundation, either version 3 of the License, or (at your
|
|
||||||
~ option) any later version.
|
|
||||||
~
|
|
||||||
~ Loop Habit Tracker is distributed in the hope that it will be useful, but
|
|
||||||
~ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
~ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
||||||
~ more details.
|
|
||||||
~
|
|
||||||
~ You should have received a copy of the GNU General Public License along
|
|
||||||
~ with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
<manifest
|
|
||||||
package="org.isoron.uhabits"
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
|
|
||||||
<instrumentation>
|
|
||||||
<meta-data android:name="notPackage" android:value="net.bytebuddy"/>
|
|
||||||
</instrumentation>
|
|
||||||
</manifest>
|
|
||||||
Reference in New Issue
Block a user