| buildscript { |
| repositories { |
| jcenter() |
| } |
| dependencies { |
| classpath 'com.android.tools.build:gradle:2.2.0' |
| } |
| } |
| |
| repositories { |
| jcenter() |
| } |
| |
| apply plugin: 'com.android.application' |
| |
| android { |
| compileSdkVersion 24 |
| buildToolsVersion "24.0.2" |
| |
| defaultConfig { |
| applicationId "org.wordpress.editorexample" |
| minSdkVersion 16 |
| targetSdkVersion 24 |
| versionCode 1 |
| versionName "1.0" |
| } |
| buildTypes { |
| release { |
| minifyEnabled false |
| proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| } |
| } |
| } |
| |
| dependencies { |
| compile project(":WordPressEditor"); |
| |
| // Test libraries |
| testCompile 'junit:junit:4.11' |
| testCompile 'org.mockito:mockito-core:1.10.19' |
| testCompile 'org.robolectric:robolectric:3.0' |
| |
| // Workaround for IDE bug |
| // http://stackoverflow.com/questions/22246183/android-studio-doesnt-recognize-espresso-classes |
| provided 'junit:junit:4.11' |
| provided 'org.mockito:mockito-core:1.10.19' |
| } |
| |
| // |
| // Testing |
| // |
| |
| android.testOptions.unitTests.all { |
| include '**/*Test.class' |
| exclude '**/ApplicationTest.class' |
| } |