Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
isuPatches committed Apr 26, 2016
0 parents commit 58826f9
Show file tree
Hide file tree
Showing 27 changed files with 1,567 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
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
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
83 changes: 83 additions & 0 deletions app/build.gradle
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'
}
17 changes: 17 additions & 0 deletions app/proguard-rules.pro
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.** { *; }
Loading

0 comments on commit 58826f9

Please sign in to comment.