@capgo/capacitor-launch-navigator 7.1.11 → 8.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
11
11
  s.author = package['author']
12
12
  s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
13
  s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '14.0'
14
+ s.ios.deployment_target = '15.0'
15
15
  s.dependency 'Capacitor'
16
16
  s.swift_version = '5.1'
17
17
  end
package/Package.swift CHANGED
@@ -3,14 +3,14 @@ import PackageDescription
3
3
 
4
4
  let package = Package(
5
5
  name: "CapgoCapacitorLaunchNavigator",
6
- platforms: [.iOS(.v14)],
6
+ platforms: [.iOS(.v15)],
7
7
  products: [
8
8
  .library(
9
9
  name: "CapgoCapacitorLaunchNavigator",
10
10
  targets: ["LaunchNavigatorPlugin"])
11
11
  ],
12
12
  dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0")
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0")
14
14
  ],
15
15
  targets: [
16
16
  .target(
@@ -1,8 +1,8 @@
1
1
  ext {
2
2
  junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.0'
4
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
5
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
3
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
4
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
5
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
6
6
  }
7
7
 
8
8
  buildscript {
@@ -11,18 +11,18 @@ buildscript {
11
11
  mavenCentral()
12
12
  }
13
13
  dependencies {
14
- classpath 'com.android.tools.build:gradle:8.7.2'
14
+ classpath 'com.android.tools.build:gradle:8.13.0'
15
15
  }
16
16
  }
17
17
 
18
18
  apply plugin: 'com.android.library'
19
19
 
20
20
  android {
21
- namespace "app.capgo.plugin.launch_navigator"
22
- compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
21
+ namespace = "app.capgo.plugin.launch_navigator"
22
+ compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
23
23
  defaultConfig {
24
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
25
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
24
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
25
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
26
26
  versionCode 1
27
27
  versionName "1.0"
28
28
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -34,7 +34,7 @@ android {
34
34
  }
35
35
  }
36
36
  lintOptions {
37
- abortOnError false
37
+ abortOnError = false
38
38
  }
39
39
  compileOptions {
40
40
  sourceCompatibility JavaVersion.VERSION_21
@@ -10,7 +10,7 @@ import com.getcapacitor.annotation.CapacitorPlugin;
10
10
  @CapacitorPlugin(name = "LaunchNavigator")
11
11
  public class LaunchNavigatorPlugin extends Plugin {
12
12
 
13
- private final String pluginVersion = "7.1.11";
13
+ private final String pluginVersion = "8.0.1";
14
14
 
15
15
  private LaunchNavigator implementation;
16
16
 
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../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,gBAAgB;QACpB,OAAO;YACL,IAAI,EAAE;gBACJ;oBACE,GAAG,EAAE,aAAa;oBAClB,IAAI,EAAE,mBAAmB;oBACzB,SAAS,EAAE,IAAI;iBAChB;aACF;SACF,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,gBAAgB;QACpB,OAAO;YACL,IAAI,EAAE,CAAC,aAAa,CAAC;SACtB,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa;QACjB,OAAO;YACL,GAAG,EAAE,aAAa;SACnB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { LaunchNavigatorPlugin, NavigateOptions, AvailableApp } from './definitions';\n\nexport class LaunchNavigatorWeb extends WebPlugin implements LaunchNavigatorPlugin {\n /**\n * Navigate to a location using latitude and longitude\n * Opens the location in the default map application or Google Maps web\n */\n async navigate(options: { destination: [number, number]; options?: NavigateOptions }): Promise<void> {\n const [lat, lon] = options.destination;\n const navOptions = options.options || {};\n\n let url: string;\n\n if (navOptions.start) {\n const [startLat, startLon] = navOptions.start;\n url = `https://www.google.com/maps/dir/${startLat},${startLon}/${lat},${lon}`;\n } else {\n url = `https://www.google.com/maps/search/?api=1&query=${lat},${lon}`;\n }\n\n if (navOptions.transportMode) {\n const modeMap: Record<string, string> = {\n driving: 'driving',\n walking: 'walking',\n bicycling: 'bicycling',\n transit: 'transit',\n };\n const mode = modeMap[navOptions.transportMode];\n if (mode && navOptions.start) {\n url += `&travelmode=${mode}`;\n }\n }\n\n window.open(url, '_blank');\n }\n\n /**\n * Check if a specific navigation app is available\n * Always returns false on web\n */\n async isAppAvailable(options: { app: string }): Promise<{ available: boolean }> {\n console.log('isAppAvailable called with app:', options.app);\n return { available: false };\n }\n\n /**\n * Get list of available navigation apps\n * Returns only Google Maps as available on web\n */\n async getAvailableApps(): Promise<{ apps: AvailableApp[] }> {\n return {\n apps: [\n {\n app: 'google_maps',\n name: 'Google Maps (Web)',\n available: true,\n },\n ],\n };\n }\n\n /**\n * Get list of supported apps for the current platform\n * Returns only Google Maps for web\n */\n async getSupportedApps(): Promise<{ apps: string[] }> {\n return {\n apps: ['google_maps'],\n };\n }\n\n /**\n * Get the default app for navigation\n * Returns Google Maps for web\n */\n async getDefaultApp(): Promise<{ app: string }> {\n return {\n app: 'google_maps',\n };\n }\n\n async getPluginVersion(): Promise<{ version: string }> {\n return { version: 'web' };\n }\n}\n"]}
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAC/C;;;OAGG;IACH,KAAK,CAAC,QAAQ,CAAC,OAAqE;QAClF,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC;QACvC,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;QAEzC,IAAI,GAAW,CAAC;QAEhB,IAAI,UAAU,CAAC,KAAK,EAAE,CAAC;YACrB,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC;YAC9C,GAAG,GAAG,mCAAmC,QAAQ,IAAI,QAAQ,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC;QAChF,CAAC;aAAM,CAAC;YACN,GAAG,GAAG,mDAAmD,GAAG,IAAI,GAAG,EAAE,CAAC;QACxE,CAAC;QAED,IAAI,UAAU,CAAC,aAAa,EAAE,CAAC;YAC7B,MAAM,OAAO,GAA2B;gBACtC,OAAO,EAAE,SAAS;gBAClB,OAAO,EAAE,SAAS;gBAClB,SAAS,EAAE,WAAW;gBACtB,OAAO,EAAE,SAAS;aACnB,CAAC;YACF,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;YAC/C,IAAI,IAAI,IAAI,UAAU,CAAC,KAAK,EAAE,CAAC;gBAC7B,GAAG,IAAI,eAAe,IAAI,EAAE,CAAC;YAC/B,CAAC;QACH,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,cAAc,CAAC,OAAwB;QAC3C,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5D,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,gBAAgB;QACpB,OAAO;YACL,IAAI,EAAE;gBACJ;oBACE,GAAG,EAAE,aAAa;oBAClB,IAAI,EAAE,mBAAmB;oBACzB,SAAS,EAAE,IAAI;iBAChB;aACF;SACF,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,gBAAgB;QACpB,OAAO;YACL,IAAI,EAAE,CAAC,aAAa,CAAC;SACtB,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa;QACjB,OAAO;YACL,GAAG,EAAE,aAAa;SACnB,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAC5B,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { LaunchNavigatorPlugin, NavigateOptions, AvailableApp } from './definitions';\n\nexport class LaunchNavigatorWeb extends WebPlugin implements LaunchNavigatorPlugin {\n /**\n * Navigate to a location using latitude and longitude\n * Opens the location in the default map application or Google Maps web\n */\n async navigate(options: { destination: [number, number]; options?: NavigateOptions }): Promise<void> {\n const [lat, lon] = options.destination;\n const navOptions = options.options || {};\n\n let url: string;\n\n if (navOptions.start) {\n const [startLat, startLon] = navOptions.start;\n url = `https://www.google.com/maps/dir/${startLat},${startLon}/${lat},${lon}`;\n } else {\n url = `https://www.google.com/maps/search/?api=1&query=${lat},${lon}`;\n }\n\n if (navOptions.transportMode) {\n const modeMap: Record<string, string> = {\n driving: 'driving',\n walking: 'walking',\n bicycling: 'bicycling',\n transit: 'transit',\n };\n const mode = modeMap[navOptions.transportMode];\n if (mode && navOptions.start) {\n url += `&travelmode=${mode}`;\n }\n }\n\n window.open(url, '_blank');\n }\n\n /**\n * Check if a specific navigation app is available\n * Always returns false on web\n */\n async isAppAvailable(options: { app: string }): Promise<{ available: boolean }> {\n console.log('isAppAvailable called with app:', options.app);\n return { available: false };\n }\n\n /**\n * Get list of available navigation apps\n * Returns only Google Maps as available on web\n */\n async getAvailableApps(): Promise<{ apps: AvailableApp[] }> {\n return {\n apps: [\n {\n app: 'google_maps',\n name: 'Google Maps (Web)',\n available: true,\n },\n ],\n };\n }\n\n /**\n * Get list of supported apps for the current platform\n * Returns only Google Maps for web\n */\n async getSupportedApps(): Promise<{ apps: string[] }> {\n return {\n apps: ['google_maps'],\n };\n }\n\n /**\n * Get the default app for navigation\n * Returns Google Maps for web\n */\n async getDefaultApp(): Promise<{ app: string }> {\n return {\n app: 'google_maps',\n };\n }\n\n async getPluginVersion(): Promise<{ version: string }> {\n return { version: 'web' };\n }\n}\n"]}
@@ -9,7 +9,7 @@ import MapKit
9
9
  */
10
10
  @objc(LaunchNavigatorPlugin)
11
11
  public class LaunchNavigatorPlugin: CAPPlugin, CAPBridgedPlugin {
12
- private let pluginVersion: String = "7.1.11"
12
+ private let pluginVersion: String = "8.0.1"
13
13
  public let identifier = "LaunchNavigatorPlugin"
14
14
  public let jsName = "LaunchNavigator"
15
15
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-launch-navigator",
3
- "version": "7.1.11",
3
+ "version": "8.0.1",
4
4
  "description": "Capacitor plugin which launches native route navigation apps for Android, iOS",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -62,23 +62,25 @@
62
62
  "prepublishOnly": "npm run build"
63
63
  },
64
64
  "devDependencies": {
65
- "@capacitor/android": "^7.0.0",
66
- "@capacitor/core": "^7.0.0",
67
- "@capacitor/docgen": "^0.3.0",
68
- "@capacitor/ios": "^7.0.0",
65
+ "@capacitor/android": "^8.0.0",
66
+ "@capacitor/core": "^8.0.0",
67
+ "@capacitor/docgen": "^0.3.1",
68
+ "@capacitor/ios": "^8.0.0",
69
69
  "@ionic/eslint-config": "^0.4.0",
70
70
  "@ionic/prettier-config": "^4.0.0",
71
71
  "@ionic/swiftlint-config": "^2.0.0",
72
- "eslint": "^8.57.0",
73
- "prettier": "^3.4.2",
74
- "prettier-plugin-java": "^2.6.6",
75
- "rimraf": "^6.0.1",
76
- "rollup": "^4.30.1",
72
+ "@types/node": "^24.10.1",
73
+ "eslint": "^8.57.1",
74
+ "eslint-plugin-import": "^2.31.0",
75
+ "prettier": "^3.6.2",
76
+ "prettier-plugin-java": "^2.7.7",
77
+ "rimraf": "^6.1.0",
78
+ "rollup": "^4.53.2",
77
79
  "swiftlint": "^2.0.0",
78
- "typescript": "~4.1.5"
80
+ "typescript": "^5.9.3"
79
81
  },
80
82
  "peerDependencies": {
81
- "@capacitor/core": ">=7.0.0"
83
+ "@capacitor/core": ">=8.0.0"
82
84
  },
83
85
  "prettier": "@ionic/prettier-config",
84
86
  "swiftlint": "@ionic/swiftlint-config",