Created
June 21, 2015 11:29
-
-
Save jaywick/7b2e1a91f3fc6739fb7f to your computer and use it in GitHub Desktop.
Android Studio - Unit Testing - Gradle Files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
android { | |
// ... | |
} | |
dependencies { | |
compile(project(':lib')) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
testCompile 'junit:junit:4.12' | |
testCompile 'org.mockito:mockito-core:1.9.5' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
// ... | |
dependencies { | |
classpath 'com.android.tools.build:gradle:1.2.3' | |
} | |
} | |
allprojects { | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment