web


git clone https://radroots.dev/git/web.git
Log | Files | Refs | Submodules | README | LICENSE

commit cbad39f67756798b77479ff032f90ae9b0e19479
parent 486e505681dedfbc314783b1ad4b55d11f313483
Author: triesap <137732411+triesap@users.noreply.github.com>
Date:   Wed, 28 Aug 2024 08:57:29 +0000

Add wifi test methods (non-functional)

Diffstat:
Mandroid/app/capacitor.build.gradle | 1+
Mandroid/capacitor.settings.gradle | 3+++
Mios/App/App.xcodeproj/project.pbxproj | 4++--
Mios/App/Podfile | 1+
Mios/App/Podfile.lock | 8+++++++-
Mpackage.json | 1+
Msrc/routes/(app)/+page.svelte | 30+++++++++++++++++++++++++++++-
Msrc/routes/(conf)/+layout.ts | 1+
8 files changed, 45 insertions(+), 4 deletions(-)

diff --git a/android/app/capacitor.build.gradle b/android/app/capacitor.build.gradle @@ -17,6 +17,7 @@ dependencies { implementation project(':capacitor-share') implementation project(':radroots-capacitor-sqlite') implementation project(':radroots-capacitor-secure-storage') + implementation project(':radroots-capacitor-wifi') } diff --git a/android/capacitor.settings.gradle b/android/capacitor.settings.gradle @@ -25,3 +25,6 @@ project(':radroots-capacitor-sqlite').projectDir = new File('../../../packages/c include ':radroots-capacitor-secure-storage' project(':radroots-capacitor-secure-storage').projectDir = new File('../../../packages/capacitor-secure-storage/android') + +include ':radroots-capacitor-wifi' +project(':radroots-capacitor-wifi').projectDir = new File('../../../packages/capacitor-wifi/android') diff --git a/ios/App/App.xcodeproj/project.pbxproj b/ios/App/App.xcodeproj/project.pbxproj @@ -348,7 +348,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 11; + CURRENT_PROJECT_VERSION = 13; DEVELOPMENT_TEAM = AR84X5Z9HU; INFOPLIST_FILE = App/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = Radroots; @@ -370,7 +370,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 11; + CURRENT_PROJECT_VERSION = 13; DEVELOPMENT_TEAM = AR84X5Z9HU; INFOPLIST_FILE = App/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = Radroots; diff --git a/ios/App/Podfile b/ios/App/Podfile @@ -19,6 +19,7 @@ def capacitor_pods pod 'CapacitorShare', :path => '../../../../node_modules/.pnpm/@capacitor+share@6.0.2_@capacitor+core@6.1.2/node_modules/@capacitor/share' pod 'RadrootsCapacitorSqlite', :path => '../../../../packages/capacitor-sqlite' pod 'RadrootsCapacitorSecureStorage', :path => '../../../../packages/capacitor-secure-storage' + pod 'RadrootsCapacitorWifi', :path => '../../../../packages/capacitor-wifi' end target 'App' do diff --git a/ios/App/Podfile.lock b/ios/App/Podfile.lock @@ -22,6 +22,8 @@ PODS: - Capacitor - SQLCipher - ZIPFoundation + - RadrootsCapacitorWifi (0.2.20): + - Capacitor - SQLCipher (4.6.1): - SQLCipher/standard (= 4.6.1) - SQLCipher/common (4.6.1) @@ -40,6 +42,7 @@ DEPENDENCIES: - "CapacitorSplashScreen (from `../../../../node_modules/.pnpm/@capacitor+splash-screen@6.0.2_@capacitor+core@6.1.2/node_modules/@capacitor/splash-screen`)" - RadrootsCapacitorSecureStorage (from `../../../../packages/capacitor-secure-storage`) - RadrootsCapacitorSqlite (from `../../../../packages/capacitor-sqlite`) + - RadrootsCapacitorWifi (from `../../../../packages/capacitor-wifi`) SPEC REPOS: trunk: @@ -68,6 +71,8 @@ EXTERNAL SOURCES: :path: "../../../../packages/capacitor-secure-storage" RadrootsCapacitorSqlite: :path: "../../../../packages/capacitor-sqlite" + RadrootsCapacitorWifi: + :path: "../../../../packages/capacitor-wifi" SPEC CHECKSUMS: Capacitor: 679f9673fdf30597493a6362a5d5bf233d46abc2 @@ -81,9 +86,10 @@ SPEC CHECKSUMS: KeychainSwift: 4a71a45c802fd9e73906457c2dcbdbdc06c9419d RadrootsCapacitorSecureStorage: d95a1648c105ddf18a1b0612528e0ce1f77b789e RadrootsCapacitorSqlite: 11b1be8786af151612ee8e058d16f4979c2e3b1c + RadrootsCapacitorWifi: b655736c72ac2ed083635544e6ceddb875c01518 SQLCipher: 77fbe633cd84db04b07876dd50766b4924b57d61 ZIPFoundation: b8c29ea7ae353b309bc810586181fd073cb3312c -PODFILE CHECKSUM: a829fb2b902c48695cd16120dd26106d2580cd4f +PODFILE CHECKSUM: 62474c3d8b4ec1596b1e107cd10b48333aefe54d COCOAPODS: 1.15.2 diff --git a/package.json b/package.json @@ -46,6 +46,7 @@ "@ionic/pwa-elements": "^3.3.0", "@radroots/capacitor-sqlite": "workspace:*", "@radroots/capacitor-secure-storage": "workspace:*", + "@radroots/capacitor-wifi": "workspace:*", "@radroots/client": "workspace:*", "@radroots/jeep-sqlite": "workspace:*", "@radroots/svelte-lib": "workspace:*", diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte @@ -24,9 +24,37 @@ <button class={`button-simple`} onclick={async () => { - // + const res = await cl.wifi.check_permissions(); + await cl.dialog.alert(JSON.stringify(res)); }} > {"test #1"} </button> + <button + class={`button-simple`} + onclick={async () => { + const res = await cl.wifi.request_permissions(); + await cl.dialog.alert(JSON.stringify(res)); + }} + > + {"test #2"} + </button> + <button + class={`button-simple`} + onclick={async () => { + const res = await cl.wifi.scan(); + await cl.dialog.alert(JSON.stringify(res)); + }} + > + {"test #3"} + </button> + <button + class={`button-simple`} + onclick={async () => { + const res = await cl.wifi.current(); + await cl.dialog.alert(JSON.stringify(res)); + }} + > + {"test #3"} + </button> </div> diff --git a/src/routes/(conf)/+layout.ts b/src/routes/(conf)/+layout.ts @@ -17,6 +17,7 @@ export const load: LayoutLoad = async ({ url }: LayoutLoadEvent) => { } } } catch (e) { } finally { + await cl.window.splash_hide(); return {}; }; };