diff --git a/app/build.gradle b/app/build.gradle index 458f7d8..4e7acab 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -58,15 +58,11 @@ dependencies { implementation 'androidx.core:core-ktx:1.7.0' implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1' implementation 'androidx.activity:activity-compose:1.3.1' - implementation "androidx.compose.ui:ui:$compose_ui_version" - implementation "androidx.compose.ui:ui-tooling-preview:$compose_ui_version" + implementation "androidx.compose.ui:ui:$compose_version" + implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" implementation 'androidx.compose.material:material:1.2.0' - testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test.ext:junit:1.1.5' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' - androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_ui_version" - debugImplementation "androidx.compose.ui:ui-tooling:$compose_ui_version" - debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_ui_version" + + debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version" // ViewModel implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1' @@ -92,6 +88,25 @@ dependencies { implementation 'androidx.navigation:navigation-ui-ktx:2.5.3' implementation 'androidx.navigation:navigation-compose:2.5.3' implementation 'androidx.hilt:hilt-navigation-compose:1.0.0' + + // JUnit + testImplementation 'junit:junit:4.13.2' + androidTestImplementation 'androidx.test.ext:junit:1.1.5' + + // Mocking + testImplementation 'org.mockito.kotlin:mockito-kotlin:3.2.0' + + // Networking + implementation 'com.squareup.retrofit2:retrofit:2.9.0' + implementation 'com.squareup.retrofit2:converter-gson:2.9.0' + implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1' + testImplementation 'androidx.arch.core:core-testing:2.1.0' + + // GUI testing + androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' + androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version" + debugImplementation "androidx.compose.ui:ui-tooling:$compose_version" + } // Allow references to generate code @@ -116,4 +131,4 @@ protobuf { } } } -} \ No newline at end of file +} diff --git a/build.gradle b/build.gradle index d1f6999..e0083ef 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,10 @@ buildscript { ext { compose_ui_version = '1.2.0' + compose_version = '1.1.1' + coreTestingVersion = '2.1.0' + espressoVersion = '3.4.0' + kotlinVersion = '1.6.10' } }// Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { @@ -10,4 +14,4 @@ plugins { // Hilt id 'com.google.dagger.hilt.android' version '2.44' apply false -} \ No newline at end of file +}