Skip to content

Commit 9606089

Browse files
FabianLars-crabnebulaFabianLarsBrendonovichnaman-crabnebulalucasfernog-crabnebula
authored
feat: Add geolocation and haptics plugins (#1599)
* init geolocation plugin * ios impl (w/o js api) * generate ts api * use newer tauri commit * add temporary postinstall * include src in files * guest-js * just ship dist-js for now * fix watcher * fix android compile error * fix android build for real * fix heading type * initial getCurrentPosition android impl (wip) * prevent panics if errors (strings) are sent over the channel * Add android watchPosition implementation * init haptics plugin (android) * ios and new apis (ANDROID IS LIKELY BROKEN - MAY NOT EVEN COMPILE) * use tauri-specta that accounts for raw fn arg idents * add complete android support (it's not working great due to random soft-/hardware support) * fix(haptics): Fix the NotificationFeedbackType::Success and Version (#1) * Fix success feedback and version * Apply suggestions from code review * Update package.json --------- Co-authored-by: Fabian-Lars <[email protected]> * android: improve permission callback handling * keep track of ongoing perms requests * rebuild * license headers * rm sqlite feat * fmt * what diff u talkin bout? * ignore dist-js again * fix audits * dedupe api.js * clippy * changefiles * readmes * clean up todos * rm dsstore * rm wrong feats * mirror * covector * rebuild * ios requires the wry feature * lint * update lock --------- Co-authored-by: fabianlars <[email protected]> Co-authored-by: Brendan Allan <[email protected]> Co-authored-by: Naman Garg <[email protected]> Co-authored-by: Lucas Nogueira <[email protected]>
1 parent 34df132 commit 9606089

File tree

102 files changed

+4896
-52
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+4896
-52
lines changed

.changes/config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,14 @@
174174
"path": "./plugins/dialog",
175175
"manager": "javascript"
176176
},
177+
"geolocation": {
178+
"path": "./plugins/geolocation",
179+
"manager": "rust"
180+
},
181+
"geolocation-js": {
182+
"path": "./plugins/geolocation",
183+
"manager": "javascript"
184+
},
177185
"global-shortcut": {
178186
"path": "./plugins/global-shortcut",
179187
"manager": "rust"
@@ -182,6 +190,14 @@
182190
"path": "./plugins/global-shortcut",
183191
"manager": "javascript"
184192
},
193+
"haptics": {
194+
"path": "./plugins/haptics",
195+
"manager": "rust"
196+
},
197+
"haptics-js": {
198+
"path": "./plugins/haptics",
199+
"manager": "javascript"
200+
},
185201
"http": {
186202
"path": "./plugins/http",
187203
"manager": "rust",

.changes/geolocation-release.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"geolocation": major
3+
"geolocation-js": major
4+
---
5+
6+
Initial release.

.changes/haptics-release.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"haptics": major
3+
"haptics-js": major
4+
---
5+
6+
Initial release.

.github/sponsors/rescue.png

7.88 KB
Loading

.github/workflows/check-generated-files.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,18 @@ jobs:
4949
- .github/workflows/check-generated-files.yml
5050
- plugins/fs/guest-js/**
5151
- plugins/fs/src/api-iife.js
52+
geolocation:
53+
- .github/workflows/check-generated-files.yml
54+
- plugins/geolocation/guest-js/**
55+
- plugins/geolocation/src/api-iife.js
5256
global-shortcut:
5357
- .github/workflows/check-generated-files.yml
5458
- plugins/global-shortcut/guest-js/**
5559
- plugins/global-shortcut/src/api-iife.js
60+
haptics:
61+
- .github/workflows/check-generated-files.yml
62+
- plugins/haptics/guest-js/**
63+
- plugins/haptics/src/api-iife.js
5664
http:
5765
- .github/workflows/check-generated-files.yml
5866
- plugins/http/guest-js/**

.github/workflows/lint-rust.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,15 @@ jobs:
6363
tauri-plugin-fs:
6464
- .github/workflows/lint-rust.yml
6565
- plugins/fs/**
66+
tauri-plugin-geolocation:
67+
- .github/workflows/lint-rust.yml
68+
- plugins/geolocation/**
6669
tauri-plugin-global-shortcut:
6770
- .github/workflows/lint-rust.yml
6871
- plugins/global-shortcut/**
72+
tauri-plugin-haptics:
73+
- .github/workflows/lint-rust.yml
74+
- plugins/haptics/**
6975
tauri-plugin-http:
7076
- .github/workflows/lint-rust.yml
7177
- plugins/http/**

.github/workflows/test-rust.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,18 @@ jobs:
7373
- .github/workflows/test-rust.yml
7474
- Cargo.toml
7575
- plugins/fs/**
76+
tauri-plugin-geolocation:
77+
- .github/workflows/test-rust.yml
78+
- Cargo.toml
79+
- plugins/geolocation/**
7680
tauri-plugin-global-shortcut:
7781
- .github/workflows/test-rust.yml
7882
- Cargo.toml
7983
- plugins/global-shortcut/**
84+
tauri-plugin-haptics:
85+
- .github/workflows/test-rust.yml
86+
- Cargo.toml
87+
- plugins/haptics/**
8088
tauri-plugin-http:
8189
- .github/workflows/test-rust.yml
8290
- Cargo.toml

.scripts/ci/has-diff.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ then
55
echo "working directory is clean"
66
else
77
echo "found diff"
8+
git diff --name-status HEAD
89
exit 1
910
fi

Cargo.lock

Lines changed: 76 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)