├── .github └── workflows │ └── check-formatting.yml ├── .gitignore ├── .prettierrc.json ├── CHANGELOG.md ├── LICENSE ├── PantristCapacitorFirebaseDynamicLinks.podspec ├── README.md ├── android ├── .npmignore ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── proguard-rules.pro ├── settings.gradle └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── getcapacitor │ │ └── android │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── pantrist │ │ │ └── firebase │ │ │ └── dynamiclinks │ │ │ └── CapacitorFirebaseDynamicLinks.kt │ └── res │ │ ├── layout │ │ └── bridge_layout_main.xml │ │ └── values │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── getcapacitor │ └── ExampleUnitTest.java ├── ios ├── Plugin.xcodeproj │ └── project.pbxproj ├── Plugin.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── Plugin │ ├── Info.plist │ ├── Plugin.h │ ├── Plugin.m │ └── Plugin.swift ├── PluginTests │ ├── Info.plist │ └── PluginTests.swift ├── Podfile └── Podfile.lock ├── package-lock.json ├── package.json ├── rollup.config.js ├── src ├── definitions.ts ├── index.ts └── web.ts └── tsconfig.json /.github/workflows/check-formatting.yml: -------------------------------------------------------------------------------- 1 | # This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions 3 | 4 | name: Check formattation 5 | 6 | on: 7 | push: 8 | branches: [ main ] 9 | pull_request: 10 | branches: [ main ] 11 | 12 | jobs: 13 | build: 14 | 15 | runs-on: ubuntu-latest 16 | 17 | strategy: 18 | matrix: 19 | node-version: [16.x] 20 | 21 | steps: 22 | - uses: actions/checkout@v2 23 | - name: Use Node.js ${{ matrix.node-version }} 24 | uses: actions/setup-node@v2 25 | with: 26 | node-version: ${{ matrix.node-version }} 27 | - run: npm ci 28 | - run: npm run format:check 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # node files 2 | dist/ 3 | node_modules/ 4 | 5 | # iOS files 6 | Pods 7 | Build 8 | xcuserdata 9 | 10 | # macOS files 11 | .DS_Store 12 | 13 | 14 | 15 | # Based on Android gitignore template: https://github.com/github/gitignore/blob/master/Android.gitignore 16 | 17 | # Built application files 18 | *.apk 19 | *.ap_ 20 | 21 | # Files for the ART/Dalvik VM 22 | *.dex 23 | 24 | # Java class files 25 | *.class 26 | 27 | # Generated files 28 | bin/ 29 | gen/ 30 | out/ 31 | 32 | # Gradle files 33 | .gradle/ 34 | build/ 35 | 36 | # Local configuration file (sdk path, etc) 37 | local.properties 38 | 39 | # Proguard folder generated by Eclipse 40 | proguard/ 41 | 42 | # Log Files 43 | *.log 44 | 45 | # Android Studio Navigation editor temp files 46 | .navigation/ 47 | 48 | # Android Studio captures folder 49 | captures/ 50 | 51 | # IntelliJ 52 | *.iml 53 | .idea 54 | 55 | # Keystore files 56 | # Uncomment the following line if you do not want to check your keystore files in. 57 | #*.jks 58 | 59 | # External native build folder generated in Android Studio 2.2 and later 60 | .externalNativeBuild 61 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [], 3 | "singleQuote": true, 4 | "useTabs": false, 5 | "tabWidth": 2, 6 | "semi": true, 7 | "bracketSpacing": true, 8 | "endOfLine": "auto", 9 | "printWidth": 100 10 | } 11 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. 4 | 5 | ### [5.0.3](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/compare/v5.0.2...v5.0.3) (2024-01-05) 6 | 7 | 8 | ### Bug Fixes 9 | 10 | * **android:** solves null-pointer exception without ios parameters ([035774e](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/commit/035774eacbac6c87855e5db19b25cf2aa59069b7)) 11 | 12 | ### [5.0.2](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/compare/v5.0.2-0...v5.0.2) (2023-11-27) 13 | 14 | ### [5.0.2-0](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/compare/v5.0.1...v5.0.2-0) (2023-11-27) 15 | 16 | 17 | ### Bug Fixes 18 | 19 | * **dependency:** removes unused pod dependency ([8e21b1d](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/commit/8e21b1d85789f2f7043b9760c82fda2c5ed6167f)) 20 | 21 | ### [5.0.1](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/compare/v5.0.0...v5.0.1) (2023-05-03) 22 | 23 | 24 | ### Bug Fixes 25 | 26 | * **dependencies:** use next instead of concrete version ([fcc41fa](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/commit/fcc41fa40aeaefc0550db18a9fed945f29f3aa13)) 27 | 28 | ## [5.0.0](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/compare/v4.1.1...v5.0.0) (2023-05-03) 29 | 30 | 31 | ### ⚠ BREAKING CHANGES 32 | 33 | * **cap-5:** support capacitor 5 34 | 35 | ### Features 36 | 37 | * **cap-5:** support capacitor 5 ([373c383](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/commit/373c383d1ac4dea04f738d15b4b6b34bde2956fb)) 38 | 39 | ### [4.1.2](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/compare/v4.1.1...v4.1.2) (2023-03-19) 40 | 41 | 42 | ### Bug Fixes 43 | 44 | * **publish:** reduce bundle size ([408a150](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/commit/408a1500c8ee9be958725731a588f9013cf8cdb3)) 45 | 46 | ### [4.1.1](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/compare/v4.0.2...v4.1.1) (2023-03-19) 47 | 48 | 49 | ### Features 50 | 51 | * **common-js:** support common-js syntax for import ([b8fc824](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/commit/b8fc824706e872b43e5ba0433e07b0a82eefd1bd)) 52 | 53 | 54 | ### Bug Fixes 55 | 56 | * **ios:** print more information about the exception when shorten the link ([803cca4](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/commit/803cca40aaddfb1397a0cacd289693f659b1471a)) 57 | * **ios:** resolve small ios warnings ([ec567ff](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/commit/ec567ff5a9fae872dba03e7b4858fec6827137b9)) 58 | 59 | ## [4.1.0](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/compare/v4.0.2...v4.1.0) (2023-01-23) 60 | 61 | 62 | ### Features 63 | 64 | * **common-js:** support common-js syntax for import ([e39e2b0](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/commit/e39e2b047c929bf419da4f2bc1220f1de62e4dcf)) 65 | 66 | ### [4.0.2](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/compare/v4.0.1...v4.0.2) (2022-11-16) 67 | 68 | 69 | ### Bug Fixes 70 | 71 | * **ios:** solve parsing issue of result in `createDynamicLink` ([1263e43](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/commit/1263e43a96b347a955aee9a5642e72f8b360f721)), closes [#21](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/issues/21) 72 | 73 | ### 4.0.1 (2022-11-16) 74 | 75 | Nothing 76 | 77 | 78 | ## [4.0.0] (2022-06-08) 79 | 80 | ### ⚠ BREAKING CHANGES 81 | 82 | * **cap4-migration:** migrate to cap 4 83 | 84 | ### Features 85 | 86 | * **cap4-migration:** migrate to cap 4 ([aea29d2](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/commit/aea29d26385d5722e1ec05cdcc5ee90ff2a05fa1)) 87 | 88 | 89 | 90 | ## [1.1.2] (2021-12-12) 91 | 92 | ### Bug Fixes 93 | 94 | * **android:** readds jcenter repository ([052b973](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/commit/052b973a142680e86638b88dbfd8d145ff1d150c)) 95 | 96 | 97 | ## [1.1.1] (2021-12-12) 98 | 99 | ### Bug Fixes 100 | 101 | * **ios:** removeAllListeners method not found ([d79670a](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/commit/d79670af2ce76f54ac5ff797ff599e69d1d1b4e9)), closes [#11](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/issues/11) 102 | * **android:** Migrate from JCenter to MavenCentral [#7](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/pull/7) 103 | 104 | ## [1.1.0] (2021-12-12) 105 | 106 | ### Features 107 | 108 | - Add Web Support [#4](https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/pull/4) 109 | 110 | 111 | ## [1.0.0] (2021-11-30) 112 | 113 | ### BREAKING CHANGES 114 | 115 | - Changes path of android code from `com.turnoutt.firebase.dynamiclinks` to `com.pantrist.firebase.dynamiclinks` 116 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Nico Lueg 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /PantristCapacitorFirebaseDynamicLinks.podspec: -------------------------------------------------------------------------------- 1 | 2 | Pod::Spec.new do |s| 3 | s.name = 'PantristCapacitorFirebaseDynamicLinks' 4 | s.version = '0.2.2' 5 | s.summary = 'Capacitor Plugin for Firebase Dynamic Links' 6 | s.license = 'MIT' 7 | s.homepage = 'https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links.git' 8 | s.author = 'Bharani' 9 | s.source = { :git => 'https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links.git', :tag => s.version.to_s } 10 | s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}' 11 | s.ios.deployment_target = '13.0' 12 | s.dependency 'Capacitor' 13 | s.dependency 'Firebase/DynamicLinks' 14 | s.static_framework = true 15 | end 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # @pantrist/capacitor-firebase-dynamic-links 2 | 3 | [![npm version](https://badge.fury.io/js/%40pantrist%2Fcapacitor-firebase-dynamic-links.svg)](https://badge.fury.io/js/%40pantrist%2Fcapacitor-firebase-dynamic-links) 4 | ![npm downloads per month](https://img.shields.io/npm/dm/@pantrist/capacitor-firebase-dynamic-links) 5 | 6 | Capacitor plugin for [Firebase Dynamic Links](https://firebase.google.com/docs/dynamic-links). 7 | 8 | # ⚠️ *Firebase dynamic links shutdown at the 25th August 2025* ⚠️ 9 | 10 | Firebase dynamic links, and also this plugin, will work until that day. But it won't be working anymore after that. 11 | If you plan to implement something similar, you should search for alternatives. I went with [capacitor-branch-deep-links](https://github.com/BranchMetrics/capacitor-branch-deep-links). 12 | 13 | ## Configuration 14 | 15 | ### Android 16 | 17 | None 18 | 19 | ### iOS 20 | 21 | Configure your app to use dynamic links based on the official Firebase documentation. 22 | You need to apply the following three steps for iOS. 23 | They should be the same as the first three steps of the [official Firebase documentation](https://firebase.google.com/docs/dynamic-links/ios/receive#open-dynamic-links-in-your-app). 24 | 25 | 1. In the Info tab of your app's Xcode project, create a new URL type to be used for Dynamic Links. Set the Identifier field to a unique value and the URL scheme field to be your bundle identifier, which is the default URL scheme used by Dynamic Links. 26 | 2. In the Capabilities tab of your app's Xcode project, enable Associated Domains and add the following to the Associated Domains list: 27 | 28 | ``` 29 | applinks:your_dynamic_links_domain 30 | ``` 31 | 32 | 3. If you want to receive Dynamic Links with a [fully-custom domain](https://firebase.google.com/docs/dynamic-links/custom-domains), in your Xcode project's Info.plist file, create a key called FirebaseDynamicLinksCustomDomains and set it to your app's Dynamic Links URL prefixes. For example: 33 | 34 | ``` 35 | FirebaseDynamicLinksCustomDomains 36 | https://example.com/promos 37 | https://example.com/links/share 38 | ``` 39 | 40 | 41 | ### Web 42 | 43 | None 44 | 45 | ## Example 46 | 47 | ```ts 48 | import { 49 | FirebaseDynamicLinks, 50 | LinkConfig, 51 | } from '@pantrist/capacitor-firebase-dynamic-links'; 52 | 53 | function createShortLink(): Promise { 54 | const config: LinkConfig = { 55 | domainUriPrefix: 'https://example.page.link', 56 | uri: 'https://example.page.link/sharing', 57 | }; 58 | return FirebaseDynamicLinks.createDynamicShortLink(config).then(link => link.value); 59 | } 60 | 61 | function listenToDeepLinkOpen() { 62 | FirebaseDynamicLinks.addListener('deepLinkOpen', (data) => { 63 | console.log(data); 64 | }); 65 | } 66 | ``` 67 | 68 | 69 | ## API 70 | 71 | 72 | 73 | * [`addListener('deepLinkOpen', ...)`](#addlistenerdeeplinkopen) 74 | * [`removeAllListeners()`](#removealllisteners) 75 | * [`createDynamicLink(...)`](#createdynamiclink) 76 | * [`createDynamicShortLink(...)`](#createdynamicshortlink) 77 | * [Interfaces](#interfaces) 78 | 79 | 80 | 81 | 82 | 83 | 84 | ### addListener('deepLinkOpen', ...) 85 | 86 | ```typescript 87 | addListener(eventName: 'deepLinkOpen', listenerFunc: (data: DeepLinkOpen) => void) => PluginListenerHandle 88 | ``` 89 | 90 | Adds a listener to the opening of a dynamic link 91 | 92 | | Param | Type | Description | 93 | | ------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------ | 94 | | **`eventName`** | 'deepLinkOpen' | 'deepLinkOpen' for listening to open links | 95 | | **`listenerFunc`** | (data: DeepLinkOpen) => void | Callback function to be called when the event is fired | 96 | 97 | **Returns:** PluginListenerHandle 98 | 99 | -------------------- 100 | 101 | 102 | ### removeAllListeners() 103 | 104 | ```typescript 105 | removeAllListeners() => Promise 106 | ``` 107 | 108 | Remove all native listeners for this plugin 109 | 110 | -------------------- 111 | 112 | 113 | ### createDynamicLink(...) 114 | 115 | ```typescript 116 | createDynamicLink(linkConfiguration: LinkConfig) => Promise<{ value: string; }> 117 | ``` 118 | 119 | Creates a new dynamic Link based on the configuration 120 | 121 | | Param | Type | Description | 122 | | ----------------------- | ------------------------------------------------- | -------------------------- | 123 | | **`linkConfiguration`** | LinkConfig | configuration for the link | 124 | 125 | **Returns:** Promise<{ value: string; }> 126 | 127 | -------------------- 128 | 129 | 130 | ### createDynamicShortLink(...) 131 | 132 | ```typescript 133 | createDynamicShortLink(linkConfiguration: LinkConfig) => Promise<{ value: string; }> 134 | ``` 135 | 136 | Creates a new short dynamic link based on the configuration. 137 | Its basically a shortened version of the dynamic link. * 138 | 139 | | Param | Type | Description | 140 | | ----------------------- | ------------------------------------------------- | -------------------------- | 141 | | **`linkConfiguration`** | LinkConfig | configuration for the link | 142 | 143 | **Returns:** Promise<{ value: string; }> 144 | 145 | -------------------- 146 | 147 | 148 | ### Interfaces 149 | 150 | 151 | #### PluginListenerHandle 152 | 153 | | Prop | Type | 154 | | ------------ | ----------------------------------------- | 155 | | **`remove`** | () => Promise<void> | 156 | 157 | 158 | #### DeepLinkOpen 159 | 160 | | Prop | Type | Description | 161 | | --------- | ------------------- | ----------------------- | 162 | | **`url`** | string | The URL that was opened | 163 | 164 | 165 | #### LinkConfig 166 | 167 | | Prop | Type | Description | 168 | | ---------------------------- | --------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | 169 | | **`uri`** | string | The link your app will open. | 170 | | **`domainUriPrefix`** | string | Your Dynamic Link URL prefix, which you can find in the Firebase console. A Dynamic Link domain looks like the following: `https://example.page.link`. | 171 | | **`androidParameters`** | AndroidParameters | Android specific configuration | 172 | | **`iosParameters`** | IOSParameters | iOS specific configuration | 173 | | **`navigationInfo`** | NavigationInfoParameters | Additional parameters for the navigation of the app. | 174 | | **`socialMeta`** | SocialMetaTagParameters | Configuration for showed data when sharing the link with social media. | 175 | | **`googleAnalytics`** | GoogleAnalyticsParameters | Google Play analytics paremeters | 176 | | **`iTunesConnectAnalytics`** | ItunesConnectAnalyticsParameters | iTunes Connect analytics parameters | 177 | | **`webApiKey`** | string | Firebase Web Api key | 178 | 179 | 180 | #### AndroidParameters 181 | 182 | | Prop | Type | Description | 183 | | -------------------- | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | 184 | | **`packageName`** | string | Your bundle ID (e.g. com.example.android) | 185 | | **`fallbackUrl`** | string | The link to open when the app isn't installed. Specify this to do something other than install your app from the Play Store when the app isn't installed, such as open the mobile web version of the content, or display a promotional page for your app. | 186 | | **`minimumVersion`** | number | The versionCode of the minimum version of your app that can open the link. If the installed app is an older version, the user is taken to the Play Store to upgrade the app. | 187 | 188 | 189 | #### IOSParameters 190 | 191 | | Prop | Type | Description | 192 | | --------------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | 193 | | **`bundleId`** | string | Your bundle ID (e.g. com.example.android) | 194 | | **`appStoreId`** | string | Your app's App Store ID, used to send users to the App Store when the app isn't installed | 195 | | **`fallbackUrl`** | string | The link to open when the app isn't installed. Specify this to do something other than install your app from the App Store when the app isn't installed, such as open the mobile web version of the content, or display a promotional page for your app. | 196 | | **`customScheme`** | string | Your app's custom URL scheme, if defined to be something other than your app's bundle ID | 197 | | **`ipadFallbackUrl`** | string | The link to open on iPads when the app isn't installed. Specify this to do something other than install your app from the App Store when the app isn't installed, such as open the web version of the content, or display a promotional page for your app. | 198 | | **`ipadBundleId`** | string | The bundle ID of the iOS app to use on iPads to open the link. The app must be connected to your project from the Overview page of the Firebase console. | 199 | | **`minimumVersion`** | string | The version number of the minimum version of your app that can open the link. This flag is passed to your app when it is opened, and your app must decide what to do with it. | 200 | 201 | 202 | #### NavigationInfoParameters 203 | 204 | | Prop | Type | Description | 205 | | --------------------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | 206 | | **`forcedRedirectEnabled`** | boolean | If set to true, skip the app preview page when the Dynamic Link is opened, and instead redirect to the app or store. The app preview page (enabled by default) can more reliably send users to the most appropriate destination when they open Dynamic Links in apps; however, if you expect a Dynamic Link to be opened only in apps that can open Dynamic Links reliably without this page, you can disable it with this parameter. This parameter will affect the behavior of the Dynamic Link only on iOS. | 207 | 208 | 209 | #### SocialMetaTagParameters 210 | 211 | | Prop | Type | Description | 212 | | ----------------- | ------------------- | -------------------------------------------------------------------------------------------------------- | 213 | | **`title`** | string | The title to use when the Dynamic Link is shared in a social post. | 214 | | **`description`** | string | The description to use when the Dynamic Link is shared in a social post. | 215 | | **`imageUrl`** | string | The URL to an image related to this link. The image should be at least 300x200 px, and less than 300 KB. | 216 | 217 | 218 | #### GoogleAnalyticsParameters 219 | 220 | | Prop | Type | Description | 221 | | -------------- | ------------------- | ------------------- | 222 | | **`source`** | string | Sets `utm_source` | 223 | | **`medium`** | string | Sets `utm_medium` | 224 | | **`campaign`** | string | Sets `utm_campaign` | 225 | | **`term`** | string | Sets `utm_term` | 226 | | **`content`** | string | Sets `utm_content` | 227 | 228 | 229 | #### ItunesConnectAnalyticsParameters 230 | 231 | | Prop | Type | Description | 232 | | -------------------- | ------------------- | ----------- | 233 | | **`providerToken`** | string | Sets `pt` | 234 | | **`affiliateToken`** | string | Sets `at` | 235 | | **`campaignToken`** | string | Sets `ct` | 236 | 237 | 238 | -------------------------------------------------------------------------------- /android/.npmignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | ext { 2 | junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2' 3 | androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.6.1' 4 | androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5' 5 | androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1' 6 | } 7 | 8 | buildscript { 9 | ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '1.8.20' 10 | 11 | repositories { 12 | mavenCentral() 13 | google() 14 | } 15 | dependencies { 16 | classpath 'com.android.tools.build:gradle:8.0.0' 17 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 18 | } 19 | } 20 | 21 | apply plugin: 'com.android.library' 22 | apply plugin: 'kotlin-android' 23 | 24 | android { 25 | namespace "health.clipboard.links.dynamic.firebase.capacitor.capacitorfirebasedynamiclinks" 26 | compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33 27 | defaultConfig { 28 | minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22 29 | targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 33 30 | versionCode 1 31 | versionName "1.0" 32 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 33 | } 34 | buildTypes { 35 | release { 36 | minifyEnabled false 37 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 38 | } 39 | } 40 | lintOptions { 41 | abortOnError false 42 | } 43 | compileOptions { 44 | sourceCompatibility JavaVersion.VERSION_17 45 | targetCompatibility JavaVersion.VERSION_17 46 | } 47 | kotlinOptions { 48 | jvmTarget = JavaVersion.VERSION_17 49 | } 50 | } 51 | 52 | repositories { 53 | google() 54 | mavenCentral() 55 | } 56 | 57 | dependencies { 58 | implementation fileTree(dir: 'libs', include: ['*.jar']) 59 | implementation project(':capacitor-android') 60 | implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion" 61 | testImplementation "junit:junit:$junitVersion" 62 | androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion" 63 | androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion" 64 | implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0' 65 | implementation 'com.google.firebase:firebase-dynamic-links-ktx:19.1.0' 66 | implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" 67 | } 68 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | 19 | android.useAndroidX=true -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Pantrist-dev/capacitor-firebase-dynamic-links/73ea71202e92d1b01f6b9d71b6a7779a8bbb113d/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-all.zip 4 | networkTimeout=10000 5 | zipStoreBase=GRADLE_USER_HOME 6 | zipStorePath=wrapper/dists 7 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Copyright © 2015-2021 the original authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | # 21 | # Gradle start up script for POSIX generated by Gradle. 22 | # 23 | # Important for running: 24 | # 25 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is 26 | # noncompliant, but you have some other compliant shell such as ksh or 27 | # bash, then to run this script, type that shell name before the whole 28 | # command line, like: 29 | # 30 | # ksh Gradle 31 | # 32 | # Busybox and similar reduced shells will NOT work, because this script 33 | # requires all of these POSIX shell features: 34 | # * functions; 35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}», 36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»; 37 | # * compound commands having a testable exit status, especially «case»; 38 | # * various built-in commands including «command», «set», and «ulimit». 39 | # 40 | # Important for patching: 41 | # 42 | # (2) This script targets any POSIX shell, so it avoids extensions provided 43 | # by Bash, Ksh, etc; in particular arrays are avoided. 44 | # 45 | # The "traditional" practice of packing multiple parameters into a 46 | # space-separated string is a well documented source of bugs and security 47 | # problems, so this is (mostly) avoided, by progressively accumulating 48 | # options in "$@", and eventually passing that to Java. 49 | # 50 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, 51 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; 52 | # see the in-line comments for details. 53 | # 54 | # There are tweaks for specific operating systems such as AIX, CygWin, 55 | # Darwin, MinGW, and NonStop. 56 | # 57 | # (3) This script is generated from the Groovy template 58 | # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt 59 | # within the Gradle project. 60 | # 61 | # You can find Gradle at https://github.com/gradle/gradle/. 62 | # 63 | ############################################################################## 64 | 65 | # Attempt to set APP_HOME 66 | 67 | # Resolve links: $0 may be a link 68 | app_path=$0 69 | 70 | # Need this for daisy-chained symlinks. 71 | while 72 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path 73 | [ -h "$app_path" ] 74 | do 75 | ls=$( ls -ld "$app_path" ) 76 | link=${ls#*' -> '} 77 | case $link in #( 78 | /*) app_path=$link ;; #( 79 | *) app_path=$APP_HOME$link ;; 80 | esac 81 | done 82 | 83 | # This is normally unused 84 | # shellcheck disable=SC2034 85 | APP_BASE_NAME=${0##*/} 86 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit 87 | 88 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 89 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 90 | 91 | # Use the maximum available, or set MAX_FD != -1 to use that value. 92 | MAX_FD=maximum 93 | 94 | warn () { 95 | echo "$*" 96 | } >&2 97 | 98 | die () { 99 | echo 100 | echo "$*" 101 | echo 102 | exit 1 103 | } >&2 104 | 105 | # OS specific support (must be 'true' or 'false'). 106 | cygwin=false 107 | msys=false 108 | darwin=false 109 | nonstop=false 110 | case "$( uname )" in #( 111 | CYGWIN* ) cygwin=true ;; #( 112 | Darwin* ) darwin=true ;; #( 113 | MSYS* | MINGW* ) msys=true ;; #( 114 | NONSTOP* ) nonstop=true ;; 115 | esac 116 | 117 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 118 | 119 | 120 | # Determine the Java command to use to start the JVM. 121 | if [ -n "$JAVA_HOME" ] ; then 122 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 123 | # IBM's JDK on AIX uses strange locations for the executables 124 | JAVACMD=$JAVA_HOME/jre/sh/java 125 | else 126 | JAVACMD=$JAVA_HOME/bin/java 127 | fi 128 | if [ ! -x "$JAVACMD" ] ; then 129 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 130 | 131 | Please set the JAVA_HOME variable in your environment to match the 132 | location of your Java installation." 133 | fi 134 | else 135 | JAVACMD=java 136 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 137 | 138 | Please set the JAVA_HOME variable in your environment to match the 139 | location of your Java installation." 140 | fi 141 | 142 | # Increase the maximum file descriptors if we can. 143 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then 144 | case $MAX_FD in #( 145 | max*) 146 | # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. 147 | # shellcheck disable=SC3045 148 | MAX_FD=$( ulimit -H -n ) || 149 | warn "Could not query maximum file descriptor limit" 150 | esac 151 | case $MAX_FD in #( 152 | '' | soft) :;; #( 153 | *) 154 | # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. 155 | # shellcheck disable=SC3045 156 | ulimit -n "$MAX_FD" || 157 | warn "Could not set maximum file descriptor limit to $MAX_FD" 158 | esac 159 | fi 160 | 161 | # Collect all arguments for the java command, stacking in reverse order: 162 | # * args from the command line 163 | # * the main class name 164 | # * -classpath 165 | # * -D...appname settings 166 | # * --module-path (only if needed) 167 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. 168 | 169 | # For Cygwin or MSYS, switch paths to Windows format before running java 170 | if "$cygwin" || "$msys" ; then 171 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) 172 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) 173 | 174 | JAVACMD=$( cygpath --unix "$JAVACMD" ) 175 | 176 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 177 | for arg do 178 | if 179 | case $arg in #( 180 | -*) false ;; # don't mess with options #( 181 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath 182 | [ -e "$t" ] ;; #( 183 | *) false ;; 184 | esac 185 | then 186 | arg=$( cygpath --path --ignore --mixed "$arg" ) 187 | fi 188 | # Roll the args list around exactly as many times as the number of 189 | # args, so each arg winds up back in the position where it started, but 190 | # possibly modified. 191 | # 192 | # NB: a `for` loop captures its iteration list before it begins, so 193 | # changing the positional parameters here affects neither the number of 194 | # iterations, nor the values presented in `arg`. 195 | shift # remove old arg 196 | set -- "$@" "$arg" # push replacement arg 197 | done 198 | fi 199 | 200 | # Collect all arguments for the java command; 201 | # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of 202 | # shell script including quotes and variable substitutions, so put them in 203 | # double quotes to make sure that they get re-expanded; and 204 | # * put everything else in single quotes, so that it's not re-expanded. 205 | 206 | set -- \ 207 | "-Dorg.gradle.appname=$APP_BASE_NAME" \ 208 | -classpath "$CLASSPATH" \ 209 | org.gradle.wrapper.GradleWrapperMain \ 210 | "$@" 211 | 212 | # Stop when "xargs" is not available. 213 | if ! command -v xargs >/dev/null 2>&1 214 | then 215 | die "xargs is not available" 216 | fi 217 | 218 | # Use "xargs" to parse quoted args. 219 | # 220 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed. 221 | # 222 | # In Bash we could simply go: 223 | # 224 | # readarray ARGS < <( xargs -n1 <<<"$var" ) && 225 | # set -- "${ARGS[@]}" "$@" 226 | # 227 | # but POSIX shell has neither arrays nor command substitution, so instead we 228 | # post-process each arg (as a line of input to sed) to backslash-escape any 229 | # character that might be a shell metacharacter, then use eval to reverse 230 | # that process (while maintaining the separation between arguments), and wrap 231 | # the whole thing up as a single "set" statement. 232 | # 233 | # This will of course break if any of these variables contains a newline or 234 | # an unmatched quote. 235 | # 236 | 237 | eval "set -- $( 238 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | 239 | xargs -n1 | 240 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | 241 | tr '\n' ' ' 242 | )" '"$@"' 243 | 244 | exec "$JAVACMD" "$@" 245 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%"=="" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%"=="" set DIRNAME=. 29 | @rem This is normally unused 30 | set APP_BASE_NAME=%~n0 31 | set APP_HOME=%DIRNAME% 32 | 33 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 34 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 35 | 36 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 37 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 38 | 39 | @rem Find java.exe 40 | if defined JAVA_HOME goto findJavaFromJavaHome 41 | 42 | set JAVA_EXE=java.exe 43 | %JAVA_EXE% -version >NUL 2>&1 44 | if %ERRORLEVEL% equ 0 goto execute 45 | 46 | echo. 47 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 48 | echo. 49 | echo Please set the JAVA_HOME variable in your environment to match the 50 | echo location of your Java installation. 51 | 52 | goto fail 53 | 54 | :findJavaFromJavaHome 55 | set JAVA_HOME=%JAVA_HOME:"=% 56 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 57 | 58 | if exist "%JAVA_EXE%" goto execute 59 | 60 | echo. 61 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 62 | echo. 63 | echo Please set the JAVA_HOME variable in your environment to match the 64 | echo location of your Java installation. 65 | 66 | goto fail 67 | 68 | :execute 69 | @rem Setup the command line 70 | 71 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 72 | 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if %ERRORLEVEL% equ 0 goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | set EXIT_CODE=%ERRORLEVEL% 85 | if %EXIT_CODE% equ 0 set EXIT_CODE=1 86 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% 87 | exit /b %EXIT_CODE% 88 | 89 | :mainEnd 90 | if "%OS%"=="Windows_NT" endlocal 91 | 92 | :omega 93 | -------------------------------------------------------------------------------- /android/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':capacitor-android' 2 | project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor') -------------------------------------------------------------------------------- /android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor.android; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.getcapacitor.android", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /android/src/main/java/com/pantrist/firebase/dynamiclinks/CapacitorFirebaseDynamicLinks.kt: -------------------------------------------------------------------------------- 1 | package com.pantrist.firebase.dynamiclinks 2 | 3 | import android.content.ContentValues 4 | import android.content.Intent 5 | import android.net.Uri 6 | import android.util.Log 7 | import com.getcapacitor.* 8 | import com.getcapacitor.annotation.CapacitorPlugin; 9 | import com.google.firebase.dynamiclinks.DynamicLink 10 | import com.google.firebase.dynamiclinks.FirebaseDynamicLinks 11 | 12 | @CapacitorPlugin 13 | class CapacitorFirebaseDynamicLinks : Plugin() { 14 | @PluginMethod 15 | fun createDynamicLink(call: PluginCall) { 16 | 17 | try { 18 | var domainUriPrefix = call.getString("domainUriPrefix") 19 | if (domainUriPrefix == null) { 20 | call.reject("domainUriPrefix is required!") 21 | return 22 | } 23 | 24 | var uri = call.getString("uri") 25 | if (uri == null) { 26 | call.reject("uri is required!") 27 | return 28 | } 29 | 30 | val builder = FirebaseDynamicLinks.getInstance() 31 | .createDynamicLink() 32 | .setDomainUriPrefix(domainUriPrefix) 33 | .setLink(Uri.parse(uri)) 34 | 35 | buildAndroidParameters(call, builder) 36 | buildIOSParameters(call, builder) 37 | buildGoogleAnalyticsParameters(call, builder) 38 | buildITunesParameters(call, builder) 39 | buildSocialMetaParameters(call, builder) 40 | 41 | val dynamicLink = builder.buildDynamicLink() 42 | 43 | val ret = JSObject() 44 | ret.put("value", dynamicLink.uri) 45 | call.resolve(ret) 46 | } catch (ex: Exception) { 47 | call.reject("Unable to create DynamicLink", ex) 48 | } 49 | } 50 | 51 | @PluginMethod 52 | fun createDynamicShortLink(call: PluginCall) { 53 | 54 | var domainUriPrefix = call.getString("domainUriPrefix") 55 | if (domainUriPrefix == null) { 56 | call.reject("domainUriPrefix is required!") 57 | return 58 | } 59 | 60 | var uri = call.getString("uri") 61 | if (uri == null) { 62 | call.reject("uri is required!") 63 | return 64 | } 65 | 66 | val builder = FirebaseDynamicLinks.getInstance() 67 | .createDynamicLink() 68 | .setDomainUriPrefix(domainUriPrefix) 69 | .setLink(Uri.parse(uri)) 70 | 71 | buildAndroidParameters(call, builder) 72 | buildIOSParameters(call, builder) 73 | buildGoogleAnalyticsParameters(call, builder) 74 | buildITunesParameters(call, builder) 75 | buildSocialMetaParameters(call, builder) 76 | 77 | val ret = JSObject() 78 | 79 | builder.buildShortDynamicLink().addOnSuccessListener { 80 | ret.put("value", it.shortLink) 81 | call.resolve(ret) 82 | }.addOnFailureListener { 83 | call.reject(it.localizedMessage) 84 | } 85 | } 86 | 87 | private fun buildGoogleAnalyticsParameters(call: PluginCall, builder: DynamicLink.Builder) { 88 | val googleAnalyticsParameters = call.getObject("googleAnalytics") 89 | if (googleAnalyticsParameters != null) { 90 | val googleAnalyticsParametersBuilder = DynamicLink.GoogleAnalyticsParameters.Builder() 91 | 92 | if (googleAnalyticsParameters.getString("source") != null) { 93 | googleAnalyticsParametersBuilder.source = googleAnalyticsParameters.getString("source")!! 94 | } 95 | 96 | if (googleAnalyticsParameters.getString("medium") != null) { 97 | googleAnalyticsParametersBuilder.medium = googleAnalyticsParameters.getString("medium")!! 98 | } 99 | 100 | if (googleAnalyticsParameters.getString("campaign") != null) { 101 | googleAnalyticsParametersBuilder.campaign = googleAnalyticsParameters.getString("campaign")!! 102 | } 103 | 104 | if (googleAnalyticsParameters.getString("term") != null) { 105 | googleAnalyticsParametersBuilder.term = googleAnalyticsParameters.getString("term")!! 106 | } 107 | 108 | if (googleAnalyticsParameters.getString("source") != null) { 109 | googleAnalyticsParametersBuilder.content = googleAnalyticsParameters.getString("content")!! 110 | } 111 | 112 | builder.setGoogleAnalyticsParameters(googleAnalyticsParametersBuilder.build()) 113 | } 114 | } 115 | 116 | private fun buildIOSParameters(call: PluginCall, builder: DynamicLink.Builder) { 117 | val iosParameters = call.getObject("iosParameters") 118 | 119 | if (iosParameters?.getString("bundleId") != null) { 120 | val iosParameterBuilder = DynamicLink.IosParameters.Builder(iosParameters.getString("bundleId")!!) 121 | 122 | if (iosParameters.getString("appStoreId") != null) { 123 | iosParameterBuilder.appStoreId = iosParameters.getString("appStoreId")!! 124 | } 125 | 126 | if (iosParameters.getString("fallbackUrl") != null) { 127 | iosParameterBuilder.setFallbackUrl(Uri.parse(iosParameters.getString("fallbackUrl"))) 128 | } 129 | 130 | if (iosParameters.getString("customScheme") != null) { 131 | iosParameterBuilder.customScheme = iosParameters.getString("customScheme")!! 132 | } 133 | 134 | if (iosParameters.getString("ipadFallbackUrl") != null) { 135 | iosParameterBuilder.ipadFallbackUrl = Uri.parse(iosParameters.getString("ipadFallbackUrl")) 136 | } 137 | 138 | if (iosParameters.getString("ipadBundleId") != null) { 139 | iosParameterBuilder.ipadBundleId = iosParameters.getString("ipadBundleId")!! 140 | } 141 | 142 | if (iosParameters.getString("minimumVersion") != null) { 143 | iosParameterBuilder.minimumVersion = iosParameters.getString("minimumVersion")!! 144 | } 145 | 146 | builder.setIosParameters(iosParameterBuilder.build()) 147 | } 148 | } 149 | 150 | private fun buildAndroidParameters(call: PluginCall, builder: DynamicLink.Builder) { 151 | val androidParameters = call.getObject("androidParameters") 152 | if (androidParameters != null) { 153 | val androidParameterBuilder = DynamicLink.AndroidParameters.Builder() 154 | 155 | if (androidParameters.getInteger("minimumVersion") != null) { 156 | androidParameterBuilder.minimumVersion = androidParameters.getInteger("minimumVersion")!! 157 | } 158 | 159 | if (androidParameters.getString("fallbackUrl") != null) { 160 | androidParameterBuilder.fallbackUrl = Uri.parse(androidParameters.getString("fallbackUrl")) 161 | } 162 | 163 | builder.setAndroidParameters(androidParameterBuilder.build()) 164 | } 165 | } 166 | 167 | private fun buildITunesParameters(call: PluginCall, builder: DynamicLink.Builder) { 168 | val iTunesConnectAnalyticsParameters = call.getObject("iTunesConnectAnalytics") 169 | if (iTunesConnectAnalyticsParameters != null) { 170 | val iTunesConnectAnalyticsParameterBuilder = DynamicLink.ItunesConnectAnalyticsParameters.Builder() 171 | 172 | if (iTunesConnectAnalyticsParameters.getString("providerToken") != null) { 173 | iTunesConnectAnalyticsParameterBuilder.providerToken = iTunesConnectAnalyticsParameters.getString("providerToken")!! 174 | } 175 | 176 | if (iTunesConnectAnalyticsParameters.getString("affiliateToken") != null) { 177 | iTunesConnectAnalyticsParameterBuilder.affiliateToken = iTunesConnectAnalyticsParameters.getString("affiliateToken")!! 178 | } 179 | 180 | if (iTunesConnectAnalyticsParameters.getString("campaignToken") != null) { 181 | iTunesConnectAnalyticsParameterBuilder.campaignToken = iTunesConnectAnalyticsParameters.getString("campaignToken")!! 182 | } 183 | 184 | builder.setItunesConnectAnalyticsParameters(iTunesConnectAnalyticsParameterBuilder.build()) 185 | } 186 | } 187 | 188 | private fun buildSocialMetaParameters(call: PluginCall, builder: DynamicLink.Builder) { 189 | val socialMetaParameters = call.getObject("socialMeta") 190 | if (socialMetaParameters != null) { 191 | val socialMetaParameterBuilder = DynamicLink.SocialMetaTagParameters.Builder() 192 | 193 | if (socialMetaParameters.getString("title") != null) { 194 | socialMetaParameterBuilder.title = socialMetaParameters.getString("title")!! 195 | } 196 | 197 | if (socialMetaParameters.getString("description") != null) { 198 | socialMetaParameterBuilder.description = socialMetaParameters.getString("description")!! 199 | } 200 | 201 | if (socialMetaParameters.getString("imageUrl") != null) { 202 | socialMetaParameterBuilder.imageUrl = Uri.parse(socialMetaParameters.getString("imageUrl")!!) 203 | } 204 | 205 | builder.setSocialMetaTagParameters(socialMetaParameterBuilder.build()) 206 | } 207 | } 208 | 209 | override fun handleOnNewIntent(intent: Intent) { 210 | super.handleOnNewIntent(intent) 211 | FirebaseDynamicLinks.getInstance() 212 | .getDynamicLink(intent) 213 | .addOnSuccessListener(activity) { pendingDynamicLinkData -> 214 | var deepLink: Uri? = null 215 | if (pendingDynamicLinkData != null) { 216 | deepLink = pendingDynamicLinkData.link 217 | } 218 | if (deepLink != null) { 219 | val ret = JSObject() 220 | ret.put("url", deepLink.toString()) 221 | notifyListeners(EVENT_DEEP_LINK, ret, true) 222 | } 223 | } 224 | .addOnFailureListener(activity) { e -> Log.e(logTag, "getDynamicLink:onFailure", e) } 225 | } 226 | 227 | companion object { 228 | private const val EVENT_DEEP_LINK = "deepLinkOpen" 229 | } 230 | } 231 | -------------------------------------------------------------------------------- /android/src/main/res/layout/bridge_layout_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /android/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /android/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Just a simple string 3 | 4 | -------------------------------------------------------------------------------- /android/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /android/src/test/java/com/getcapacitor/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /ios/Plugin.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 03FC29A292ACC40490383A1F /* Pods_Plugin.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B2A61DA5A1F2DD4F959604D /* Pods_Plugin.framework */; }; 11 | 20C0B05DCFC8E3958A738AF2 /* Pods_PluginTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F6753A823D3815DB436415E3 /* Pods_PluginTests.framework */; }; 12 | 50ADFF92201F53D600D50D53 /* Plugin.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50ADFF88201F53D600D50D53 /* Plugin.framework */; }; 13 | 50ADFF97201F53D600D50D53 /* PluginTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50ADFF96201F53D600D50D53 /* PluginTests.swift */; }; 14 | 50ADFF99201F53D600D50D53 /* Plugin.h in Headers */ = {isa = PBXBuildFile; fileRef = 50ADFF8B201F53D600D50D53 /* Plugin.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | 50ADFFA42020D75100D50D53 /* Capacitor.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50ADFFA52020D75100D50D53 /* Capacitor.framework */; }; 16 | 50ADFFA82020EE4F00D50D53 /* Plugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 50ADFFA72020EE4F00D50D53 /* Plugin.m */; }; 17 | 50E1A94820377CB70090CE1A /* Plugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50E1A94720377CB70090CE1A /* Plugin.swift */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 50ADFF93201F53D600D50D53 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 50ADFF7F201F53D600D50D53 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 50ADFF87201F53D600D50D53; 26 | remoteInfo = Plugin; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 3B2A61DA5A1F2DD4F959604D /* Pods_Plugin.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Plugin.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 50ADFF88201F53D600D50D53 /* Plugin.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Plugin.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | 50ADFF8B201F53D600D50D53 /* Plugin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Plugin.h; sourceTree = ""; }; 34 | 50ADFF8C201F53D600D50D53 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 35 | 50ADFF91201F53D600D50D53 /* PluginTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PluginTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 50ADFF96201F53D600D50D53 /* PluginTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PluginTests.swift; sourceTree = ""; }; 37 | 50ADFF98201F53D600D50D53 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 38 | 50ADFFA52020D75100D50D53 /* Capacitor.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Capacitor.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 50ADFFA72020EE4F00D50D53 /* Plugin.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Plugin.m; sourceTree = ""; }; 40 | 50E1A94720377CB70090CE1A /* Plugin.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Plugin.swift; sourceTree = ""; }; 41 | 5E23F77F099397094342571A /* Pods-Plugin.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Plugin.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Plugin/Pods-Plugin.debug.xcconfig"; sourceTree = ""; }; 42 | 91781294A431A2A7CC6EB714 /* Pods-Plugin.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Plugin.release.xcconfig"; path = "Pods/Target Support Files/Pods-Plugin/Pods-Plugin.release.xcconfig"; sourceTree = ""; }; 43 | 96ED1B6440D6672E406C8D19 /* Pods-PluginTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PluginTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.debug.xcconfig"; sourceTree = ""; }; 44 | F65BB2953ECE002E1EF3E424 /* Pods-PluginTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PluginTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.release.xcconfig"; sourceTree = ""; }; 45 | F6753A823D3815DB436415E3 /* Pods_PluginTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PluginTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | /* End PBXFileReference section */ 47 | 48 | /* Begin PBXFrameworksBuildPhase section */ 49 | 50ADFF84201F53D600D50D53 /* Frameworks */ = { 50 | isa = PBXFrameworksBuildPhase; 51 | buildActionMask = 2147483647; 52 | files = ( 53 | 50ADFFA42020D75100D50D53 /* Capacitor.framework in Frameworks */, 54 | 03FC29A292ACC40490383A1F /* Pods_Plugin.framework in Frameworks */, 55 | ); 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | 50ADFF8E201F53D600D50D53 /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | 50ADFF92201F53D600D50D53 /* Plugin.framework in Frameworks */, 63 | 20C0B05DCFC8E3958A738AF2 /* Pods_PluginTests.framework in Frameworks */, 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | /* End PBXFrameworksBuildPhase section */ 68 | 69 | /* Begin PBXGroup section */ 70 | 50ADFF7E201F53D600D50D53 = { 71 | isa = PBXGroup; 72 | children = ( 73 | 50ADFF8A201F53D600D50D53 /* Plugin */, 74 | 50ADFF95201F53D600D50D53 /* PluginTests */, 75 | 50ADFF89201F53D600D50D53 /* Products */, 76 | 8C8E7744173064A9F6D438E3 /* Pods */, 77 | A797B9EFA3DCEFEA1FBB66A9 /* Frameworks */, 78 | ); 79 | sourceTree = ""; 80 | }; 81 | 50ADFF89201F53D600D50D53 /* Products */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | 50ADFF88201F53D600D50D53 /* Plugin.framework */, 85 | 50ADFF91201F53D600D50D53 /* PluginTests.xctest */, 86 | ); 87 | name = Products; 88 | sourceTree = ""; 89 | }; 90 | 50ADFF8A201F53D600D50D53 /* Plugin */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 50E1A94720377CB70090CE1A /* Plugin.swift */, 94 | 50ADFF8B201F53D600D50D53 /* Plugin.h */, 95 | 50ADFFA72020EE4F00D50D53 /* Plugin.m */, 96 | 50ADFF8C201F53D600D50D53 /* Info.plist */, 97 | ); 98 | path = Plugin; 99 | sourceTree = ""; 100 | }; 101 | 50ADFF95201F53D600D50D53 /* PluginTests */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 50ADFF96201F53D600D50D53 /* PluginTests.swift */, 105 | 50ADFF98201F53D600D50D53 /* Info.plist */, 106 | ); 107 | path = PluginTests; 108 | sourceTree = ""; 109 | }; 110 | 8C8E7744173064A9F6D438E3 /* Pods */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 5E23F77F099397094342571A /* Pods-Plugin.debug.xcconfig */, 114 | 91781294A431A2A7CC6EB714 /* Pods-Plugin.release.xcconfig */, 115 | 96ED1B6440D6672E406C8D19 /* Pods-PluginTests.debug.xcconfig */, 116 | F65BB2953ECE002E1EF3E424 /* Pods-PluginTests.release.xcconfig */, 117 | ); 118 | name = Pods; 119 | sourceTree = ""; 120 | }; 121 | A797B9EFA3DCEFEA1FBB66A9 /* Frameworks */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 50ADFFA52020D75100D50D53 /* Capacitor.framework */, 125 | 3B2A61DA5A1F2DD4F959604D /* Pods_Plugin.framework */, 126 | F6753A823D3815DB436415E3 /* Pods_PluginTests.framework */, 127 | ); 128 | name = Frameworks; 129 | sourceTree = ""; 130 | }; 131 | /* End PBXGroup section */ 132 | 133 | /* Begin PBXHeadersBuildPhase section */ 134 | 50ADFF85201F53D600D50D53 /* Headers */ = { 135 | isa = PBXHeadersBuildPhase; 136 | buildActionMask = 2147483647; 137 | files = ( 138 | 50ADFF99201F53D600D50D53 /* Plugin.h in Headers */, 139 | ); 140 | runOnlyForDeploymentPostprocessing = 0; 141 | }; 142 | /* End PBXHeadersBuildPhase section */ 143 | 144 | /* Begin PBXNativeTarget section */ 145 | 50ADFF87201F53D600D50D53 /* Plugin */ = { 146 | isa = PBXNativeTarget; 147 | buildConfigurationList = 50ADFF9C201F53D600D50D53 /* Build configuration list for PBXNativeTarget "Plugin" */; 148 | buildPhases = ( 149 | AB5B3E54B4E897F32C2279DA /* [CP] Check Pods Manifest.lock */, 150 | 50ADFF83201F53D600D50D53 /* Sources */, 151 | 50ADFF84201F53D600D50D53 /* Frameworks */, 152 | 50ADFF85201F53D600D50D53 /* Headers */, 153 | 50ADFF86201F53D600D50D53 /* Resources */, 154 | ); 155 | buildRules = ( 156 | ); 157 | dependencies = ( 158 | ); 159 | name = Plugin; 160 | productName = Plugin; 161 | productReference = 50ADFF88201F53D600D50D53 /* Plugin.framework */; 162 | productType = "com.apple.product-type.framework"; 163 | }; 164 | 50ADFF90201F53D600D50D53 /* PluginTests */ = { 165 | isa = PBXNativeTarget; 166 | buildConfigurationList = 50ADFF9F201F53D600D50D53 /* Build configuration list for PBXNativeTarget "PluginTests" */; 167 | buildPhases = ( 168 | 0596884F929ED6F1DE134961 /* [CP] Check Pods Manifest.lock */, 169 | 50ADFF8D201F53D600D50D53 /* Sources */, 170 | 50ADFF8E201F53D600D50D53 /* Frameworks */, 171 | 50ADFF8F201F53D600D50D53 /* Resources */, 172 | CCA81D3B7E26D0D727D24C84 /* [CP] Embed Pods Frameworks */, 173 | ); 174 | buildRules = ( 175 | ); 176 | dependencies = ( 177 | 50ADFF94201F53D600D50D53 /* PBXTargetDependency */, 178 | ); 179 | name = PluginTests; 180 | productName = PluginTests; 181 | productReference = 50ADFF91201F53D600D50D53 /* PluginTests.xctest */; 182 | productType = "com.apple.product-type.bundle.unit-test"; 183 | }; 184 | /* End PBXNativeTarget section */ 185 | 186 | /* Begin PBXProject section */ 187 | 50ADFF7F201F53D600D50D53 /* Project object */ = { 188 | isa = PBXProject; 189 | attributes = { 190 | LastSwiftUpdateCheck = 0920; 191 | LastUpgradeCheck = 0920; 192 | ORGANIZATIONNAME = "Max Lynch"; 193 | TargetAttributes = { 194 | 50ADFF87201F53D600D50D53 = { 195 | CreatedOnToolsVersion = 9.2; 196 | LastSwiftMigration = 0920; 197 | ProvisioningStyle = Automatic; 198 | }; 199 | 50ADFF90201F53D600D50D53 = { 200 | CreatedOnToolsVersion = 9.2; 201 | ProvisioningStyle = Automatic; 202 | }; 203 | }; 204 | }; 205 | buildConfigurationList = 50ADFF82201F53D600D50D53 /* Build configuration list for PBXProject "Plugin" */; 206 | compatibilityVersion = "Xcode 8.0"; 207 | developmentRegion = en; 208 | hasScannedForEncodings = 0; 209 | knownRegions = ( 210 | en, 211 | ); 212 | mainGroup = 50ADFF7E201F53D600D50D53; 213 | productRefGroup = 50ADFF89201F53D600D50D53 /* Products */; 214 | projectDirPath = ""; 215 | projectRoot = ""; 216 | targets = ( 217 | 50ADFF87201F53D600D50D53 /* Plugin */, 218 | 50ADFF90201F53D600D50D53 /* PluginTests */, 219 | ); 220 | }; 221 | /* End PBXProject section */ 222 | 223 | /* Begin PBXResourcesBuildPhase section */ 224 | 50ADFF86201F53D600D50D53 /* Resources */ = { 225 | isa = PBXResourcesBuildPhase; 226 | buildActionMask = 2147483647; 227 | files = ( 228 | ); 229 | runOnlyForDeploymentPostprocessing = 0; 230 | }; 231 | 50ADFF8F201F53D600D50D53 /* Resources */ = { 232 | isa = PBXResourcesBuildPhase; 233 | buildActionMask = 2147483647; 234 | files = ( 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | }; 238 | /* End PBXResourcesBuildPhase section */ 239 | 240 | /* Begin PBXShellScriptBuildPhase section */ 241 | 0596884F929ED6F1DE134961 /* [CP] Check Pods Manifest.lock */ = { 242 | isa = PBXShellScriptBuildPhase; 243 | buildActionMask = 2147483647; 244 | files = ( 245 | ); 246 | inputPaths = ( 247 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 248 | "${PODS_ROOT}/Manifest.lock", 249 | ); 250 | name = "[CP] Check Pods Manifest.lock"; 251 | outputPaths = ( 252 | "$(DERIVED_FILE_DIR)/Pods-PluginTests-checkManifestLockResult.txt", 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | shellPath = /bin/sh; 256 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 257 | showEnvVarsInLog = 0; 258 | }; 259 | AB5B3E54B4E897F32C2279DA /* [CP] Check Pods Manifest.lock */ = { 260 | isa = PBXShellScriptBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | ); 264 | inputPaths = ( 265 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 266 | "${PODS_ROOT}/Manifest.lock", 267 | ); 268 | name = "[CP] Check Pods Manifest.lock"; 269 | outputPaths = ( 270 | "$(DERIVED_FILE_DIR)/Pods-Plugin-checkManifestLockResult.txt", 271 | ); 272 | runOnlyForDeploymentPostprocessing = 0; 273 | shellPath = /bin/sh; 274 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 275 | showEnvVarsInLog = 0; 276 | }; 277 | CCA81D3B7E26D0D727D24C84 /* [CP] Embed Pods Frameworks */ = { 278 | isa = PBXShellScriptBuildPhase; 279 | buildActionMask = 2147483647; 280 | files = ( 281 | ); 282 | inputPaths = ( 283 | "${PODS_ROOT}/Target Support Files/Pods-PluginTests/Pods-PluginTests-frameworks.sh", 284 | "${BUILT_PRODUCTS_DIR}/Capacitor/Capacitor.framework", 285 | "${BUILT_PRODUCTS_DIR}/CapacitorCordova/Cordova.framework", 286 | "${BUILT_PRODUCTS_DIR}/GoogleUtilities/GoogleUtilities.framework", 287 | "${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework", 288 | ); 289 | name = "[CP] Embed Pods Frameworks"; 290 | outputPaths = ( 291 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Capacitor.framework", 292 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Cordova.framework", 293 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleUtilities.framework", 294 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nanopb.framework", 295 | ); 296 | runOnlyForDeploymentPostprocessing = 0; 297 | shellPath = /bin/sh; 298 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-PluginTests/Pods-PluginTests-frameworks.sh\"\n"; 299 | showEnvVarsInLog = 0; 300 | }; 301 | /* End PBXShellScriptBuildPhase section */ 302 | 303 | /* Begin PBXSourcesBuildPhase section */ 304 | 50ADFF83201F53D600D50D53 /* Sources */ = { 305 | isa = PBXSourcesBuildPhase; 306 | buildActionMask = 2147483647; 307 | files = ( 308 | 50E1A94820377CB70090CE1A /* Plugin.swift in Sources */, 309 | 50ADFFA82020EE4F00D50D53 /* Plugin.m in Sources */, 310 | ); 311 | runOnlyForDeploymentPostprocessing = 0; 312 | }; 313 | 50ADFF8D201F53D600D50D53 /* Sources */ = { 314 | isa = PBXSourcesBuildPhase; 315 | buildActionMask = 2147483647; 316 | files = ( 317 | 50ADFF97201F53D600D50D53 /* PluginTests.swift in Sources */, 318 | ); 319 | runOnlyForDeploymentPostprocessing = 0; 320 | }; 321 | /* End PBXSourcesBuildPhase section */ 322 | 323 | /* Begin PBXTargetDependency section */ 324 | 50ADFF94201F53D600D50D53 /* PBXTargetDependency */ = { 325 | isa = PBXTargetDependency; 326 | target = 50ADFF87201F53D600D50D53 /* Plugin */; 327 | targetProxy = 50ADFF93201F53D600D50D53 /* PBXContainerItemProxy */; 328 | }; 329 | /* End PBXTargetDependency section */ 330 | 331 | /* Begin XCBuildConfiguration section */ 332 | 50ADFF9A201F53D600D50D53 /* Debug */ = { 333 | isa = XCBuildConfiguration; 334 | buildSettings = { 335 | ALWAYS_SEARCH_USER_PATHS = NO; 336 | CLANG_ANALYZER_NONNULL = YES; 337 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 338 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 339 | CLANG_CXX_LIBRARY = "libc++"; 340 | CLANG_ENABLE_MODULES = YES; 341 | CLANG_ENABLE_OBJC_ARC = YES; 342 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 343 | CLANG_WARN_BOOL_CONVERSION = YES; 344 | CLANG_WARN_COMMA = YES; 345 | CLANG_WARN_CONSTANT_CONVERSION = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 348 | CLANG_WARN_EMPTY_BODY = YES; 349 | CLANG_WARN_ENUM_CONVERSION = YES; 350 | CLANG_WARN_INFINITE_RECURSION = YES; 351 | CLANG_WARN_INT_CONVERSION = YES; 352 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 353 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 354 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 355 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 356 | CLANG_WARN_STRICT_PROTOTYPES = YES; 357 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 358 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 359 | CLANG_WARN_UNREACHABLE_CODE = YES; 360 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 361 | CODE_SIGN_IDENTITY = "iPhone Developer"; 362 | COPY_PHASE_STRIP = NO; 363 | CURRENT_PROJECT_VERSION = 1; 364 | DEBUG_INFORMATION_FORMAT = dwarf; 365 | ENABLE_STRICT_OBJC_MSGSEND = YES; 366 | ENABLE_TESTABILITY = YES; 367 | GCC_C_LANGUAGE_STANDARD = gnu11; 368 | GCC_DYNAMIC_NO_PIC = NO; 369 | GCC_NO_COMMON_BLOCKS = YES; 370 | GCC_OPTIMIZATION_LEVEL = 0; 371 | GCC_PREPROCESSOR_DEFINITIONS = ( 372 | "DEBUG=1", 373 | "$(inherited)", 374 | ); 375 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 376 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 377 | GCC_WARN_UNDECLARED_SELECTOR = YES; 378 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 379 | GCC_WARN_UNUSED_FUNCTION = YES; 380 | GCC_WARN_UNUSED_VARIABLE = YES; 381 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 382 | MTL_ENABLE_DEBUG_INFO = YES; 383 | ONLY_ACTIVE_ARCH = YES; 384 | SDKROOT = iphoneos; 385 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 386 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 387 | VERSIONING_SYSTEM = "apple-generic"; 388 | VERSION_INFO_PREFIX = ""; 389 | }; 390 | name = Debug; 391 | }; 392 | 50ADFF9B201F53D600D50D53 /* Release */ = { 393 | isa = XCBuildConfiguration; 394 | buildSettings = { 395 | ALWAYS_SEARCH_USER_PATHS = NO; 396 | CLANG_ANALYZER_NONNULL = YES; 397 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 398 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 399 | CLANG_CXX_LIBRARY = "libc++"; 400 | CLANG_ENABLE_MODULES = YES; 401 | CLANG_ENABLE_OBJC_ARC = YES; 402 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 403 | CLANG_WARN_BOOL_CONVERSION = YES; 404 | CLANG_WARN_COMMA = YES; 405 | CLANG_WARN_CONSTANT_CONVERSION = YES; 406 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 407 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 408 | CLANG_WARN_EMPTY_BODY = YES; 409 | CLANG_WARN_ENUM_CONVERSION = YES; 410 | CLANG_WARN_INFINITE_RECURSION = YES; 411 | CLANG_WARN_INT_CONVERSION = YES; 412 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 413 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 414 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 415 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 416 | CLANG_WARN_STRICT_PROTOTYPES = YES; 417 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 418 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 419 | CLANG_WARN_UNREACHABLE_CODE = YES; 420 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 421 | CODE_SIGN_IDENTITY = "iPhone Developer"; 422 | COPY_PHASE_STRIP = NO; 423 | CURRENT_PROJECT_VERSION = 1; 424 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 425 | ENABLE_NS_ASSERTIONS = NO; 426 | ENABLE_STRICT_OBJC_MSGSEND = YES; 427 | GCC_C_LANGUAGE_STANDARD = gnu11; 428 | GCC_NO_COMMON_BLOCKS = YES; 429 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 430 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 431 | GCC_WARN_UNDECLARED_SELECTOR = YES; 432 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 433 | GCC_WARN_UNUSED_FUNCTION = YES; 434 | GCC_WARN_UNUSED_VARIABLE = YES; 435 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 436 | MTL_ENABLE_DEBUG_INFO = NO; 437 | SDKROOT = iphoneos; 438 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 439 | VALIDATE_PRODUCT = YES; 440 | VERSIONING_SYSTEM = "apple-generic"; 441 | VERSION_INFO_PREFIX = ""; 442 | }; 443 | name = Release; 444 | }; 445 | 50ADFF9D201F53D600D50D53 /* Debug */ = { 446 | isa = XCBuildConfiguration; 447 | baseConfigurationReference = 5E23F77F099397094342571A /* Pods-Plugin.debug.xcconfig */; 448 | buildSettings = { 449 | CLANG_ENABLE_MODULES = YES; 450 | CODE_SIGN_IDENTITY = ""; 451 | CODE_SIGN_STYLE = Automatic; 452 | DEFINES_MODULE = YES; 453 | DYLIB_COMPATIBILITY_VERSION = 1; 454 | DYLIB_CURRENT_VERSION = 1; 455 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 456 | INFOPLIST_FILE = Plugin/Info.plist; 457 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 458 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 459 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)"; 460 | ONLY_ACTIVE_ARCH = YES; 461 | PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin; 462 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 463 | SKIP_INSTALL = YES; 464 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 465 | SWIFT_VERSION = 4.0; 466 | TARGETED_DEVICE_FAMILY = "1,2"; 467 | }; 468 | name = Debug; 469 | }; 470 | 50ADFF9E201F53D600D50D53 /* Release */ = { 471 | isa = XCBuildConfiguration; 472 | baseConfigurationReference = 91781294A431A2A7CC6EB714 /* Pods-Plugin.release.xcconfig */; 473 | buildSettings = { 474 | CLANG_ENABLE_MODULES = YES; 475 | CODE_SIGN_IDENTITY = ""; 476 | CODE_SIGN_STYLE = Automatic; 477 | DEFINES_MODULE = YES; 478 | DYLIB_COMPATIBILITY_VERSION = 1; 479 | DYLIB_CURRENT_VERSION = 1; 480 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 481 | INFOPLIST_FILE = Plugin/Info.plist; 482 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 483 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 484 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)"; 485 | ONLY_ACTIVE_ARCH = NO; 486 | PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin; 487 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 488 | SKIP_INSTALL = YES; 489 | SWIFT_VERSION = 4.0; 490 | TARGETED_DEVICE_FAMILY = "1,2"; 491 | }; 492 | name = Release; 493 | }; 494 | 50ADFFA0201F53D600D50D53 /* Debug */ = { 495 | isa = XCBuildConfiguration; 496 | baseConfigurationReference = 96ED1B6440D6672E406C8D19 /* Pods-PluginTests.debug.xcconfig */; 497 | buildSettings = { 498 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 499 | CODE_SIGN_STYLE = Automatic; 500 | INFOPLIST_FILE = PluginTests/Info.plist; 501 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 502 | PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.PluginTests; 503 | PRODUCT_NAME = "$(TARGET_NAME)"; 504 | SWIFT_VERSION = 4.0; 505 | TARGETED_DEVICE_FAMILY = "1,2"; 506 | }; 507 | name = Debug; 508 | }; 509 | 50ADFFA1201F53D600D50D53 /* Release */ = { 510 | isa = XCBuildConfiguration; 511 | baseConfigurationReference = F65BB2953ECE002E1EF3E424 /* Pods-PluginTests.release.xcconfig */; 512 | buildSettings = { 513 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 514 | CODE_SIGN_STYLE = Automatic; 515 | INFOPLIST_FILE = PluginTests/Info.plist; 516 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 517 | PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.PluginTests; 518 | PRODUCT_NAME = "$(TARGET_NAME)"; 519 | SWIFT_VERSION = 4.0; 520 | TARGETED_DEVICE_FAMILY = "1,2"; 521 | }; 522 | name = Release; 523 | }; 524 | /* End XCBuildConfiguration section */ 525 | 526 | /* Begin XCConfigurationList section */ 527 | 50ADFF82201F53D600D50D53 /* Build configuration list for PBXProject "Plugin" */ = { 528 | isa = XCConfigurationList; 529 | buildConfigurations = ( 530 | 50ADFF9A201F53D600D50D53 /* Debug */, 531 | 50ADFF9B201F53D600D50D53 /* Release */, 532 | ); 533 | defaultConfigurationIsVisible = 0; 534 | defaultConfigurationName = Release; 535 | }; 536 | 50ADFF9C201F53D600D50D53 /* Build configuration list for PBXNativeTarget "Plugin" */ = { 537 | isa = XCConfigurationList; 538 | buildConfigurations = ( 539 | 50ADFF9D201F53D600D50D53 /* Debug */, 540 | 50ADFF9E201F53D600D50D53 /* Release */, 541 | ); 542 | defaultConfigurationIsVisible = 0; 543 | defaultConfigurationName = Release; 544 | }; 545 | 50ADFF9F201F53D600D50D53 /* Build configuration list for PBXNativeTarget "PluginTests" */ = { 546 | isa = XCConfigurationList; 547 | buildConfigurations = ( 548 | 50ADFFA0201F53D600D50D53 /* Debug */, 549 | 50ADFFA1201F53D600D50D53 /* Release */, 550 | ); 551 | defaultConfigurationIsVisible = 0; 552 | defaultConfigurationName = Release; 553 | }; 554 | /* End XCConfigurationList section */ 555 | }; 556 | rootObject = 50ADFF7F201F53D600D50D53 /* Project object */; 557 | } 558 | -------------------------------------------------------------------------------- /ios/Plugin.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Plugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Plugin/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/Plugin/Plugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | //! Project version number for Plugin. 4 | FOUNDATION_EXPORT double PluginVersionNumber; 5 | 6 | //! Project version string for Plugin. 7 | FOUNDATION_EXPORT const unsigned char PluginVersionString[]; 8 | 9 | // In this header, you should import all the public headers of your framework using statements like #import 10 | 11 | -------------------------------------------------------------------------------- /ios/Plugin/Plugin.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | // Define the plugin using the CAP_PLUGIN Macro, and 5 | // each method the plugin supports using the CAP_PLUGIN_METHOD macro. 6 | CAP_PLUGIN(CapacitorFirebaseDynamicLinks, "CapacitorFirebaseDynamicLinks", 7 | CAP_PLUGIN_METHOD(createDynamicLink, CAPPluginReturnPromise); 8 | CAP_PLUGIN_METHOD(createDynamicShortLink, CAPPluginReturnPromise); 9 | CAP_PLUGIN_METHOD(removeAllListeners, CAPPluginReturnNone); 10 | ) 11 | -------------------------------------------------------------------------------- /ios/Plugin/Plugin.swift: -------------------------------------------------------------------------------- 1 | import Capacitor 2 | import FirebaseCore 3 | import FirebaseDynamicLinks 4 | import Foundation 5 | 6 | typealias JSObject = [String: Any] 7 | 8 | @objc(CapacitorFirebaseDynamicLinks) 9 | public class CapacitorFirebaseDynamicLinks: CAPPlugin { 10 | public override func load() { 11 | if FirebaseApp.app() == nil { 12 | FirebaseApp.configure() 13 | } 14 | 15 | DynamicLinks.performDiagnostics(completion: nil) 16 | 17 | NotificationCenter.default.addObserver(self, selector: #selector(handleUrlOpened(notification:)), name: Notification.Name.capacitorOpenURL, object: nil) 18 | NotificationCenter.default.addObserver(self, selector: #selector(handleUniversalLink(notification:)), name: Notification.Name.capacitorOpenUniversalLink, object: nil) 19 | } 20 | 21 | @objc func createDynamicLink(_ call: CAPPluginCall) { 22 | guard let link = URL(string: call.getString("uri")!) else { return } 23 | let dynamicLinksDomainURIPrefix = call.getString("domainUriPrefix")! 24 | 25 | guard let builder = DynamicLinkComponents(link: link, domainURIPrefix: dynamicLinksDomainURIPrefix) else { return } 26 | 27 | buildAndroidParameters(call: call, builder: builder) 28 | buildIOSParameters(call: call, builder: builder) 29 | buildGoogleAnalyticsParameters(call: call, builder: builder) 30 | buildITunesParameters(call: call, builder: builder) 31 | buildSocialMetaParameters(call: call, builder: builder) 32 | 33 | guard let longDynamicLink = builder.url else { return } 34 | print("The long URL is: \(longDynamicLink.absoluteString)") 35 | 36 | call.resolve([ 37 | "value": String(describing: longDynamicLink), 38 | ]) 39 | } 40 | 41 | @objc func createDynamicShortLink(_ call: CAPPluginCall) { 42 | guard let url = call.getString("uri") else { return } 43 | let link = NSURL(string: url as String) 44 | let dynamicLinksDomainURIPrefix = call.getString("domainUriPrefix")! 45 | 46 | guard let builder = DynamicLinkComponents(link: link! as URL, domainURIPrefix: dynamicLinksDomainURIPrefix) else { return } 47 | 48 | buildAndroidParameters(call: call, builder: builder) 49 | buildIOSParameters(call: call, builder: builder) 50 | buildGoogleAnalyticsParameters(call: call, builder: builder) 51 | buildITunesParameters(call: call, builder: builder) 52 | buildSocialMetaParameters(call: call, builder: builder) 53 | 54 | print("The long URL is: \(builder.url!.absoluteString)") 55 | 56 | builder.shorten { url, _, error in 57 | guard let url = url, error == nil else { 58 | print("createDynamicShortLink -> error: \(String(describing: error?.localizedDescription))") 59 | call.reject("Unable to create link") 60 | return 61 | } 62 | 63 | print("The short URL is: \(String(describing: url))") 64 | 65 | call.resolve([ 66 | "value": String(describing: url), 67 | ]) 68 | } 69 | } 70 | 71 | @objc func handleUrlOpened(notification: NSNotification) { 72 | guard 73 | let object = notification.object as? [String: Any?], 74 | let url = object["url"] as? URL 75 | else { 76 | print("CapacitorFirebaseDynamicLinks.handleUrlOpened() - couldn't parse url from notification") 77 | return 78 | } 79 | 80 | if let dynamicLink = DynamicLinks.dynamicLinks().dynamicLink(fromCustomSchemeURL: url) { 81 | self.handleLink(dynamicLink) 82 | } else { 83 | // This is likely to be a custom URL from some other process 84 | } 85 | } 86 | 87 | @objc func handleUniversalLink(notification: NSNotification) { 88 | guard 89 | let object = notification.object as? [String: Any?], 90 | let url = object["url"] as? NSURL, 91 | let parsed = URL(string: url.absoluteString!) 92 | else { 93 | print("CapacitorFirebaseDynamicLinks.handleUniversalLink() - couldn't parse url from notification") 94 | return 95 | } 96 | 97 | let response = DynamicLinks.dynamicLinks().handleUniversalLink(parsed) { (dynamiclink, error) in 98 | guard error == nil else { 99 | print("handleUniversalLink -> error: \(String(describing: error?.localizedDescription))") 100 | return 101 | } 102 | 103 | if let dynamicLink = dynamiclink { 104 | self.handleLink(dynamicLink) 105 | } 106 | } 107 | 108 | if !response { 109 | print(""" 110 | CapacitorFirebaseDynamicLinks.handleUniversalLink() 111 | Unable to parse dynamic link. Please ensure you have set up Firebase Dynamic Links correctly. 112 | """) 113 | } 114 | } 115 | 116 | func handleLink(_ dynamicLink: DynamicLink) { 117 | guard let url = dynamicLink.url else { 118 | print("CapacitorFirebaseDynamicLinks.handleLink() - Dynamic link has no url") 119 | return 120 | } 121 | 122 | print("CapacitorFirebaseDynamicLinks.handleLink() - url: \(url.absoluteString)") 123 | 124 | self.notifyListeners("deepLinkOpen", data: ["url": url.absoluteString], retainUntilConsumed: true) 125 | } 126 | 127 | private func buildGoogleAnalyticsParameters(call: CAPPluginCall, builder: DynamicLinkComponents) { 128 | let googleAnalyticsParameters = call.getObject("googleAnalytics") ?? [:] 129 | 130 | if googleAnalyticsParameters.count > 0 { 131 | let googleAnalyticsParametersBuilder = DynamicLinkGoogleAnalyticsParameters() 132 | 133 | if googleAnalyticsParameters["source"] != nil { 134 | googleAnalyticsParametersBuilder.source = googleAnalyticsParameters["source"] as? String 135 | } 136 | 137 | if googleAnalyticsParameters["medium"] != nil { 138 | googleAnalyticsParametersBuilder.medium = googleAnalyticsParameters["medium"] as? String 139 | } 140 | 141 | if googleAnalyticsParameters["campaign"] != nil { 142 | googleAnalyticsParametersBuilder.campaign = googleAnalyticsParameters["campaign"] as? String 143 | } 144 | 145 | if googleAnalyticsParameters["term"] != nil { 146 | googleAnalyticsParametersBuilder.term = googleAnalyticsParameters["term"] as? String 147 | } 148 | 149 | if googleAnalyticsParameters["content"] != nil { 150 | googleAnalyticsParametersBuilder.content = googleAnalyticsParameters["content"] as? String 151 | } 152 | 153 | builder.analyticsParameters = googleAnalyticsParametersBuilder 154 | } 155 | } 156 | 157 | private func buildIOSParameters(call: CAPPluginCall, builder: DynamicLinkComponents) { 158 | let iosParameters = call.getObject("iosParameters") ?? [:] 159 | 160 | if iosParameters.count > 0 { 161 | let iosParameterBuilder = DynamicLinkIOSParameters(bundleID: (iosParameters["bundleId"] as? String)!) 162 | 163 | if iosParameters["appStoreId"] != nil { 164 | iosParameterBuilder.appStoreID = iosParameters["appStoreId"] as? String 165 | } 166 | 167 | if iosParameters["fallbackUrl"] != nil { 168 | iosParameterBuilder.fallbackURL = URL(string: (iosParameters["fallbackUrl"] as? String)!) 169 | } 170 | 171 | if iosParameters["customScheme"] != nil { 172 | iosParameterBuilder.customScheme = iosParameters["customScheme"] as? String 173 | } 174 | 175 | if iosParameters["ipadFallbackUrl"] != nil { 176 | iosParameterBuilder.iPadFallbackURL = URL(string: iosParameters["ipadFallbackUrl"] as! String) 177 | } 178 | 179 | if iosParameters["ipadBundleId"] != nil { 180 | iosParameterBuilder.iPadBundleID = iosParameters["ipadBundleId"] as? String 181 | } 182 | 183 | if iosParameters["minimumVersion"] != nil { 184 | iosParameterBuilder.minimumAppVersion = iosParameters["minimumVersion"] as? String 185 | } 186 | 187 | builder.iOSParameters = iosParameterBuilder 188 | } 189 | } 190 | 191 | private func buildAndroidParameters(call: CAPPluginCall, builder: DynamicLinkComponents) { 192 | let androidParameters = call.getObject("androidParameters") ?? [:] 193 | 194 | if androidParameters.count > 0 { 195 | let androidParameterBuilder = DynamicLinkAndroidParameters(packageName: androidParameters["packageName"] as! String) 196 | 197 | if androidParameters["minimumVersion"] != nil { 198 | androidParameterBuilder.minimumVersion = androidParameters["minimumVersion"] as! Int 199 | } 200 | 201 | if androidParameters["fallbackUrl"] != nil { 202 | androidParameterBuilder.fallbackURL = URL(string: androidParameters["fallbackUrl"] as! String) 203 | } 204 | 205 | builder.androidParameters = androidParameterBuilder 206 | } 207 | } 208 | 209 | private func buildITunesParameters(call: CAPPluginCall, builder: DynamicLinkComponents) { 210 | let iTunesConnectAnalyticsParameters = call.getObject("iTunesConnectAnalytics") ?? [:] 211 | 212 | if iTunesConnectAnalyticsParameters.count > 0 { 213 | let iTunesConnectAnalyticsParameterBuilder = DynamicLinkItunesConnectAnalyticsParameters() 214 | 215 | if iTunesConnectAnalyticsParameters["providerToken"] != nil { 216 | iTunesConnectAnalyticsParameterBuilder.providerToken = iTunesConnectAnalyticsParameters["providerToken"] as? String 217 | } 218 | 219 | if iTunesConnectAnalyticsParameters["affiliateToken"] != nil { 220 | iTunesConnectAnalyticsParameterBuilder.affiliateToken = iTunesConnectAnalyticsParameters["affiliateToken"] as? String 221 | } 222 | 223 | if iTunesConnectAnalyticsParameters["campaignToken"] != nil { 224 | iTunesConnectAnalyticsParameterBuilder.campaignToken = iTunesConnectAnalyticsParameters["campaignToken"] as? String 225 | } 226 | 227 | builder.iTunesConnectParameters = iTunesConnectAnalyticsParameterBuilder 228 | } 229 | } 230 | 231 | private func buildSocialMetaParameters(call: CAPPluginCall, builder: DynamicLinkComponents) { 232 | let socialMetaParameters = call.getObject("socialMeta") ?? [:] 233 | 234 | if socialMetaParameters.count > 0 { 235 | let socialMetaParameterBuilder = DynamicLinkSocialMetaTagParameters() 236 | 237 | if socialMetaParameters["title"] != nil { 238 | socialMetaParameterBuilder.title = socialMetaParameters["title"] as? String 239 | } 240 | 241 | if socialMetaParameters["description"] != nil { 242 | socialMetaParameterBuilder.descriptionText = socialMetaParameters["description"] as? String 243 | } 244 | 245 | if socialMetaParameters["imageUrl"] != nil { 246 | socialMetaParameterBuilder.imageURL = URL(string: (socialMetaParameters["imageUrl"] as? String)!) 247 | } 248 | 249 | builder.socialMetaTagParameters = socialMetaParameterBuilder 250 | } 251 | } 252 | } 253 | -------------------------------------------------------------------------------- /ios/PluginTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /ios/PluginTests/PluginTests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import Capacitor 3 | @testable import Plugin 4 | 5 | class PluginTests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | // Put setup code here. This method is called before the invocation of each test method in the class. 10 | } 11 | 12 | override func tearDown() { 13 | // Put teardown code here. This method is called after the invocation of each test method in the class. 14 | super.tearDown() 15 | } 16 | 17 | func testEcho() { 18 | // This is an example of a functional test case for a plugin. 19 | // Use XCTAssert and related functions to verify your tests produce the correct results. 20 | 21 | let value = "Hello, World!" 22 | let plugin = MyPlugin() 23 | 24 | let call = CAPPluginCall(callbackId: "test", options: [ 25 | "value": value 26 | ], resolve: { (result, call) in 27 | let resultValue = result!.data["value"] as? String 28 | XCTAssertEqual(value, resultValue) 29 | }, reject: { (err) in 30 | XCTFail("Error shouldn't have been called") 31 | }) 32 | 33 | plugin.echo(call!) 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '13.0' 2 | 3 | def capacitor_pods 4 | # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 5 | use_frameworks! 6 | pod 'Capacitor', :path => '../node_modules/@capacitor/ios' 7 | pod 'CapacitorCordova', :path => '../node_modules/@capacitor/ios' 8 | pod 'Firebase/DynamicLinks' 9 | end 10 | 11 | target 'Plugin' do 12 | capacitor_pods 13 | end 14 | 15 | target 'PluginTests' do 16 | capacitor_pods 17 | end 18 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Capacitor (4.0.1): 3 | - CapacitorCordova 4 | - CapacitorCordova (4.0.1) 5 | - Firebase/Core (6.7.0): 6 | - Firebase/CoreOnly 7 | - FirebaseAnalytics (= 6.1.1) 8 | - Firebase/CoreOnly (6.7.0): 9 | - FirebaseCore (= 6.2.1) 10 | - Firebase/DynamicLinks (6.7.0): 11 | - Firebase/CoreOnly 12 | - FirebaseDynamicLinks (~> 4.0.3) 13 | - FirebaseAnalytics (6.1.1): 14 | - FirebaseCore (~> 6.2) 15 | - FirebaseInstanceID (~> 4.2) 16 | - GoogleAppMeasurement (= 6.1.1) 17 | - GoogleUtilities/AppDelegateSwizzler (~> 6.0) 18 | - GoogleUtilities/MethodSwizzler (~> 6.0) 19 | - GoogleUtilities/Network (~> 6.0) 20 | - "GoogleUtilities/NSData+zlib (~> 6.0)" 21 | - nanopb (~> 0.3) 22 | - FirebaseAnalyticsInterop (1.4.0) 23 | - FirebaseCore (6.2.1): 24 | - FirebaseCoreDiagnostics (~> 1.0) 25 | - FirebaseCoreDiagnosticsInterop (~> 1.0) 26 | - GoogleUtilities/Environment (~> 6.2) 27 | - GoogleUtilities/Logger (~> 6.2) 28 | - FirebaseCoreDiagnostics (1.0.1): 29 | - FirebaseCoreDiagnosticsInterop (~> 1.0) 30 | - GoogleDataTransportCCTSupport (~> 1.0) 31 | - GoogleUtilities/Environment (~> 6.2) 32 | - GoogleUtilities/Logger (~> 6.2) 33 | - FirebaseCoreDiagnosticsInterop (1.0.0) 34 | - FirebaseDynamicLinks (4.0.3): 35 | - FirebaseAnalyticsInterop (~> 1.3) 36 | - FirebaseCore (~> 6.2) 37 | - FirebaseInstanceID (4.2.3): 38 | - FirebaseCore (~> 6.0) 39 | - GoogleUtilities/Environment (~> 6.0) 40 | - GoogleUtilities/UserDefaults (~> 6.0) 41 | - GoogleAppMeasurement (6.1.1): 42 | - GoogleUtilities/AppDelegateSwizzler (~> 6.0) 43 | - GoogleUtilities/MethodSwizzler (~> 6.0) 44 | - GoogleUtilities/Network (~> 6.0) 45 | - "GoogleUtilities/NSData+zlib (~> 6.0)" 46 | - nanopb (~> 0.3) 47 | - GoogleDataTransport (1.1.3) 48 | - GoogleDataTransportCCTSupport (1.0.2): 49 | - GoogleDataTransport (~> 1.1) 50 | - nanopb 51 | - GoogleUtilities/AppDelegateSwizzler (6.2.5): 52 | - GoogleUtilities/Environment 53 | - GoogleUtilities/Logger 54 | - GoogleUtilities/Network 55 | - GoogleUtilities/Environment (6.2.5) 56 | - GoogleUtilities/Logger (6.2.5): 57 | - GoogleUtilities/Environment 58 | - GoogleUtilities/MethodSwizzler (6.2.5): 59 | - GoogleUtilities/Logger 60 | - GoogleUtilities/Network (6.2.5): 61 | - GoogleUtilities/Logger 62 | - "GoogleUtilities/NSData+zlib" 63 | - GoogleUtilities/Reachability 64 | - "GoogleUtilities/NSData+zlib (6.2.5)" 65 | - GoogleUtilities/Reachability (6.2.5): 66 | - GoogleUtilities/Logger 67 | - GoogleUtilities/UserDefaults (6.2.5): 68 | - GoogleUtilities/Logger 69 | - nanopb (0.3.901): 70 | - nanopb/decode (= 0.3.901) 71 | - nanopb/encode (= 0.3.901) 72 | - nanopb/decode (0.3.901) 73 | - nanopb/encode (0.3.901) 74 | 75 | DEPENDENCIES: 76 | - "Capacitor (from `../node_modules/@capacitor/ios`)" 77 | - "CapacitorCordova (from `../node_modules/@capacitor/ios`)" 78 | - Firebase/DynamicLinks 79 | 80 | SPEC REPOS: 81 | trunk: 82 | - Firebase 83 | - FirebaseAnalytics 84 | - FirebaseAnalyticsInterop 85 | - FirebaseCore 86 | - FirebaseCoreDiagnostics 87 | - FirebaseCoreDiagnosticsInterop 88 | - FirebaseDynamicLinks 89 | - FirebaseInstanceID 90 | - GoogleAppMeasurement 91 | - GoogleDataTransport 92 | - GoogleDataTransportCCTSupport 93 | - GoogleUtilities 94 | - nanopb 95 | 96 | EXTERNAL SOURCES: 97 | Capacitor: 98 | :path: "../node_modules/@capacitor/ios" 99 | CapacitorCordova: 100 | :path: "../node_modules/@capacitor/ios" 101 | 102 | SPEC CHECKSUMS: 103 | Capacitor: 706b36563433f4a866cbe6d2eade7c04725d9e08 104 | CapacitorCordova: 728728aeeee853028558fefb4ccf7310e9d85a7a 105 | Firebase: 291d7b0a7b393f252358083b5d224884126fa46d 106 | FirebaseAnalytics: 843c7f64a8f9c79f0d03281197ebe7bb1d58d477 107 | FirebaseAnalyticsInterop: d48b6ab67bcf016a05e55b71fc39c61c0cb6b7f3 108 | FirebaseCore: 32b48f41c84a56fbde73b35ed01a830b3b6dc048 109 | FirebaseCoreDiagnostics: 4c04ae09d0ab027c30179828c6bb47764df1bd13 110 | FirebaseCoreDiagnosticsInterop: 6829da2b8d1fc795ff1bd99df751d3788035d2cb 111 | FirebaseDynamicLinks: faaf90f0c580ac9da5f7b21564581d81d7b6f563 112 | FirebaseInstanceID: 8b42755db950682e7de0d167bc6fb26a57b244af 113 | GoogleAppMeasurement: 86a82f0e1f20b8eedf8e20326530138fd71409de 114 | GoogleDataTransport: 91e682bd60a49d3f8f69f2e909a66efaed5a1e7a 115 | GoogleDataTransportCCTSupport: 6b545f7149111180763dc18c6f372c963de4a310 116 | GoogleUtilities: e7dc37039b19df7fe543479d3e4a02ac8d11bb69 117 | nanopb: 2901f78ea1b7b4015c860c2fdd1ea2fee1a18d48 118 | 119 | PODFILE CHECKSUM: 88ecfc83b0dc33bfa54971b41b27809869bfad4b 120 | 121 | COCOAPODS: 1.11.3 122 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@pantrist/capacitor-firebase-dynamic-links", 3 | "version": "5.0.3", 4 | "lockfileVersion": 2, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "@pantrist/capacitor-firebase-dynamic-links", 9 | "version": "5.0.3", 10 | "license": "MIT", 11 | "devDependencies": { 12 | "@capacitor/android": "next", 13 | "@capacitor/docgen": "^0.2.0", 14 | "@capacitor/ios": "next", 15 | "prettier": "^2.7.1", 16 | "rimraf": "^3.0.2", 17 | "rollup": "2.77.2", 18 | "standard-version": "^9.5.0", 19 | "typescript": "^4.2.4" 20 | }, 21 | "peerDependencies": { 22 | "@capacitor/core": "next" 23 | } 24 | }, 25 | "node_modules/@babel/code-frame": { 26 | "version": "7.18.6", 27 | "dev": true, 28 | "license": "MIT", 29 | "dependencies": { 30 | "@babel/highlight": "^7.18.6" 31 | }, 32 | "engines": { 33 | "node": ">=6.9.0" 34 | } 35 | }, 36 | "node_modules/@babel/helper-validator-identifier": { 37 | "version": "7.19.1", 38 | "dev": true, 39 | "license": "MIT", 40 | "engines": { 41 | "node": ">=6.9.0" 42 | } 43 | }, 44 | "node_modules/@babel/highlight": { 45 | "version": "7.18.6", 46 | "dev": true, 47 | "license": "MIT", 48 | "dependencies": { 49 | "@babel/helper-validator-identifier": "^7.18.6", 50 | "chalk": "^2.0.0", 51 | "js-tokens": "^4.0.0" 52 | }, 53 | "engines": { 54 | "node": ">=6.9.0" 55 | } 56 | }, 57 | "node_modules/@capacitor/android": { 58 | "version": "5.0.0-rc.0", 59 | "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-5.0.0-rc.0.tgz", 60 | "integrity": "sha512-zvamsqqa73cODPicLtMj2680ofMXRg+cvxjPPFeos+mODCWa/+OGqo7lnhvRBvQVwhYwUgCnrBBiPCA3rNGz4w==", 61 | "dev": true, 62 | "peerDependencies": { 63 | "@capacitor/core": "^5.0.0-rc.0" 64 | } 65 | }, 66 | "node_modules/@capacitor/core": { 67 | "version": "5.0.0-rc.0", 68 | "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-5.0.0-rc.0.tgz", 69 | "integrity": "sha512-iDPIbnMC4AMilJ5SmFHFzs5Je32M7yD2zBzjLiZSIt6tLZh4ezYMtkOdofVsq4eFWa4XjvWFkb1J/U+rXZw90Q==", 70 | "peer": true, 71 | "dependencies": { 72 | "tslib": "^2.1.0" 73 | } 74 | }, 75 | "node_modules/@capacitor/docgen": { 76 | "version": "0.2.1", 77 | "resolved": "https://registry.npmjs.org/@capacitor/docgen/-/docgen-0.2.1.tgz", 78 | "integrity": "sha512-COS5teC6n+EOSaBS7voHnIeIKH7owALnVoI1AhVArIWtBrc1JxSgkUuvLHpti4VGZdXdsrtp4yBPUwGm8WOZKA==", 79 | "dev": true, 80 | "dependencies": { 81 | "@types/node": "^14.18.0", 82 | "colorette": "^2.0.16", 83 | "github-slugger": "^1.4.0", 84 | "minimist": "^1.2.5", 85 | "typescript": "~4.2.4" 86 | }, 87 | "bin": { 88 | "docgen": "bin/docgen" 89 | }, 90 | "engines": { 91 | "node": ">=14.5.0" 92 | } 93 | }, 94 | "node_modules/@capacitor/ios": { 95 | "version": "5.0.0-rc.0", 96 | "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-5.0.0-rc.0.tgz", 97 | "integrity": "sha512-k2DFpvY7cl2SEppf3M9XTo1LOFCCXa4GDRKwnfLoNxtlydnq0l/npDFRIYNQ7cUcPb0Rr8kFY9nlDC13fS4okg==", 98 | "dev": true, 99 | "peerDependencies": { 100 | "@capacitor/core": "^5.0.0-rc.0" 101 | } 102 | }, 103 | "node_modules/@hutson/parse-repository-url": { 104 | "version": "3.0.2", 105 | "dev": true, 106 | "license": "Apache-2.0", 107 | "engines": { 108 | "node": ">=6.9.0" 109 | } 110 | }, 111 | "node_modules/@types/minimist": { 112 | "version": "1.2.2", 113 | "dev": true, 114 | "license": "MIT" 115 | }, 116 | "node_modules/@types/node": { 117 | "version": "14.18.0", 118 | "dev": true, 119 | "license": "MIT" 120 | }, 121 | "node_modules/@types/normalize-package-data": { 122 | "version": "2.4.1", 123 | "dev": true, 124 | "license": "MIT" 125 | }, 126 | "node_modules/add-stream": { 127 | "version": "1.0.0", 128 | "dev": true, 129 | "license": "MIT" 130 | }, 131 | "node_modules/ansi-regex": { 132 | "version": "5.0.1", 133 | "dev": true, 134 | "license": "MIT", 135 | "engines": { 136 | "node": ">=8" 137 | } 138 | }, 139 | "node_modules/ansi-styles": { 140 | "version": "3.2.1", 141 | "dev": true, 142 | "license": "MIT", 143 | "dependencies": { 144 | "color-convert": "^1.9.0" 145 | }, 146 | "engines": { 147 | "node": ">=4" 148 | } 149 | }, 150 | "node_modules/array-ify": { 151 | "version": "1.0.0", 152 | "dev": true, 153 | "license": "MIT" 154 | }, 155 | "node_modules/arrify": { 156 | "version": "1.0.1", 157 | "dev": true, 158 | "license": "MIT", 159 | "engines": { 160 | "node": ">=0.10.0" 161 | } 162 | }, 163 | "node_modules/balanced-match": { 164 | "version": "1.0.2", 165 | "dev": true, 166 | "license": "MIT" 167 | }, 168 | "node_modules/brace-expansion": { 169 | "version": "1.1.11", 170 | "dev": true, 171 | "license": "MIT", 172 | "dependencies": { 173 | "balanced-match": "^1.0.0", 174 | "concat-map": "0.0.1" 175 | } 176 | }, 177 | "node_modules/buffer-from": { 178 | "version": "1.1.2", 179 | "dev": true, 180 | "license": "MIT" 181 | }, 182 | "node_modules/camelcase": { 183 | "version": "5.3.1", 184 | "dev": true, 185 | "license": "MIT", 186 | "engines": { 187 | "node": ">=6" 188 | } 189 | }, 190 | "node_modules/camelcase-keys": { 191 | "version": "6.2.2", 192 | "dev": true, 193 | "license": "MIT", 194 | "dependencies": { 195 | "camelcase": "^5.3.1", 196 | "map-obj": "^4.0.0", 197 | "quick-lru": "^4.0.1" 198 | }, 199 | "engines": { 200 | "node": ">=8" 201 | }, 202 | "funding": { 203 | "url": "https://github.com/sponsors/sindresorhus" 204 | } 205 | }, 206 | "node_modules/chalk": { 207 | "version": "2.4.2", 208 | "dev": true, 209 | "license": "MIT", 210 | "dependencies": { 211 | "ansi-styles": "^3.2.1", 212 | "escape-string-regexp": "^1.0.5", 213 | "supports-color": "^5.3.0" 214 | }, 215 | "engines": { 216 | "node": ">=4" 217 | } 218 | }, 219 | "node_modules/cliui": { 220 | "version": "7.0.4", 221 | "dev": true, 222 | "license": "ISC", 223 | "dependencies": { 224 | "string-width": "^4.2.0", 225 | "strip-ansi": "^6.0.0", 226 | "wrap-ansi": "^7.0.0" 227 | } 228 | }, 229 | "node_modules/color-convert": { 230 | "version": "1.9.3", 231 | "dev": true, 232 | "license": "MIT", 233 | "dependencies": { 234 | "color-name": "1.1.3" 235 | } 236 | }, 237 | "node_modules/color-name": { 238 | "version": "1.1.3", 239 | "dev": true, 240 | "license": "MIT" 241 | }, 242 | "node_modules/colorette": { 243 | "version": "2.0.19", 244 | "dev": true, 245 | "license": "MIT" 246 | }, 247 | "node_modules/compare-func": { 248 | "version": "2.0.0", 249 | "dev": true, 250 | "license": "MIT", 251 | "dependencies": { 252 | "array-ify": "^1.0.0", 253 | "dot-prop": "^5.1.0" 254 | } 255 | }, 256 | "node_modules/concat-map": { 257 | "version": "0.0.1", 258 | "dev": true, 259 | "license": "MIT" 260 | }, 261 | "node_modules/concat-stream": { 262 | "version": "2.0.0", 263 | "dev": true, 264 | "engines": [ 265 | "node >= 6.0" 266 | ], 267 | "license": "MIT", 268 | "dependencies": { 269 | "buffer-from": "^1.0.0", 270 | "inherits": "^2.0.3", 271 | "readable-stream": "^3.0.2", 272 | "typedarray": "^0.0.6" 273 | } 274 | }, 275 | "node_modules/conventional-changelog": { 276 | "version": "3.1.25", 277 | "dev": true, 278 | "license": "MIT", 279 | "dependencies": { 280 | "conventional-changelog-angular": "^5.0.12", 281 | "conventional-changelog-atom": "^2.0.8", 282 | "conventional-changelog-codemirror": "^2.0.8", 283 | "conventional-changelog-conventionalcommits": "^4.5.0", 284 | "conventional-changelog-core": "^4.2.1", 285 | "conventional-changelog-ember": "^2.0.9", 286 | "conventional-changelog-eslint": "^3.0.9", 287 | "conventional-changelog-express": "^2.0.6", 288 | "conventional-changelog-jquery": "^3.0.11", 289 | "conventional-changelog-jshint": "^2.0.9", 290 | "conventional-changelog-preset-loader": "^2.3.4" 291 | }, 292 | "engines": { 293 | "node": ">=10" 294 | } 295 | }, 296 | "node_modules/conventional-changelog-angular": { 297 | "version": "5.0.13", 298 | "dev": true, 299 | "license": "ISC", 300 | "dependencies": { 301 | "compare-func": "^2.0.0", 302 | "q": "^1.5.1" 303 | }, 304 | "engines": { 305 | "node": ">=10" 306 | } 307 | }, 308 | "node_modules/conventional-changelog-atom": { 309 | "version": "2.0.8", 310 | "dev": true, 311 | "license": "ISC", 312 | "dependencies": { 313 | "q": "^1.5.1" 314 | }, 315 | "engines": { 316 | "node": ">=10" 317 | } 318 | }, 319 | "node_modules/conventional-changelog-codemirror": { 320 | "version": "2.0.8", 321 | "dev": true, 322 | "license": "ISC", 323 | "dependencies": { 324 | "q": "^1.5.1" 325 | }, 326 | "engines": { 327 | "node": ">=10" 328 | } 329 | }, 330 | "node_modules/conventional-changelog-config-spec": { 331 | "version": "2.1.0", 332 | "dev": true, 333 | "license": "MIT" 334 | }, 335 | "node_modules/conventional-changelog-conventionalcommits": { 336 | "version": "4.6.3", 337 | "dev": true, 338 | "license": "ISC", 339 | "dependencies": { 340 | "compare-func": "^2.0.0", 341 | "lodash": "^4.17.15", 342 | "q": "^1.5.1" 343 | }, 344 | "engines": { 345 | "node": ">=10" 346 | } 347 | }, 348 | "node_modules/conventional-changelog-core": { 349 | "version": "4.2.4", 350 | "dev": true, 351 | "license": "MIT", 352 | "dependencies": { 353 | "add-stream": "^1.0.0", 354 | "conventional-changelog-writer": "^5.0.0", 355 | "conventional-commits-parser": "^3.2.0", 356 | "dateformat": "^3.0.0", 357 | "get-pkg-repo": "^4.0.0", 358 | "git-raw-commits": "^2.0.8", 359 | "git-remote-origin-url": "^2.0.0", 360 | "git-semver-tags": "^4.1.1", 361 | "lodash": "^4.17.15", 362 | "normalize-package-data": "^3.0.0", 363 | "q": "^1.5.1", 364 | "read-pkg": "^3.0.0", 365 | "read-pkg-up": "^3.0.0", 366 | "through2": "^4.0.0" 367 | }, 368 | "engines": { 369 | "node": ">=10" 370 | } 371 | }, 372 | "node_modules/conventional-changelog-ember": { 373 | "version": "2.0.9", 374 | "dev": true, 375 | "license": "ISC", 376 | "dependencies": { 377 | "q": "^1.5.1" 378 | }, 379 | "engines": { 380 | "node": ">=10" 381 | } 382 | }, 383 | "node_modules/conventional-changelog-eslint": { 384 | "version": "3.0.9", 385 | "dev": true, 386 | "license": "ISC", 387 | "dependencies": { 388 | "q": "^1.5.1" 389 | }, 390 | "engines": { 391 | "node": ">=10" 392 | } 393 | }, 394 | "node_modules/conventional-changelog-express": { 395 | "version": "2.0.6", 396 | "dev": true, 397 | "license": "ISC", 398 | "dependencies": { 399 | "q": "^1.5.1" 400 | }, 401 | "engines": { 402 | "node": ">=10" 403 | } 404 | }, 405 | "node_modules/conventional-changelog-jquery": { 406 | "version": "3.0.11", 407 | "dev": true, 408 | "license": "ISC", 409 | "dependencies": { 410 | "q": "^1.5.1" 411 | }, 412 | "engines": { 413 | "node": ">=10" 414 | } 415 | }, 416 | "node_modules/conventional-changelog-jshint": { 417 | "version": "2.0.9", 418 | "dev": true, 419 | "license": "ISC", 420 | "dependencies": { 421 | "compare-func": "^2.0.0", 422 | "q": "^1.5.1" 423 | }, 424 | "engines": { 425 | "node": ">=10" 426 | } 427 | }, 428 | "node_modules/conventional-changelog-preset-loader": { 429 | "version": "2.3.4", 430 | "dev": true, 431 | "license": "MIT", 432 | "engines": { 433 | "node": ">=10" 434 | } 435 | }, 436 | "node_modules/conventional-changelog-writer": { 437 | "version": "5.0.1", 438 | "dev": true, 439 | "license": "MIT", 440 | "dependencies": { 441 | "conventional-commits-filter": "^2.0.7", 442 | "dateformat": "^3.0.0", 443 | "handlebars": "^4.7.7", 444 | "json-stringify-safe": "^5.0.1", 445 | "lodash": "^4.17.15", 446 | "meow": "^8.0.0", 447 | "semver": "^6.0.0", 448 | "split": "^1.0.0", 449 | "through2": "^4.0.0" 450 | }, 451 | "bin": { 452 | "conventional-changelog-writer": "cli.js" 453 | }, 454 | "engines": { 455 | "node": ">=10" 456 | } 457 | }, 458 | "node_modules/conventional-changelog-writer/node_modules/semver": { 459 | "version": "6.3.0", 460 | "dev": true, 461 | "license": "ISC", 462 | "bin": { 463 | "semver": "bin/semver.js" 464 | } 465 | }, 466 | "node_modules/conventional-commits-filter": { 467 | "version": "2.0.7", 468 | "dev": true, 469 | "license": "MIT", 470 | "dependencies": { 471 | "lodash.ismatch": "^4.4.0", 472 | "modify-values": "^1.0.0" 473 | }, 474 | "engines": { 475 | "node": ">=10" 476 | } 477 | }, 478 | "node_modules/conventional-commits-parser": { 479 | "version": "3.2.4", 480 | "dev": true, 481 | "license": "MIT", 482 | "dependencies": { 483 | "is-text-path": "^1.0.1", 484 | "JSONStream": "^1.0.4", 485 | "lodash": "^4.17.15", 486 | "meow": "^8.0.0", 487 | "split2": "^3.0.0", 488 | "through2": "^4.0.0" 489 | }, 490 | "bin": { 491 | "conventional-commits-parser": "cli.js" 492 | }, 493 | "engines": { 494 | "node": ">=10" 495 | } 496 | }, 497 | "node_modules/conventional-recommended-bump": { 498 | "version": "6.1.0", 499 | "dev": true, 500 | "license": "MIT", 501 | "dependencies": { 502 | "concat-stream": "^2.0.0", 503 | "conventional-changelog-preset-loader": "^2.3.4", 504 | "conventional-commits-filter": "^2.0.7", 505 | "conventional-commits-parser": "^3.2.0", 506 | "git-raw-commits": "^2.0.8", 507 | "git-semver-tags": "^4.1.1", 508 | "meow": "^8.0.0", 509 | "q": "^1.5.1" 510 | }, 511 | "bin": { 512 | "conventional-recommended-bump": "cli.js" 513 | }, 514 | "engines": { 515 | "node": ">=10" 516 | } 517 | }, 518 | "node_modules/core-util-is": { 519 | "version": "1.0.3", 520 | "dev": true, 521 | "license": "MIT" 522 | }, 523 | "node_modules/dargs": { 524 | "version": "7.0.0", 525 | "dev": true, 526 | "license": "MIT", 527 | "engines": { 528 | "node": ">=8" 529 | } 530 | }, 531 | "node_modules/dateformat": { 532 | "version": "3.0.3", 533 | "dev": true, 534 | "license": "MIT", 535 | "engines": { 536 | "node": "*" 537 | } 538 | }, 539 | "node_modules/decamelize": { 540 | "version": "1.2.0", 541 | "dev": true, 542 | "license": "MIT", 543 | "engines": { 544 | "node": ">=0.10.0" 545 | } 546 | }, 547 | "node_modules/decamelize-keys": { 548 | "version": "1.1.1", 549 | "dev": true, 550 | "license": "MIT", 551 | "dependencies": { 552 | "decamelize": "^1.1.0", 553 | "map-obj": "^1.0.0" 554 | }, 555 | "engines": { 556 | "node": ">=0.10.0" 557 | }, 558 | "funding": { 559 | "url": "https://github.com/sponsors/sindresorhus" 560 | } 561 | }, 562 | "node_modules/decamelize-keys/node_modules/map-obj": { 563 | "version": "1.0.1", 564 | "dev": true, 565 | "license": "MIT", 566 | "engines": { 567 | "node": ">=0.10.0" 568 | } 569 | }, 570 | "node_modules/detect-indent": { 571 | "version": "6.1.0", 572 | "dev": true, 573 | "license": "MIT", 574 | "engines": { 575 | "node": ">=8" 576 | } 577 | }, 578 | "node_modules/detect-newline": { 579 | "version": "3.1.0", 580 | "dev": true, 581 | "license": "MIT", 582 | "engines": { 583 | "node": ">=8" 584 | } 585 | }, 586 | "node_modules/dot-prop": { 587 | "version": "5.3.0", 588 | "dev": true, 589 | "license": "MIT", 590 | "dependencies": { 591 | "is-obj": "^2.0.0" 592 | }, 593 | "engines": { 594 | "node": ">=8" 595 | } 596 | }, 597 | "node_modules/dotgitignore": { 598 | "version": "2.1.0", 599 | "dev": true, 600 | "license": "ISC", 601 | "dependencies": { 602 | "find-up": "^3.0.0", 603 | "minimatch": "^3.0.4" 604 | }, 605 | "engines": { 606 | "node": ">=6" 607 | } 608 | }, 609 | "node_modules/dotgitignore/node_modules/find-up": { 610 | "version": "3.0.0", 611 | "dev": true, 612 | "license": "MIT", 613 | "dependencies": { 614 | "locate-path": "^3.0.0" 615 | }, 616 | "engines": { 617 | "node": ">=6" 618 | } 619 | }, 620 | "node_modules/dotgitignore/node_modules/locate-path": { 621 | "version": "3.0.0", 622 | "dev": true, 623 | "license": "MIT", 624 | "dependencies": { 625 | "p-locate": "^3.0.0", 626 | "path-exists": "^3.0.0" 627 | }, 628 | "engines": { 629 | "node": ">=6" 630 | } 631 | }, 632 | "node_modules/dotgitignore/node_modules/p-limit": { 633 | "version": "2.3.0", 634 | "dev": true, 635 | "license": "MIT", 636 | "dependencies": { 637 | "p-try": "^2.0.0" 638 | }, 639 | "engines": { 640 | "node": ">=6" 641 | }, 642 | "funding": { 643 | "url": "https://github.com/sponsors/sindresorhus" 644 | } 645 | }, 646 | "node_modules/dotgitignore/node_modules/p-locate": { 647 | "version": "3.0.0", 648 | "dev": true, 649 | "license": "MIT", 650 | "dependencies": { 651 | "p-limit": "^2.0.0" 652 | }, 653 | "engines": { 654 | "node": ">=6" 655 | } 656 | }, 657 | "node_modules/dotgitignore/node_modules/path-exists": { 658 | "version": "3.0.0", 659 | "dev": true, 660 | "license": "MIT", 661 | "engines": { 662 | "node": ">=4" 663 | } 664 | }, 665 | "node_modules/emoji-regex": { 666 | "version": "8.0.0", 667 | "dev": true, 668 | "license": "MIT" 669 | }, 670 | "node_modules/error-ex": { 671 | "version": "1.3.2", 672 | "dev": true, 673 | "license": "MIT", 674 | "dependencies": { 675 | "is-arrayish": "^0.2.1" 676 | } 677 | }, 678 | "node_modules/escalade": { 679 | "version": "3.1.1", 680 | "dev": true, 681 | "license": "MIT", 682 | "engines": { 683 | "node": ">=6" 684 | } 685 | }, 686 | "node_modules/escape-string-regexp": { 687 | "version": "1.0.5", 688 | "dev": true, 689 | "license": "MIT", 690 | "engines": { 691 | "node": ">=0.8.0" 692 | } 693 | }, 694 | "node_modules/figures": { 695 | "version": "3.2.0", 696 | "dev": true, 697 | "license": "MIT", 698 | "dependencies": { 699 | "escape-string-regexp": "^1.0.5" 700 | }, 701 | "engines": { 702 | "node": ">=8" 703 | }, 704 | "funding": { 705 | "url": "https://github.com/sponsors/sindresorhus" 706 | } 707 | }, 708 | "node_modules/find-up": { 709 | "version": "5.0.0", 710 | "dev": true, 711 | "license": "MIT", 712 | "dependencies": { 713 | "locate-path": "^6.0.0", 714 | "path-exists": "^4.0.0" 715 | }, 716 | "engines": { 717 | "node": ">=10" 718 | }, 719 | "funding": { 720 | "url": "https://github.com/sponsors/sindresorhus" 721 | } 722 | }, 723 | "node_modules/fs.realpath": { 724 | "version": "1.0.0", 725 | "dev": true, 726 | "license": "ISC" 727 | }, 728 | "node_modules/fsevents": { 729 | "version": "2.3.2", 730 | "dev": true, 731 | "license": "MIT", 732 | "optional": true, 733 | "os": [ 734 | "darwin" 735 | ], 736 | "engines": { 737 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 738 | } 739 | }, 740 | "node_modules/function-bind": { 741 | "version": "1.1.1", 742 | "dev": true, 743 | "license": "MIT" 744 | }, 745 | "node_modules/get-caller-file": { 746 | "version": "2.0.5", 747 | "dev": true, 748 | "license": "ISC", 749 | "engines": { 750 | "node": "6.* || 8.* || >= 10.*" 751 | } 752 | }, 753 | "node_modules/get-pkg-repo": { 754 | "version": "4.2.1", 755 | "dev": true, 756 | "license": "MIT", 757 | "dependencies": { 758 | "@hutson/parse-repository-url": "^3.0.0", 759 | "hosted-git-info": "^4.0.0", 760 | "through2": "^2.0.0", 761 | "yargs": "^16.2.0" 762 | }, 763 | "bin": { 764 | "get-pkg-repo": "src/cli.js" 765 | }, 766 | "engines": { 767 | "node": ">=6.9.0" 768 | } 769 | }, 770 | "node_modules/get-pkg-repo/node_modules/readable-stream": { 771 | "version": "2.3.7", 772 | "dev": true, 773 | "license": "MIT", 774 | "dependencies": { 775 | "core-util-is": "~1.0.0", 776 | "inherits": "~2.0.3", 777 | "isarray": "~1.0.0", 778 | "process-nextick-args": "~2.0.0", 779 | "safe-buffer": "~5.1.1", 780 | "string_decoder": "~1.1.1", 781 | "util-deprecate": "~1.0.1" 782 | } 783 | }, 784 | "node_modules/get-pkg-repo/node_modules/safe-buffer": { 785 | "version": "5.1.2", 786 | "dev": true, 787 | "license": "MIT" 788 | }, 789 | "node_modules/get-pkg-repo/node_modules/string_decoder": { 790 | "version": "1.1.1", 791 | "dev": true, 792 | "license": "MIT", 793 | "dependencies": { 794 | "safe-buffer": "~5.1.0" 795 | } 796 | }, 797 | "node_modules/get-pkg-repo/node_modules/through2": { 798 | "version": "2.0.5", 799 | "dev": true, 800 | "license": "MIT", 801 | "dependencies": { 802 | "readable-stream": "~2.3.6", 803 | "xtend": "~4.0.1" 804 | } 805 | }, 806 | "node_modules/git-raw-commits": { 807 | "version": "2.0.11", 808 | "dev": true, 809 | "license": "MIT", 810 | "dependencies": { 811 | "dargs": "^7.0.0", 812 | "lodash": "^4.17.15", 813 | "meow": "^8.0.0", 814 | "split2": "^3.0.0", 815 | "through2": "^4.0.0" 816 | }, 817 | "bin": { 818 | "git-raw-commits": "cli.js" 819 | }, 820 | "engines": { 821 | "node": ">=10" 822 | } 823 | }, 824 | "node_modules/git-remote-origin-url": { 825 | "version": "2.0.0", 826 | "dev": true, 827 | "license": "MIT", 828 | "dependencies": { 829 | "gitconfiglocal": "^1.0.0", 830 | "pify": "^2.3.0" 831 | }, 832 | "engines": { 833 | "node": ">=4" 834 | } 835 | }, 836 | "node_modules/git-semver-tags": { 837 | "version": "4.1.1", 838 | "dev": true, 839 | "license": "MIT", 840 | "dependencies": { 841 | "meow": "^8.0.0", 842 | "semver": "^6.0.0" 843 | }, 844 | "bin": { 845 | "git-semver-tags": "cli.js" 846 | }, 847 | "engines": { 848 | "node": ">=10" 849 | } 850 | }, 851 | "node_modules/git-semver-tags/node_modules/semver": { 852 | "version": "6.3.0", 853 | "dev": true, 854 | "license": "ISC", 855 | "bin": { 856 | "semver": "bin/semver.js" 857 | } 858 | }, 859 | "node_modules/gitconfiglocal": { 860 | "version": "1.0.0", 861 | "dev": true, 862 | "license": "BSD", 863 | "dependencies": { 864 | "ini": "^1.3.2" 865 | } 866 | }, 867 | "node_modules/github-slugger": { 868 | "version": "1.4.0", 869 | "dev": true, 870 | "license": "ISC" 871 | }, 872 | "node_modules/glob": { 873 | "version": "7.1.7", 874 | "dev": true, 875 | "license": "ISC", 876 | "dependencies": { 877 | "fs.realpath": "^1.0.0", 878 | "inflight": "^1.0.4", 879 | "inherits": "2", 880 | "minimatch": "^3.0.4", 881 | "once": "^1.3.0", 882 | "path-is-absolute": "^1.0.0" 883 | }, 884 | "engines": { 885 | "node": "*" 886 | }, 887 | "funding": { 888 | "url": "https://github.com/sponsors/isaacs" 889 | } 890 | }, 891 | "node_modules/graceful-fs": { 892 | "version": "4.2.10", 893 | "dev": true, 894 | "license": "ISC" 895 | }, 896 | "node_modules/handlebars": { 897 | "version": "4.7.7", 898 | "dev": true, 899 | "license": "MIT", 900 | "dependencies": { 901 | "minimist": "^1.2.5", 902 | "neo-async": "^2.6.0", 903 | "source-map": "^0.6.1", 904 | "wordwrap": "^1.0.0" 905 | }, 906 | "bin": { 907 | "handlebars": "bin/handlebars" 908 | }, 909 | "engines": { 910 | "node": ">=0.4.7" 911 | }, 912 | "optionalDependencies": { 913 | "uglify-js": "^3.1.4" 914 | } 915 | }, 916 | "node_modules/hard-rejection": { 917 | "version": "2.1.0", 918 | "dev": true, 919 | "license": "MIT", 920 | "engines": { 921 | "node": ">=6" 922 | } 923 | }, 924 | "node_modules/has": { 925 | "version": "1.0.3", 926 | "dev": true, 927 | "license": "MIT", 928 | "dependencies": { 929 | "function-bind": "^1.1.1" 930 | }, 931 | "engines": { 932 | "node": ">= 0.4.0" 933 | } 934 | }, 935 | "node_modules/has-flag": { 936 | "version": "3.0.0", 937 | "dev": true, 938 | "license": "MIT", 939 | "engines": { 940 | "node": ">=4" 941 | } 942 | }, 943 | "node_modules/hosted-git-info": { 944 | "version": "4.1.0", 945 | "dev": true, 946 | "license": "ISC", 947 | "dependencies": { 948 | "lru-cache": "^6.0.0" 949 | }, 950 | "engines": { 951 | "node": ">=10" 952 | } 953 | }, 954 | "node_modules/indent-string": { 955 | "version": "4.0.0", 956 | "dev": true, 957 | "license": "MIT", 958 | "engines": { 959 | "node": ">=8" 960 | } 961 | }, 962 | "node_modules/inflight": { 963 | "version": "1.0.6", 964 | "dev": true, 965 | "license": "ISC", 966 | "dependencies": { 967 | "once": "^1.3.0", 968 | "wrappy": "1" 969 | } 970 | }, 971 | "node_modules/inherits": { 972 | "version": "2.0.4", 973 | "dev": true, 974 | "license": "ISC" 975 | }, 976 | "node_modules/ini": { 977 | "version": "1.3.8", 978 | "dev": true, 979 | "license": "ISC" 980 | }, 981 | "node_modules/is-arrayish": { 982 | "version": "0.2.1", 983 | "dev": true, 984 | "license": "MIT" 985 | }, 986 | "node_modules/is-core-module": { 987 | "version": "2.11.0", 988 | "dev": true, 989 | "license": "MIT", 990 | "dependencies": { 991 | "has": "^1.0.3" 992 | }, 993 | "funding": { 994 | "url": "https://github.com/sponsors/ljharb" 995 | } 996 | }, 997 | "node_modules/is-fullwidth-code-point": { 998 | "version": "3.0.0", 999 | "dev": true, 1000 | "license": "MIT", 1001 | "engines": { 1002 | "node": ">=8" 1003 | } 1004 | }, 1005 | "node_modules/is-obj": { 1006 | "version": "2.0.0", 1007 | "dev": true, 1008 | "license": "MIT", 1009 | "engines": { 1010 | "node": ">=8" 1011 | } 1012 | }, 1013 | "node_modules/is-plain-obj": { 1014 | "version": "1.1.0", 1015 | "dev": true, 1016 | "license": "MIT", 1017 | "engines": { 1018 | "node": ">=0.10.0" 1019 | } 1020 | }, 1021 | "node_modules/is-text-path": { 1022 | "version": "1.0.1", 1023 | "dev": true, 1024 | "license": "MIT", 1025 | "dependencies": { 1026 | "text-extensions": "^1.0.0" 1027 | }, 1028 | "engines": { 1029 | "node": ">=0.10.0" 1030 | } 1031 | }, 1032 | "node_modules/isarray": { 1033 | "version": "1.0.0", 1034 | "dev": true, 1035 | "license": "MIT" 1036 | }, 1037 | "node_modules/js-tokens": { 1038 | "version": "4.0.0", 1039 | "dev": true, 1040 | "license": "MIT" 1041 | }, 1042 | "node_modules/json-parse-better-errors": { 1043 | "version": "1.0.2", 1044 | "dev": true, 1045 | "license": "MIT" 1046 | }, 1047 | "node_modules/json-parse-even-better-errors": { 1048 | "version": "2.3.1", 1049 | "dev": true, 1050 | "license": "MIT" 1051 | }, 1052 | "node_modules/json-stringify-safe": { 1053 | "version": "5.0.1", 1054 | "dev": true, 1055 | "license": "ISC" 1056 | }, 1057 | "node_modules/jsonparse": { 1058 | "version": "1.3.1", 1059 | "dev": true, 1060 | "engines": [ 1061 | "node >= 0.2.0" 1062 | ], 1063 | "license": "MIT" 1064 | }, 1065 | "node_modules/JSONStream": { 1066 | "version": "1.3.5", 1067 | "dev": true, 1068 | "license": "(MIT OR Apache-2.0)", 1069 | "dependencies": { 1070 | "jsonparse": "^1.2.0", 1071 | "through": ">=2.2.7 <3" 1072 | }, 1073 | "bin": { 1074 | "JSONStream": "bin.js" 1075 | }, 1076 | "engines": { 1077 | "node": "*" 1078 | } 1079 | }, 1080 | "node_modules/kind-of": { 1081 | "version": "6.0.3", 1082 | "dev": true, 1083 | "license": "MIT", 1084 | "engines": { 1085 | "node": ">=0.10.0" 1086 | } 1087 | }, 1088 | "node_modules/lines-and-columns": { 1089 | "version": "1.2.4", 1090 | "dev": true, 1091 | "license": "MIT" 1092 | }, 1093 | "node_modules/load-json-file": { 1094 | "version": "4.0.0", 1095 | "dev": true, 1096 | "license": "MIT", 1097 | "dependencies": { 1098 | "graceful-fs": "^4.1.2", 1099 | "parse-json": "^4.0.0", 1100 | "pify": "^3.0.0", 1101 | "strip-bom": "^3.0.0" 1102 | }, 1103 | "engines": { 1104 | "node": ">=4" 1105 | } 1106 | }, 1107 | "node_modules/load-json-file/node_modules/pify": { 1108 | "version": "3.0.0", 1109 | "dev": true, 1110 | "license": "MIT", 1111 | "engines": { 1112 | "node": ">=4" 1113 | } 1114 | }, 1115 | "node_modules/locate-path": { 1116 | "version": "6.0.0", 1117 | "dev": true, 1118 | "license": "MIT", 1119 | "dependencies": { 1120 | "p-locate": "^5.0.0" 1121 | }, 1122 | "engines": { 1123 | "node": ">=10" 1124 | }, 1125 | "funding": { 1126 | "url": "https://github.com/sponsors/sindresorhus" 1127 | } 1128 | }, 1129 | "node_modules/lodash": { 1130 | "version": "4.17.21", 1131 | "dev": true, 1132 | "license": "MIT" 1133 | }, 1134 | "node_modules/lodash.ismatch": { 1135 | "version": "4.4.0", 1136 | "dev": true, 1137 | "license": "MIT" 1138 | }, 1139 | "node_modules/lru-cache": { 1140 | "version": "6.0.0", 1141 | "dev": true, 1142 | "license": "ISC", 1143 | "dependencies": { 1144 | "yallist": "^4.0.0" 1145 | }, 1146 | "engines": { 1147 | "node": ">=10" 1148 | } 1149 | }, 1150 | "node_modules/map-obj": { 1151 | "version": "4.3.0", 1152 | "dev": true, 1153 | "license": "MIT", 1154 | "engines": { 1155 | "node": ">=8" 1156 | }, 1157 | "funding": { 1158 | "url": "https://github.com/sponsors/sindresorhus" 1159 | } 1160 | }, 1161 | "node_modules/meow": { 1162 | "version": "8.1.2", 1163 | "dev": true, 1164 | "license": "MIT", 1165 | "dependencies": { 1166 | "@types/minimist": "^1.2.0", 1167 | "camelcase-keys": "^6.2.2", 1168 | "decamelize-keys": "^1.1.0", 1169 | "hard-rejection": "^2.1.0", 1170 | "minimist-options": "4.1.0", 1171 | "normalize-package-data": "^3.0.0", 1172 | "read-pkg-up": "^7.0.1", 1173 | "redent": "^3.0.0", 1174 | "trim-newlines": "^3.0.0", 1175 | "type-fest": "^0.18.0", 1176 | "yargs-parser": "^20.2.3" 1177 | }, 1178 | "engines": { 1179 | "node": ">=10" 1180 | }, 1181 | "funding": { 1182 | "url": "https://github.com/sponsors/sindresorhus" 1183 | } 1184 | }, 1185 | "node_modules/meow/node_modules/find-up": { 1186 | "version": "4.1.0", 1187 | "dev": true, 1188 | "license": "MIT", 1189 | "dependencies": { 1190 | "locate-path": "^5.0.0", 1191 | "path-exists": "^4.0.0" 1192 | }, 1193 | "engines": { 1194 | "node": ">=8" 1195 | } 1196 | }, 1197 | "node_modules/meow/node_modules/hosted-git-info": { 1198 | "version": "2.8.9", 1199 | "dev": true, 1200 | "license": "ISC" 1201 | }, 1202 | "node_modules/meow/node_modules/locate-path": { 1203 | "version": "5.0.0", 1204 | "dev": true, 1205 | "license": "MIT", 1206 | "dependencies": { 1207 | "p-locate": "^4.1.0" 1208 | }, 1209 | "engines": { 1210 | "node": ">=8" 1211 | } 1212 | }, 1213 | "node_modules/meow/node_modules/p-limit": { 1214 | "version": "2.3.0", 1215 | "dev": true, 1216 | "license": "MIT", 1217 | "dependencies": { 1218 | "p-try": "^2.0.0" 1219 | }, 1220 | "engines": { 1221 | "node": ">=6" 1222 | }, 1223 | "funding": { 1224 | "url": "https://github.com/sponsors/sindresorhus" 1225 | } 1226 | }, 1227 | "node_modules/meow/node_modules/p-locate": { 1228 | "version": "4.1.0", 1229 | "dev": true, 1230 | "license": "MIT", 1231 | "dependencies": { 1232 | "p-limit": "^2.2.0" 1233 | }, 1234 | "engines": { 1235 | "node": ">=8" 1236 | } 1237 | }, 1238 | "node_modules/meow/node_modules/parse-json": { 1239 | "version": "5.2.0", 1240 | "dev": true, 1241 | "license": "MIT", 1242 | "dependencies": { 1243 | "@babel/code-frame": "^7.0.0", 1244 | "error-ex": "^1.3.1", 1245 | "json-parse-even-better-errors": "^2.3.0", 1246 | "lines-and-columns": "^1.1.6" 1247 | }, 1248 | "engines": { 1249 | "node": ">=8" 1250 | }, 1251 | "funding": { 1252 | "url": "https://github.com/sponsors/sindresorhus" 1253 | } 1254 | }, 1255 | "node_modules/meow/node_modules/read-pkg": { 1256 | "version": "5.2.0", 1257 | "dev": true, 1258 | "license": "MIT", 1259 | "dependencies": { 1260 | "@types/normalize-package-data": "^2.4.0", 1261 | "normalize-package-data": "^2.5.0", 1262 | "parse-json": "^5.0.0", 1263 | "type-fest": "^0.6.0" 1264 | }, 1265 | "engines": { 1266 | "node": ">=8" 1267 | } 1268 | }, 1269 | "node_modules/meow/node_modules/read-pkg-up": { 1270 | "version": "7.0.1", 1271 | "dev": true, 1272 | "license": "MIT", 1273 | "dependencies": { 1274 | "find-up": "^4.1.0", 1275 | "read-pkg": "^5.2.0", 1276 | "type-fest": "^0.8.1" 1277 | }, 1278 | "engines": { 1279 | "node": ">=8" 1280 | }, 1281 | "funding": { 1282 | "url": "https://github.com/sponsors/sindresorhus" 1283 | } 1284 | }, 1285 | "node_modules/meow/node_modules/read-pkg-up/node_modules/type-fest": { 1286 | "version": "0.8.1", 1287 | "dev": true, 1288 | "license": "(MIT OR CC0-1.0)", 1289 | "engines": { 1290 | "node": ">=8" 1291 | } 1292 | }, 1293 | "node_modules/meow/node_modules/read-pkg/node_modules/normalize-package-data": { 1294 | "version": "2.5.0", 1295 | "dev": true, 1296 | "license": "BSD-2-Clause", 1297 | "dependencies": { 1298 | "hosted-git-info": "^2.1.4", 1299 | "resolve": "^1.10.0", 1300 | "semver": "2 || 3 || 4 || 5", 1301 | "validate-npm-package-license": "^3.0.1" 1302 | } 1303 | }, 1304 | "node_modules/meow/node_modules/read-pkg/node_modules/type-fest": { 1305 | "version": "0.6.0", 1306 | "dev": true, 1307 | "license": "(MIT OR CC0-1.0)", 1308 | "engines": { 1309 | "node": ">=8" 1310 | } 1311 | }, 1312 | "node_modules/meow/node_modules/semver": { 1313 | "version": "5.7.1", 1314 | "dev": true, 1315 | "license": "ISC", 1316 | "bin": { 1317 | "semver": "bin/semver" 1318 | } 1319 | }, 1320 | "node_modules/min-indent": { 1321 | "version": "1.0.1", 1322 | "dev": true, 1323 | "license": "MIT", 1324 | "engines": { 1325 | "node": ">=4" 1326 | } 1327 | }, 1328 | "node_modules/minimatch": { 1329 | "version": "3.1.2", 1330 | "dev": true, 1331 | "license": "ISC", 1332 | "dependencies": { 1333 | "brace-expansion": "^1.1.7" 1334 | }, 1335 | "engines": { 1336 | "node": "*" 1337 | } 1338 | }, 1339 | "node_modules/minimist": { 1340 | "version": "1.2.6", 1341 | "dev": true, 1342 | "license": "MIT" 1343 | }, 1344 | "node_modules/minimist-options": { 1345 | "version": "4.1.0", 1346 | "dev": true, 1347 | "license": "MIT", 1348 | "dependencies": { 1349 | "arrify": "^1.0.1", 1350 | "is-plain-obj": "^1.1.0", 1351 | "kind-of": "^6.0.3" 1352 | }, 1353 | "engines": { 1354 | "node": ">= 6" 1355 | } 1356 | }, 1357 | "node_modules/modify-values": { 1358 | "version": "1.0.1", 1359 | "dev": true, 1360 | "license": "MIT", 1361 | "engines": { 1362 | "node": ">=0.10.0" 1363 | } 1364 | }, 1365 | "node_modules/neo-async": { 1366 | "version": "2.6.2", 1367 | "dev": true, 1368 | "license": "MIT" 1369 | }, 1370 | "node_modules/normalize-package-data": { 1371 | "version": "3.0.3", 1372 | "dev": true, 1373 | "license": "BSD-2-Clause", 1374 | "dependencies": { 1375 | "hosted-git-info": "^4.0.1", 1376 | "is-core-module": "^2.5.0", 1377 | "semver": "^7.3.4", 1378 | "validate-npm-package-license": "^3.0.1" 1379 | }, 1380 | "engines": { 1381 | "node": ">=10" 1382 | } 1383 | }, 1384 | "node_modules/once": { 1385 | "version": "1.4.0", 1386 | "dev": true, 1387 | "license": "ISC", 1388 | "dependencies": { 1389 | "wrappy": "1" 1390 | } 1391 | }, 1392 | "node_modules/p-limit": { 1393 | "version": "3.1.0", 1394 | "dev": true, 1395 | "license": "MIT", 1396 | "dependencies": { 1397 | "yocto-queue": "^0.1.0" 1398 | }, 1399 | "engines": { 1400 | "node": ">=10" 1401 | }, 1402 | "funding": { 1403 | "url": "https://github.com/sponsors/sindresorhus" 1404 | } 1405 | }, 1406 | "node_modules/p-locate": { 1407 | "version": "5.0.0", 1408 | "dev": true, 1409 | "license": "MIT", 1410 | "dependencies": { 1411 | "p-limit": "^3.0.2" 1412 | }, 1413 | "engines": { 1414 | "node": ">=10" 1415 | }, 1416 | "funding": { 1417 | "url": "https://github.com/sponsors/sindresorhus" 1418 | } 1419 | }, 1420 | "node_modules/p-try": { 1421 | "version": "2.2.0", 1422 | "dev": true, 1423 | "license": "MIT", 1424 | "engines": { 1425 | "node": ">=6" 1426 | } 1427 | }, 1428 | "node_modules/parse-json": { 1429 | "version": "4.0.0", 1430 | "dev": true, 1431 | "license": "MIT", 1432 | "dependencies": { 1433 | "error-ex": "^1.3.1", 1434 | "json-parse-better-errors": "^1.0.1" 1435 | }, 1436 | "engines": { 1437 | "node": ">=4" 1438 | } 1439 | }, 1440 | "node_modules/path-exists": { 1441 | "version": "4.0.0", 1442 | "dev": true, 1443 | "license": "MIT", 1444 | "engines": { 1445 | "node": ">=8" 1446 | } 1447 | }, 1448 | "node_modules/path-is-absolute": { 1449 | "version": "1.0.1", 1450 | "dev": true, 1451 | "license": "MIT", 1452 | "engines": { 1453 | "node": ">=0.10.0" 1454 | } 1455 | }, 1456 | "node_modules/path-parse": { 1457 | "version": "1.0.7", 1458 | "dev": true, 1459 | "license": "MIT" 1460 | }, 1461 | "node_modules/path-type": { 1462 | "version": "3.0.0", 1463 | "dev": true, 1464 | "license": "MIT", 1465 | "dependencies": { 1466 | "pify": "^3.0.0" 1467 | }, 1468 | "engines": { 1469 | "node": ">=4" 1470 | } 1471 | }, 1472 | "node_modules/path-type/node_modules/pify": { 1473 | "version": "3.0.0", 1474 | "dev": true, 1475 | "license": "MIT", 1476 | "engines": { 1477 | "node": ">=4" 1478 | } 1479 | }, 1480 | "node_modules/pify": { 1481 | "version": "2.3.0", 1482 | "dev": true, 1483 | "license": "MIT", 1484 | "engines": { 1485 | "node": ">=0.10.0" 1486 | } 1487 | }, 1488 | "node_modules/prettier": { 1489 | "version": "2.7.1", 1490 | "dev": true, 1491 | "license": "MIT", 1492 | "bin": { 1493 | "prettier": "bin-prettier.js" 1494 | }, 1495 | "engines": { 1496 | "node": ">=10.13.0" 1497 | }, 1498 | "funding": { 1499 | "url": "https://github.com/prettier/prettier?sponsor=1" 1500 | } 1501 | }, 1502 | "node_modules/process-nextick-args": { 1503 | "version": "2.0.1", 1504 | "dev": true, 1505 | "license": "MIT" 1506 | }, 1507 | "node_modules/q": { 1508 | "version": "1.5.1", 1509 | "dev": true, 1510 | "license": "MIT", 1511 | "engines": { 1512 | "node": ">=0.6.0", 1513 | "teleport": ">=0.2.0" 1514 | } 1515 | }, 1516 | "node_modules/quick-lru": { 1517 | "version": "4.0.1", 1518 | "dev": true, 1519 | "license": "MIT", 1520 | "engines": { 1521 | "node": ">=8" 1522 | } 1523 | }, 1524 | "node_modules/read-pkg": { 1525 | "version": "3.0.0", 1526 | "dev": true, 1527 | "license": "MIT", 1528 | "dependencies": { 1529 | "load-json-file": "^4.0.0", 1530 | "normalize-package-data": "^2.3.2", 1531 | "path-type": "^3.0.0" 1532 | }, 1533 | "engines": { 1534 | "node": ">=4" 1535 | } 1536 | }, 1537 | "node_modules/read-pkg-up": { 1538 | "version": "3.0.0", 1539 | "dev": true, 1540 | "license": "MIT", 1541 | "dependencies": { 1542 | "find-up": "^2.0.0", 1543 | "read-pkg": "^3.0.0" 1544 | }, 1545 | "engines": { 1546 | "node": ">=4" 1547 | } 1548 | }, 1549 | "node_modules/read-pkg-up/node_modules/find-up": { 1550 | "version": "2.1.0", 1551 | "dev": true, 1552 | "license": "MIT", 1553 | "dependencies": { 1554 | "locate-path": "^2.0.0" 1555 | }, 1556 | "engines": { 1557 | "node": ">=4" 1558 | } 1559 | }, 1560 | "node_modules/read-pkg-up/node_modules/locate-path": { 1561 | "version": "2.0.0", 1562 | "dev": true, 1563 | "license": "MIT", 1564 | "dependencies": { 1565 | "p-locate": "^2.0.0", 1566 | "path-exists": "^3.0.0" 1567 | }, 1568 | "engines": { 1569 | "node": ">=4" 1570 | } 1571 | }, 1572 | "node_modules/read-pkg-up/node_modules/p-limit": { 1573 | "version": "1.3.0", 1574 | "dev": true, 1575 | "license": "MIT", 1576 | "dependencies": { 1577 | "p-try": "^1.0.0" 1578 | }, 1579 | "engines": { 1580 | "node": ">=4" 1581 | } 1582 | }, 1583 | "node_modules/read-pkg-up/node_modules/p-locate": { 1584 | "version": "2.0.0", 1585 | "dev": true, 1586 | "license": "MIT", 1587 | "dependencies": { 1588 | "p-limit": "^1.1.0" 1589 | }, 1590 | "engines": { 1591 | "node": ">=4" 1592 | } 1593 | }, 1594 | "node_modules/read-pkg-up/node_modules/p-try": { 1595 | "version": "1.0.0", 1596 | "dev": true, 1597 | "license": "MIT", 1598 | "engines": { 1599 | "node": ">=4" 1600 | } 1601 | }, 1602 | "node_modules/read-pkg-up/node_modules/path-exists": { 1603 | "version": "3.0.0", 1604 | "dev": true, 1605 | "license": "MIT", 1606 | "engines": { 1607 | "node": ">=4" 1608 | } 1609 | }, 1610 | "node_modules/read-pkg/node_modules/hosted-git-info": { 1611 | "version": "2.8.9", 1612 | "dev": true, 1613 | "license": "ISC" 1614 | }, 1615 | "node_modules/read-pkg/node_modules/normalize-package-data": { 1616 | "version": "2.5.0", 1617 | "dev": true, 1618 | "license": "BSD-2-Clause", 1619 | "dependencies": { 1620 | "hosted-git-info": "^2.1.4", 1621 | "resolve": "^1.10.0", 1622 | "semver": "2 || 3 || 4 || 5", 1623 | "validate-npm-package-license": "^3.0.1" 1624 | } 1625 | }, 1626 | "node_modules/read-pkg/node_modules/semver": { 1627 | "version": "5.7.1", 1628 | "dev": true, 1629 | "license": "ISC", 1630 | "bin": { 1631 | "semver": "bin/semver" 1632 | } 1633 | }, 1634 | "node_modules/readable-stream": { 1635 | "version": "3.6.0", 1636 | "dev": true, 1637 | "license": "MIT", 1638 | "dependencies": { 1639 | "inherits": "^2.0.3", 1640 | "string_decoder": "^1.1.1", 1641 | "util-deprecate": "^1.0.1" 1642 | }, 1643 | "engines": { 1644 | "node": ">= 6" 1645 | } 1646 | }, 1647 | "node_modules/redent": { 1648 | "version": "3.0.0", 1649 | "dev": true, 1650 | "license": "MIT", 1651 | "dependencies": { 1652 | "indent-string": "^4.0.0", 1653 | "strip-indent": "^3.0.0" 1654 | }, 1655 | "engines": { 1656 | "node": ">=8" 1657 | } 1658 | }, 1659 | "node_modules/require-directory": { 1660 | "version": "2.1.1", 1661 | "dev": true, 1662 | "license": "MIT", 1663 | "engines": { 1664 | "node": ">=0.10.0" 1665 | } 1666 | }, 1667 | "node_modules/resolve": { 1668 | "version": "1.22.1", 1669 | "dev": true, 1670 | "license": "MIT", 1671 | "dependencies": { 1672 | "is-core-module": "^2.9.0", 1673 | "path-parse": "^1.0.7", 1674 | "supports-preserve-symlinks-flag": "^1.0.0" 1675 | }, 1676 | "bin": { 1677 | "resolve": "bin/resolve" 1678 | }, 1679 | "funding": { 1680 | "url": "https://github.com/sponsors/ljharb" 1681 | } 1682 | }, 1683 | "node_modules/rimraf": { 1684 | "version": "3.0.2", 1685 | "dev": true, 1686 | "license": "ISC", 1687 | "dependencies": { 1688 | "glob": "^7.1.3" 1689 | }, 1690 | "bin": { 1691 | "rimraf": "bin.js" 1692 | }, 1693 | "funding": { 1694 | "url": "https://github.com/sponsors/isaacs" 1695 | } 1696 | }, 1697 | "node_modules/rollup": { 1698 | "version": "2.77.2", 1699 | "dev": true, 1700 | "license": "MIT", 1701 | "bin": { 1702 | "rollup": "dist/bin/rollup" 1703 | }, 1704 | "engines": { 1705 | "node": ">=10.0.0" 1706 | }, 1707 | "optionalDependencies": { 1708 | "fsevents": "~2.3.2" 1709 | } 1710 | }, 1711 | "node_modules/safe-buffer": { 1712 | "version": "5.2.1", 1713 | "dev": true, 1714 | "funding": [ 1715 | { 1716 | "type": "github", 1717 | "url": "https://github.com/sponsors/feross" 1718 | }, 1719 | { 1720 | "type": "patreon", 1721 | "url": "https://www.patreon.com/feross" 1722 | }, 1723 | { 1724 | "type": "consulting", 1725 | "url": "https://feross.org/support" 1726 | } 1727 | ], 1728 | "license": "MIT" 1729 | }, 1730 | "node_modules/semver": { 1731 | "version": "7.3.8", 1732 | "dev": true, 1733 | "license": "ISC", 1734 | "dependencies": { 1735 | "lru-cache": "^6.0.0" 1736 | }, 1737 | "bin": { 1738 | "semver": "bin/semver.js" 1739 | }, 1740 | "engines": { 1741 | "node": ">=10" 1742 | } 1743 | }, 1744 | "node_modules/source-map": { 1745 | "version": "0.6.1", 1746 | "dev": true, 1747 | "license": "BSD-3-Clause", 1748 | "engines": { 1749 | "node": ">=0.10.0" 1750 | } 1751 | }, 1752 | "node_modules/spdx-correct": { 1753 | "version": "3.1.1", 1754 | "dev": true, 1755 | "license": "Apache-2.0", 1756 | "dependencies": { 1757 | "spdx-expression-parse": "^3.0.0", 1758 | "spdx-license-ids": "^3.0.0" 1759 | } 1760 | }, 1761 | "node_modules/spdx-exceptions": { 1762 | "version": "2.3.0", 1763 | "dev": true, 1764 | "license": "CC-BY-3.0" 1765 | }, 1766 | "node_modules/spdx-expression-parse": { 1767 | "version": "3.0.1", 1768 | "dev": true, 1769 | "license": "MIT", 1770 | "dependencies": { 1771 | "spdx-exceptions": "^2.1.0", 1772 | "spdx-license-ids": "^3.0.0" 1773 | } 1774 | }, 1775 | "node_modules/spdx-license-ids": { 1776 | "version": "3.0.12", 1777 | "dev": true, 1778 | "license": "CC0-1.0" 1779 | }, 1780 | "node_modules/split": { 1781 | "version": "1.0.1", 1782 | "dev": true, 1783 | "license": "MIT", 1784 | "dependencies": { 1785 | "through": "2" 1786 | }, 1787 | "engines": { 1788 | "node": "*" 1789 | } 1790 | }, 1791 | "node_modules/split2": { 1792 | "version": "3.2.2", 1793 | "dev": true, 1794 | "license": "ISC", 1795 | "dependencies": { 1796 | "readable-stream": "^3.0.0" 1797 | } 1798 | }, 1799 | "node_modules/standard-version": { 1800 | "version": "9.5.0", 1801 | "dev": true, 1802 | "license": "ISC", 1803 | "dependencies": { 1804 | "chalk": "^2.4.2", 1805 | "conventional-changelog": "3.1.25", 1806 | "conventional-changelog-config-spec": "2.1.0", 1807 | "conventional-changelog-conventionalcommits": "4.6.3", 1808 | "conventional-recommended-bump": "6.1.0", 1809 | "detect-indent": "^6.0.0", 1810 | "detect-newline": "^3.1.0", 1811 | "dotgitignore": "^2.1.0", 1812 | "figures": "^3.1.0", 1813 | "find-up": "^5.0.0", 1814 | "git-semver-tags": "^4.0.0", 1815 | "semver": "^7.1.1", 1816 | "stringify-package": "^1.0.1", 1817 | "yargs": "^16.0.0" 1818 | }, 1819 | "bin": { 1820 | "standard-version": "bin/cli.js" 1821 | }, 1822 | "engines": { 1823 | "node": ">=10" 1824 | } 1825 | }, 1826 | "node_modules/string_decoder": { 1827 | "version": "1.3.0", 1828 | "dev": true, 1829 | "license": "MIT", 1830 | "dependencies": { 1831 | "safe-buffer": "~5.2.0" 1832 | } 1833 | }, 1834 | "node_modules/string-width": { 1835 | "version": "4.2.3", 1836 | "dev": true, 1837 | "license": "MIT", 1838 | "dependencies": { 1839 | "emoji-regex": "^8.0.0", 1840 | "is-fullwidth-code-point": "^3.0.0", 1841 | "strip-ansi": "^6.0.1" 1842 | }, 1843 | "engines": { 1844 | "node": ">=8" 1845 | } 1846 | }, 1847 | "node_modules/stringify-package": { 1848 | "version": "1.0.1", 1849 | "dev": true, 1850 | "license": "ISC" 1851 | }, 1852 | "node_modules/strip-ansi": { 1853 | "version": "6.0.1", 1854 | "dev": true, 1855 | "license": "MIT", 1856 | "dependencies": { 1857 | "ansi-regex": "^5.0.1" 1858 | }, 1859 | "engines": { 1860 | "node": ">=8" 1861 | } 1862 | }, 1863 | "node_modules/strip-bom": { 1864 | "version": "3.0.0", 1865 | "dev": true, 1866 | "license": "MIT", 1867 | "engines": { 1868 | "node": ">=4" 1869 | } 1870 | }, 1871 | "node_modules/strip-indent": { 1872 | "version": "3.0.0", 1873 | "dev": true, 1874 | "license": "MIT", 1875 | "dependencies": { 1876 | "min-indent": "^1.0.0" 1877 | }, 1878 | "engines": { 1879 | "node": ">=8" 1880 | } 1881 | }, 1882 | "node_modules/supports-color": { 1883 | "version": "5.5.0", 1884 | "dev": true, 1885 | "license": "MIT", 1886 | "dependencies": { 1887 | "has-flag": "^3.0.0" 1888 | }, 1889 | "engines": { 1890 | "node": ">=4" 1891 | } 1892 | }, 1893 | "node_modules/supports-preserve-symlinks-flag": { 1894 | "version": "1.0.0", 1895 | "dev": true, 1896 | "license": "MIT", 1897 | "engines": { 1898 | "node": ">= 0.4" 1899 | }, 1900 | "funding": { 1901 | "url": "https://github.com/sponsors/ljharb" 1902 | } 1903 | }, 1904 | "node_modules/text-extensions": { 1905 | "version": "1.9.0", 1906 | "dev": true, 1907 | "license": "MIT", 1908 | "engines": { 1909 | "node": ">=0.10" 1910 | } 1911 | }, 1912 | "node_modules/through": { 1913 | "version": "2.3.8", 1914 | "dev": true, 1915 | "license": "MIT" 1916 | }, 1917 | "node_modules/through2": { 1918 | "version": "4.0.2", 1919 | "dev": true, 1920 | "license": "MIT", 1921 | "dependencies": { 1922 | "readable-stream": "3" 1923 | } 1924 | }, 1925 | "node_modules/trim-newlines": { 1926 | "version": "3.0.1", 1927 | "dev": true, 1928 | "license": "MIT", 1929 | "engines": { 1930 | "node": ">=8" 1931 | } 1932 | }, 1933 | "node_modules/tslib": { 1934 | "version": "2.2.0", 1935 | "license": "0BSD", 1936 | "peer": true 1937 | }, 1938 | "node_modules/type-fest": { 1939 | "version": "0.18.1", 1940 | "dev": true, 1941 | "license": "(MIT OR CC0-1.0)", 1942 | "engines": { 1943 | "node": ">=10" 1944 | }, 1945 | "funding": { 1946 | "url": "https://github.com/sponsors/sindresorhus" 1947 | } 1948 | }, 1949 | "node_modules/typedarray": { 1950 | "version": "0.0.6", 1951 | "dev": true, 1952 | "license": "MIT" 1953 | }, 1954 | "node_modules/typescript": { 1955 | "version": "4.2.4", 1956 | "dev": true, 1957 | "license": "Apache-2.0", 1958 | "bin": { 1959 | "tsc": "bin/tsc", 1960 | "tsserver": "bin/tsserver" 1961 | }, 1962 | "engines": { 1963 | "node": ">=4.2.0" 1964 | } 1965 | }, 1966 | "node_modules/uglify-js": { 1967 | "version": "3.17.4", 1968 | "dev": true, 1969 | "license": "BSD-2-Clause", 1970 | "optional": true, 1971 | "bin": { 1972 | "uglifyjs": "bin/uglifyjs" 1973 | }, 1974 | "engines": { 1975 | "node": ">=0.8.0" 1976 | } 1977 | }, 1978 | "node_modules/util-deprecate": { 1979 | "version": "1.0.2", 1980 | "dev": true, 1981 | "license": "MIT" 1982 | }, 1983 | "node_modules/validate-npm-package-license": { 1984 | "version": "3.0.4", 1985 | "dev": true, 1986 | "license": "Apache-2.0", 1987 | "dependencies": { 1988 | "spdx-correct": "^3.0.0", 1989 | "spdx-expression-parse": "^3.0.0" 1990 | } 1991 | }, 1992 | "node_modules/wordwrap": { 1993 | "version": "1.0.0", 1994 | "dev": true, 1995 | "license": "MIT" 1996 | }, 1997 | "node_modules/wrap-ansi": { 1998 | "version": "7.0.0", 1999 | "dev": true, 2000 | "license": "MIT", 2001 | "dependencies": { 2002 | "ansi-styles": "^4.0.0", 2003 | "string-width": "^4.1.0", 2004 | "strip-ansi": "^6.0.0" 2005 | }, 2006 | "engines": { 2007 | "node": ">=10" 2008 | }, 2009 | "funding": { 2010 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 2011 | } 2012 | }, 2013 | "node_modules/wrap-ansi/node_modules/ansi-styles": { 2014 | "version": "4.3.0", 2015 | "dev": true, 2016 | "license": "MIT", 2017 | "dependencies": { 2018 | "color-convert": "^2.0.1" 2019 | }, 2020 | "engines": { 2021 | "node": ">=8" 2022 | }, 2023 | "funding": { 2024 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 2025 | } 2026 | }, 2027 | "node_modules/wrap-ansi/node_modules/color-convert": { 2028 | "version": "2.0.1", 2029 | "dev": true, 2030 | "license": "MIT", 2031 | "dependencies": { 2032 | "color-name": "~1.1.4" 2033 | }, 2034 | "engines": { 2035 | "node": ">=7.0.0" 2036 | } 2037 | }, 2038 | "node_modules/wrap-ansi/node_modules/color-name": { 2039 | "version": "1.1.4", 2040 | "dev": true, 2041 | "license": "MIT" 2042 | }, 2043 | "node_modules/wrappy": { 2044 | "version": "1.0.2", 2045 | "dev": true, 2046 | "license": "ISC" 2047 | }, 2048 | "node_modules/xtend": { 2049 | "version": "4.0.2", 2050 | "dev": true, 2051 | "license": "MIT", 2052 | "engines": { 2053 | "node": ">=0.4" 2054 | } 2055 | }, 2056 | "node_modules/y18n": { 2057 | "version": "5.0.8", 2058 | "dev": true, 2059 | "license": "ISC", 2060 | "engines": { 2061 | "node": ">=10" 2062 | } 2063 | }, 2064 | "node_modules/yallist": { 2065 | "version": "4.0.0", 2066 | "dev": true, 2067 | "license": "ISC" 2068 | }, 2069 | "node_modules/yargs": { 2070 | "version": "16.2.0", 2071 | "dev": true, 2072 | "license": "MIT", 2073 | "dependencies": { 2074 | "cliui": "^7.0.2", 2075 | "escalade": "^3.1.1", 2076 | "get-caller-file": "^2.0.5", 2077 | "require-directory": "^2.1.1", 2078 | "string-width": "^4.2.0", 2079 | "y18n": "^5.0.5", 2080 | "yargs-parser": "^20.2.2" 2081 | }, 2082 | "engines": { 2083 | "node": ">=10" 2084 | } 2085 | }, 2086 | "node_modules/yargs-parser": { 2087 | "version": "20.2.9", 2088 | "dev": true, 2089 | "license": "ISC", 2090 | "engines": { 2091 | "node": ">=10" 2092 | } 2093 | }, 2094 | "node_modules/yocto-queue": { 2095 | "version": "0.1.0", 2096 | "dev": true, 2097 | "license": "MIT", 2098 | "engines": { 2099 | "node": ">=10" 2100 | }, 2101 | "funding": { 2102 | "url": "https://github.com/sponsors/sindresorhus" 2103 | } 2104 | } 2105 | }, 2106 | "dependencies": { 2107 | "@babel/code-frame": { 2108 | "version": "7.18.6", 2109 | "dev": true, 2110 | "requires": { 2111 | "@babel/highlight": "^7.18.6" 2112 | } 2113 | }, 2114 | "@babel/helper-validator-identifier": { 2115 | "version": "7.19.1", 2116 | "dev": true 2117 | }, 2118 | "@babel/highlight": { 2119 | "version": "7.18.6", 2120 | "dev": true, 2121 | "requires": { 2122 | "@babel/helper-validator-identifier": "^7.18.6", 2123 | "chalk": "^2.0.0", 2124 | "js-tokens": "^4.0.0" 2125 | } 2126 | }, 2127 | "@capacitor/android": { 2128 | "version": "5.0.0-rc.0", 2129 | "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-5.0.0-rc.0.tgz", 2130 | "integrity": "sha512-zvamsqqa73cODPicLtMj2680ofMXRg+cvxjPPFeos+mODCWa/+OGqo7lnhvRBvQVwhYwUgCnrBBiPCA3rNGz4w==", 2131 | "dev": true, 2132 | "requires": {} 2133 | }, 2134 | "@capacitor/core": { 2135 | "version": "5.0.0-rc.0", 2136 | "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-5.0.0-rc.0.tgz", 2137 | "integrity": "sha512-iDPIbnMC4AMilJ5SmFHFzs5Je32M7yD2zBzjLiZSIt6tLZh4ezYMtkOdofVsq4eFWa4XjvWFkb1J/U+rXZw90Q==", 2138 | "peer": true, 2139 | "requires": { 2140 | "tslib": "^2.1.0" 2141 | } 2142 | }, 2143 | "@capacitor/docgen": { 2144 | "version": "0.2.1", 2145 | "resolved": "https://registry.npmjs.org/@capacitor/docgen/-/docgen-0.2.1.tgz", 2146 | "integrity": "sha512-COS5teC6n+EOSaBS7voHnIeIKH7owALnVoI1AhVArIWtBrc1JxSgkUuvLHpti4VGZdXdsrtp4yBPUwGm8WOZKA==", 2147 | "dev": true, 2148 | "requires": { 2149 | "@types/node": "^14.18.0", 2150 | "colorette": "^2.0.16", 2151 | "github-slugger": "^1.4.0", 2152 | "minimist": "^1.2.5", 2153 | "typescript": "~4.2.4" 2154 | } 2155 | }, 2156 | "@capacitor/ios": { 2157 | "version": "5.0.0-rc.0", 2158 | "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-5.0.0-rc.0.tgz", 2159 | "integrity": "sha512-k2DFpvY7cl2SEppf3M9XTo1LOFCCXa4GDRKwnfLoNxtlydnq0l/npDFRIYNQ7cUcPb0Rr8kFY9nlDC13fS4okg==", 2160 | "dev": true, 2161 | "requires": {} 2162 | }, 2163 | "@hutson/parse-repository-url": { 2164 | "version": "3.0.2", 2165 | "dev": true 2166 | }, 2167 | "@types/minimist": { 2168 | "version": "1.2.2", 2169 | "dev": true 2170 | }, 2171 | "@types/node": { 2172 | "version": "14.18.0", 2173 | "dev": true 2174 | }, 2175 | "@types/normalize-package-data": { 2176 | "version": "2.4.1", 2177 | "dev": true 2178 | }, 2179 | "add-stream": { 2180 | "version": "1.0.0", 2181 | "dev": true 2182 | }, 2183 | "ansi-regex": { 2184 | "version": "5.0.1", 2185 | "dev": true 2186 | }, 2187 | "ansi-styles": { 2188 | "version": "3.2.1", 2189 | "dev": true, 2190 | "requires": { 2191 | "color-convert": "^1.9.0" 2192 | } 2193 | }, 2194 | "array-ify": { 2195 | "version": "1.0.0", 2196 | "dev": true 2197 | }, 2198 | "arrify": { 2199 | "version": "1.0.1", 2200 | "dev": true 2201 | }, 2202 | "balanced-match": { 2203 | "version": "1.0.2", 2204 | "dev": true 2205 | }, 2206 | "brace-expansion": { 2207 | "version": "1.1.11", 2208 | "dev": true, 2209 | "requires": { 2210 | "balanced-match": "^1.0.0", 2211 | "concat-map": "0.0.1" 2212 | } 2213 | }, 2214 | "buffer-from": { 2215 | "version": "1.1.2", 2216 | "dev": true 2217 | }, 2218 | "camelcase": { 2219 | "version": "5.3.1", 2220 | "dev": true 2221 | }, 2222 | "camelcase-keys": { 2223 | "version": "6.2.2", 2224 | "dev": true, 2225 | "requires": { 2226 | "camelcase": "^5.3.1", 2227 | "map-obj": "^4.0.0", 2228 | "quick-lru": "^4.0.1" 2229 | } 2230 | }, 2231 | "chalk": { 2232 | "version": "2.4.2", 2233 | "dev": true, 2234 | "requires": { 2235 | "ansi-styles": "^3.2.1", 2236 | "escape-string-regexp": "^1.0.5", 2237 | "supports-color": "^5.3.0" 2238 | } 2239 | }, 2240 | "cliui": { 2241 | "version": "7.0.4", 2242 | "dev": true, 2243 | "requires": { 2244 | "string-width": "^4.2.0", 2245 | "strip-ansi": "^6.0.0", 2246 | "wrap-ansi": "^7.0.0" 2247 | } 2248 | }, 2249 | "color-convert": { 2250 | "version": "1.9.3", 2251 | "dev": true, 2252 | "requires": { 2253 | "color-name": "1.1.3" 2254 | } 2255 | }, 2256 | "color-name": { 2257 | "version": "1.1.3", 2258 | "dev": true 2259 | }, 2260 | "colorette": { 2261 | "version": "2.0.19", 2262 | "dev": true 2263 | }, 2264 | "compare-func": { 2265 | "version": "2.0.0", 2266 | "dev": true, 2267 | "requires": { 2268 | "array-ify": "^1.0.0", 2269 | "dot-prop": "^5.1.0" 2270 | } 2271 | }, 2272 | "concat-map": { 2273 | "version": "0.0.1", 2274 | "dev": true 2275 | }, 2276 | "concat-stream": { 2277 | "version": "2.0.0", 2278 | "dev": true, 2279 | "requires": { 2280 | "buffer-from": "^1.0.0", 2281 | "inherits": "^2.0.3", 2282 | "readable-stream": "^3.0.2", 2283 | "typedarray": "^0.0.6" 2284 | } 2285 | }, 2286 | "conventional-changelog": { 2287 | "version": "3.1.25", 2288 | "dev": true, 2289 | "requires": { 2290 | "conventional-changelog-angular": "^5.0.12", 2291 | "conventional-changelog-atom": "^2.0.8", 2292 | "conventional-changelog-codemirror": "^2.0.8", 2293 | "conventional-changelog-conventionalcommits": "^4.5.0", 2294 | "conventional-changelog-core": "^4.2.1", 2295 | "conventional-changelog-ember": "^2.0.9", 2296 | "conventional-changelog-eslint": "^3.0.9", 2297 | "conventional-changelog-express": "^2.0.6", 2298 | "conventional-changelog-jquery": "^3.0.11", 2299 | "conventional-changelog-jshint": "^2.0.9", 2300 | "conventional-changelog-preset-loader": "^2.3.4" 2301 | } 2302 | }, 2303 | "conventional-changelog-angular": { 2304 | "version": "5.0.13", 2305 | "dev": true, 2306 | "requires": { 2307 | "compare-func": "^2.0.0", 2308 | "q": "^1.5.1" 2309 | } 2310 | }, 2311 | "conventional-changelog-atom": { 2312 | "version": "2.0.8", 2313 | "dev": true, 2314 | "requires": { 2315 | "q": "^1.5.1" 2316 | } 2317 | }, 2318 | "conventional-changelog-codemirror": { 2319 | "version": "2.0.8", 2320 | "dev": true, 2321 | "requires": { 2322 | "q": "^1.5.1" 2323 | } 2324 | }, 2325 | "conventional-changelog-config-spec": { 2326 | "version": "2.1.0", 2327 | "dev": true 2328 | }, 2329 | "conventional-changelog-conventionalcommits": { 2330 | "version": "4.6.3", 2331 | "dev": true, 2332 | "requires": { 2333 | "compare-func": "^2.0.0", 2334 | "lodash": "^4.17.15", 2335 | "q": "^1.5.1" 2336 | } 2337 | }, 2338 | "conventional-changelog-core": { 2339 | "version": "4.2.4", 2340 | "dev": true, 2341 | "requires": { 2342 | "add-stream": "^1.0.0", 2343 | "conventional-changelog-writer": "^5.0.0", 2344 | "conventional-commits-parser": "^3.2.0", 2345 | "dateformat": "^3.0.0", 2346 | "get-pkg-repo": "^4.0.0", 2347 | "git-raw-commits": "^2.0.8", 2348 | "git-remote-origin-url": "^2.0.0", 2349 | "git-semver-tags": "^4.1.1", 2350 | "lodash": "^4.17.15", 2351 | "normalize-package-data": "^3.0.0", 2352 | "q": "^1.5.1", 2353 | "read-pkg": "^3.0.0", 2354 | "read-pkg-up": "^3.0.0", 2355 | "through2": "^4.0.0" 2356 | } 2357 | }, 2358 | "conventional-changelog-ember": { 2359 | "version": "2.0.9", 2360 | "dev": true, 2361 | "requires": { 2362 | "q": "^1.5.1" 2363 | } 2364 | }, 2365 | "conventional-changelog-eslint": { 2366 | "version": "3.0.9", 2367 | "dev": true, 2368 | "requires": { 2369 | "q": "^1.5.1" 2370 | } 2371 | }, 2372 | "conventional-changelog-express": { 2373 | "version": "2.0.6", 2374 | "dev": true, 2375 | "requires": { 2376 | "q": "^1.5.1" 2377 | } 2378 | }, 2379 | "conventional-changelog-jquery": { 2380 | "version": "3.0.11", 2381 | "dev": true, 2382 | "requires": { 2383 | "q": "^1.5.1" 2384 | } 2385 | }, 2386 | "conventional-changelog-jshint": { 2387 | "version": "2.0.9", 2388 | "dev": true, 2389 | "requires": { 2390 | "compare-func": "^2.0.0", 2391 | "q": "^1.5.1" 2392 | } 2393 | }, 2394 | "conventional-changelog-preset-loader": { 2395 | "version": "2.3.4", 2396 | "dev": true 2397 | }, 2398 | "conventional-changelog-writer": { 2399 | "version": "5.0.1", 2400 | "dev": true, 2401 | "requires": { 2402 | "conventional-commits-filter": "^2.0.7", 2403 | "dateformat": "^3.0.0", 2404 | "handlebars": "^4.7.7", 2405 | "json-stringify-safe": "^5.0.1", 2406 | "lodash": "^4.17.15", 2407 | "meow": "^8.0.0", 2408 | "semver": "^6.0.0", 2409 | "split": "^1.0.0", 2410 | "through2": "^4.0.0" 2411 | }, 2412 | "dependencies": { 2413 | "semver": { 2414 | "version": "6.3.0", 2415 | "dev": true 2416 | } 2417 | } 2418 | }, 2419 | "conventional-commits-filter": { 2420 | "version": "2.0.7", 2421 | "dev": true, 2422 | "requires": { 2423 | "lodash.ismatch": "^4.4.0", 2424 | "modify-values": "^1.0.0" 2425 | } 2426 | }, 2427 | "conventional-commits-parser": { 2428 | "version": "3.2.4", 2429 | "dev": true, 2430 | "requires": { 2431 | "is-text-path": "^1.0.1", 2432 | "JSONStream": "^1.0.4", 2433 | "lodash": "^4.17.15", 2434 | "meow": "^8.0.0", 2435 | "split2": "^3.0.0", 2436 | "through2": "^4.0.0" 2437 | } 2438 | }, 2439 | "conventional-recommended-bump": { 2440 | "version": "6.1.0", 2441 | "dev": true, 2442 | "requires": { 2443 | "concat-stream": "^2.0.0", 2444 | "conventional-changelog-preset-loader": "^2.3.4", 2445 | "conventional-commits-filter": "^2.0.7", 2446 | "conventional-commits-parser": "^3.2.0", 2447 | "git-raw-commits": "^2.0.8", 2448 | "git-semver-tags": "^4.1.1", 2449 | "meow": "^8.0.0", 2450 | "q": "^1.5.1" 2451 | } 2452 | }, 2453 | "core-util-is": { 2454 | "version": "1.0.3", 2455 | "dev": true 2456 | }, 2457 | "dargs": { 2458 | "version": "7.0.0", 2459 | "dev": true 2460 | }, 2461 | "dateformat": { 2462 | "version": "3.0.3", 2463 | "dev": true 2464 | }, 2465 | "decamelize": { 2466 | "version": "1.2.0", 2467 | "dev": true 2468 | }, 2469 | "decamelize-keys": { 2470 | "version": "1.1.1", 2471 | "dev": true, 2472 | "requires": { 2473 | "decamelize": "^1.1.0", 2474 | "map-obj": "^1.0.0" 2475 | }, 2476 | "dependencies": { 2477 | "map-obj": { 2478 | "version": "1.0.1", 2479 | "dev": true 2480 | } 2481 | } 2482 | }, 2483 | "detect-indent": { 2484 | "version": "6.1.0", 2485 | "dev": true 2486 | }, 2487 | "detect-newline": { 2488 | "version": "3.1.0", 2489 | "dev": true 2490 | }, 2491 | "dot-prop": { 2492 | "version": "5.3.0", 2493 | "dev": true, 2494 | "requires": { 2495 | "is-obj": "^2.0.0" 2496 | } 2497 | }, 2498 | "dotgitignore": { 2499 | "version": "2.1.0", 2500 | "dev": true, 2501 | "requires": { 2502 | "find-up": "^3.0.0", 2503 | "minimatch": "^3.0.4" 2504 | }, 2505 | "dependencies": { 2506 | "find-up": { 2507 | "version": "3.0.0", 2508 | "dev": true, 2509 | "requires": { 2510 | "locate-path": "^3.0.0" 2511 | } 2512 | }, 2513 | "locate-path": { 2514 | "version": "3.0.0", 2515 | "dev": true, 2516 | "requires": { 2517 | "p-locate": "^3.0.0", 2518 | "path-exists": "^3.0.0" 2519 | } 2520 | }, 2521 | "p-limit": { 2522 | "version": "2.3.0", 2523 | "dev": true, 2524 | "requires": { 2525 | "p-try": "^2.0.0" 2526 | } 2527 | }, 2528 | "p-locate": { 2529 | "version": "3.0.0", 2530 | "dev": true, 2531 | "requires": { 2532 | "p-limit": "^2.0.0" 2533 | } 2534 | }, 2535 | "path-exists": { 2536 | "version": "3.0.0", 2537 | "dev": true 2538 | } 2539 | } 2540 | }, 2541 | "emoji-regex": { 2542 | "version": "8.0.0", 2543 | "dev": true 2544 | }, 2545 | "error-ex": { 2546 | "version": "1.3.2", 2547 | "dev": true, 2548 | "requires": { 2549 | "is-arrayish": "^0.2.1" 2550 | } 2551 | }, 2552 | "escalade": { 2553 | "version": "3.1.1", 2554 | "dev": true 2555 | }, 2556 | "escape-string-regexp": { 2557 | "version": "1.0.5", 2558 | "dev": true 2559 | }, 2560 | "figures": { 2561 | "version": "3.2.0", 2562 | "dev": true, 2563 | "requires": { 2564 | "escape-string-regexp": "^1.0.5" 2565 | } 2566 | }, 2567 | "find-up": { 2568 | "version": "5.0.0", 2569 | "dev": true, 2570 | "requires": { 2571 | "locate-path": "^6.0.0", 2572 | "path-exists": "^4.0.0" 2573 | } 2574 | }, 2575 | "fs.realpath": { 2576 | "version": "1.0.0", 2577 | "dev": true 2578 | }, 2579 | "fsevents": { 2580 | "version": "2.3.2", 2581 | "dev": true, 2582 | "optional": true 2583 | }, 2584 | "function-bind": { 2585 | "version": "1.1.1", 2586 | "dev": true 2587 | }, 2588 | "get-caller-file": { 2589 | "version": "2.0.5", 2590 | "dev": true 2591 | }, 2592 | "get-pkg-repo": { 2593 | "version": "4.2.1", 2594 | "dev": true, 2595 | "requires": { 2596 | "@hutson/parse-repository-url": "^3.0.0", 2597 | "hosted-git-info": "^4.0.0", 2598 | "through2": "^2.0.0", 2599 | "yargs": "^16.2.0" 2600 | }, 2601 | "dependencies": { 2602 | "readable-stream": { 2603 | "version": "2.3.7", 2604 | "dev": true, 2605 | "requires": { 2606 | "core-util-is": "~1.0.0", 2607 | "inherits": "~2.0.3", 2608 | "isarray": "~1.0.0", 2609 | "process-nextick-args": "~2.0.0", 2610 | "safe-buffer": "~5.1.1", 2611 | "string_decoder": "~1.1.1", 2612 | "util-deprecate": "~1.0.1" 2613 | } 2614 | }, 2615 | "safe-buffer": { 2616 | "version": "5.1.2", 2617 | "dev": true 2618 | }, 2619 | "string_decoder": { 2620 | "version": "1.1.1", 2621 | "dev": true, 2622 | "requires": { 2623 | "safe-buffer": "~5.1.0" 2624 | } 2625 | }, 2626 | "through2": { 2627 | "version": "2.0.5", 2628 | "dev": true, 2629 | "requires": { 2630 | "readable-stream": "~2.3.6", 2631 | "xtend": "~4.0.1" 2632 | } 2633 | } 2634 | } 2635 | }, 2636 | "git-raw-commits": { 2637 | "version": "2.0.11", 2638 | "dev": true, 2639 | "requires": { 2640 | "dargs": "^7.0.0", 2641 | "lodash": "^4.17.15", 2642 | "meow": "^8.0.0", 2643 | "split2": "^3.0.0", 2644 | "through2": "^4.0.0" 2645 | } 2646 | }, 2647 | "git-remote-origin-url": { 2648 | "version": "2.0.0", 2649 | "dev": true, 2650 | "requires": { 2651 | "gitconfiglocal": "^1.0.0", 2652 | "pify": "^2.3.0" 2653 | } 2654 | }, 2655 | "git-semver-tags": { 2656 | "version": "4.1.1", 2657 | "dev": true, 2658 | "requires": { 2659 | "meow": "^8.0.0", 2660 | "semver": "^6.0.0" 2661 | }, 2662 | "dependencies": { 2663 | "semver": { 2664 | "version": "6.3.0", 2665 | "dev": true 2666 | } 2667 | } 2668 | }, 2669 | "gitconfiglocal": { 2670 | "version": "1.0.0", 2671 | "dev": true, 2672 | "requires": { 2673 | "ini": "^1.3.2" 2674 | } 2675 | }, 2676 | "github-slugger": { 2677 | "version": "1.4.0", 2678 | "dev": true 2679 | }, 2680 | "glob": { 2681 | "version": "7.1.7", 2682 | "dev": true, 2683 | "requires": { 2684 | "fs.realpath": "^1.0.0", 2685 | "inflight": "^1.0.4", 2686 | "inherits": "2", 2687 | "minimatch": "^3.0.4", 2688 | "once": "^1.3.0", 2689 | "path-is-absolute": "^1.0.0" 2690 | } 2691 | }, 2692 | "graceful-fs": { 2693 | "version": "4.2.10", 2694 | "dev": true 2695 | }, 2696 | "handlebars": { 2697 | "version": "4.7.7", 2698 | "dev": true, 2699 | "requires": { 2700 | "minimist": "^1.2.5", 2701 | "neo-async": "^2.6.0", 2702 | "source-map": "^0.6.1", 2703 | "uglify-js": "^3.1.4", 2704 | "wordwrap": "^1.0.0" 2705 | } 2706 | }, 2707 | "hard-rejection": { 2708 | "version": "2.1.0", 2709 | "dev": true 2710 | }, 2711 | "has": { 2712 | "version": "1.0.3", 2713 | "dev": true, 2714 | "requires": { 2715 | "function-bind": "^1.1.1" 2716 | } 2717 | }, 2718 | "has-flag": { 2719 | "version": "3.0.0", 2720 | "dev": true 2721 | }, 2722 | "hosted-git-info": { 2723 | "version": "4.1.0", 2724 | "dev": true, 2725 | "requires": { 2726 | "lru-cache": "^6.0.0" 2727 | } 2728 | }, 2729 | "indent-string": { 2730 | "version": "4.0.0", 2731 | "dev": true 2732 | }, 2733 | "inflight": { 2734 | "version": "1.0.6", 2735 | "dev": true, 2736 | "requires": { 2737 | "once": "^1.3.0", 2738 | "wrappy": "1" 2739 | } 2740 | }, 2741 | "inherits": { 2742 | "version": "2.0.4", 2743 | "dev": true 2744 | }, 2745 | "ini": { 2746 | "version": "1.3.8", 2747 | "dev": true 2748 | }, 2749 | "is-arrayish": { 2750 | "version": "0.2.1", 2751 | "dev": true 2752 | }, 2753 | "is-core-module": { 2754 | "version": "2.11.0", 2755 | "dev": true, 2756 | "requires": { 2757 | "has": "^1.0.3" 2758 | } 2759 | }, 2760 | "is-fullwidth-code-point": { 2761 | "version": "3.0.0", 2762 | "dev": true 2763 | }, 2764 | "is-obj": { 2765 | "version": "2.0.0", 2766 | "dev": true 2767 | }, 2768 | "is-plain-obj": { 2769 | "version": "1.1.0", 2770 | "dev": true 2771 | }, 2772 | "is-text-path": { 2773 | "version": "1.0.1", 2774 | "dev": true, 2775 | "requires": { 2776 | "text-extensions": "^1.0.0" 2777 | } 2778 | }, 2779 | "isarray": { 2780 | "version": "1.0.0", 2781 | "dev": true 2782 | }, 2783 | "js-tokens": { 2784 | "version": "4.0.0", 2785 | "dev": true 2786 | }, 2787 | "json-parse-better-errors": { 2788 | "version": "1.0.2", 2789 | "dev": true 2790 | }, 2791 | "json-parse-even-better-errors": { 2792 | "version": "2.3.1", 2793 | "dev": true 2794 | }, 2795 | "json-stringify-safe": { 2796 | "version": "5.0.1", 2797 | "dev": true 2798 | }, 2799 | "jsonparse": { 2800 | "version": "1.3.1", 2801 | "dev": true 2802 | }, 2803 | "JSONStream": { 2804 | "version": "1.3.5", 2805 | "dev": true, 2806 | "requires": { 2807 | "jsonparse": "^1.2.0", 2808 | "through": ">=2.2.7 <3" 2809 | } 2810 | }, 2811 | "kind-of": { 2812 | "version": "6.0.3", 2813 | "dev": true 2814 | }, 2815 | "lines-and-columns": { 2816 | "version": "1.2.4", 2817 | "dev": true 2818 | }, 2819 | "load-json-file": { 2820 | "version": "4.0.0", 2821 | "dev": true, 2822 | "requires": { 2823 | "graceful-fs": "^4.1.2", 2824 | "parse-json": "^4.0.0", 2825 | "pify": "^3.0.0", 2826 | "strip-bom": "^3.0.0" 2827 | }, 2828 | "dependencies": { 2829 | "pify": { 2830 | "version": "3.0.0", 2831 | "dev": true 2832 | } 2833 | } 2834 | }, 2835 | "locate-path": { 2836 | "version": "6.0.0", 2837 | "dev": true, 2838 | "requires": { 2839 | "p-locate": "^5.0.0" 2840 | } 2841 | }, 2842 | "lodash": { 2843 | "version": "4.17.21", 2844 | "dev": true 2845 | }, 2846 | "lodash.ismatch": { 2847 | "version": "4.4.0", 2848 | "dev": true 2849 | }, 2850 | "lru-cache": { 2851 | "version": "6.0.0", 2852 | "dev": true, 2853 | "requires": { 2854 | "yallist": "^4.0.0" 2855 | } 2856 | }, 2857 | "map-obj": { 2858 | "version": "4.3.0", 2859 | "dev": true 2860 | }, 2861 | "meow": { 2862 | "version": "8.1.2", 2863 | "dev": true, 2864 | "requires": { 2865 | "@types/minimist": "^1.2.0", 2866 | "camelcase-keys": "^6.2.2", 2867 | "decamelize-keys": "^1.1.0", 2868 | "hard-rejection": "^2.1.0", 2869 | "minimist-options": "4.1.0", 2870 | "normalize-package-data": "^3.0.0", 2871 | "read-pkg-up": "^7.0.1", 2872 | "redent": "^3.0.0", 2873 | "trim-newlines": "^3.0.0", 2874 | "type-fest": "^0.18.0", 2875 | "yargs-parser": "^20.2.3" 2876 | }, 2877 | "dependencies": { 2878 | "find-up": { 2879 | "version": "4.1.0", 2880 | "dev": true, 2881 | "requires": { 2882 | "locate-path": "^5.0.0", 2883 | "path-exists": "^4.0.0" 2884 | } 2885 | }, 2886 | "hosted-git-info": { 2887 | "version": "2.8.9", 2888 | "dev": true 2889 | }, 2890 | "locate-path": { 2891 | "version": "5.0.0", 2892 | "dev": true, 2893 | "requires": { 2894 | "p-locate": "^4.1.0" 2895 | } 2896 | }, 2897 | "p-limit": { 2898 | "version": "2.3.0", 2899 | "dev": true, 2900 | "requires": { 2901 | "p-try": "^2.0.0" 2902 | } 2903 | }, 2904 | "p-locate": { 2905 | "version": "4.1.0", 2906 | "dev": true, 2907 | "requires": { 2908 | "p-limit": "^2.2.0" 2909 | } 2910 | }, 2911 | "parse-json": { 2912 | "version": "5.2.0", 2913 | "dev": true, 2914 | "requires": { 2915 | "@babel/code-frame": "^7.0.0", 2916 | "error-ex": "^1.3.1", 2917 | "json-parse-even-better-errors": "^2.3.0", 2918 | "lines-and-columns": "^1.1.6" 2919 | } 2920 | }, 2921 | "read-pkg": { 2922 | "version": "5.2.0", 2923 | "dev": true, 2924 | "requires": { 2925 | "@types/normalize-package-data": "^2.4.0", 2926 | "normalize-package-data": "^2.5.0", 2927 | "parse-json": "^5.0.0", 2928 | "type-fest": "^0.6.0" 2929 | }, 2930 | "dependencies": { 2931 | "normalize-package-data": { 2932 | "version": "2.5.0", 2933 | "dev": true, 2934 | "requires": { 2935 | "hosted-git-info": "^2.1.4", 2936 | "resolve": "^1.10.0", 2937 | "semver": "2 || 3 || 4 || 5", 2938 | "validate-npm-package-license": "^3.0.1" 2939 | } 2940 | }, 2941 | "type-fest": { 2942 | "version": "0.6.0", 2943 | "dev": true 2944 | } 2945 | } 2946 | }, 2947 | "read-pkg-up": { 2948 | "version": "7.0.1", 2949 | "dev": true, 2950 | "requires": { 2951 | "find-up": "^4.1.0", 2952 | "read-pkg": "^5.2.0", 2953 | "type-fest": "^0.8.1" 2954 | }, 2955 | "dependencies": { 2956 | "type-fest": { 2957 | "version": "0.8.1", 2958 | "dev": true 2959 | } 2960 | } 2961 | }, 2962 | "semver": { 2963 | "version": "5.7.1", 2964 | "dev": true 2965 | } 2966 | } 2967 | }, 2968 | "min-indent": { 2969 | "version": "1.0.1", 2970 | "dev": true 2971 | }, 2972 | "minimatch": { 2973 | "version": "3.1.2", 2974 | "dev": true, 2975 | "requires": { 2976 | "brace-expansion": "^1.1.7" 2977 | } 2978 | }, 2979 | "minimist": { 2980 | "version": "1.2.6", 2981 | "dev": true 2982 | }, 2983 | "minimist-options": { 2984 | "version": "4.1.0", 2985 | "dev": true, 2986 | "requires": { 2987 | "arrify": "^1.0.1", 2988 | "is-plain-obj": "^1.1.0", 2989 | "kind-of": "^6.0.3" 2990 | } 2991 | }, 2992 | "modify-values": { 2993 | "version": "1.0.1", 2994 | "dev": true 2995 | }, 2996 | "neo-async": { 2997 | "version": "2.6.2", 2998 | "dev": true 2999 | }, 3000 | "normalize-package-data": { 3001 | "version": "3.0.3", 3002 | "dev": true, 3003 | "requires": { 3004 | "hosted-git-info": "^4.0.1", 3005 | "is-core-module": "^2.5.0", 3006 | "semver": "^7.3.4", 3007 | "validate-npm-package-license": "^3.0.1" 3008 | } 3009 | }, 3010 | "once": { 3011 | "version": "1.4.0", 3012 | "dev": true, 3013 | "requires": { 3014 | "wrappy": "1" 3015 | } 3016 | }, 3017 | "p-limit": { 3018 | "version": "3.1.0", 3019 | "dev": true, 3020 | "requires": { 3021 | "yocto-queue": "^0.1.0" 3022 | } 3023 | }, 3024 | "p-locate": { 3025 | "version": "5.0.0", 3026 | "dev": true, 3027 | "requires": { 3028 | "p-limit": "^3.0.2" 3029 | } 3030 | }, 3031 | "p-try": { 3032 | "version": "2.2.0", 3033 | "dev": true 3034 | }, 3035 | "parse-json": { 3036 | "version": "4.0.0", 3037 | "dev": true, 3038 | "requires": { 3039 | "error-ex": "^1.3.1", 3040 | "json-parse-better-errors": "^1.0.1" 3041 | } 3042 | }, 3043 | "path-exists": { 3044 | "version": "4.0.0", 3045 | "dev": true 3046 | }, 3047 | "path-is-absolute": { 3048 | "version": "1.0.1", 3049 | "dev": true 3050 | }, 3051 | "path-parse": { 3052 | "version": "1.0.7", 3053 | "dev": true 3054 | }, 3055 | "path-type": { 3056 | "version": "3.0.0", 3057 | "dev": true, 3058 | "requires": { 3059 | "pify": "^3.0.0" 3060 | }, 3061 | "dependencies": { 3062 | "pify": { 3063 | "version": "3.0.0", 3064 | "dev": true 3065 | } 3066 | } 3067 | }, 3068 | "pify": { 3069 | "version": "2.3.0", 3070 | "dev": true 3071 | }, 3072 | "prettier": { 3073 | "version": "2.7.1", 3074 | "dev": true 3075 | }, 3076 | "process-nextick-args": { 3077 | "version": "2.0.1", 3078 | "dev": true 3079 | }, 3080 | "q": { 3081 | "version": "1.5.1", 3082 | "dev": true 3083 | }, 3084 | "quick-lru": { 3085 | "version": "4.0.1", 3086 | "dev": true 3087 | }, 3088 | "read-pkg": { 3089 | "version": "3.0.0", 3090 | "dev": true, 3091 | "requires": { 3092 | "load-json-file": "^4.0.0", 3093 | "normalize-package-data": "^2.3.2", 3094 | "path-type": "^3.0.0" 3095 | }, 3096 | "dependencies": { 3097 | "hosted-git-info": { 3098 | "version": "2.8.9", 3099 | "dev": true 3100 | }, 3101 | "normalize-package-data": { 3102 | "version": "2.5.0", 3103 | "dev": true, 3104 | "requires": { 3105 | "hosted-git-info": "^2.1.4", 3106 | "resolve": "^1.10.0", 3107 | "semver": "2 || 3 || 4 || 5", 3108 | "validate-npm-package-license": "^3.0.1" 3109 | } 3110 | }, 3111 | "semver": { 3112 | "version": "5.7.1", 3113 | "dev": true 3114 | } 3115 | } 3116 | }, 3117 | "read-pkg-up": { 3118 | "version": "3.0.0", 3119 | "dev": true, 3120 | "requires": { 3121 | "find-up": "^2.0.0", 3122 | "read-pkg": "^3.0.0" 3123 | }, 3124 | "dependencies": { 3125 | "find-up": { 3126 | "version": "2.1.0", 3127 | "dev": true, 3128 | "requires": { 3129 | "locate-path": "^2.0.0" 3130 | } 3131 | }, 3132 | "locate-path": { 3133 | "version": "2.0.0", 3134 | "dev": true, 3135 | "requires": { 3136 | "p-locate": "^2.0.0", 3137 | "path-exists": "^3.0.0" 3138 | } 3139 | }, 3140 | "p-limit": { 3141 | "version": "1.3.0", 3142 | "dev": true, 3143 | "requires": { 3144 | "p-try": "^1.0.0" 3145 | } 3146 | }, 3147 | "p-locate": { 3148 | "version": "2.0.0", 3149 | "dev": true, 3150 | "requires": { 3151 | "p-limit": "^1.1.0" 3152 | } 3153 | }, 3154 | "p-try": { 3155 | "version": "1.0.0", 3156 | "dev": true 3157 | }, 3158 | "path-exists": { 3159 | "version": "3.0.0", 3160 | "dev": true 3161 | } 3162 | } 3163 | }, 3164 | "readable-stream": { 3165 | "version": "3.6.0", 3166 | "dev": true, 3167 | "requires": { 3168 | "inherits": "^2.0.3", 3169 | "string_decoder": "^1.1.1", 3170 | "util-deprecate": "^1.0.1" 3171 | } 3172 | }, 3173 | "redent": { 3174 | "version": "3.0.0", 3175 | "dev": true, 3176 | "requires": { 3177 | "indent-string": "^4.0.0", 3178 | "strip-indent": "^3.0.0" 3179 | } 3180 | }, 3181 | "require-directory": { 3182 | "version": "2.1.1", 3183 | "dev": true 3184 | }, 3185 | "resolve": { 3186 | "version": "1.22.1", 3187 | "dev": true, 3188 | "requires": { 3189 | "is-core-module": "^2.9.0", 3190 | "path-parse": "^1.0.7", 3191 | "supports-preserve-symlinks-flag": "^1.0.0" 3192 | } 3193 | }, 3194 | "rimraf": { 3195 | "version": "3.0.2", 3196 | "dev": true, 3197 | "requires": { 3198 | "glob": "^7.1.3" 3199 | } 3200 | }, 3201 | "rollup": { 3202 | "version": "2.77.2", 3203 | "dev": true, 3204 | "requires": { 3205 | "fsevents": "~2.3.2" 3206 | } 3207 | }, 3208 | "safe-buffer": { 3209 | "version": "5.2.1", 3210 | "dev": true 3211 | }, 3212 | "semver": { 3213 | "version": "7.3.8", 3214 | "dev": true, 3215 | "requires": { 3216 | "lru-cache": "^6.0.0" 3217 | } 3218 | }, 3219 | "source-map": { 3220 | "version": "0.6.1", 3221 | "dev": true 3222 | }, 3223 | "spdx-correct": { 3224 | "version": "3.1.1", 3225 | "dev": true, 3226 | "requires": { 3227 | "spdx-expression-parse": "^3.0.0", 3228 | "spdx-license-ids": "^3.0.0" 3229 | } 3230 | }, 3231 | "spdx-exceptions": { 3232 | "version": "2.3.0", 3233 | "dev": true 3234 | }, 3235 | "spdx-expression-parse": { 3236 | "version": "3.0.1", 3237 | "dev": true, 3238 | "requires": { 3239 | "spdx-exceptions": "^2.1.0", 3240 | "spdx-license-ids": "^3.0.0" 3241 | } 3242 | }, 3243 | "spdx-license-ids": { 3244 | "version": "3.0.12", 3245 | "dev": true 3246 | }, 3247 | "split": { 3248 | "version": "1.0.1", 3249 | "dev": true, 3250 | "requires": { 3251 | "through": "2" 3252 | } 3253 | }, 3254 | "split2": { 3255 | "version": "3.2.2", 3256 | "dev": true, 3257 | "requires": { 3258 | "readable-stream": "^3.0.0" 3259 | } 3260 | }, 3261 | "standard-version": { 3262 | "version": "9.5.0", 3263 | "dev": true, 3264 | "requires": { 3265 | "chalk": "^2.4.2", 3266 | "conventional-changelog": "3.1.25", 3267 | "conventional-changelog-config-spec": "2.1.0", 3268 | "conventional-changelog-conventionalcommits": "4.6.3", 3269 | "conventional-recommended-bump": "6.1.0", 3270 | "detect-indent": "^6.0.0", 3271 | "detect-newline": "^3.1.0", 3272 | "dotgitignore": "^2.1.0", 3273 | "figures": "^3.1.0", 3274 | "find-up": "^5.0.0", 3275 | "git-semver-tags": "^4.0.0", 3276 | "semver": "^7.1.1", 3277 | "stringify-package": "^1.0.1", 3278 | "yargs": "^16.0.0" 3279 | } 3280 | }, 3281 | "string_decoder": { 3282 | "version": "1.3.0", 3283 | "dev": true, 3284 | "requires": { 3285 | "safe-buffer": "~5.2.0" 3286 | } 3287 | }, 3288 | "string-width": { 3289 | "version": "4.2.3", 3290 | "dev": true, 3291 | "requires": { 3292 | "emoji-regex": "^8.0.0", 3293 | "is-fullwidth-code-point": "^3.0.0", 3294 | "strip-ansi": "^6.0.1" 3295 | } 3296 | }, 3297 | "stringify-package": { 3298 | "version": "1.0.1", 3299 | "dev": true 3300 | }, 3301 | "strip-ansi": { 3302 | "version": "6.0.1", 3303 | "dev": true, 3304 | "requires": { 3305 | "ansi-regex": "^5.0.1" 3306 | } 3307 | }, 3308 | "strip-bom": { 3309 | "version": "3.0.0", 3310 | "dev": true 3311 | }, 3312 | "strip-indent": { 3313 | "version": "3.0.0", 3314 | "dev": true, 3315 | "requires": { 3316 | "min-indent": "^1.0.0" 3317 | } 3318 | }, 3319 | "supports-color": { 3320 | "version": "5.5.0", 3321 | "dev": true, 3322 | "requires": { 3323 | "has-flag": "^3.0.0" 3324 | } 3325 | }, 3326 | "supports-preserve-symlinks-flag": { 3327 | "version": "1.0.0", 3328 | "dev": true 3329 | }, 3330 | "text-extensions": { 3331 | "version": "1.9.0", 3332 | "dev": true 3333 | }, 3334 | "through": { 3335 | "version": "2.3.8", 3336 | "dev": true 3337 | }, 3338 | "through2": { 3339 | "version": "4.0.2", 3340 | "dev": true, 3341 | "requires": { 3342 | "readable-stream": "3" 3343 | } 3344 | }, 3345 | "trim-newlines": { 3346 | "version": "3.0.1", 3347 | "dev": true 3348 | }, 3349 | "tslib": { 3350 | "version": "2.2.0", 3351 | "peer": true 3352 | }, 3353 | "type-fest": { 3354 | "version": "0.18.1", 3355 | "dev": true 3356 | }, 3357 | "typedarray": { 3358 | "version": "0.0.6", 3359 | "dev": true 3360 | }, 3361 | "typescript": { 3362 | "version": "4.2.4", 3363 | "dev": true 3364 | }, 3365 | "uglify-js": { 3366 | "version": "3.17.4", 3367 | "dev": true, 3368 | "optional": true 3369 | }, 3370 | "util-deprecate": { 3371 | "version": "1.0.2", 3372 | "dev": true 3373 | }, 3374 | "validate-npm-package-license": { 3375 | "version": "3.0.4", 3376 | "dev": true, 3377 | "requires": { 3378 | "spdx-correct": "^3.0.0", 3379 | "spdx-expression-parse": "^3.0.0" 3380 | } 3381 | }, 3382 | "wordwrap": { 3383 | "version": "1.0.0", 3384 | "dev": true 3385 | }, 3386 | "wrap-ansi": { 3387 | "version": "7.0.0", 3388 | "dev": true, 3389 | "requires": { 3390 | "ansi-styles": "^4.0.0", 3391 | "string-width": "^4.1.0", 3392 | "strip-ansi": "^6.0.0" 3393 | }, 3394 | "dependencies": { 3395 | "ansi-styles": { 3396 | "version": "4.3.0", 3397 | "dev": true, 3398 | "requires": { 3399 | "color-convert": "^2.0.1" 3400 | } 3401 | }, 3402 | "color-convert": { 3403 | "version": "2.0.1", 3404 | "dev": true, 3405 | "requires": { 3406 | "color-name": "~1.1.4" 3407 | } 3408 | }, 3409 | "color-name": { 3410 | "version": "1.1.4", 3411 | "dev": true 3412 | } 3413 | } 3414 | }, 3415 | "wrappy": { 3416 | "version": "1.0.2", 3417 | "dev": true 3418 | }, 3419 | "xtend": { 3420 | "version": "4.0.2", 3421 | "dev": true 3422 | }, 3423 | "y18n": { 3424 | "version": "5.0.8", 3425 | "dev": true 3426 | }, 3427 | "yallist": { 3428 | "version": "4.0.0", 3429 | "dev": true 3430 | }, 3431 | "yargs": { 3432 | "version": "16.2.0", 3433 | "dev": true, 3434 | "requires": { 3435 | "cliui": "^7.0.2", 3436 | "escalade": "^3.1.1", 3437 | "get-caller-file": "^2.0.5", 3438 | "require-directory": "^2.1.1", 3439 | "string-width": "^4.2.0", 3440 | "y18n": "^5.0.5", 3441 | "yargs-parser": "^20.2.2" 3442 | } 3443 | }, 3444 | "yargs-parser": { 3445 | "version": "20.2.9", 3446 | "dev": true 3447 | }, 3448 | "yocto-queue": { 3449 | "version": "0.1.0", 3450 | "dev": true 3451 | } 3452 | } 3453 | } 3454 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@pantrist/capacitor-firebase-dynamic-links", 3 | "version": "5.0.3", 4 | "description": "Capacitor Plugin for Firebase Dynamic Links", 5 | "main": "dist/plugin.cjs.js", 6 | "module": "dist/esm/index.js", 7 | "types": "dist/esm/index.d.ts", 8 | "unpkg": "dist/plugin.js", 9 | "scripts": { 10 | "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js", 11 | "clean": "rimraf -rf ./dist", 12 | "watch": "tsc --watch", 13 | "prepublishOnly": "npm run build", 14 | "format:write": "prettier --write src/**/*.ts", 15 | "format:check": "prettier --check src/**/*.ts", 16 | "docgen": "docgen --api CapacitorFirebaseDynamicLinksPlugin --output-readme README.md --output-json dist/docs.json", 17 | "release": "standard-version" 18 | }, 19 | "author": "Nico Lueg (nicolueg@yahoo.de)", 20 | "license": "MIT", 21 | "peerDependencies": { 22 | "@capacitor/core": "next" 23 | }, 24 | "devDependencies": { 25 | "@capacitor/android": "next", 26 | "@capacitor/docgen": "^0.2.0", 27 | "@capacitor/ios": "next", 28 | "prettier": "^2.7.1", 29 | "rimraf": "^3.0.2", 30 | "rollup": "2.77.2", 31 | "standard-version": "^9.5.0", 32 | "typescript": "^4.2.4" 33 | }, 34 | "files": [ 35 | "android/src/main", 36 | "android/build.gradle", 37 | "dist/", 38 | "ios/Plugin/", 39 | "PantristCapacitorFirebaseDynamicLinks.podspec" 40 | ], 41 | "keywords": [ 42 | "capacitor", 43 | "plugin", 44 | "native" 45 | ], 46 | "capacitor": { 47 | "ios": { 48 | "src": "ios" 49 | }, 50 | "android": { 51 | "src": "android" 52 | } 53 | }, 54 | "repository": { 55 | "type": "git", 56 | "url": "https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links" 57 | }, 58 | "bugs": { 59 | "url": "https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links/issues" 60 | }, 61 | "homepage": "https://github.com/Pantrist-dev/capacitor-firebase-dynamic-links#readme" 62 | } 63 | -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | input: 'dist/esm/index.js', 3 | output: [ 4 | { 5 | file: 'dist/plugin.js', 6 | format: 'iife', 7 | name: 'capacitorFirebaseDynamicLinks', 8 | globals: { 9 | '@capacitor/core': 'capacitorExports', 10 | }, 11 | sourcemap: true, 12 | inlineDynamicImports: true, 13 | }, 14 | { 15 | file: 'dist/plugin.cjs.js', 16 | format: 'cjs', 17 | sourcemap: true, 18 | inlineDynamicImports: true, 19 | }, 20 | ], 21 | external: ['@capacitor/core'], 22 | }; 23 | -------------------------------------------------------------------------------- /src/definitions.ts: -------------------------------------------------------------------------------- 1 | import { PluginListenerHandle } from '@capacitor/core'; 2 | 3 | export interface CapacitorFirebaseDynamicLinksPlugin { 4 | /** 5 | * Adds a listener to the opening of a dynamic link 6 | * @param eventName 'deepLinkOpen' for listening to open links 7 | * @param listenerFunc Callback function to be called when the event is fired 8 | */ 9 | addListener( 10 | eventName: 'deepLinkOpen', 11 | listenerFunc: (data: DeepLinkOpen) => void 12 | ): PluginListenerHandle; 13 | 14 | /** 15 | * Remove all native listeners for this plugin 16 | */ 17 | removeAllListeners(): Promise; 18 | 19 | /** 20 | * Creates a new dynamic Link based on the configuration 21 | * @param linkConfiguration configuration for the link 22 | */ 23 | createDynamicLink(linkConfiguration: LinkConfig): Promise<{ value: string }>; 24 | 25 | /** 26 | * Creates a new short dynamic link based on the configuration. 27 | * Its basically a shortened version of the dynamic link. * 28 | * @param linkConfiguration configuration for the link 29 | */ 30 | createDynamicShortLink(linkConfiguration: LinkConfig): Promise<{ value: string }>; 31 | } 32 | 33 | export interface DeepLinkOpen { 34 | /** 35 | * The URL that was opened 36 | */ 37 | url: string; 38 | } 39 | 40 | export interface LinkConfig { 41 | /** 42 | * The link your app will open. 43 | */ 44 | uri: string; 45 | 46 | /** 47 | * Your Dynamic Link URL prefix, which you can find in the Firebase console. 48 | * A Dynamic Link domain looks like the following: `https://example.page.link`. 49 | */ 50 | domainUriPrefix: string; 51 | 52 | /** 53 | * Android specific configuration 54 | */ 55 | androidParameters?: AndroidParameters; 56 | 57 | /** 58 | * iOS specific configuration 59 | */ 60 | iosParameters?: IOSParameters; 61 | 62 | /** 63 | * Additional parameters for the navigation of the app. 64 | */ 65 | navigationInfo?: NavigationInfoParameters; 66 | 67 | /** 68 | * Configuration for showed data when sharing the link with social media. 69 | */ 70 | socialMeta?: SocialMetaTagParameters; 71 | 72 | /** 73 | * Google Play analytics paremeters 74 | */ 75 | googleAnalytics?: GoogleAnalyticsParameters; 76 | 77 | /** 78 | * iTunes Connect analytics parameters 79 | */ 80 | iTunesConnectAnalytics?: ItunesConnectAnalyticsParameters; 81 | 82 | /** 83 | * Firebase Web Api key 84 | * @see https://firebase.google.com/docs/dynamic-links/rest 85 | */ 86 | webApiKey?: string; 87 | } 88 | 89 | export interface AndroidParameters { 90 | /** 91 | * Your bundle ID (e.g. com.example.android) 92 | */ 93 | packageName: string; 94 | 95 | /** 96 | * The link to open when the app isn't installed. Specify this to do something other than install your app from the Play Store when the app isn't installed, such as open the mobile web version of the content, or display a promotional page for your app. 97 | */ 98 | fallbackUrl?: string; 99 | 100 | /** 101 | * The versionCode of the minimum version of your app that can open the link. If the installed app is an older version, the user is taken to the Play Store to upgrade the app. 102 | */ 103 | minimumVersion?: number; 104 | } 105 | 106 | export interface IOSParameters { 107 | /** 108 | * Your bundle ID (e.g. com.example.android) 109 | */ 110 | bundleId: string; 111 | 112 | /** 113 | * Your app's App Store ID, used to send users to the App Store when the app isn't installed 114 | */ 115 | appStoreId?: string; 116 | 117 | /** 118 | * The link to open when the app isn't installed. Specify this to do something other than install your app from the App Store when the app isn't installed, such as open the mobile web version of the content, or display a promotional page for your app. 119 | */ 120 | fallbackUrl?: string; 121 | 122 | /** 123 | * Your app's custom URL scheme, if defined to be something other than your app's bundle ID 124 | */ 125 | customScheme?: string; 126 | 127 | /** 128 | * The link to open on iPads when the app isn't installed. Specify this to do something other than install your app from the App Store when the app isn't installed, such as open the web version of the content, or display a promotional page for your app. 129 | */ 130 | ipadFallbackUrl?: string; 131 | 132 | /** 133 | * The bundle ID of the iOS app to use on iPads to open the link. The app must be connected to your project from the Overview page of the Firebase console. 134 | */ 135 | ipadBundleId?: string; 136 | 137 | /** 138 | * The version number of the minimum version of your app that can open the link. This flag is passed to your app when it is opened, and your app must decide what to do with it. 139 | */ 140 | minimumVersion?: string; 141 | } 142 | 143 | export interface NavigationInfoParameters { 144 | /** 145 | * If set to true, skip the app preview page when the Dynamic Link is opened, and instead redirect to the app or store. 146 | * The app preview page (enabled by default) can more reliably send users to the most appropriate destination when they open Dynamic Links in apps; 147 | * however, if you expect a Dynamic Link to be opened only in apps that can open Dynamic Links reliably without this page, you can disable it with this parameter. 148 | * This parameter will affect the behavior of the Dynamic Link only on iOS. 149 | */ 150 | forcedRedirectEnabled: boolean; 151 | } 152 | 153 | export interface SocialMetaTagParameters { 154 | /** 155 | * The title to use when the Dynamic Link is shared in a social post. 156 | */ 157 | title?: string; 158 | 159 | /** 160 | * The description to use when the Dynamic Link is shared in a social post. 161 | */ 162 | description?: string; 163 | 164 | /** 165 | * The URL to an image related to this link. The image should be at least 300x200 px, and less than 300 KB. 166 | */ 167 | imageUrl?: string; 168 | } 169 | 170 | export interface GoogleAnalyticsParameters { 171 | /** 172 | * Sets `utm_source` 173 | */ 174 | source?: string; 175 | 176 | /** 177 | * Sets `utm_medium` 178 | */ 179 | medium?: string; 180 | 181 | /** 182 | * Sets `utm_campaign` 183 | */ 184 | campaign?: string; 185 | 186 | /** 187 | * Sets `utm_term` 188 | */ 189 | term?: string; 190 | 191 | /** 192 | * Sets `utm_content` 193 | */ 194 | content?: string; 195 | } 196 | 197 | export interface ItunesConnectAnalyticsParameters { 198 | /** 199 | * Sets `pt` 200 | */ 201 | providerToken?: string; 202 | 203 | /** 204 | * Sets `at` 205 | */ 206 | affiliateToken?: string; 207 | 208 | /** 209 | * Sets `ct` 210 | */ 211 | campaignToken?: string; 212 | } 213 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import { registerPlugin } from '@capacitor/core'; 2 | import type { CapacitorFirebaseDynamicLinksPlugin } from './definitions'; 3 | 4 | const FirebaseDynamicLinks = registerPlugin( 5 | 'CapacitorFirebaseDynamicLinks', 6 | { 7 | web: () => import('./web').then((m) => new m.CapacitorFirebaseDynamicLinksWeb()), 8 | } 9 | ); 10 | 11 | export * from './definitions'; 12 | export { FirebaseDynamicLinks }; 13 | -------------------------------------------------------------------------------- /src/web.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from '@capacitor/core'; 2 | 3 | import { CapacitorFirebaseDynamicLinksPlugin, LinkConfig } from './definitions'; 4 | 5 | interface DynamicLinkInfo { 6 | longDynamicLink: string; 7 | suffix?: { 8 | option: 'SHORT' | 'UNGUESSABLE'; 9 | }; 10 | } 11 | 12 | export class CapacitorFirebaseDynamicLinksWeb 13 | extends WebPlugin 14 | implements CapacitorFirebaseDynamicLinksPlugin 15 | { 16 | createDynamicLink(linkConfig: LinkConfig): Promise<{ value: string }> { 17 | const dynamicLink = new URL(`${linkConfig.domainUriPrefix}/`); 18 | 19 | dynamicLink.searchParams.append('link', linkConfig.uri); 20 | 21 | if (linkConfig.androidParameters) { 22 | dynamicLink.searchParams.append('apn', linkConfig.androidParameters.packageName); 23 | 24 | if (linkConfig.androidParameters.fallbackUrl) { 25 | dynamicLink.searchParams.append('afl', linkConfig.androidParameters.fallbackUrl); 26 | } 27 | 28 | if (linkConfig.androidParameters.minimumVersion) { 29 | dynamicLink.searchParams.append( 30 | 'amv', 31 | linkConfig.androidParameters.minimumVersion.toString() 32 | ); 33 | } 34 | } 35 | 36 | if (linkConfig.iosParameters) { 37 | dynamicLink.searchParams.append('ibi', linkConfig.iosParameters.bundleId); 38 | 39 | if (linkConfig.iosParameters.fallbackUrl) { 40 | dynamicLink.searchParams.append('ifl', linkConfig.iosParameters.fallbackUrl); 41 | } 42 | 43 | if (linkConfig.iosParameters.customScheme) { 44 | dynamicLink.searchParams.append('ius', linkConfig.iosParameters.customScheme); 45 | } 46 | 47 | if (linkConfig.iosParameters.ipadFallbackUrl) { 48 | dynamicLink.searchParams.append('ipfl', linkConfig.iosParameters.ipadFallbackUrl); 49 | } 50 | 51 | if (linkConfig.iosParameters.ipadBundleId) { 52 | dynamicLink.searchParams.append('ipbi', linkConfig.iosParameters.ipadBundleId); 53 | } 54 | 55 | if (linkConfig.iosParameters.appStoreId) { 56 | dynamicLink.searchParams.append('isi', linkConfig.iosParameters.appStoreId); 57 | } 58 | 59 | if (linkConfig.iosParameters.minimumVersion) { 60 | dynamicLink.searchParams.append('imv', linkConfig.iosParameters.minimumVersion); 61 | } 62 | } 63 | 64 | if (linkConfig.navigationInfo) { 65 | if (linkConfig.navigationInfo.forcedRedirectEnabled) { 66 | dynamicLink.searchParams.append('efr', '1'); 67 | } 68 | } 69 | 70 | if (linkConfig.socialMeta) { 71 | if (linkConfig.socialMeta.title) { 72 | dynamicLink.searchParams.append('st', linkConfig.socialMeta.title); 73 | } 74 | 75 | if (linkConfig.socialMeta.description) { 76 | dynamicLink.searchParams.append('sd', linkConfig.socialMeta.description); 77 | } 78 | 79 | if (linkConfig.socialMeta.imageUrl) { 80 | dynamicLink.searchParams.append('si', linkConfig.socialMeta.imageUrl); 81 | } 82 | } 83 | 84 | if (linkConfig.googleAnalytics) { 85 | if (linkConfig.googleAnalytics.source) { 86 | dynamicLink.searchParams.append('utm_source', linkConfig.googleAnalytics.source); 87 | } 88 | 89 | if (linkConfig.googleAnalytics.medium) { 90 | dynamicLink.searchParams.append('utm_medium', linkConfig.googleAnalytics.medium); 91 | } 92 | 93 | if (linkConfig.googleAnalytics.campaign) { 94 | dynamicLink.searchParams.append('utm_campaign', linkConfig.googleAnalytics.campaign); 95 | } 96 | 97 | if (linkConfig.googleAnalytics.term) { 98 | dynamicLink.searchParams.append('utm_term', linkConfig.googleAnalytics.term); 99 | } 100 | 101 | if (linkConfig.googleAnalytics.content) { 102 | dynamicLink.searchParams.append('utm_content', linkConfig.googleAnalytics.content); 103 | } 104 | } 105 | 106 | if (linkConfig.iTunesConnectAnalytics) { 107 | if (linkConfig.iTunesConnectAnalytics.affiliateToken) { 108 | dynamicLink.searchParams.append('at', linkConfig.iTunesConnectAnalytics.affiliateToken); 109 | } 110 | 111 | if (linkConfig.iTunesConnectAnalytics.campaignToken) { 112 | dynamicLink.searchParams.append('ct', linkConfig.iTunesConnectAnalytics.campaignToken); 113 | } 114 | 115 | if (linkConfig.iTunesConnectAnalytics.providerToken) { 116 | dynamicLink.searchParams.append('pt', linkConfig.iTunesConnectAnalytics.providerToken); 117 | } 118 | } 119 | 120 | return Promise.resolve({ value: dynamicLink.toString() }); 121 | } 122 | 123 | createDynamicShortLink(linkConfig: LinkConfig): Promise<{ value: string }> { 124 | if (!linkConfig.webApiKey) { 125 | throw new Error('Unable to get firebase api key from default app'); 126 | } 127 | 128 | return this.createDynamicLink(linkConfig) 129 | .then((result) => ({ 130 | longDynamicLink: result.value, 131 | })) 132 | .then((dynamicLinkInfo: DynamicLinkInfo) => 133 | fetch( 134 | `https://firebasedynamiclinks.googleapis.com/v1/shortLinks?key=${linkConfig.webApiKey}`, 135 | { 136 | method: 'POST', 137 | headers: { 'Content-Type': 'application/json' }, 138 | body: JSON.stringify(dynamicLinkInfo), 139 | } 140 | ) 141 | ) 142 | .then((response) => response.json()) 143 | .then((data) => ({ 144 | value: data.shortLink, 145 | })); 146 | } 147 | } 148 | 149 | const CapacitorFirebaseDynamicLinks = new CapacitorFirebaseDynamicLinksWeb(); 150 | 151 | export { CapacitorFirebaseDynamicLinks }; 152 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowUnreachableCode": false, 4 | "declaration": true, 5 | "esModuleInterop": true, 6 | "lib": ["dom", "es2017"], 7 | "module": "esnext", 8 | "moduleResolution": "node", 9 | "noFallthroughCasesInSwitch": true, 10 | "noUnusedLocals": true, 11 | "noUnusedParameters": true, 12 | "outDir": "dist/esm", 13 | "pretty": true, 14 | "sourceMap": true, 15 | "strict": true, 16 | "target": "es2017" 17 | }, 18 | "files": ["src/index.ts"] 19 | } 20 | --------------------------------------------------------------------------------