Skip to content

Commit

Permalink
Fix failling test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rkareko committed Aug 19, 2024
1 parent f425ee8 commit e2a6efa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ class WifiDirectDataSharingStrategyTest : RobolectricTest() {
every {
context.checkPermission(android.Manifest.permission.ACCESS_FINE_LOCATION, any(), any())
} returns PackageManager.PERMISSION_GRANTED
every {
context.checkPermission(android.Manifest.permission.NEARBY_WIFI_DEVICES, any(), any())
} returns PackageManager.PERMISSION_GRANTED
every { wifiP2pManager.discoverPeers(any(), any()) } just runs
ReflectionHelpers.callInstanceMethod<WifiDirectDataSharingStrategy>(
wifiDirectDataSharingStrategy,
Expand Down
6 changes: 3 additions & 3 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = JavaVersion.VERSION_17
}
buildFeatures {
viewBinding = true
Expand Down

0 comments on commit e2a6efa

Please sign in to comment.