-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
isuPatches
committed
Apr 26, 2016
0 parents
commit 58826f9
Showing
27 changed files
with
1,567 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.DS_Store | ||
/build | ||
/captures |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'jacoco' | ||
apply plugin: 'com.getkeepsafe.dexcount' | ||
|
||
def coverageSourceDirs = [ | ||
'../app/src/main/java' | ||
] | ||
|
||
def classDirs = fileTree( | ||
dir: '../app/build/intermediates/classes/debug/com/', | ||
excludes: ['**/R.class', | ||
'**/R$*.class', | ||
'**/*$ViewBinder*.*', | ||
'**/*MembersInjector*.*', | ||
'**/BuildConfig.*', | ||
'**/Manifest*.*', | ||
'**/*$Lambda$*.class', | ||
'**/*Factory*.class', | ||
'**/*$Builder*']) | ||
|
||
task jacocoDebugTestReport(type: JacocoReport, dependsOn: ["connectedDebugAndroidTest"]) { | ||
group = "Reporting" | ||
description = "Generate Jacoco coverage report for debug tests" | ||
classDirectories = classDirs | ||
additionalSourceDirs = files(coverageSourceDirs) | ||
sourceDirectories = files(coverageSourceDirs) | ||
executionData = files(['build/outputs/code-coverage/connected/coverage.ec']) | ||
|
||
onlyIf = { | ||
true | ||
} | ||
|
||
reports { | ||
xml.enabled = true | ||
html.enabled = true | ||
} | ||
} | ||
|
||
dexcount { | ||
format = "tree" | ||
includeClasses = true | ||
includeFieldCount = true | ||
includeTotalMethodCount = true | ||
orderByMethodCount = true | ||
verbose = false | ||
} | ||
|
||
android { | ||
compileSdkVersion 23 | ||
buildToolsVersion "23.0.2" | ||
|
||
defaultConfig { | ||
minSdkVersion 16 | ||
targetSdkVersion 23 | ||
versionCode 1 | ||
versionName "1.0.0" | ||
} | ||
|
||
buildTypes { | ||
debug { | ||
testCoverageEnabled true | ||
minifyEnabled true | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
|
||
release { | ||
minifyEnabled true | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
compile 'com.android.support:appcompat-v7:23.3.0' | ||
|
||
androidTestCompile 'org.mockito:mockito-core:1.10.19' | ||
androidTestCompile 'com.google.dexmaker:dexmaker:1.2' | ||
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2' | ||
androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.5.4' | ||
|
||
testCompile 'junit:junit:4.12' | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
-keepattributes SourceFile, LineNumberTable | ||
-keepattributes ** | ||
-keepattributes *Annotation* | ||
-keepattributes Signature | ||
-keepattributes Exceptions | ||
|
||
-dontobfuscate | ||
-dontpreverify | ||
-dontoptimize | ||
|
||
-dontskipnonpubliclibraryclassmembers | ||
-dontskipnonpubliclibraryclasses | ||
-useuniqueclassmembernames | ||
|
||
-verbose | ||
|
||
-keep class com.metova.** { *; } |
Oops, something went wrong.