WiFiWizard

所属分类:wifi
开发工具:kotlin
文件大小:0KB
下载次数:0
上传日期:2023-11-15 10:21:38
上 传 者sh-1993
说明:  使用Jetpack Compose的Android项目示例展示了如何以编程方式进行WiFi。
(An example Android project using Jetpack Compose showing how to a WiFi programmatically.)

文件列表:
.idea/ (0, 2023-11-15)
.idea/vcs.xml (180, 2023-11-15)
LICENSE (1072, 2023-11-15)
PrivacyPolicy.md (2054, 2023-11-15)
app/ (0, 2023-11-15)
app/build.gradle.kts (4497, 2023-11-15)
app/proguard-rules.pro (750, 2023-11-15)
app/src/ (0, 2023-11-15)
app/src/androidTest/ (0, 2023-11-15)
app/src/androidTest/java/ (0, 2023-11-15)
app/src/androidTest/java/dev/ (0, 2023-11-15)
app/src/androidTest/java/dev/jamescullimore/ (0, 2023-11-15)
app/src/androidTest/java/dev/jamescullimore/wifiwizard/ (0, 2023-11-15)
app/src/androidTest/java/dev/jamescullimore/wifiwizard/WFiWizardTests.kt (1676, 2023-11-15)
app/src/main/ (0, 2023-11-15)
app/src/main/AndroidManifest.xml (2113, 2023-11-15)
app/src/main/ic_launcher-playstore.png (496131, 2023-11-15)
app/src/main/java/ (0, 2023-11-15)
app/src/main/java/dev/ (0, 2023-11-15)
app/src/main/java/dev/jamescullimore/ (0, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/ (0, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/MainActivity.kt (553, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/WiFiWizardScreen.kt (8585, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/data/ (0, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/data/WiFiWizardUiState.kt (341, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/ui/ (0, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/ui/AdmobBanner.kt (695, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/ui/Dialogs.kt (4181, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/ui/EnterPasswordScreen.kt (8663, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/ui/QrScannerScreen.kt (8338, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/ui/WiFiListScreen.kt (4687, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/ui/WiFiWizardViewModel.kt (5071, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/ui/theme/ (0, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/ui/theme/Color.kt (293, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/ui/theme/Theme.kt (1921, 2023-11-15)
app/src/main/java/dev/jamescullimore/wifiwizard/ui/theme/Type.kt (998, 2023-11-15)
... ...

# WiFiWizard


A coding example of programmatic WiFi connections, QR scanning & advertising.

This demo app showcases the following: - How to connect to a WiFi programmatically and appropriate error handling - How to scan a QR Code using ML Kit - How to show adverts using AdMob The app is done completely in Jetpack Compose with an example espresso UI test. ## Table of Contents - [Introduction](https://github.com/LethalMaus/WiFiWizard/blob/master/#introduction) - [Features](https://github.com/LethalMaus/WiFiWizard/blob/master/#features) - [Getting Started](https://github.com/LethalMaus/WiFiWizard/blob/master/#getting-started) - [Prerequisites](https://github.com/LethalMaus/WiFiWizard/blob/master/#prerequisites) - [Installation](https://github.com/LethalMaus/WiFiWizard/blob/master/#installation) - [Configuration](https://github.com/LethalMaus/WiFiWizard/blob/master/#configuration) - [Contributing](https://github.com/LethalMaus/WiFiWizard/blob/master/#contributing) - [License](https://github.com/LethalMaus/WiFiWizard/blob/master/#license) ## Introduction Connecting to a WiFi programmatically can be a bit of a challenge and some Android 10 kernals are unfortunately not able to handle it correctly. The provided solution should be able to handle all, if not most, Android devices and provides an appropriate error handling and fallback method to maintain a high UX value.

Get it on Google Play

## Features - Connect to a WiFi programmatically - QR code scanning for WiFi details - Fallback methods & error handling - Links to source code & articles - AdMob example - Jetpack Compose example ## Getting Started To get started with WiFiWizard, follow the instructions below. ### Prerequisites - Android Studio (version Giraffe or later) - Git ### Installation 1. Clone the repository: ```bash git clone https://github.com/lethalmaus/WiFiWizard.git ``` 2. Open the project in Android Studio. 3. Sync the project with Gradle files. ## Configuration Before running the instrumented test, you need to add a known SSID & password to the project. In local.properties add `SSID="YOUR_SSID_NAME"` and `PASS="YOUR_SSID_PASSWORD"` and change the values accordingly. Before running the release build you will need to register an account on AdMob and add the appropriate IDs to local.properties. ` ADMOB_ID="ca-app-pub-3940256099942544~3347511713" BANNER_AD="ca-app-pub-3940256099942544/6300978111" REWARD_AD="ca-app-pub-3940256099942544/5224354917" ` ## Contributing Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue in the repository. ## License This project is licensed under the MIT License. Feel free to use, modify, and distribute this code as per the terms of the license.

近期下载者

相关文件


收藏者