+ Capacitor Test Plugin Project
+
+ This project can be used to test out the functionality of your plugin. Nothing in the
+ example-app/ folder will be published to npm when using this template, so you can create away!
+
+ Prevent Overlays
+ Enable Overlays
+
+
+
+
+
diff --git a/example-app/src/js/example.js b/example-app/src/js/example.js
new file mode 100644
index 0000000..81403cf
--- /dev/null
+++ b/example-app/src/js/example.js
@@ -0,0 +1,9 @@
+import { TapJacking } from '@capacitor-community/tap-jacking';
+
+window.preventOverlays = () => {
+ TapJacking.preventOverlays();
+}
+
+window.enableOverlays = () => {
+ TapJacking.enableOverlays();
+}
diff --git a/example-app/vite.config.ts b/example-app/vite.config.ts
new file mode 100644
index 0000000..1b9f069
--- /dev/null
+++ b/example-app/vite.config.ts
@@ -0,0 +1,10 @@
+import { defineConfig } from 'vite';
+
+export default defineConfig({
+ root: './src',
+ build: {
+ outDir: '../dist',
+ minify: false,
+ emptyOutDir: true,
+ },
+});