Skip to content

Commit

Permalink
Merge pull request #11 from NordicSemiconductor/improvement/nfc
Browse files Browse the repository at this point in the history
Use Wi-Fi permissions library
  • Loading branch information
philips77 committed Jun 17, 2024
2 parents 3840afb + 2363233 commit c5b5f5a
Show file tree
Hide file tree
Showing 19 changed files with 25 additions and 767 deletions.
5 changes: 3 additions & 2 deletions feature/nfc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ dependencies {
implementation(libs.androidx.hilt.navigation.compose)
implementation(libs.androidx.compose.material.iconsExtended)
implementation(libs.androidx.lifecycle.runtime.compose)
// Permissions
implementation(libs.nordic.permissions.nfc)
implementation(libs.nordic.permissions.wifi)
implementation(project(":feature:common"))
implementation(project(":feature:ui"))
api(project(":lib:nfc"))
implementation(libs.nordic.permissions.nfc)
implementation("androidx.compose.material3:material3:1.3.0-beta02")
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ fun AuthenticationMode.toDisplayString(): String = when (this) {
* @return The list of security types supported to display in the dropdown.
*/
fun authListToDisplay(): List<String> {
return WifiAuthTypeBelowTiramisu.entries.map { it.toDisplayString() }
// Removed the security types that are not supported (such as WPA-Enterprise).
return listOf(
"Open",
"Shared",
"WPA-Personal",
"WPA2-Personal",
"WPA/WPA2-Personal",
"WPA3-Personal"
)
}

/**
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit c5b5f5a

Please sign in to comment.