diff --git a/README.md b/README.md
index ff24ca86..b52abbce 100644
--- a/README.md
+++ b/README.md
@@ -10,23 +10,24 @@
The following plugins are included:
-- [capawesome-team/capacitor-android-battery-optimization](https://capawesome.io/plugins/android-battery-optimization)
-- [capawesome-team/capacitor-android-foreground-service](https://capawesome.io/plugins/android-foreground-service)
-- [capawesome-team/capacitor-app-update](https://capawesome.io/plugins/app-update)
-- [capawesome-team/capacitor-background-task](https://capawesome.io/plugins/background-task)
-- [capawesome-team/capacitor-badge](https://capawesome.io/plugins/badge)
-- [capawesome-team/capacitor-cloudinary](https://capawesome.io/plugins/cloudinary/)
-- [capawesome-team/capacitor-datetime-picker](https://capawesome.io/plugins/datetime-picker)
-- [capawesome-team/capacitor-file-compressor](https://capawesome.io/plugins/file-compressor)
-- [capawesome-team/capacitor-file-opener](https://capawesome.io/plugins/file-opener)
-- [capawesome-team/capacitor-file-picker](https://capawesome.io/plugins/file-picker)
-- [capawesome-team/capacitor-managed-configurations](https://capawesome.io/plugins/managed-configurations)
-- [capawesome-team/capacitor-photo-editor](https://capawesome.io/plugins/photo-editor)
-- [capawesome-team/capacitor-printer](https://capawesome.io/plugins/printer)
-- [capawesome-team/capacitor-screen-orientation](https://capawesome.io/plugins/screen-orientation)
-- [capacitor-community/keep-awake](https://github.com/capacitor-community/keep-awake)
-- [capacitor-community/privacy-screen](https://github.com/capacitor-community/privacy-screen)
-- [capacitor-community/text-to-speech](https://github.com/capacitor-community/text-to-speech)
+- [Android Battery Optimization](https://capawesome.io/plugins/android-battery-optimization)
+- [Android Foreground Service](https://capawesome.io/plugins/android-foreground-service)
+- [App Update](https://capawesome.io/plugins/app-update)
+- [Background Task](https://capawesome.io/plugins/background-task)
+- [Badge](https://capawesome.io/plugins/badge)
+- [cloudinary](https://capawesome.io/plugins/cloudinary/)
+- [Datetime Picker](https://capawesome.io/plugins/datetime-picker)
+- [File Compressor](https://capawesome.io/plugins/file-compressor)
+- [File Opener](https://capawesome.io/plugins/file-opener)
+- [File Picker](https://capawesome.io/plugins/file-picker)
+- [Managed Configurations](https://capawesome.io/plugins/managed-configurations)
+- [Photo Editor](https://capawesome.io/plugins/photo-editor)
+- [PostHog](https://capawesome.io/plugins/posthog)
+- [Printer](https://capawesome.io/plugins/printer)
+- [Screen Orientation](https://capawesome.io/plugins/screen-orientation)
+- [Keep Awake](https://github.com/capacitor-community/keep-awake)
+- [Privacy Screen](https://github.com/capacitor-community/privacy-screen)
+- [Text to Speech](https://github.com/capacitor-community/text-to-speech)
## Development Setup 💻
diff --git a/android/app/capacitor.build.gradle b/android/app/capacitor.build.gradle
index cfb47202..4848a81e 100644
--- a/android/app/capacitor.build.gradle
+++ b/android/app/capacitor.build.gradle
@@ -35,6 +35,7 @@ dependencies {
implementation project(':capawesome-capacitor-live-update')
implementation project(':capawesome-capacitor-managed-configurations')
implementation project(':capawesome-capacitor-photo-editor')
+ implementation project(':capawesome-capacitor-posthog')
implementation project(':capawesome-capacitor-screen-orientation')
}
diff --git a/android/app/src/main/assets/capacitor.plugins.json b/android/app/src/main/assets/capacitor.plugins.json
index 2408810d..731aa67a 100644
--- a/android/app/src/main/assets/capacitor.plugins.json
+++ b/android/app/src/main/assets/capacitor.plugins.json
@@ -103,6 +103,10 @@
"pkg": "@capawesome/capacitor-photo-editor",
"classpath": "io.capawesome.capacitorjs.plugins.photoeditor.PhotoEditorPlugin"
},
+ {
+ "pkg": "@capawesome/capacitor-posthog",
+ "classpath": "io.capawesome.capacitorjs.plugins.posthog.PosthogPlugin"
+ },
{
"pkg": "@capawesome/capacitor-screen-orientation",
"classpath": "io.capawesome.capacitorjs.plugins.screenorientation.ScreenOrientationPlugin"
diff --git a/android/capacitor.settings.gradle b/android/capacitor.settings.gradle
index f9565fca..82d3b975 100644
--- a/android/capacitor.settings.gradle
+++ b/android/capacitor.settings.gradle
@@ -80,5 +80,8 @@ project(':capawesome-capacitor-managed-configurations').projectDir = new File('.
include ':capawesome-capacitor-photo-editor'
project(':capawesome-capacitor-photo-editor').projectDir = new File('../node_modules/@capawesome/capacitor-photo-editor/android')
+include ':capawesome-capacitor-posthog'
+project(':capawesome-capacitor-posthog').projectDir = new File('../node_modules/@capawesome/capacitor-posthog/android')
+
include ':capawesome-capacitor-screen-orientation'
project(':capawesome-capacitor-screen-orientation').projectDir = new File('../node_modules/@capawesome/capacitor-screen-orientation/android')
diff --git a/ios/App/App/capacitor.config.json b/ios/App/App/capacitor.config.json
index b2ce69ab..668557fd 100644
--- a/ios/App/App/capacitor.config.json
+++ b/ios/App/App/capacitor.config.json
@@ -29,11 +29,8 @@
"cordova": {},
"packageClassList": [
"KeepAwakePlugin",
- "KeepAwakePlugin",
- "PrivacyScreenPlugin",
"PrivacyScreenPlugin",
"TextToSpeechPlugin",
- "TextToSpeechPlugin",
"AppPlugin",
"CAPCameraPlugin",
"FilesystemPlugin",
@@ -41,36 +38,21 @@
"KeyboardPlugin",
"SharePlugin",
"BluetoothLowEnergyPlugin",
- "BluetoothLowEnergyPlugin",
- "DatetimePickerPlugin",
"DatetimePickerPlugin",
"FileCompressorPlugin",
- "FileCompressorPlugin",
- "FileOpenerPlugin",
"FileOpenerPlugin",
"PrinterPlugin",
- "PrinterPlugin",
- "WifiPlugin",
"WifiPlugin",
"ZipPlugin",
- "ZipPlugin",
- "AppUpdatePlugin",
"AppUpdatePlugin",
"BackgroundTaskPlugin",
- "BackgroundTaskPlugin",
"BadgePlugin",
- "BadgePlugin",
- "CloudinaryPlugin",
"CloudinaryPlugin",
"FilePickerPlugin",
- "FilePickerPlugin",
- "LiveUpdatePlugin",
"LiveUpdatePlugin",
"ManagedConfigurationsPlugin",
- "ManagedConfigurationsPlugin",
- "PhotoEditorPlugin",
"PhotoEditorPlugin",
- "ScreenOrientationPlugin",
+ "PosthogPlugin",
"ScreenOrientationPlugin"
]
}
diff --git a/ios/App/Podfile b/ios/App/Podfile
index ee7c2f4c..0c7602c5 100644
--- a/ios/App/Podfile
+++ b/ios/App/Podfile
@@ -35,6 +35,7 @@ def capacitor_pods
pod 'CapawesomeCapacitorLiveUpdate', :path => '../../node_modules/@capawesome/capacitor-live-update'
pod 'CapawesomeCapacitorManagedConfigurations', :path => '../../node_modules/@capawesome/capacitor-managed-configurations'
pod 'CapawesomeCapacitorPhotoEditor', :path => '../../node_modules/@capawesome/capacitor-photo-editor'
+ pod 'CapawesomeCapacitorPosthog', :path => '../../node_modules/@capawesome/capacitor-posthog'
pod 'CapawesomeCapacitorScreenOrientation', :path => '../../node_modules/@capawesome/capacitor-screen-orientation'
end
diff --git a/ios/App/Podfile.lock b/ios/App/Podfile.lock
index 34e4ff94..ccb2645b 100644
--- a/ios/App/Podfile.lock
+++ b/ios/App/Podfile.lock
@@ -1,25 +1,25 @@
PODS:
- Alamofire (5.9.1)
- - Capacitor (6.0.0):
+ - Capacitor (6.1.2):
- CapacitorCordova
- - CapacitorApp (6.0.0):
+ - CapacitorApp (6.0.1):
- Capacitor
- - CapacitorCamera (6.0.0):
+ - CapacitorCamera (6.0.2):
- Capacitor
- CapacitorCommunityKeepAwake (5.0.0):
- Capacitor
- - CapacitorCommunityPrivacyScreen (5.0.0):
+ - CapacitorCommunityPrivacyScreen (5.1.3):
- Capacitor
- - CapacitorCommunityTextToSpeech (4.0.0):
+ - CapacitorCommunityTextToSpeech (4.1.0):
- Capacitor
- - CapacitorCordova (6.0.0)
- - CapacitorFilesystem (6.0.0):
+ - CapacitorCordova (6.1.2)
+ - CapacitorFilesystem (6.0.1):
- Capacitor
- - CapacitorHaptics (6.0.0):
+ - CapacitorHaptics (6.0.1):
- Capacitor
- - CapacitorKeyboard (6.0.0):
+ - CapacitorKeyboard (6.0.2):
- Capacitor
- - CapacitorShare (6.0.0):
+ - CapacitorShare (6.0.2):
- Capacitor
- CapawesomeCapacitorAppUpdate (6.0.0):
- Capacitor
@@ -30,7 +30,7 @@ PODS:
- CapawesomeCapacitorCloudinary (6.0.0):
- Capacitor
- Cloudinary (= 5.0.0)
- - CapawesomeCapacitorFilePicker (6.0.0):
+ - CapawesomeCapacitorFilePicker (6.0.1):
- Capacitor
- CapawesomeCapacitorLiveUpdate (6.3.0):
- Alamofire (~> 5.9.0)
@@ -40,7 +40,10 @@ PODS:
- Capacitor
- CapawesomeCapacitorPhotoEditor (6.0.0):
- Capacitor
- - CapawesomeCapacitorScreenOrientation (6.0.0):
+ - CapawesomeCapacitorPosthog (5.0.0):
+ - Capacitor
+ - PostHog (= 3.8.2)
+ - CapawesomeCapacitorScreenOrientation (6.0.1):
- Capacitor
- CapawesomeTeamCapacitorBluetoothLowEnergy (6.0.0):
- Capacitor
@@ -48,18 +51,19 @@ PODS:
- Capacitor
- CapawesomeTeamCapacitorFileCompressor (6.0.0):
- Capacitor
- - CapawesomeTeamCapacitorFileOpener (6.0.0):
+ - CapawesomeTeamCapacitorFileOpener (6.1.0):
- Capacitor
- - CapawesomeTeamCapacitorPrinter (6.0.0):
+ - CapawesomeTeamCapacitorPrinter (6.0.1):
- Capacitor
- CapawesomeTeamCapacitorWifi (6.0.0):
- Capacitor
- - CapawesomeTeamCapacitorZip (6.1.0):
+ - CapawesomeTeamCapacitorZip (6.1.1):
- Capacitor
- SSZipArchive (~> 2.2)
- Cloudinary (5.0.0):
- Cloudinary/ios (= 5.0.0)
- Cloudinary/ios (5.0.0)
+ - PostHog (3.8.2)
- SSZipArchive (2.4.3)
DEPENDENCIES:
@@ -82,6 +86,7 @@ DEPENDENCIES:
- "CapawesomeCapacitorLiveUpdate (from `../../node_modules/@capawesome/capacitor-live-update`)"
- "CapawesomeCapacitorManagedConfigurations (from `../../node_modules/@capawesome/capacitor-managed-configurations`)"
- "CapawesomeCapacitorPhotoEditor (from `../../node_modules/@capawesome/capacitor-photo-editor`)"
+ - "CapawesomeCapacitorPosthog (from `../../node_modules/@capawesome/capacitor-posthog`)"
- "CapawesomeCapacitorScreenOrientation (from `../../node_modules/@capawesome/capacitor-screen-orientation`)"
- "CapawesomeTeamCapacitorBluetoothLowEnergy (from `../../node_modules/@capawesome-team/capacitor-bluetooth-low-energy`)"
- "CapawesomeTeamCapacitorDatetimePicker (from `../../node_modules/@capawesome-team/capacitor-datetime-picker`)"
@@ -95,6 +100,7 @@ SPEC REPOS:
trunk:
- Alamofire
- Cloudinary
+ - PostHog
- SSZipArchive
EXTERNAL SOURCES:
@@ -136,6 +142,8 @@ EXTERNAL SOURCES:
:path: "../../node_modules/@capawesome/capacitor-managed-configurations"
CapawesomeCapacitorPhotoEditor:
:path: "../../node_modules/@capawesome/capacitor-photo-editor"
+ CapawesomeCapacitorPosthog:
+ :path: "../../node_modules/@capawesome/capacitor-posthog"
CapawesomeCapacitorScreenOrientation:
:path: "../../node_modules/@capawesome/capacitor-screen-orientation"
CapawesomeTeamCapacitorBluetoothLowEnergy:
@@ -155,36 +163,38 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Alamofire: f36a35757af4587d8e4f4bfa223ad10be2422b8c
- Capacitor: 559d073c4ca6c27f8e7002c807eea94c3ba435a9
- CapacitorApp: 9d53aec7101f7b030a950c5bdc4df8612576b279
- CapacitorCamera: b61f125d92a0ef75d7becb7956fed7dd13187ee0
+ Capacitor: 679f9673fdf30597493a6362a5d5bf233d46abc2
+ CapacitorApp: 0bc633b4eae40a1f32cd2834788fad3bc42da6a1
+ CapacitorCamera: ed022171dbf3853e68eec877b4d78995378af6b7
CapacitorCommunityKeepAwake: c820e5394a74ab73635107f0544378b026562243
- CapacitorCommunityPrivacyScreen: 307d4713e8f085b292e4e7b42daf7eb8016904b2
- CapacitorCommunityTextToSpeech: 01006ca642440323372afb2d9b684815495c210d
- CapacitorCordova: 8c4bfdf69368512e85b1d8b724dd7546abeb30af
- CapacitorFilesystem: 60e59ba274c234a979e7a3be2552feaadcee4263
- CapacitorHaptics: 9ebc9363f0e9b8eb4295088a0b474530acf1859b
- CapacitorKeyboard: deacbd09d8d1029c3681197fb05d206b721d5f73
- CapacitorShare: a771200d3b924a5d7ad9d9fecbac517e4c0aa74f
+ CapacitorCommunityPrivacyScreen: 1917aacdd89557f926e83a4d853df0a50fb0bff7
+ CapacitorCommunityTextToSpeech: 88444f34e417c0fcac6ce474fdae9fa8e03fddba
+ CapacitorCordova: f48c89f96c319101cd2f0ce8a2b7449b5fb8b3dd
+ CapacitorFilesystem: 37fb3aa5c945b4539ab11c74a5c57925a302bf24
+ CapacitorHaptics: fe689ade56ef20ec9b041a753c6da70c5d8ec9a9
+ CapacitorKeyboard: 2700f9b18687be021e28b5a09b59eb151a46d5e0
+ CapacitorShare: 591ae4693d85686ceb590db8e8b44aa014ec6490
CapawesomeCapacitorAppUpdate: 3c05b5c8e42f9c6a88d666093406e9336d9bfdb1
CapawesomeCapacitorBackgroundTask: e65f6ca09586bd33af10d4c4ed7f04248b38b785
CapawesomeCapacitorBadge: 3d0f281ad8e4a4f8db8c3d88b7622a7f4c413342
CapawesomeCapacitorCloudinary: 7a7103a57880d215985c242bfebe834b151c2db6
- CapawesomeCapacitorFilePicker: 983e8d272d200897cf1c12cf9a62439fa2fb2c35
+ CapawesomeCapacitorFilePicker: c80c30759ba48986ff34a2b51b23ac2babfd3774
CapawesomeCapacitorLiveUpdate: 2dba42b57ad4cc6ef8a0e5911f4d32d1d2404654
CapawesomeCapacitorManagedConfigurations: e6dbcbcf45d7b1f7acfa9b54a02e15201604a803
CapawesomeCapacitorPhotoEditor: 231e03215f026e0c2eeb6de0910e095e4aa0c823
- CapawesomeCapacitorScreenOrientation: 82675c41cb616a64630c834b06344515a2849ff3
+ CapawesomeCapacitorPosthog: 84e91ce0c10ce2ffc98fe07a887377370eab7c26
+ CapawesomeCapacitorScreenOrientation: 9cc68ecd085fcea2e1755475a3ed60d85e604a6c
CapawesomeTeamCapacitorBluetoothLowEnergy: 8a79dcc9f2edde2cf8304b4f628fa3260e12a5d4
CapawesomeTeamCapacitorDatetimePicker: 6dd2e7ae30c4b55afd48f19bfeb4578dcaa9263e
CapawesomeTeamCapacitorFileCompressor: be4a55e6476c4084ef370e84c224fc63db27f7a5
- CapawesomeTeamCapacitorFileOpener: b406c1a389cbb4b1a3e9d686c34c9a357abb5902
- CapawesomeTeamCapacitorPrinter: 44da25bc3ff21298649046a175ff3ac588936798
+ CapawesomeTeamCapacitorFileOpener: 3b92b7d407c6a85e241e77ff081f0dcc4beb86b3
+ CapawesomeTeamCapacitorPrinter: 37aae938b0008aebd9760a844aa1e15497bdb043
CapawesomeTeamCapacitorWifi: 5aa54073db59016e60f945be35ebefc3f5bc9845
- CapawesomeTeamCapacitorZip: ea89e0336d69de1a1395b9d22ab014102c8da169
+ CapawesomeTeamCapacitorZip: d25254b165e2bc966dad3cabab8ae4f6fb5c4c12
Cloudinary: 1e8ed5ce1418ba50df625c1fec80ebec746141b6
+ PostHog: c5e174a4c52c45a37bc3960ab103d21eb29b63d6
SSZipArchive: fe6a26b2a54d5a0890f2567b5cc6de5caa600aef
-PODFILE CHECKSUM: 4fdd382ed7cda356b8b714f58c128ab5c8712abe
+PODFILE CHECKSUM: b8b66170f00243d5012b498430c2d9fb5995ebc1
COCOAPODS: 1.15.2
diff --git a/package-lock.json b/package-lock.json
index 5f825bd3..f6163de9 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -44,8 +44,10 @@
"@capawesome/capacitor-live-update": "6.3.0",
"@capawesome/capacitor-managed-configurations": "6.0.0",
"@capawesome/capacitor-photo-editor": "6.0.0",
+ "@capawesome/capacitor-posthog": "https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-posthog@dae64ba",
"@capawesome/capacitor-screen-orientation": "6.0.1",
"@ionic/angular": "7.3.4",
+ "posthog-js": "1.160.3",
"rxjs": "7.5.7",
"tslib": "2.4.0",
"zone.js": "0.14.2"
@@ -3497,6 +3499,30 @@
"@capacitor/core": "^6.0.0"
}
},
+ "node_modules/@capawesome/capacitor-posthog": {
+ "version": "5.0.0",
+ "resolved": "https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-posthog@dae64ba",
+ "integrity": "sha512-XpYYni68tO1ZD23fSgjOWrEogwJ17hlTuLakWSXC/MjE4pVvpcapT+vWCoosLYWyUlULQzbza4wfv+emZQD0ug==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/capawesome-team/"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/capawesome"
+ }
+ ],
+ "peerDependencies": {
+ "@capacitor/core": "^6.0.0",
+ "posthog-js": "^1.160.3"
+ },
+ "peerDependenciesMeta": {
+ "posthog-js": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@capawesome/capacitor-screen-orientation": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/@capawesome/capacitor-screen-orientation/-/capacitor-screen-orientation-6.0.1.tgz",
@@ -10279,6 +10305,11 @@
"pend": "~1.2.0"
}
},
+ "node_modules/fflate": {
+ "version": "0.4.8",
+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.4.8.tgz",
+ "integrity": "sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA=="
+ },
"node_modules/figures": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/figures/-/figures-5.0.0.tgz",
@@ -15180,6 +15211,25 @@
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
"dev": true
},
+ "node_modules/posthog-js": {
+ "version": "1.160.3",
+ "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.160.3.tgz",
+ "integrity": "sha512-mGvxOIlWPtdPx8EI0MQ81wNKlnH2K0n4RqwQOl044b34BCKiFVzZ7Hc7geMuZNaRAvCi5/5zyGeWHcAYZQxiMQ==",
+ "dependencies": {
+ "fflate": "^0.4.8",
+ "preact": "^10.19.3",
+ "web-vitals": "^4.0.1"
+ }
+ },
+ "node_modules/preact": {
+ "version": "10.23.2",
+ "resolved": "https://registry.npmjs.org/preact/-/preact-10.23.2.tgz",
+ "integrity": "sha512-kKYfePf9rzKnxOAKDpsWhg/ysrHPqT+yQ7UW4JjdnqjFIeNUnNcEJvhuA8fDenxAGWzUqtd51DfVg7xp/8T9NA==",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/preact"
+ }
+ },
"node_modules/prelude-ls": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
@@ -18415,6 +18465,11 @@
"defaults": "^1.0.3"
}
},
+ "node_modules/web-vitals": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-4.2.3.tgz",
+ "integrity": "sha512-/CFAm1mNxSmOj6i0Co+iGFJ58OS4NRGVP+AWS/l509uIK5a1bSoIVaHz/ZumpHTfHSZBpgrJ+wjfpAOrTHok5Q=="
+ },
"node_modules/webidl-conversions": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
diff --git a/package.json b/package.json
index c036f9e9..f88d52c1 100644
--- a/package.json
+++ b/package.json
@@ -51,8 +51,10 @@
"@capawesome/capacitor-live-update": "6.3.0",
"@capawesome/capacitor-managed-configurations": "6.0.0",
"@capawesome/capacitor-photo-editor": "6.0.0",
+ "@capawesome/capacitor-posthog": "https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-posthog@dae64ba",
"@capawesome/capacitor-screen-orientation": "6.0.1",
"@ionic/angular": "7.3.4",
+ "posthog-js": "1.160.3",
"rxjs": "7.5.7",
"tslib": "2.4.0",
"zone.js": "0.14.2"
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index b6949e3b..278797cb 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -115,6 +115,11 @@ const routes: Routes = [
m => m.PhotoEditorPageModule,
),
},
+ {
+ path: 'posthog',
+ loadChildren: () =>
+ import('./modules/posthog/posthog.module').then(m => m.PosthogPageModule),
+ },
{
path: 'printer',
loadChildren: () =>
diff --git a/src/app/modules/home/home.page.ts b/src/app/modules/home/home.page.ts
index 28cef577..b01130f6 100644
--- a/src/app/modules/home/home.page.ts
+++ b/src/app/modules/home/home.page.ts
@@ -67,6 +67,10 @@ export class HomePage {
name: 'Photo Editor',
url: '/photo-editor',
},
+ {
+ name: 'PostHog',
+ url: '/posthog',
+ },
{
name: 'Printer',
url: '/printer',
diff --git a/src/app/modules/posthog/posthog-routing.module.ts b/src/app/modules/posthog/posthog-routing.module.ts
new file mode 100644
index 00000000..90b6a7f9
--- /dev/null
+++ b/src/app/modules/posthog/posthog-routing.module.ts
@@ -0,0 +1,17 @@
+import { NgModule } from '@angular/core';
+import { RouterModule, Routes } from '@angular/router';
+
+import { PosthogPage } from './posthog.page';
+
+const routes: Routes = [
+ {
+ path: '',
+ component: PosthogPage,
+ },
+];
+
+@NgModule({
+ imports: [RouterModule.forChild(routes)],
+ exports: [RouterModule],
+})
+export class PosthogPageRoutingModule {}
diff --git a/src/app/modules/posthog/posthog.module.ts b/src/app/modules/posthog/posthog.module.ts
new file mode 100644
index 00000000..b9903525
--- /dev/null
+++ b/src/app/modules/posthog/posthog.module.ts
@@ -0,0 +1,12 @@
+import { NgModule } from '@angular/core';
+
+import { PosthogPageRoutingModule } from './posthog-routing.module';
+
+import { SharedModule } from '@app/shared';
+import { PosthogPage } from './posthog.page';
+
+@NgModule({
+ imports: [SharedModule, PosthogPageRoutingModule],
+ declarations: [PosthogPage],
+})
+export class PosthogPageModule {}
diff --git a/src/app/modules/posthog/posthog.page.html b/src/app/modules/posthog/posthog.page.html
new file mode 100644
index 00000000..172b947b
--- /dev/null
+++ b/src/app/modules/posthog/posthog.page.html
@@ -0,0 +1,38 @@
+
+
+
+
+
+ PostHog
+
+
+
+
+
+
+ About
+
+
+ ⚡️ Capacitor plugin for integrating with PostHog.
+
+
+
+ GitHub
+
+
+
+
+
+ Demo
+
+
+ Capture
+ Setup
+
+
+
diff --git a/src/app/modules/posthog/posthog.page.scss b/src/app/modules/posthog/posthog.page.scss
new file mode 100644
index 00000000..e69de29b
diff --git a/src/app/modules/posthog/posthog.page.spec.ts b/src/app/modules/posthog/posthog.page.spec.ts
new file mode 100644
index 00000000..bd7e11d7
--- /dev/null
+++ b/src/app/modules/posthog/posthog.page.spec.ts
@@ -0,0 +1,24 @@
+import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
+import { IonicModule } from '@ionic/angular';
+
+import { PosthogPage } from './posthog.page';
+
+describe('PosthogPage', () => {
+ let component: PosthogPage;
+ let fixture: ComponentFixture;
+
+ beforeEach(waitForAsync(() => {
+ TestBed.configureTestingModule({
+ declarations: [PosthogPage],
+ imports: [IonicModule.forRoot()],
+ }).compileComponents();
+
+ fixture = TestBed.createComponent(PosthogPage);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ }));
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/modules/posthog/posthog.page.ts b/src/app/modules/posthog/posthog.page.ts
new file mode 100644
index 00000000..fb6db945
--- /dev/null
+++ b/src/app/modules/posthog/posthog.page.ts
@@ -0,0 +1,34 @@
+import { Component } from '@angular/core';
+import { Posthog } from '@capawesome/capacitor-posthog';
+
+@Component({
+ selector: 'app-posthog',
+ templateUrl: './posthog.page.html',
+ styleUrls: ['./posthog.page.scss'],
+})
+export class PosthogPage {
+ private readonly GH_URL =
+ 'https://github.com/capawesome-team/capacitor-plugins';
+
+ constructor() {}
+
+ public openOnGithub(): void {
+ window.open(this.GH_URL, '_blank');
+ }
+
+ public async capture(): Promise {
+ Posthog.capture({
+ event: 'test',
+ properties: {
+ key: 'value',
+ },
+ });
+ }
+
+ public async setup(): Promise {
+ Posthog.setup({
+ apiKey: 'phc_g8wMenebiIQ1pYd5v9Vy7oakn6MczVKIsNG5ZHCspdy',
+ host: 'https://eu.i.posthog.com',
+ });
+ }
+}