2020-09-25 16:46:01 +02:00
|
|
|
plugins {
|
|
|
|
id "com.cookpad.android.plugin.license-tools" version "1.2.2"
|
|
|
|
}
|
|
|
|
|
2020-02-28 00:36:26 +01:00
|
|
|
apply plugin: 'com.android.application'
|
2020-02-28 17:08:54 +01:00
|
|
|
apply plugin: 'kotlin-android'
|
2021-01-12 17:16:37 +01:00
|
|
|
apply plugin: 'kotlin-kapt'
|
2020-02-28 17:08:54 +01:00
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
apply plugin: 'jacoco'
|
2020-02-28 00:36:26 +01:00
|
|
|
|
2020-09-25 16:46:01 +02:00
|
|
|
|
2020-02-28 00:36:26 +01:00
|
|
|
android {
|
2020-03-07 18:13:26 +01:00
|
|
|
|
2020-11-06 14:49:49 +01:00
|
|
|
compileSdkVersion 30
|
2021-01-12 17:16:37 +01:00
|
|
|
buildToolsVersion '30.0.3'
|
2020-03-07 18:13:26 +01:00
|
|
|
compileOptions {
|
2020-03-04 18:04:55 +01:00
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2020-03-08 12:55:48 +01:00
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
2020-11-27 17:02:52 +01:00
|
|
|
freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn"]
|
2020-03-08 12:55:48 +01:00
|
|
|
}
|
2020-02-28 00:36:26 +01:00
|
|
|
defaultConfig {
|
2020-02-28 17:08:54 +01:00
|
|
|
applicationId "com.h.pixeldroid"
|
|
|
|
minSdkVersion 23
|
2020-11-06 14:49:49 +01:00
|
|
|
targetSdkVersion 30
|
2020-12-26 12:10:54 +01:00
|
|
|
versionCode 8
|
|
|
|
versionName "1.0.alpha7"
|
2020-02-28 00:36:26 +01:00
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2020-03-07 18:13:26 +01:00
|
|
|
testInstrumentationRunnerArguments clearPackageData: 'true'
|
2020-02-28 00:36:26 +01:00
|
|
|
}
|
2020-05-15 09:23:06 +02:00
|
|
|
lintOptions{
|
|
|
|
disable 'MissingTranslation'
|
|
|
|
}
|
2020-03-07 11:00:24 +01:00
|
|
|
sourceSets {
|
|
|
|
main.java.srcDirs += 'src/main/java'
|
|
|
|
test.java.srcDirs += 'src/test/java'
|
|
|
|
androidTest.java.srcDirs += 'src/androidTest/java'
|
2020-02-28 00:36:26 +01:00
|
|
|
}
|
|
|
|
|
2020-05-08 10:53:56 +02:00
|
|
|
|
|
|
|
|
2020-02-28 00:36:26 +01:00
|
|
|
buildTypes {
|
2020-02-28 17:08:54 +01:00
|
|
|
debug {
|
|
|
|
testCoverageEnabled true
|
|
|
|
}
|
2020-02-28 00:36:26 +01:00
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
2020-03-07 11:00:24 +01:00
|
|
|
testOptions {
|
|
|
|
animationsDisabled true
|
2020-03-07 18:13:26 +01:00
|
|
|
|
2020-03-07 11:00:24 +01:00
|
|
|
}
|
2020-11-27 17:02:52 +01:00
|
|
|
buildFeatures {
|
|
|
|
viewBinding = true
|
2021-01-12 17:16:37 +01:00
|
|
|
dataBinding = true
|
2020-11-27 17:02:52 +01:00
|
|
|
}
|
2020-02-28 00:36:26 +01:00
|
|
|
|
2020-03-12 23:27:40 +01:00
|
|
|
apply plugin: 'kotlin-kapt'
|
2020-02-28 00:36:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
2020-02-28 17:08:54 +01:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
2020-09-25 16:46:01 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* AndroidX dependencies:
|
|
|
|
*/
|
2020-08-22 22:34:21 +02:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
2020-10-04 23:27:06 +02:00
|
|
|
implementation 'androidx.core:core-ktx:1.3.2'
|
2020-10-31 11:21:56 +01:00
|
|
|
implementation 'androidx.preference:preference-ktx:1.1.1'
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
2020-12-08 18:12:00 +01:00
|
|
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.2'
|
|
|
|
implementation 'androidx.navigation:navigation-ui-ktx:2.3.2'
|
|
|
|
implementation "androidx.browser:browser:1.3.0"
|
2020-09-25 16:46:01 +02:00
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
2020-12-08 18:12:00 +01:00
|
|
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.2'
|
|
|
|
implementation 'androidx.navigation:navigation-ui-ktx:2.3.2'
|
2020-12-19 21:12:56 +01:00
|
|
|
implementation 'androidx.paging:paging-runtime-ktx:3.0.0-alpha11'
|
2020-09-25 16:46:01 +02:00
|
|
|
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'
|
|
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-savedstate:2.2.0'
|
|
|
|
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0"
|
2021-01-13 01:28:08 +01:00
|
|
|
implementation "androidx.lifecycle:lifecycle-common-java8:2.2.0"
|
2020-09-25 16:46:01 +02:00
|
|
|
implementation "androidx.annotation:annotation:1.1.0"
|
2020-10-04 23:27:06 +02:00
|
|
|
implementation 'androidx.gridlayout:gridlayout:1.0.0'
|
2020-09-25 16:46:01 +02:00
|
|
|
|
|
|
|
// Use the most recent version of CameraX
|
2020-12-19 21:12:56 +01:00
|
|
|
def cameraX_version = '1.0.0-rc01'
|
|
|
|
implementation "androidx.camera:camera-core:${cameraX_version}"
|
|
|
|
implementation "androidx.camera:camera-camera2:${cameraX_version}"
|
2020-09-25 16:46:01 +02:00
|
|
|
// CameraX Lifecycle library
|
2020-12-19 21:12:56 +01:00
|
|
|
implementation "androidx.camera:camera-lifecycle:$cameraX_version"
|
2020-09-25 16:46:01 +02:00
|
|
|
|
|
|
|
// CameraX View class
|
2020-12-19 21:12:56 +01:00
|
|
|
implementation 'androidx.camera:camera-view:1.0.0-alpha20'
|
2020-03-07 18:13:26 +01:00
|
|
|
|
2020-12-19 21:12:56 +01:00
|
|
|
def room_version = "2.3.0-alpha04"
|
2020-03-12 23:27:40 +01:00
|
|
|
implementation "androidx.room:room-runtime:$room_version"
|
2020-05-14 20:14:41 +02:00
|
|
|
kapt "androidx.room:room-compiler:$room_version"
|
|
|
|
implementation "androidx.room:room-ktx:$room_version"
|
|
|
|
|
2020-09-25 16:46:01 +02:00
|
|
|
/**
|
|
|
|
* End of AndroidX section
|
|
|
|
* ----------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
implementation 'com.google.android.material:material:1.2.1'
|
|
|
|
|
|
|
|
//Dagger (dependency injection)
|
2020-12-08 18:12:00 +01:00
|
|
|
implementation 'com.google.dagger:dagger-android:2.30.1'
|
|
|
|
implementation 'com.google.dagger:dagger-android-support:2.30.1'
|
2020-09-25 16:46:01 +02:00
|
|
|
// if you use the support libraries
|
2020-12-08 18:12:00 +01:00
|
|
|
kapt 'com.google.dagger:dagger-android-processor:2.30.1'
|
|
|
|
kapt 'com.google.dagger:dagger-compiler:2.30.1'
|
2020-09-25 16:46:01 +02:00
|
|
|
|
2020-10-31 11:21:56 +01:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
|
2020-09-25 16:46:01 +02:00
|
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
|
|
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
|
2020-12-08 18:12:00 +01:00
|
|
|
implementation 'io.reactivex.rxjava2:rxjava:2.2.20'
|
2020-09-25 16:46:01 +02:00
|
|
|
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
|
|
|
implementation 'com.github.connyduck:sparkbutton:4.0.0'
|
|
|
|
|
2020-03-04 18:04:55 +01:00
|
|
|
|
2020-05-08 10:53:56 +02:00
|
|
|
implementation 'info.androidhive:imagefilters:1.0.7'
|
2020-12-08 18:12:00 +01:00
|
|
|
implementation 'com.github.yalantis:ucrop:2.2.6-native'
|
2020-05-08 10:53:56 +02:00
|
|
|
|
2020-03-08 12:54:18 +01:00
|
|
|
implementation("com.github.bumptech.glide:glide:4.11.0") {
|
2020-03-05 21:59:40 +01:00
|
|
|
exclude group: "com.android.support"
|
|
|
|
}
|
2020-04-09 22:36:59 +02:00
|
|
|
|
2020-03-07 19:45:27 +01:00
|
|
|
implementation "com.github.bumptech.glide:okhttp-integration:4.11.0"
|
Commenting & seeing comments on a post ( issues: #37 #77 ) (#87)
Comment and like buttons added + a few UI tweaks
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* layout changes
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* fixed merging errors
* trying my best to merge
* removed drawable definition in activity_post.xml
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* rebase on other branch
* moved the feed to the home page
* Add tests
* delete test for now
* Adapt test to changes (no more profile from drawer)
* Add unit test for api
* Add test for profile, refactor to allow testing, add exception to security policy to allow tests
* Adapt test to new situation
* Fix typo due to change
* refactor somewhat
* added a feed test
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* fixed merging errors
* trying my best to merge
* removed drawable definition in activity_post.xml
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* refactoring
* refactoring
* removed wrong annotation in unit test
* WIP posts
* WIP posts
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* layout changes
* moved a test file
* refactoring
* refactoring
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* fixed merging errors
* trying my best to merge
* removed drawable definition in activity_post.xml
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* rebase on other branch
* moved the feed to the home page
* added a feed test
* added a working feed test
* fixed broken test
* merged with master
* added a max height for images and made profile pictures round
* Added a default image for the post
* created a PostActivity to look a single posts
* fixed buggy postActivity
* Complete overhall of the feed UI
* removed test that didn't please Travis
* removed legacy test
* changed feedAdapter init location (outside of network callback)
* changed the feed from public timeline to home timeline
* Refactored myProfile page
* Converted profile picture to round image
* restored feed test
* I can like a post, but unlike is still a WIP
* Liking kind of works now and added tests
* fixed an error, now we can unlike as well
* fixed travis constraint error
* Display user's posts on profile page
* moved test to Mock server tests
* fixed test
* last resort debugging
* Changed fixed size of profile posts
* last resort debugging
* last resort debugging
* last resort debugging
* made post_activity profilepic round
* Total refactor of profile posts
* still have a weird bug with the comments: input is always null (WIP)
* still trying to fix coments
* removed annoying side margins in the home feed
* trying to fix comments
* fixed null comment
* converted all posts back to statuses and got rid of post
* Refactored recycler view
* Merged with my-profile
* Posts displayed on profile page
* Added links to profile activity where needed
* fixed comment posting
* finished implementing comments, but api is buggy so none are visible
* removed useless space in profile page
* fixed ci config bug
* trying to trigger ci hook (github was down last time)
* updated tests with master tests
* added tests for the comments
* added tests for the comments
* added first() matcher to fix comment test
* still trying to fix comment tests' null progress bar
* getting rid of that null progress bar
* added comment test
* fixed merge error
* added like button test
* added more post tests
* took pr coments into account
* added back an old test
* added mockServer response for comment test and fixed comment null pointer bug
* changed notification UI to better separate notifications
* added mockserver response for likes and corrected like toggling error
* added a test for posting comments
* fixed typo in test
* a gift for code climate
* refactored stuff
* fixed broken imports
* comment refactored as xml
Co-authored-by: Matthieu <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
Co-authored-by: mjaillot <marie.jaillot@epfl.ch>
2020-04-11 12:55:06 +02:00
|
|
|
implementation("com.github.bumptech.glide:recyclerview-integration:4.11.0") {
|
2020-03-21 19:46:45 +01:00
|
|
|
// Excludes the support library because it's already included by Glide.
|
|
|
|
transitive = false
|
|
|
|
}
|
2020-05-15 12:10:28 +02:00
|
|
|
kapt 'com.github.bumptech.glide:compiler:4.11.0'
|
2020-03-07 19:45:27 +01:00
|
|
|
|
2020-03-12 22:23:25 +01:00
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
2020-05-19 09:49:34 +02:00
|
|
|
|
2020-12-08 18:12:00 +01:00
|
|
|
implementation "com.mikepenz:materialdrawer:8.1.8"
|
2020-05-19 09:49:34 +02:00
|
|
|
// Add for NavController support
|
2020-10-04 23:27:06 +02:00
|
|
|
implementation "com.mikepenz:materialdrawer-nav:8.1.5"
|
2020-05-19 09:49:34 +02:00
|
|
|
|
|
|
|
//iconics
|
2020-10-04 23:27:06 +02:00
|
|
|
implementation "com.mikepenz:iconics-core:5.0.3"
|
2020-12-08 18:12:00 +01:00
|
|
|
implementation "com.mikepenz:materialdrawer-iconics:8.1.8"
|
2020-10-04 23:27:06 +02:00
|
|
|
implementation "com.mikepenz:iconics-views:5.0.3"
|
2020-05-19 09:49:34 +02:00
|
|
|
implementation 'com.mikepenz:google-material-typeface:3.0.1.4.original-kotlin@aar'
|
|
|
|
|
|
|
|
|
2020-11-27 17:02:52 +01:00
|
|
|
implementation 'com.karumi:dexter:6.2.2'
|
Feature/post creation (#83)
* added perm and features for cameraS, gps and external storage
* added camera activity accessible from main activity
* added button to redirect to camera activity
* implementing callback flow to use camera
* working camera
* added texture view for camera display
* added camera activity
* implemented texture listener
* camera not working, flow done, no feedback implemented
* camera working
* refactored code, still an activity
* added private to internal function, better error function handling
* deleted camera activity
* added camera fragment
* added camera fragment
* refactored camera as fragment
* necessary dependencies for fragment testing
* initial camera fragment test
* corrected access to activity form fragment
* Added state changes and termination
* added lines to test, to test coverage
* Removed unsupported state STARTED state transition
* Added basic tests to test code coverage
* use layout for tests, to trigger permissions requirements
* grant camera permission to app in camera test
* replaced null handlers by proper function getter
* changed layout, added takePictureButton
* using expresso to get code coverage on camea
* take picture flow not finished
* dummy change to camera test to perform new build
* added connection flow before test to reach main activity
* can take a picture and put it to ImageView
* replaced button text with images
* smaller buttons
* test camera fragment buttons
* added orientation handler
* changed icon to make travis happy
* test new espresso config for travis
* removed useless rule
* deleted useless val
* added layout ID's
* moved swipes from Before to Tests, and thread sleep
* stoped swiping, now tests from fragment directly
* start post creation flow
* use Uri when taking photo, can now go back from picture preview
* adjusted test and flow idea
* tests on displayed UI elements for the post creation fragment
* refactor camera fragment into transition new post fragemnt
* finished first phase: get a picture Uri
* fixed lint error found by travis CI
* added global timeout to test
* test the new way of test
* refactor new way of testing
* added in-app camera view and linked everything to the final flow + started API to post
* strugling on the upload media part
* upload image on server implemented
* post upload implemented
* added API call to get max_toot_chars and correct def of a post description
* fixed some tests
* fix tests: clicking on tabs make the app crash because of the camera fragment
* comment problematic chunk of code while samuel tries to fix it
* switch minimumsdk to api 24
* Revert "switch minimumsdk to api 24"
This reverts commit 24ce46dd82038b59732fd958e5e071ded39cd549.
* deactivited live camera for API 23
* tests for post creation fragment UI elements
* remove worthless UI testing and add gallery intent test
* removed camera intent for now
* some refactor
* lint error and more refactor
* more refactor on merge from master
* refactor and test for PostCreationActivity
* Revert "refactor and test for PostCreationActivity"
This reverts commit a0c146bcc545cdc3792df4806e6b0c908bd18747.
* Revert "Revert "refactor and test for PostCreationActivity""
This reverts commit 147a9ed80d5f9c9e3c38b5a977786bfb39eeb1b6.
* permissions correction for test
* updtated test
* fix a test and refactor
* relink correct fragment
* save picture locally
* test post button
* requested changes
* fixed required changes
* Revert "fixed required changes"
This reverts commit 405a9d4d1af05353e30028e60041cc1c97569c1b.
* redo change request
* added /media api response to mockserver
Co-authored-by: Andrea Clement <samuel.dietz@epfl.ch>
2020-04-24 12:44:12 +02:00
|
|
|
|
2020-09-25 16:46:01 +02:00
|
|
|
implementation 'com.github.ligi.tracedroid:lib:3.0'
|
|
|
|
implementation 'com.github.ligi.tracedroid:supportemail:3.0'
|
Feature/post creation (#83)
* added perm and features for cameraS, gps and external storage
* added camera activity accessible from main activity
* added button to redirect to camera activity
* implementing callback flow to use camera
* working camera
* added texture view for camera display
* added camera activity
* implemented texture listener
* camera not working, flow done, no feedback implemented
* camera working
* refactored code, still an activity
* added private to internal function, better error function handling
* deleted camera activity
* added camera fragment
* added camera fragment
* refactored camera as fragment
* necessary dependencies for fragment testing
* initial camera fragment test
* corrected access to activity form fragment
* Added state changes and termination
* added lines to test, to test coverage
* Removed unsupported state STARTED state transition
* Added basic tests to test code coverage
* use layout for tests, to trigger permissions requirements
* grant camera permission to app in camera test
* replaced null handlers by proper function getter
* changed layout, added takePictureButton
* using expresso to get code coverage on camea
* take picture flow not finished
* dummy change to camera test to perform new build
* added connection flow before test to reach main activity
* can take a picture and put it to ImageView
* replaced button text with images
* smaller buttons
* test camera fragment buttons
* added orientation handler
* changed icon to make travis happy
* test new espresso config for travis
* removed useless rule
* deleted useless val
* added layout ID's
* moved swipes from Before to Tests, and thread sleep
* stoped swiping, now tests from fragment directly
* start post creation flow
* use Uri when taking photo, can now go back from picture preview
* adjusted test and flow idea
* tests on displayed UI elements for the post creation fragment
* refactor camera fragment into transition new post fragemnt
* finished first phase: get a picture Uri
* fixed lint error found by travis CI
* added global timeout to test
* test the new way of test
* refactor new way of testing
* added in-app camera view and linked everything to the final flow + started API to post
* strugling on the upload media part
* upload image on server implemented
* post upload implemented
* added API call to get max_toot_chars and correct def of a post description
* fixed some tests
* fix tests: clicking on tabs make the app crash because of the camera fragment
* comment problematic chunk of code while samuel tries to fix it
* switch minimumsdk to api 24
* Revert "switch minimumsdk to api 24"
This reverts commit 24ce46dd82038b59732fd958e5e071ded39cd549.
* deactivited live camera for API 23
* tests for post creation fragment UI elements
* remove worthless UI testing and add gallery intent test
* removed camera intent for now
* some refactor
* lint error and more refactor
* more refactor on merge from master
* refactor and test for PostCreationActivity
* Revert "refactor and test for PostCreationActivity"
This reverts commit a0c146bcc545cdc3792df4806e6b0c908bd18747.
* Revert "Revert "refactor and test for PostCreationActivity""
This reverts commit 147a9ed80d5f9c9e3c38b5a977786bfb39eeb1b6.
* permissions correction for test
* updtated test
* fix a test and refactor
* relink correct fragment
* save picture locally
* test post button
* requested changes
* fixed required changes
* Revert "fixed required changes"
This reverts commit 405a9d4d1af05353e30028e60041cc1c97569c1b.
* redo change request
* added /media api response to mockserver
Co-authored-by: Andrea Clement <samuel.dietz@epfl.ch>
2020-04-24 12:44:12 +02:00
|
|
|
|
2021-01-12 17:16:37 +01:00
|
|
|
implementation 'me.relex:circleindicator:2.1.4'
|
2020-05-15 12:10:28 +02:00
|
|
|
|
2020-09-25 16:46:01 +02:00
|
|
|
/**
|
|
|
|
* Not in release, so not mentioned in licenses list
|
|
|
|
*/
|
2020-05-15 12:10:28 +02:00
|
|
|
|
2020-11-08 20:24:38 +01:00
|
|
|
// debugImplementation required vs testImplementation: https://issuetracker.google.com/issues/128612536
|
|
|
|
debugImplementation("androidx.fragment:fragment-testing:1.2.5") {
|
|
|
|
exclude group:'androidx.test', module:'monitor'
|
|
|
|
}
|
2020-05-15 12:10:28 +02:00
|
|
|
|
2020-10-31 11:21:56 +01:00
|
|
|
testImplementation 'com.github.tomakehurst:wiremock-jre8:2.27.2'
|
2020-09-25 16:46:01 +02:00
|
|
|
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
|
2020-10-31 11:21:56 +01:00
|
|
|
testImplementation 'junit:junit:4.13.1'
|
2020-09-25 16:46:01 +02:00
|
|
|
testImplementation "androidx.room:room-testing:$room_version"
|
2020-09-10 22:47:04 +02:00
|
|
|
|
2020-05-14 20:14:41 +02:00
|
|
|
|
|
|
|
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
|
2020-09-25 16:46:01 +02:00
|
|
|
androidTestImplementation 'androidx.test:runner:1.3.0'
|
|
|
|
androidTestImplementation 'androidx.test:rules:1.3.0'
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
|
|
androidTestImplementation 'androidx.test:runner:1.3.0'
|
|
|
|
androidTestImplementation 'androidx.test:rules:1.3.0'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.3.0'
|
|
|
|
androidTestImplementation 'com.android.support.test.espresso:espresso-contrib:3.0.2'
|
2020-11-08 20:24:38 +01:00
|
|
|
androidTestImplementation 'com.squareup.okhttp3:mockwebserver:4.9.0'
|
2020-05-14 20:14:41 +02:00
|
|
|
|
2020-03-07 18:13:26 +01:00
|
|
|
}
|
2020-02-28 17:08:54 +01:00
|
|
|
|
|
|
|
tasks.withType(Test) {
|
|
|
|
jacoco.includeNoLocationClasses = true
|
|
|
|
jacoco.excludes = ['jdk.internal.*']
|
|
|
|
}
|
|
|
|
|
2020-04-09 22:36:59 +02:00
|
|
|
|
2020-08-22 22:34:21 +02:00
|
|
|
task jacocoTestReport(type: JacocoReport, dependsOn: ['connectedDebugAndroidTest', 'testDebugUnitTest', 'createDebugCoverageReport']) {
|
2020-02-28 17:08:54 +01:00
|
|
|
|
|
|
|
reports {
|
|
|
|
xml.enabled = true
|
|
|
|
html.enabled = true
|
|
|
|
}
|
|
|
|
|
|
|
|
def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']
|
2020-02-29 14:09:20 +01:00
|
|
|
def kotlinDebugTree = fileTree(dir: "$project.buildDir/tmp/kotlin-classes/debug", excludes: fileFilter)
|
2020-03-04 18:04:55 +01:00
|
|
|
def mainSrc = "$project.projectDir/src/main/java"
|
2020-03-06 18:24:20 +01:00
|
|
|
getSourceDirectories().from(files([mainSrc]))
|
|
|
|
getClassDirectories().from(files([kotlinDebugTree]))
|
|
|
|
getExecutionData().from(fileTree(dir: project.buildDir, includes: [
|
|
|
|
|
|
|
|
'outputs/code_coverage/debugAndroidTest/connected/*coverage.ec',
|
|
|
|
|
|
|
|
'jacoco/testDebugUnitTest.exec'
|
|
|
|
|
|
|
|
]))
|
2020-08-22 22:34:21 +02:00
|
|
|
}
|