Skip to content

Commit

Permalink
feat: add PostHog plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz committed Sep 6, 2024
1 parent d8de497 commit 232201b
Show file tree
Hide file tree
Showing 17 changed files with 260 additions and 67 deletions.
35 changes: 18 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 💻

Expand Down
1 change: 1 addition & 0 deletions android/app/capacitor.build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')

}
Expand Down
4 changes: 4 additions & 0 deletions android/app/src/main/assets/capacitor.plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions android/capacitor.settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
20 changes: 1 addition & 19 deletions ios/App/App/capacitor.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,48 +29,30 @@
"cordova": {},
"packageClassList": [
"KeepAwakePlugin",
"KeepAwakePlugin",
"PrivacyScreenPlugin",
"PrivacyScreenPlugin",
"TextToSpeechPlugin",
"TextToSpeechPlugin",
"AppPlugin",
"CAPCameraPlugin",
"FilesystemPlugin",
"HapticsPlugin",
"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"
]
}
1 change: 1 addition & 0 deletions ios/App/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
72 changes: 41 additions & 31 deletions ios/App/Podfile.lock
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
Expand All @@ -40,26 +40,30 @@ 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
- CapawesomeTeamCapacitorDatetimePicker (6.0.0):
- 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:
Expand All @@ -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`)"
Expand All @@ -95,6 +100,7 @@ SPEC REPOS:
trunk:
- Alamofire
- Cloudinary
- PostHog
- SSZipArchive

EXTERNAL SOURCES:
Expand Down Expand Up @@ -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:
Expand All @@ -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
55 changes: 55 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading

0 comments on commit 232201b

Please sign in to comment.