File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
androidTest/java/com/google/maps/android/compose Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1414
1515package com.google.maps.android.compose
1616
17+ import androidx.activity.ComponentActivity
1718import androidx.compose.foundation.layout.fillMaxSize
1819import androidx.compose.runtime.Composable
1920import androidx.compose.ui.Modifier
2021import androidx.compose.ui.test.assertIsDisplayed
2122import androidx.compose.ui.test.junit4.createAndroidComposeRule
23+ import androidx.compose.ui.test.junit4.createComposeRule
2224import androidx.compose.ui.test.onNodeWithTag
2325import androidx.compose.ui.test.onNodeWithText
2426import androidx.compose.ui.test.performClick
@@ -36,7 +38,7 @@ import java.util.concurrent.TimeUnit
3638
3739class GoogleMapViewTests {
3840 @get:Rule
39- val composeTestRule = createAndroidComposeRule< MapSampleActivity > ()
41+ val composeTestRule = createComposeRule ()
4042
4143 private val startingZoom = 10f
4244 private val startingPosition = LatLng (1.23 , 4.56 )
Original file line number Diff line number Diff line change 4141 </intent-filter >
4242 </activity >
4343
44+ <!-- Used by createComponentActivity() for unit testing -->
45+ <activity android : name =" androidx.activity.ComponentActivity" />
46+
4447 </application >
4548
4649</manifest >
Original file line number Diff line number Diff line change 11// Top-level build file where you can add configuration options common to all sub-projects/modules.
22buildscript {
3- ext. kotlin_version = ' 1.6.10 '
4- ext. compose_version = ' 1.2.0-alpha03 '
3+ ext. kotlin_version = ' 1.6.21 '
4+ ext. compose_version = ' 1.2.0-beta02 '
55 ext. androidx_test_version = ' 1.4.0'
66 repositories {
77 google()
88 mavenCentral()
99 }
1010 dependencies {
1111 classpath " com.android.tools.build:gradle:7.0.4"
12- classpath " com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:2.0.0 "
12+ classpath " com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:2.0.1 "
1313 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
1414 classpath ' org.jetbrains.dokka:dokka-gradle-plugin:1.5.0'
1515 classpath ' com.hiya:jacoco-android:0.2'
You can’t perform that action at this time.
0 commit comments