Skip to content

Commit aa2d3bb

Browse files
authored
task/HW-54230 renamed ui (#67)
HW-54223 multi module project
1 parent 6f7eed9 commit aa2d3bb

File tree

232 files changed

+734
-311
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

232 files changed

+734
-311
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ local.properties
1616
*.log
1717

1818
# Android Studio captures folder
19-
captures/
19+
captures/
20+
21+
22+
*.exec
23+
24+
*.hprof

android-library.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ task sourcesJar(type: Jar) {
5555
}
5656

5757
dependencies {
58-
implementation "com.google.android.material:material:$androidMaterialVersion"
59-
implementation "com.hyperwallet.android:core-sdk:$hyperwalletCoreVersion"
6058

59+
api "com.hyperwallet.android:core-sdk:$hyperwalletCoreVersion"
60+
implementation "com.google.android.material:material:$androidMaterialVersion"
6161
implementation "androidx.test.espresso:espresso-idling-resource:$espressoVersion"
6262

6363
androidTestImplementation "androidx.test.ext:junit:$extJunitVerson"
File renamed without changes.
File renamed without changes.
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
apply plugin: 'jacoco'
2+
3+
final def jacocoVersion = "0.8.2"
4+
5+
jacoco {
6+
toolVersion = jacocoVersion
7+
}
8+
9+
android {
10+
testOptions {
11+
unitTests {
12+
includeAndroidResources = true
13+
returnDefaultValues = true
14+
}
15+
unitTests.all {
16+
jacoco {
17+
includeNoLocationClasses = true
18+
}
19+
}
20+
}
21+
}
22+
23+
def fileFilter = ['**/BuildConfig.*',
24+
'**/com/hyperwallet/android/ui/common/repository/EspressoIdlingResource.*',
25+
'**/com/hyperwallet/android/ui/common/repository/Event.*'
26+
]
27+
28+
def debugClassPaths = [
29+
'**/intermediates/javac/debug/*/classes/**'
30+
]
31+
32+
final def coverageSourceDirs = ["$project.projectDir/src/main/java/*"]
33+
34+
task jacocoTestReport(type: JacocoReport, dependsOn: 'testDebugUnitTest') {
35+
36+
group = 'Reporting'
37+
description = 'Generate Jacoco coverage reports.'
38+
39+
reports {
40+
html {
41+
enabled = true
42+
destination file("$buildDir/reports/jacoco")
43+
}
44+
}
45+
46+
classDirectories = fileTree(
47+
dir: "${buildDir}",
48+
includes: debugClassPaths,
49+
excludes: fileFilter
50+
)
51+
52+
additionalSourceDirs = files(coverageSourceDirs)
53+
sourceDirectories = files(coverageSourceDirs)
54+
executionData = files("${buildDir}/jacoco/testDebugUnitTest.exec")
55+
}
56+
57+
task jacocoTestCoverageVerification(type: JacocoCoverageVerification, dependsOn: 'jacocoTestReport') {
58+
59+
group = 'Verification'
60+
classDirectories = fileTree(
61+
dir: "${buildDir}",
62+
includes: debugClassPaths,
63+
excludes: fileFilter
64+
)
65+
additionalSourceDirs = files(coverageSourceDirs)
66+
sourceDirectories = files(coverageSourceDirs)
67+
executionData = files("${buildDir}/jacoco/testDebugUnitTest.exec")
68+
69+
violationRules {
70+
setFailOnViolation(true)
71+
72+
rule {
73+
element = 'CLASS'
74+
limit {
75+
value = 'COVEREDRATIO'
76+
counter = 'BRANCH'
77+
minimum = 0.65
78+
}
79+
}
80+
}
81+
}
82+
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<manifest package="com.hyperwallet.android.common" />

common/src/main/java/com/hyperwallet/android/ui/common/util/EspressoIdlingResource.java renamed to commonrepository/src/main/java/com/hyperwallet/android/ui/common/repository/EspressoIdlingResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.hyperwallet.android.ui.common.util;
1+
package com.hyperwallet.android.ui.common.repository;
22

33
import androidx.test.espresso.IdlingResource;
44
import androidx.test.espresso.idling.CountingIdlingResource;

common/src/main/java/com/hyperwallet/android/ui/common/viewmodel/Event.java renamed to commonrepository/src/main/java/com/hyperwallet/android/ui/common/repository/Event.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1515
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1616
*/
17-
package com.hyperwallet.android.ui.common.viewmodel;
17+
package com.hyperwallet.android.ui.common.repository;
1818

1919
import androidx.annotation.NonNull;
2020
import androidx.annotation.Nullable;

0 commit comments

Comments
 (0)