├── src ├── app │ ├── app.component.scss │ ├── app.component.html │ ├── home │ │ ├── home.page.scss │ │ ├── home-routing.module.ts │ │ ├── home.page.ts │ │ ├── home.module.ts │ │ ├── home.page.html │ │ └── home.page.spec.ts │ ├── app-routing.module.ts │ ├── app.component.ts │ └── app.module.ts ├── environments │ ├── environment.prod.ts │ └── environment.ts ├── assets │ ├── icon │ │ └── favicon.png │ └── shapes.svg ├── zone-flags.ts ├── main.ts ├── test.ts ├── index.html └── global.scss ├── capacitor-mapbox ├── android │ ├── .npmignore │ ├── build │ │ ├── intermediates │ │ │ ├── annotations_typedef_file │ │ │ │ └── debug │ │ │ │ │ └── typedefs.txt │ │ │ ├── navigation_json │ │ │ │ └── debug │ │ │ │ │ └── navigation.json │ │ │ ├── library_java_res │ │ │ │ └── debug │ │ │ │ │ └── res.jar │ │ │ ├── merged_java_res │ │ │ │ └── debug │ │ │ │ │ └── out.jar │ │ │ ├── annotation_processor_list │ │ │ │ └── debug │ │ │ │ │ └── annotationProcessors.json │ │ │ ├── aar_main_jar │ │ │ │ └── debug │ │ │ │ │ └── classes.jar │ │ │ ├── compile_library_classes │ │ │ │ └── debug │ │ │ │ │ └── classes.jar │ │ │ ├── incremental │ │ │ │ ├── debug-mergeJavaRes │ │ │ │ │ └── merge-state │ │ │ │ ├── debug-mergeNativeLibs │ │ │ │ │ └── merge-state │ │ │ │ ├── packageDebugResources │ │ │ │ │ ├── merged.dir │ │ │ │ │ │ └── values │ │ │ │ │ │ │ └── values.xml │ │ │ │ │ └── compile-file-map.properties │ │ │ │ ├── mergeDebugShaders │ │ │ │ │ └── merger.xml │ │ │ │ ├── mergeDebugJniLibFolders │ │ │ │ │ └── merger.xml │ │ │ │ └── packageDebugAssets │ │ │ │ │ └── merger.xml │ │ │ ├── runtime_library_classes │ │ │ │ └── debug │ │ │ │ │ └── classes.jar │ │ │ ├── compile_only_not_namespaced_r_class_jar │ │ │ │ └── debug │ │ │ │ │ └── R.jar │ │ │ ├── javac │ │ │ │ └── debug │ │ │ │ │ └── classes │ │ │ │ │ └── com │ │ │ │ │ └── ionicframework │ │ │ │ │ └── cap │ │ │ │ │ └── mapbox │ │ │ │ │ ├── Mapbox.class │ │ │ │ │ ├── MapBoxActivity.class │ │ │ │ │ ├── MapBoxActivity$1.class │ │ │ │ │ ├── MapBoxActivity$1$1.class │ │ │ │ │ └── capacitormapbox │ │ │ │ │ └── BuildConfig.class │ │ │ ├── local_only_symbol_list │ │ │ │ └── debug │ │ │ │ │ └── R-def.txt │ │ │ ├── compiled_local_resources │ │ │ │ └── debug │ │ │ │ │ └── out │ │ │ │ │ ├── layout_map_activity.xml.flat │ │ │ │ │ └── layout_bridge_layout_main.xml.flat │ │ │ ├── packaged_res │ │ │ │ └── debug │ │ │ │ │ ├── values │ │ │ │ │ └── values.xml │ │ │ │ │ └── layout │ │ │ │ │ ├── map_activity.xml │ │ │ │ │ └── bridge_layout_main.xml │ │ │ ├── aapt_friendly_merged_manifests │ │ │ │ └── debug │ │ │ │ │ └── aapt │ │ │ │ │ ├── output.json │ │ │ │ │ └── AndroidManifest.xml │ │ │ ├── merged_manifests │ │ │ │ └── debug │ │ │ │ │ └── output.json │ │ │ └── library_manifest │ │ │ │ └── debug │ │ │ │ └── AndroidManifest.xml │ │ ├── .transforms │ │ │ ├── 228d9f713d48aa2e6dbed46d0eeb781f.bin │ │ │ ├── 3d89d73ec68d5e046d5adc1e9ea91314.bin │ │ │ ├── 228d9f713d48aa2e6dbed46d0eeb781f │ │ │ │ └── classes │ │ │ │ │ └── classes.dex │ │ │ └── 3d89d73ec68d5e046d5adc1e9ea91314 │ │ │ │ └── classes │ │ │ │ └── classes.dex │ │ ├── outputs │ │ │ └── aar │ │ │ │ └── capacitor-mapbox-debug.aar │ │ └── generated │ │ │ └── source │ │ │ └── buildConfig │ │ │ └── debug │ │ │ └── com │ │ │ └── ionicframework │ │ │ └── cap │ │ │ └── mapbox │ │ │ └── capacitormapbox │ │ │ └── BuildConfig.java │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── values │ │ │ │ │ ├── styles.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ └── strings.xml │ │ │ │ └── layout │ │ │ │ │ ├── map_activity.xml │ │ │ │ │ └── bridge_layout_main.xml │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── ionicframework │ │ │ │ └── cap │ │ │ │ └── mapbox │ │ │ │ └── Mapbox.java │ │ ├── test │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── getcapacitor │ │ │ │ └── ExampleUnitTest.java │ │ └── androidTest │ │ │ └── java │ │ │ └── com │ │ │ └── getcapacitor │ │ │ └── android │ │ │ └── ExampleInstrumentedTest.java │ ├── settings.gradle │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── proguard-rules.pro │ └── gradle.properties ├── node_modules │ ├── @capacitor │ │ ├── android │ │ │ ├── scripts │ │ │ │ └── release.sh │ │ │ ├── gradle │ │ │ │ └── wrapper │ │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ │ └── gradle-wrapper.properties │ │ │ ├── capacitor │ │ │ │ ├── src │ │ │ │ │ ├── main │ │ │ │ │ │ ├── java │ │ │ │ │ │ │ └── com │ │ │ │ │ │ │ │ └── getcapacitor │ │ │ │ │ │ │ │ ├── InvalidPluginException.java │ │ │ │ │ │ │ │ ├── JSExportException.java │ │ │ │ │ │ │ │ ├── PluginInvocationException.java │ │ │ │ │ │ │ │ ├── InvalidPluginMethodException.java │ │ │ │ │ │ │ │ ├── PluginLoadException.java │ │ │ │ │ │ │ │ ├── plugin │ │ │ │ │ │ │ │ ├── camera │ │ │ │ │ │ │ │ │ ├── CameraResultType.java │ │ │ │ │ │ │ │ │ └── CameraSource.java │ │ │ │ │ │ │ │ ├── Photos.java │ │ │ │ │ │ │ │ ├── background │ │ │ │ │ │ │ │ │ └── BackgroundTaskService.java │ │ │ │ │ │ │ │ └── notification │ │ │ │ │ │ │ │ │ └── NotificationDismissReceiver.java │ │ │ │ │ │ │ │ ├── PluginMethod.java │ │ │ │ │ │ │ │ ├── cordova │ │ │ │ │ │ │ │ ├── MockCordovaInterfaceImpl.java │ │ │ │ │ │ │ │ └── CapacitorCordovaCookieManager.java │ │ │ │ │ │ │ │ ├── CapacitorFirebaseMessagingService.java │ │ │ │ │ │ │ │ ├── ui │ │ │ │ │ │ │ │ └── Toast.java │ │ │ │ │ │ │ │ ├── PluginMethodHandle.java │ │ │ │ │ │ │ │ ├── BridgeWebViewClient.java │ │ │ │ │ │ │ │ ├── NativePlugin.java │ │ │ │ │ │ │ │ └── LogUtils.java │ │ │ │ │ │ ├── res │ │ │ │ │ │ │ ├── values │ │ │ │ │ │ │ │ ├── attrs.xml │ │ │ │ │ │ │ │ ├── colors.xml │ │ │ │ │ │ │ │ ├── strings.xml │ │ │ │ │ │ │ │ └── styles.xml │ │ │ │ │ │ │ ├── drawable │ │ │ │ │ │ │ │ └── ic_transparent.xml │ │ │ │ │ │ │ └── layout │ │ │ │ │ │ │ │ ├── fragment_bridge.xml │ │ │ │ │ │ │ │ └── bridge_layout_main.xml │ │ │ │ │ │ └── AndroidManifest.xml │ │ │ │ │ ├── test │ │ │ │ │ │ └── java │ │ │ │ │ │ │ └── com │ │ │ │ │ │ │ └── getcapacitor │ │ │ │ │ │ │ └── ExampleUnitTest.java │ │ │ │ │ └── androidTest │ │ │ │ │ │ └── java │ │ │ │ │ │ └── com │ │ │ │ │ │ └── getcapacitor │ │ │ │ │ │ └── android │ │ │ │ │ │ └── ExampleInstrumentedTest.java │ │ │ │ └── proguard-rules.pro │ │ │ └── gradle.properties │ │ ├── core │ │ │ ├── dist │ │ │ │ └── esm │ │ │ │ │ ├── definitions.js │ │ │ │ │ ├── util.d.ts │ │ │ │ │ ├── definitions.js.map │ │ │ │ │ ├── index.js │ │ │ │ │ ├── index.js.map │ │ │ │ │ ├── global.d.ts │ │ │ │ │ ├── index.d.ts │ │ │ │ │ ├── web │ │ │ │ │ ├── motion.d.ts │ │ │ │ │ ├── share.d.ts │ │ │ │ │ ├── toast.d.ts │ │ │ │ │ ├── camera.d.ts │ │ │ │ │ ├── permissions.d.ts │ │ │ │ │ ├── motion.js.map │ │ │ │ │ ├── clipboard.d.ts │ │ │ │ │ ├── accessibility.d.ts │ │ │ │ │ ├── browser.d.ts │ │ │ │ │ ├── splash-screen.d.ts │ │ │ │ │ ├── device.d.ts │ │ │ │ │ ├── splash-screen.js.map │ │ │ │ │ ├── network.d.ts │ │ │ │ │ ├── share.js.map │ │ │ │ │ ├── geolocation.d.ts │ │ │ │ │ ├── modals.d.ts │ │ │ │ │ ├── app.d.ts │ │ │ │ │ ├── motion.js │ │ │ │ │ ├── toast.js.map │ │ │ │ │ ├── browser.js.map │ │ │ │ │ ├── permissions.js.map │ │ │ │ │ ├── accessibility.js.map │ │ │ │ │ ├── storage.d.ts │ │ │ │ │ ├── splash-screen.js │ │ │ │ │ ├── share.js │ │ │ │ │ └── app.js.map │ │ │ │ │ ├── web-runtime.d.ts │ │ │ │ │ ├── global.js.map │ │ │ │ │ ├── web-plugins.js.map │ │ │ │ │ ├── web-plugins.d.ts │ │ │ │ │ ├── util.js │ │ │ │ │ ├── util.js.map │ │ │ │ │ ├── global.js │ │ │ │ │ └── web-plugins.js │ │ │ ├── README.md │ │ │ └── LICENSE │ │ └── ios │ │ │ ├── ios │ │ │ ├── CapacitorCordova │ │ │ │ ├── CapacitorCordova │ │ │ │ │ ├── Classes │ │ │ │ │ │ └── Public │ │ │ │ │ │ │ ├── AppDelegate.m │ │ │ │ │ │ │ ├── AppDelegate.h │ │ │ │ │ │ │ ├── CDVPluginManager.h │ │ │ │ │ │ │ ├── CDVURLProtocol.h │ │ │ │ │ │ │ ├── CDV.h │ │ │ │ │ │ │ ├── CDVViewController.m │ │ │ │ │ │ │ └── CDVUserAgentUtil.h │ │ │ │ │ ├── Info.plist │ │ │ │ │ └── CapacitorCordova.h │ │ │ │ └── CapacitorCordova.xcodeproj │ │ │ │ │ └── project.xcworkspace │ │ │ │ │ └── xcshareddata │ │ │ │ │ └── IDEWorkspaceChecks.plist │ │ │ └── Capacitor │ │ │ │ ├── Capacitor │ │ │ │ ├── Plugins │ │ │ │ │ ├── DefaultPlugins.h │ │ │ │ │ ├── Keyboard.h │ │ │ │ │ ├── Console.swift │ │ │ │ │ └── WebView.swift │ │ │ │ ├── TmpViewController.swift │ │ │ │ ├── Capacitor.h │ │ │ │ ├── CAPLog.swift │ │ │ │ ├── CAPAppDelegate.swift │ │ │ │ ├── DocLinks.swift │ │ │ │ ├── UILabel.swift │ │ │ │ ├── Info.plist │ │ │ │ ├── CAPNotifications.swift │ │ │ │ ├── CAPPluginCall.m │ │ │ │ └── CAPPluginMethod.m │ │ │ │ ├── Podfile │ │ │ │ ├── Capacitor.xcworkspace │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ └── xcshareddata │ │ │ │ │ └── IDEWorkspaceChecks.plist │ │ │ │ ├── Podfile.lock │ │ │ │ └── CapacitorTests │ │ │ │ └── Info.plist │ │ │ ├── Capacitor.podspec │ │ │ └── CapacitorCordova.podspec │ ├── tslib │ │ ├── tslib.html │ │ ├── tslib.es6.html │ │ ├── LICENSE.txt │ │ └── CopyrightNotice.txt │ ├── typescript │ │ ├── bin │ │ │ ├── tsc │ │ │ └── tsserver │ │ ├── ThirdPartyNoticeText.txt │ │ ├── lib │ │ │ ├── README.md │ │ │ ├── lib.es2016.d.ts │ │ │ ├── lib.d.ts │ │ │ ├── lib.esnext.d.ts │ │ │ ├── lib.esnext.symbol.d.ts │ │ │ ├── lib.es2019.symbol.d.ts │ │ │ ├── lib.es6.d.ts │ │ │ ├── lib.es2016.full.d.ts │ │ │ ├── lib.es2017.full.d.ts │ │ │ ├── lib.es2018.full.d.ts │ │ │ ├── lib.esnext.full.d.ts │ │ │ ├── lib.es2019.d.ts │ │ │ ├── lib.es2019.full.d.ts │ │ │ ├── lib.es2020.full.d.ts │ │ │ ├── lib.es2020.d.ts │ │ │ ├── lib.webworker.importscripts.d.ts │ │ │ ├── lib.es2017.d.ts │ │ │ └── lib.es2018.d.ts │ │ ├── CODE_OF_CONDUCT.md │ │ └── CopyrightNotice.txt │ ├── concat-map │ │ ├── .travis.yml │ │ ├── example │ │ │ └── map.js │ │ ├── index.js │ │ └── LICENSE │ ├── balanced-match │ │ ├── .npmignore │ │ └── LICENSE.md │ ├── inherits │ │ ├── inherits.js │ │ ├── LICENSE │ │ └── inherits_browser.js │ ├── .bin │ │ ├── rimraf.cmd │ │ ├── tsc.cmd │ │ ├── tsserver.cmd │ │ ├── rimraf │ │ ├── tsc │ │ ├── tsserver │ │ ├── rimraf.ps1 │ │ ├── tsc.ps1 │ │ └── tsserver.ps1 │ ├── path-is-absolute │ │ ├── index.js │ │ └── license │ ├── inflight │ │ ├── LICENSE │ │ └── README.md │ ├── once │ │ ├── LICENSE │ │ └── once.js │ ├── minimatch │ │ └── LICENSE │ ├── rimraf │ │ └── LICENSE │ ├── wrappy │ │ ├── LICENSE │ │ ├── README.md │ │ └── wrappy.js │ ├── fs.realpath │ │ └── README.md │ ├── glob │ │ └── LICENSE │ └── brace-expansion │ │ └── LICENSE ├── dist │ └── esm │ │ ├── definitions.js │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── definitions.js.map │ │ ├── index.js.map │ │ ├── definitions.d.ts │ │ ├── web.d.ts │ │ └── web.js.map ├── src │ ├── index.ts │ ├── definitions.ts │ └── web.ts ├── ios │ ├── Plugin │ │ ├── Plugin.m │ │ ├── Plugin.h │ │ ├── Plugin.swift │ │ └── Info.plist │ ├── Podfile │ └── PluginTests │ │ └── Info.plist ├── rollup.config.js ├── CapacitorMapbox.podspec ├── tsconfig.json ├── .npmignore └── package.json ├── android ├── app │ ├── .npmignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── drawable │ │ │ │ │ └── splash.png │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── drawable-land-hdpi │ │ │ │ │ └── splash.png │ │ │ │ ├── drawable-land-mdpi │ │ │ │ │ └── splash.png │ │ │ │ ├── drawable-land-xhdpi │ │ │ │ │ └── splash.png │ │ │ │ ├── drawable-port-hdpi │ │ │ │ │ └── splash.png │ │ │ │ ├── drawable-port-mdpi │ │ │ │ │ └── splash.png │ │ │ │ ├── drawable-port-xhdpi │ │ │ │ │ └── splash.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── drawable-land-xxhdpi │ │ │ │ │ └── splash.png │ │ │ │ ├── drawable-land-xxxhdpi │ │ │ │ │ └── splash.png │ │ │ │ ├── drawable-port-xxhdpi │ │ │ │ │ └── splash.png │ │ │ │ ├── drawable-port-xxxhdpi │ │ │ │ │ └── splash.png │ │ │ │ ├── values │ │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── xml │ │ │ │ │ ├── config.xml │ │ │ │ │ └── file_paths.xml │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ │ ├── ic_launcher.xml │ │ │ │ │ └── ic_launcher_round.xml │ │ │ │ └── layout │ │ │ │ │ └── activity_main.xml │ │ │ ├── assets │ │ │ │ └── capacitor.config.json │ │ │ └── java │ │ │ │ └── io │ │ │ │ └── ionic │ │ │ │ └── demo │ │ │ │ └── cap │ │ │ │ └── mapbox │ │ │ │ └── MainActivity.java │ │ ├── test │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── getcapacitor │ │ │ │ └── myapp │ │ │ │ └── ExampleUnitTest.java │ │ └── androidTest │ │ │ └── java │ │ │ └── com │ │ │ └── getcapacitor │ │ │ └── myapp │ │ │ └── ExampleInstrumentedTest.java │ ├── capacitor.build.gradle │ └── proguard-rules.pro ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── settings.gradle ├── capacitor.settings.gradle ├── .idea │ ├── misc.xml │ └── runConfigurations.xml ├── variables.gradle ├── build.gradle └── gradle.properties ├── ionic.config.json ├── e2e ├── src │ ├── app.po.ts │ └── app.e2e-spec.ts ├── tsconfig.json └── protractor.conf.js ├── capacitor.config.json ├── tsconfig.spec.json ├── tsconfig.app.json ├── browserslist ├── .gitignore ├── tsconfig.json ├── karma.conf.js └── LICENSE /src/app/app.component.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/.npmignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /android/app/.npmignore: -------------------------------------------------------------------------------- 1 | /build/* 2 | !/build/.npmkeep 3 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/scripts/release.sh: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/tslib/tslib.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /capacitor-mapbox/dist/esm/definitions.js: -------------------------------------------------------------------------------- 1 | //# sourceMappingURL=definitions.js.map -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/annotations_typedef_file/debug/typedefs.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/navigation_json/debug/navigation.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/tslib/tslib.es6.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /capacitor-mapbox/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './definitions'; 2 | export * from './web'; -------------------------------------------------------------------------------- /capacitor-mapbox/android/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/.transforms/228d9f713d48aa2e6dbed46d0eeb781f.bin: -------------------------------------------------------------------------------- 1 | o/classes 2 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/.transforms/3d89d73ec68d5e046d5adc1e9ea91314.bin: -------------------------------------------------------------------------------- 1 | o/classes 2 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/library_java_res/debug/res.jar: -------------------------------------------------------------------------------- 1 | PK -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/merged_java_res/debug/out.jar: -------------------------------------------------------------------------------- 1 | PK -------------------------------------------------------------------------------- /capacitor-mapbox/dist/esm/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './definitions'; 2 | export * from './web'; 3 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/bin/tsc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../lib/tsc.js') 3 | -------------------------------------------------------------------------------- /src/app/app.component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/definitions.js: -------------------------------------------------------------------------------- 1 | //# sourceMappingURL=definitions.js.map -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/concat-map/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/bin/tsserver: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../lib/tsserver.js') 3 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/balanced-match/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .gitignore 3 | .travis.yml 4 | Makefile 5 | example.js 6 | -------------------------------------------------------------------------------- /src/assets/icon/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/src/assets/icon/favicon.png -------------------------------------------------------------------------------- /capacitor-mapbox/android/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /capacitor-mapbox/dist/esm/index.js: -------------------------------------------------------------------------------- 1 | export * from './definitions'; 2 | export * from './web'; 3 | //# sourceMappingURL=index.js.map -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /ionic.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "io.ionic.demo.cap.mapbox", 3 | "integrations": { 4 | "capacitor": {} 5 | }, 6 | "type": "angular" 7 | } 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/drawable/splash.png -------------------------------------------------------------------------------- /capacitor-mapbox/dist/esm/definitions.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /capacitor-mapbox/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':capacitor-android' 2 | project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor') -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/README.md: -------------------------------------------------------------------------------- 1 | # Capacitor Core JS 2 | 3 | See [Capacitor Docs](https://ionic-team.github.com/capacitor) for more information. 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-hdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/drawable-land-hdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-mdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/drawable-land-mdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-xhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/drawable-land-xhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-hdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/drawable-port-hdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-mdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/drawable-port-mdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-xhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/drawable-port-xhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-xxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/drawable-land-xxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-land-xxxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/drawable-land-xxxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-xxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/drawable-port-xxhdpi/splash.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-port-xxxhdpi/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/drawable-port-xxxhdpi/splash.png -------------------------------------------------------------------------------- /capacitor-mapbox/dist/esm/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC"} -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/util.d.ts: -------------------------------------------------------------------------------- 1 | export declare const extend: (target: any, ...objs: any[]) => any; 2 | export declare const uuid4: () => string; 3 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /capacitor-mapbox/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFFFFF 4 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/definitions.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/CapacitorCordova/CapacitorCordova/Classes/Public/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | @implementation AppDelegate 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /src/zone-flags.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Prevents Angular change detection from 3 | * running with certain Web Component callbacks 4 | */ 5 | (window as any).__Zone_disable_customElements = true; 6 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor/Plugins/DefaultPlugins.h: -------------------------------------------------------------------------------- 1 | #ifndef DefaultModules_h 2 | #define DefaultModules_h 3 | 4 | 5 | #endif /* DefaultModules_h */ 6 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/ThirdPartyNoticeText.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/node_modules/typescript/ThirdPartyNoticeText.txt -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/outputs/aar/capacitor-mapbox-debug.aar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/outputs/aar/capacitor-mapbox-debug.aar -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/aar_main_jar/debug/classes.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/intermediates/aar_main_jar/debug/classes.jar -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/node_modules/@capacitor/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/compile_library_classes/debug/classes.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/intermediates/compile_library_classes/debug/classes.jar -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/runtime_library_classes/debug/classes.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/intermediates/runtime_library_classes/debug/classes.jar -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/index.js: -------------------------------------------------------------------------------- 1 | export * from './core-plugin-definitions'; 2 | export * from './global'; 3 | export * from './web-plugins'; 4 | export * from './web/index'; 5 | //# sourceMappingURL=index.js.map -------------------------------------------------------------------------------- /android/app/src/main/res/xml/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | include ':capacitor-cordova-android-plugins' 3 | project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/') 4 | 5 | apply from: 'capacitor.settings.gradle' -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/incremental/debug-mergeNativeLibs/merge-state: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/intermediates/incremental/debug-mergeNativeLibs/merge-state -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/concat-map/example/map.js: -------------------------------------------------------------------------------- 1 | var concatMap = require('../'); 2 | var xs = [ 1, 2, 3, 4, 5, 6 ]; 3 | var ys = concatMap(xs, function (x) { 4 | return x % 2 ? [ x - 0.1, x, x + 0.1 ] : []; 5 | }); 6 | console.dir(ys); 7 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/.transforms/228d9f713d48aa2e6dbed46d0eeb781f/classes/classes.dex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/.transforms/228d9f713d48aa2e6dbed46d0eeb781f/classes/classes.dex -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/.transforms/3d89d73ec68d5e046d5adc1e9ea91314/classes/classes.dex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/.transforms/3d89d73ec68d5e046d5adc1e9ea91314/classes/classes.dex -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAQA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"} -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/R.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/R.jar -------------------------------------------------------------------------------- /android/app/src/main/res/xml/file_paths.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/javac/debug/classes/com/ionicframework/cap/mapbox/Mapbox.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/intermediates/javac/debug/classes/com/ionicframework/cap/mapbox/Mapbox.class -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/local_only_symbol_list/debug/R-def.txt: -------------------------------------------------------------------------------- 1 | R_DEF: Internal format may change without notice 2 | local 3 | id mapView 4 | id webview 5 | layout bridge_layout_main 6 | layout map_activity 7 | string mapbox_access_token 8 | string my_string 9 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/global.d.ts: -------------------------------------------------------------------------------- 1 | import { Capacitor as _Capacitor } from './definitions'; 2 | declare const Capacitor: _Capacitor; 3 | declare const Plugins: import("./core-plugin-definitions").PluginRegistry; 4 | export { Capacitor, Plugins }; 5 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/compiled_local_resources/debug/out/layout_map_activity.xml.flat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/intermediates/compiled_local_resources/debug/out/layout_map_activity.xml.flat -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/InvalidPluginException.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor; 2 | 3 | class InvalidPluginException extends Exception { 4 | public InvalidPluginException(String s) { 5 | super(s); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/compiled_local_resources/debug/out/layout_bridge_layout_main.xml.flat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/intermediates/compiled_local_resources/debug/out/layout_bridge_layout_main.xml.flat -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/javac/debug/classes/com/ionicframework/cap/mapbox/MapBoxActivity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/intermediates/javac/debug/classes/com/ionicframework/cap/mapbox/MapBoxActivity.class -------------------------------------------------------------------------------- /capacitor-mapbox/android/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Just a simple string 3 | pk.eyJ1IjoiZG90bmV0a293IiwiYSI6ImNrYTVuYmlkaTAyNWMzZ3M0Nnc5NzMxNzAifQ.uvp4DjciBVKSbAlkn84LtQ 4 | 5 | -------------------------------------------------------------------------------- /e2e/src/app.po.ts: -------------------------------------------------------------------------------- 1 | import { browser, by, element } from 'protractor'; 2 | 3 | export class AppPage { 4 | navigateTo() { 5 | return browser.get('/'); 6 | } 7 | 8 | getParagraphText() { 9 | return element(by.deepCss('app-root ion-content')).getText(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "module": "commonjs", 6 | "target": "es5", 7 | "types": [ 8 | "jasmine", 9 | "jasminewd2", 10 | "node" 11 | ] 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/javac/debug/classes/com/ionicframework/cap/mapbox/MapBoxActivity$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/intermediates/javac/debug/classes/com/ionicframework/cap/mapbox/MapBoxActivity$1.class -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '11.0' 2 | 3 | target 'Capacitor' do 4 | use_frameworks! 5 | pod 'CapacitorCordova', :path => '../../' 6 | target 'CapacitorTests' do 7 | inherit! :search_paths 8 | 9 | end 10 | 11 | end 12 | -------------------------------------------------------------------------------- /src/app/home/home.page.scss: -------------------------------------------------------------------------------- 1 | #container { 2 | text-align: center; 3 | 4 | position: absolute; 5 | left: 30%; 6 | top: 45%; 7 | transform: translateY(-50%); 8 | } 9 | 10 | #container ion-button { 11 | display: block; 12 | margin-top: 50px; 13 | max-width: 300px; 14 | } 15 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Jan 30 13:14:22 CST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip 7 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/javac/debug/classes/com/ionicframework/cap/mapbox/MapBoxActivity$1$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/intermediates/javac/debug/classes/com/ionicframework/cap/mapbox/MapBoxActivity$1$1.class -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor/Plugins/Keyboard.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "CAPPlugin.h" 3 | #import "CAPBridgedPlugin.h" 4 | 5 | 6 | @class CAPPluginCall; 7 | 8 | @interface CAPKeyboard : CAPPlugin 9 | 10 | @end 11 | 12 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/CapacitorCordova/CapacitorCordova/Classes/Public/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "CDVViewController.h" 3 | 4 | @interface AppDelegate : NSObject 5 | 6 | @property (nonatomic, strong) CDVViewController* viewController; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Dec 01 12:41:00 CST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip 7 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/javac/debug/classes/com/ionicframework/cap/mapbox/capacitormapbox/BuildConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ionic-team/demo-capacitor-mapbox/HEAD/capacitor-mapbox/android/build/intermediates/javac/debug/classes/com/ionicframework/cap/mapbox/capacitormapbox/BuildConfig.class -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/index.d.ts: -------------------------------------------------------------------------------- 1 | export { PluginCallback, PluginListenerHandle, PluginResultData, PluginResultError, PluginConfig } from './definitions'; 2 | export * from './core-plugin-definitions'; 3 | export * from './global'; 4 | export * from './web-plugins'; 5 | export * from './web/index'; 6 | -------------------------------------------------------------------------------- /capacitor.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "appId": "io.ionic.demo.cap.mapbox", 3 | "appName": "io.ionic.demo.cap.mapbox", 4 | "bundledWebRuntime": false, 5 | "npmClient": "npm", 6 | "webDir": "www", 7 | "plugins": { 8 | "SplashScreen": { 9 | "launchShowDuration": 0 10 | } 11 | }, 12 | "cordova": {} 13 | } 14 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Dec 01 12:41:00 CST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip 7 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor/TmpViewController.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | 3 | class TmpViewController: UIViewController { 4 | override func viewDidAppear(_ animated: Bool) { 5 | super.viewDidAppear(animated) 6 | NotificationCenter.default.post(CAPBridge.tmpVCAppeared) 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | try { 2 | var util = require('util'); 3 | /* istanbul ignore next */ 4 | if (typeof util.inherits !== 'function') throw ''; 5 | module.exports = util.inherits; 6 | } catch (e) { 7 | /* istanbul ignore next */ 8 | module.exports = require('./inherits_browser.js'); 9 | } 10 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/README.md: -------------------------------------------------------------------------------- 1 | # Read This! 2 | 3 | **These files are not meant to be edited by hand.** 4 | If you need to make modifications, the respective files should be changed within the repository's top-level `src` directory. 5 | Running `gulp LKG` will then appropriately update the files in this directory. 6 | -------------------------------------------------------------------------------- /capacitor-mapbox/src/definitions.ts: -------------------------------------------------------------------------------- 1 | declare module "@capacitor/core" { 2 | interface PluginRegistry { 3 | Mapbox: MapboxPlugin; 4 | } 5 | } 6 | 7 | export interface MapboxPlugin { 8 | echo(options: { value: string }): Promise<{value: string}>; 9 | openMap(location: { lat: number, long: number}): Promise; 10 | } 11 | -------------------------------------------------------------------------------- /capacitor-mapbox/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(Mapbox, "Mapbox", 7 | CAP_PLUGIN_METHOD(echo, CAPPluginReturnPromise); 8 | ) 9 | -------------------------------------------------------------------------------- /capacitor-mapbox/rollup.config.js: -------------------------------------------------------------------------------- 1 | import nodeResolve from 'rollup-plugin-node-resolve'; 2 | 3 | export default { 4 | input: 'dist/esm/index.js', 5 | output: { 6 | file: 'dist/plugin.js', 7 | format: 'iife', 8 | name: 'capacitorPlugin', 9 | sourcemap: true 10 | }, 11 | plugins: [ 12 | nodeResolve() 13 | ] 14 | }; -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/motion.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './index'; 2 | import { MotionPlugin } from '../core-plugin-definitions'; 3 | export declare class MotionPluginWeb extends WebPlugin implements MotionPlugin { 4 | constructor(); 5 | } 6 | declare const Motion: MotionPluginWeb; 7 | export { Motion }; 8 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/packaged_res/debug/values/values.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | pk.eyJ1IjoiZG90bmV0a293IiwiYSI6ImNrYTVuYmlkaTAyNWMzZ3M0Nnc5NzMxNzAifQ.uvp4DjciBVKSbAlkn84LtQ 4 | Just a simple string 5 | -------------------------------------------------------------------------------- /android/app/src/main/assets/capacitor.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "appId": "io.ionic.demo.cap.mapbox", 3 | "appName": "io.ionic.demo.cap.mapbox", 4 | "bundledWebRuntime": false, 5 | "npmClient": "npm", 6 | "webDir": "www", 7 | "plugins": { 8 | "SplashScreen": { 9 | "launchShowDuration": 0 10 | } 11 | }, 12 | "cordova": {} 13 | } 14 | -------------------------------------------------------------------------------- /tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/spec", 5 | "types": [ 6 | "jasmine", 7 | "node" 8 | ] 9 | }, 10 | "files": [ 11 | "src/test.ts", 12 | "src/polyfills.ts" 13 | ], 14 | "include": [ 15 | "src/**/*.spec.ts", 16 | "src/**/*.d.ts" 17 | ] 18 | } -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /e2e/src/app.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import { AppPage } from './app.po'; 2 | 3 | describe('new App', () => { 4 | let page: AppPage; 5 | 6 | beforeEach(() => { 7 | page = new AppPage(); 8 | }); 9 | 10 | it('should be blank', () => { 11 | page.navigateTo(); 12 | expect(page.getParagraphText()).toContain('Start with Ionic UI Components'); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "./out-tsc/app", 5 | "types": [] 6 | }, 7 | "files": [ 8 | "src/main.ts", 9 | "src/polyfills.ts" 10 | ], 11 | "include": [ 12 | "src/**/*.ts", 13 | "src/**/*.d.ts" 14 | ], 15 | "exclude": [ 16 | "src/**/*.spec.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /android/capacitor.settings.gradle: -------------------------------------------------------------------------------- 1 | // DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN 2 | include ':capacitor-android' 3 | project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor') 4 | 5 | include ':capacitor-mapbox' 6 | project(':capacitor-mapbox').projectDir = new File('../node_modules/capacitor-mapbox/android') 7 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/incremental/packageDebugResources/merged.dir/values/values.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | pk.eyJ1IjoiZG90bmV0a293IiwiYSI6ImNrYTVuYmlkaTAyNWMzZ3M0Nnc5NzMxNzAifQ.uvp4DjciBVKSbAlkn84LtQ 4 | Just a simple string 5 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/JSExportException.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor; 2 | 3 | public class JSExportException extends Exception { 4 | public JSExportException(String s) { super(s); } 5 | public JSExportException(Throwable t) { super(t); } 6 | public JSExportException(String s, Throwable t) { super(s, t); } 7 | } 8 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. 2 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | io.ionic.demo.cap.mapbox 4 | io.ionic.demo.cap.mapbox 5 | io.ionic.demo.cap.mapbox 6 | io.ionic.demo.cap.mapbox 7 | 8 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/.bin/rimraf.cmd: -------------------------------------------------------------------------------- 1 | @ECHO off 2 | SETLOCAL 3 | CALL :find_dp0 4 | 5 | IF EXIST "%dp0%\node.exe" ( 6 | SET "_prog=%dp0%\node.exe" 7 | ) ELSE ( 8 | SET "_prog=node" 9 | SET PATHEXT=%PATHEXT:;.JS;=;% 10 | ) 11 | 12 | "%_prog%" "%dp0%\..\rimraf\bin.js" %* 13 | ENDLOCAL 14 | EXIT /b %errorlevel% 15 | :find_dp0 16 | SET dp0=%~dp0 17 | EXIT /b 18 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/.bin/tsc.cmd: -------------------------------------------------------------------------------- 1 | @ECHO off 2 | SETLOCAL 3 | CALL :find_dp0 4 | 5 | IF EXIST "%dp0%\node.exe" ( 6 | SET "_prog=%dp0%\node.exe" 7 | ) ELSE ( 8 | SET "_prog=node" 9 | SET PATHEXT=%PATHEXT:;.JS;=;% 10 | ) 11 | 12 | "%_prog%" "%dp0%\..\typescript\bin\tsc" %* 13 | ENDLOCAL 14 | EXIT /b %errorlevel% 15 | :find_dp0 16 | SET dp0=%~dp0 17 | EXIT /b 18 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/.bin/tsserver.cmd: -------------------------------------------------------------------------------- 1 | @ECHO off 2 | SETLOCAL 3 | CALL :find_dp0 4 | 5 | IF EXIST "%dp0%\node.exe" ( 6 | SET "_prog=%dp0%\node.exe" 7 | ) ELSE ( 8 | SET "_prog=node" 9 | SET PATHEXT=%PATHEXT:;.JS;=;% 10 | ) 11 | 12 | "%_prog%" "%dp0%\..\typescript\bin\tsserver" %* 13 | ENDLOCAL 14 | EXIT /b %errorlevel% 15 | :find_dp0 16 | SET dp0=%~dp0 17 | EXIT /b 18 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | CapacitorAndroid 3 | OK 4 | Picture 5 | Allow this app to take pictures 6 | Unable to use camera 7 | 8 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/share.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './index'; 2 | import { SharePlugin, ShareOptions } from '../core-plugin-definitions'; 3 | export declare class SharePluginWeb extends WebPlugin implements SharePlugin { 4 | constructor(); 5 | share(options?: ShareOptions): Promise; 6 | } 7 | declare const Share: SharePluginWeb; 8 | export { Share }; 9 | -------------------------------------------------------------------------------- /android/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/toast.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './index'; 2 | import { ToastPlugin, ToastShowOptions } from '../core-plugin-definitions'; 3 | export declare class ToastPluginWeb extends WebPlugin implements ToastPlugin { 4 | constructor(); 5 | show(options: ToastShowOptions): Promise; 6 | } 7 | declare const Toast: ToastPluginWeb; 8 | export { Toast }; 9 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/CapacitorCordova/CapacitorCordova.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/PluginInvocationException.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor; 2 | 3 | class PluginInvocationException extends Exception { 4 | public PluginInvocationException(String s) { super(s); } 5 | public PluginInvocationException(Throwable t) { super(t); } 6 | public PluginInvocationException(String s, Throwable t) { super(s, t); } 7 | } 8 | -------------------------------------------------------------------------------- /capacitor-mapbox/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 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/.bin/rimraf: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") 3 | 4 | case `uname` in 5 | *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../rimraf/bin.js" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../rimraf/bin.js" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/.bin/tsc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") 3 | 4 | case `uname` in 5 | *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../typescript/bin/tsc" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../typescript/bin/tsc" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor/Plugins/Console.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | @objc(CAPConsolePlugin) 4 | public class CAPConsolePlugin : CAPPlugin { 5 | 6 | @objc public func log(_ call: CAPPluginCall) { 7 | let message = call.getString("message") ?? "" 8 | let level = call.getString("level") ?? "LOG" 9 | CAPLog.print("⚡️ [\(level)] - \(message)") 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.log(err)); 13 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output.json: -------------------------------------------------------------------------------- 1 | [{"outputType":{"type":"AAPT_FRIENDLY_MERGED_MANIFESTS"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"capacitor-mapbox-debug.aar","fullName":"debug","baseName":"debug","dirName":""},"path":"AndroidManifest.xml","properties":{"packageId":"com.ionicframework.cap.mapbox.capacitormapbox","split":""}}] -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/merged_manifests/debug/output.json: -------------------------------------------------------------------------------- 1 | [{"outputType":{"type":"MERGED_MANIFESTS"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"capacitor-mapbox-debug.aar","fullName":"debug","baseName":"debug","dirName":""},"path":"../../library_manifest/debug/AndroidManifest.xml","properties":{"packageId":"com.ionicframework.cap.mapbox.capacitormapbox","split":""}}] -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/.bin/tsserver: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") 3 | 4 | case `uname` in 5 | *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../typescript/bin/tsserver" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - CapacitorCordova (1.5.0) 3 | 4 | DEPENDENCIES: 5 | - CapacitorCordova (from `../../`) 6 | 7 | EXTERNAL SOURCES: 8 | CapacitorCordova: 9 | :path: "../../" 10 | 11 | SPEC CHECKSUMS: 12 | CapacitorCordova: 5b03f0b903bf066a8f3187e848252227190b681a 13 | 14 | PODFILE CHECKSUM: 936c4cc87774b72da70079584f9d69d2fd2a92e9 15 | 16 | COCOAPODS: 1.8.4 17 | -------------------------------------------------------------------------------- /src/app/home/home-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { RouterModule, Routes } from '@angular/router'; 3 | import { HomePage } from './home.page'; 4 | 5 | const routes: Routes = [ 6 | { 7 | path: '', 8 | component: HomePage, 9 | } 10 | ]; 11 | 12 | @NgModule({ 13 | imports: [RouterModule.forChild(routes)], 14 | exports: [RouterModule] 15 | }) 16 | export class HomePageRoutingModule {} 17 | -------------------------------------------------------------------------------- /capacitor-mapbox/dist/esm/definitions.d.ts: -------------------------------------------------------------------------------- 1 | declare module "@capacitor/core" { 2 | interface PluginRegistry { 3 | Mapbox: MapboxPlugin; 4 | } 5 | } 6 | export interface MapboxPlugin { 7 | echo(options: { 8 | value: string; 9 | }): Promise<{ 10 | value: string; 11 | }>; 12 | openMap(location: { 13 | lat: number; 14 | long: number; 15 | }): Promise; 16 | } 17 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/concat-map/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function (xs, fn) { 2 | var res = []; 3 | for (var i = 0; i < xs.length; i++) { 4 | var x = fn(xs[i], i); 5 | if (isArray(x)) res.push.apply(res, x); 6 | else res.push(x); 7 | } 8 | return res; 9 | }; 10 | 11 | var isArray = Array.isArray || function (xs) { 12 | return Object.prototype.toString.call(xs) === '[object Array]'; 13 | }; 14 | -------------------------------------------------------------------------------- /capacitor-mapbox/CapacitorMapbox.podspec: -------------------------------------------------------------------------------- 1 | 2 | Pod::Spec.new do |s| 3 | s.name = 'CapacitorMapbox' 4 | s.version = '0.0.1' 5 | s.summary = 'Mapbox SDK' 6 | s.license = 'MIT' 7 | s.homepage = 'no' 8 | s.author = 'Ionic' 9 | s.source = { :git => 'no', :tag => s.version.to_s } 10 | s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}' 11 | s.ios.deployment_target = '11.0' 12 | s.dependency 'Capacitor' 13 | end -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/InvalidPluginMethodException.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor; 2 | 3 | class InvalidPluginMethodException extends Exception { 4 | public InvalidPluginMethodException(String s) { 5 | super(s); 6 | } 7 | public InvalidPluginMethodException(Throwable t) { super(t); } 8 | public InvalidPluginMethodException(String s, Throwable t) { super(s, t); } 9 | } 10 | -------------------------------------------------------------------------------- /capacitor-mapbox/ios/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '11.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 | end 9 | 10 | target 'Plugin' do 11 | capacitor_pods 12 | end 13 | 14 | target 'PluginTests' do 15 | capacitor_pods 16 | end -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/PluginLoadException.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor; 2 | 3 | /** 4 | * Thrown when a plugin fails to instantiate 5 | */ 6 | public class PluginLoadException extends Exception { 7 | public PluginLoadException(String s) { super(s); } 8 | public PluginLoadException(Throwable t) { super(t); } 9 | public PluginLoadException(String s, Throwable t) { super(s, t); } 10 | } 11 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/res/drawable/ic_transparent.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/camera.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './index'; 2 | import { CameraPlugin, CameraPhoto, CameraOptions } from '../core-plugin-definitions'; 3 | export declare class CameraPluginWeb extends WebPlugin implements CameraPlugin { 4 | constructor(); 5 | getPhoto(options: CameraOptions): Promise; 6 | private _getCameraPhoto; 7 | } 8 | declare const Camera: CameraPluginWeb; 9 | export { Camera }; 10 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/permissions.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './index'; 2 | import { PermissionsPlugin, PermissionsOptions, PermissionResult } from '../core-plugin-definitions'; 3 | export declare class PermissionsPluginWeb extends WebPlugin implements PermissionsPlugin { 4 | constructor(); 5 | query(options: PermissionsOptions): Promise; 6 | } 7 | declare const Permissions: PermissionsPluginWeb; 8 | export { Permissions }; 9 | -------------------------------------------------------------------------------- /browserslist: -------------------------------------------------------------------------------- 1 | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below. 2 | # For additional information regarding the format and rule options, please see: 3 | # https://github.com/browserslist/browserslist#queries 4 | 5 | # You can see what browsers were selected by your queries by running: 6 | # npx browserslist 7 | 8 | > 0.5% 9 | last 2 versions 10 | Firefox ESR 11 | not dead 12 | not IE 9-11 # For IE 9-11 support, remove 'not'. 13 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/plugin/camera/CameraResultType.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor.plugin.camera; 2 | 3 | public enum CameraResultType { 4 | BASE64("base64"), 5 | URI("uri"), 6 | DATAURL("dataUrl"); 7 | 8 | private String type; 9 | 10 | CameraResultType(String type) { 11 | this.type = type; 12 | } 13 | 14 | public String getType() { 15 | return type; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /capacitor-mapbox/ios/Plugin/Plugin.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import Capacitor 3 | 4 | /** 5 | * Please read the Capacitor iOS Plugin Development Guide 6 | * here: https://capacitor.ionicframework.com/docs/plugins/ios 7 | */ 8 | @objc(Mapbox) 9 | public class Mapbox: CAPPlugin { 10 | 11 | @objc func echo(_ call: CAPPluginCall) { 12 | let value = call.getString("value") ?? "" 13 | call.success([ 14 | "value": value 15 | ]) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/plugin/camera/CameraSource.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor.plugin.camera; 2 | 3 | public enum CameraSource { 4 | PROMPT("PROMPT"), 5 | CAMERA("CAMERA"), 6 | PHOTOS("PHOTOS"); 7 | 8 | private String source; 9 | 10 | CameraSource(String source) { 11 | this.source = source; 12 | } 13 | 14 | public String getSource() { 15 | return this.source; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/motion.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"motion.js","sourceRoot":"","sources":["../../../src/web/motion.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAYpC;IAAqC,mCAAS;IAC5C;QAAA,YACE,kBAAM;YACJ,IAAI,EAAE,QAAQ;SACf,CAAC,SAGH;QAFC,KAAI,CAAC,sBAAsB,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;QACrD,KAAI,CAAC,sBAAsB,CAAC,mBAAmB,EAAE,aAAa,CAAC,CAAC;;IAClE,CAAC;IACH,sBAAC;AAAD,CAAC,AARD,CAAqC,SAAS,GAQ7C;;AAED,IAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;AAErC,OAAO,EAAE,MAAM,EAAE,CAAC"} -------------------------------------------------------------------------------- /capacitor-mapbox/android/src/main/res/layout/map_activity.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 11 | 12 | -------------------------------------------------------------------------------- /src/app/home/home.page.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { Plugins } from '@capacitor/core'; 3 | import 'capacitor-mapbox'; 4 | 5 | const { Mapbox } = Plugins; 6 | 7 | @Component({ 8 | selector: 'app-home', 9 | templateUrl: 'home.page.html', 10 | styleUrls: ['home.page.scss'], 11 | }) 12 | export class HomePage { 13 | 14 | constructor() {} 15 | 16 | async openMap(lat, long) { 17 | await Mapbox.openMap({ 18 | lat: lat, 19 | long: long 20 | }); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor.myapp; 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 | } 18 | -------------------------------------------------------------------------------- /android/app/capacitor.build.gradle: -------------------------------------------------------------------------------- 1 | // DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN 2 | 3 | android { 4 | compileOptions { 5 | sourceCompatibility JavaVersion.VERSION_1_8 6 | targetCompatibility JavaVersion.VERSION_1_8 7 | } 8 | } 9 | 10 | apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle" 11 | dependencies { 12 | implementation project(':capacitor-mapbox') 13 | 14 | } 15 | 16 | 17 | if (hasProperty('postBuildExtras')) { 18 | postBuildExtras() 19 | } 20 | -------------------------------------------------------------------------------- /capacitor-mapbox/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 | } -------------------------------------------------------------------------------- /capacitor-mapbox/dist/esm/web.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from '@capacitor/core'; 2 | import { MapboxPlugin } from './definitions'; 3 | export declare class MapboxWeb extends WebPlugin implements MapboxPlugin { 4 | constructor(); 5 | echo(options: { 6 | value: string; 7 | }): Promise<{ 8 | value: string; 9 | }>; 10 | openMap(location: { 11 | lat: number; 12 | long: number; 13 | }): Promise; 14 | } 15 | declare const Mapbox: MapboxWeb; 16 | export { Mapbox }; 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Specifies intentionally untracked files to ignore when using Git 2 | # http://git-scm.com/docs/gitignore 3 | 4 | *~ 5 | *.sw[mnpcod] 6 | .tmp 7 | *.tmp 8 | *.tmp.* 9 | *.sublime-project 10 | *.sublime-workspace 11 | .DS_Store 12 | Thumbs.db 13 | UserInterfaceState.xcuserstate 14 | $RECYCLE.BIN/ 15 | 16 | *.log 17 | log.txt 18 | npm-debug.log* 19 | 20 | /.idea 21 | /.ionic 22 | /.sass-cache 23 | /.sourcemaps 24 | /.versions 25 | /.vscode 26 | /coverage 27 | /dist 28 | /node_modules 29 | /platforms 30 | /plugins 31 | /www 32 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/PluginMethod.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor; 2 | 3 | import java.lang.annotation.Retention; 4 | import java.lang.annotation.RetentionPolicy; 5 | 6 | @Retention(RetentionPolicy.RUNTIME) 7 | public @interface PluginMethod { 8 | public static String RETURN_PROMISE = "promise"; 9 | public static String RETURN_CALLBACK = "callback"; 10 | public static String RETURN_NONE = "none"; 11 | 12 | String returnType() default RETURN_PROMISE; 13 | } 14 | 15 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web-runtime.d.ts: -------------------------------------------------------------------------------- 1 | import { PluginRegistry } from './definitions'; 2 | export declare class CapacitorWeb { 3 | Plugins: PluginRegistry; 4 | platform: string; 5 | isNative: boolean; 6 | constructor(); 7 | pluginMethodNoop(_target: any, _prop: PropertyKey, pluginName: string): Promise; 8 | getPlatform(): string; 9 | isPluginAvailable(name: string): boolean; 10 | convertFileSrc(filePath: string): string; 11 | handleError(e: Error): void; 12 | } 13 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/packaged_res/debug/layout/map_activity.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 11 | 12 | -------------------------------------------------------------------------------- /capacitor-mapbox/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowSyntheticDefaultImports": true, 4 | "declaration": true, 5 | "experimentalDecorators": true, 6 | "lib": [ 7 | "dom", 8 | "es2015" 9 | ], 10 | "module": "es2015", 11 | "moduleResolution": "node", 12 | "noImplicitAny": true, 13 | "noUnusedLocals": true, 14 | "noUnusedParameters": true, 15 | "outDir": "dist/esm", 16 | "sourceMap": true, 17 | "target": "es2015" 18 | }, 19 | "files": [ 20 | "src/index.ts" 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/clipboard.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './index'; 2 | import { ClipboardPlugin, ClipboardWrite, ClipboardReadResult } from '../core-plugin-definitions'; 3 | export declare class ClipboardPluginWeb extends WebPlugin implements ClipboardPlugin { 4 | constructor(); 5 | write(options: ClipboardWrite): Promise; 6 | read(): Promise; 7 | private readText; 8 | private _getBlobData; 9 | } 10 | declare const Clipboard: ClipboardPluginWeb; 11 | export { Clipboard }; 12 | -------------------------------------------------------------------------------- /src/app/home/home.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | import { IonicModule } from '@ionic/angular'; 4 | import { FormsModule } from '@angular/forms'; 5 | import { HomePage } from './home.page'; 6 | 7 | import { HomePageRoutingModule } from './home-routing.module'; 8 | 9 | 10 | @NgModule({ 11 | imports: [ 12 | CommonModule, 13 | FormsModule, 14 | IonicModule, 15 | HomePageRoutingModule 16 | ], 17 | declarations: [HomePage] 18 | }) 19 | export class HomePageModule {} 20 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/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 | } -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/accessibility.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './index'; 2 | import { AccessibilityPlugin, AccessibilitySpeakOptions, ScreenReaderEnabledResult } from '../core-plugin-definitions'; 3 | export declare class AccessibilityPluginWeb extends WebPlugin implements AccessibilityPlugin { 4 | constructor(); 5 | isScreenReaderEnabled(): Promise; 6 | speak(options: AccessibilitySpeakOptions): Promise; 7 | } 8 | declare const Accessibility: AccessibilityPluginWeb; 9 | export { Accessibility }; 10 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/browser.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './index'; 2 | import { BrowserPlugin, BrowserOpenOptions, BrowserPrefetchOptions } from '../core-plugin-definitions'; 3 | export declare class BrowserPluginWeb extends WebPlugin implements BrowserPlugin { 4 | _lastWindow: Window; 5 | constructor(); 6 | open(options: BrowserOpenOptions): Promise; 7 | prefetch(_options: BrowserPrefetchOptions): Promise; 8 | close(): Promise; 9 | } 10 | declare const Browser: BrowserPluginWeb; 11 | export { Browser }; 12 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "baseUrl": "./", 5 | "outDir": "./dist/out-tsc", 6 | "sourceMap": true, 7 | "declaration": false, 8 | "downlevelIteration": true, 9 | "experimentalDecorators": true, 10 | "module": "esnext", 11 | "moduleResolution": "node", 12 | "importHelpers": true, 13 | "target": "es2015", 14 | "lib": [ 15 | "es2018", 16 | "dom" 17 | ] 18 | }, 19 | "angularCompilerOptions": { 20 | "fullTemplateTypeCheck": true, 21 | "strictInjectionParameters": true 22 | } 23 | } -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/.bin/rimraf.ps1: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env pwsh 2 | $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent 3 | 4 | $exe="" 5 | if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { 6 | # Fix case when both the Windows and Linux builds of Node 7 | # are installed in the same directory 8 | $exe=".exe" 9 | } 10 | $ret=0 11 | if (Test-Path "$basedir/node$exe") { 12 | & "$basedir/node$exe" "$basedir/../rimraf/bin.js" $args 13 | $ret=$LASTEXITCODE 14 | } else { 15 | & "node$exe" "$basedir/../rimraf/bin.js" $args 16 | $ret=$LASTEXITCODE 17 | } 18 | exit $ret 19 | -------------------------------------------------------------------------------- /android/variables.gradle: -------------------------------------------------------------------------------- 1 | ext { 2 | minSdkVersion = 21 3 | compileSdkVersion = 29 4 | targetSdkVersion = 29 5 | androidxAppCompatVersion = '1.1.0' 6 | androidxCoreVersion = '1.2.0' 7 | androidxMaterialVersion = '1.1.0-rc02' 8 | androidxBrowserVersion = '1.2.0' 9 | androidxLocalbroadcastmanagerVersion = '1.0.0' 10 | firebaseMessagingVersion = '20.1.2' 11 | playServicesLocationVersion = '17.0.0' 12 | junitVersion = '4.12' 13 | androidxJunitVersion = '1.1.1' 14 | androidxEspressoCoreVersion = '3.2.0' 15 | cordovaAndroidVersion = '7.0.0' 16 | } -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/.bin/tsc.ps1: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env pwsh 2 | $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent 3 | 4 | $exe="" 5 | if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { 6 | # Fix case when both the Windows and Linux builds of Node 7 | # are installed in the same directory 8 | $exe=".exe" 9 | } 10 | $ret=0 11 | if (Test-Path "$basedir/node$exe") { 12 | & "$basedir/node$exe" "$basedir/../typescript/bin/tsc" $args 13 | $ret=$LASTEXITCODE 14 | } else { 15 | & "node$exe" "$basedir/../typescript/bin/tsc" $args 16 | $ret=$LASTEXITCODE 17 | } 18 | exit $ret 19 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/res/layout/fragment_bridge.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/splash-screen.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './index'; 2 | import { SplashScreenPlugin, SplashScreenHideOptions, SplashScreenShowOptions } from '../core-plugin-definitions'; 3 | export declare class SplashScreenPluginWeb extends WebPlugin implements SplashScreenPlugin { 4 | constructor(); 5 | show(_options?: SplashScreenShowOptions, _callback?: Function): Promise; 6 | hide(_options?: SplashScreenHideOptions, _callback?: Function): Promise; 7 | } 8 | declare const SplashScreen: SplashScreenPluginWeb; 9 | export { SplashScreen }; 10 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/incremental/mergeDebugShaders/merger.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/app/app-routing.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; 3 | 4 | const routes: Routes = [ 5 | { 6 | path: 'home', 7 | loadChildren: () => import('./home/home.module').then( m => m.HomePageModule) 8 | }, 9 | { 10 | path: '', 11 | redirectTo: 'home', 12 | pathMatch: 'full' 13 | }, 14 | ]; 15 | 16 | @NgModule({ 17 | imports: [ 18 | RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules }) 19 | ], 20 | exports: [RouterModule] 21 | }) 22 | export class AppRoutingModule { } 23 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/.bin/tsserver.ps1: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env pwsh 2 | $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent 3 | 4 | $exe="" 5 | if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { 6 | # Fix case when both the Windows and Linux builds of Node 7 | # are installed in the same directory 8 | $exe=".exe" 9 | } 10 | $ret=0 11 | if (Test-Path "$basedir/node$exe") { 12 | & "$basedir/node$exe" "$basedir/../typescript/bin/tsserver" $args 13 | $ret=$LASTEXITCODE 14 | } else { 15 | & "node$exe" "$basedir/../typescript/bin/tsserver" $args 16 | $ret=$LASTEXITCODE 17 | } 18 | exit $ret 19 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/device.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './index'; 2 | import { DeviceBatteryInfo, DeviceInfo, DevicePlugin, DeviceLanguageCodeResult } from '../core-plugin-definitions'; 3 | export declare class DevicePluginWeb extends WebPlugin implements DevicePlugin { 4 | constructor(); 5 | getInfo(): Promise; 6 | getBatteryInfo(): Promise; 7 | getLanguageCode(): Promise; 8 | parseUa(_ua: string): any; 9 | getUid(): string; 10 | } 11 | declare const Device: DevicePluginWeb; 12 | export { Device }; 13 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/splash-screen.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"splash-screen.js","sourceRoot":"","sources":["../../../src/web/splash-screen.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAQpC;IAA2C,yCAAS;IAClD;eACE,kBAAM;YACJ,IAAI,EAAE,cAAc;YACpB,SAAS,EAAE,CAAC,KAAK,CAAC;SACnB,CAAC;IACJ,CAAC;IAED,oCAAI,GAAJ,UAAK,QAAkC,EAAE,SAAoB;QAC3D,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAED,oCAAI,GAAJ,UAAK,QAAkC,EAAE,SAAoB;QAC3D,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IACH,4BAAC;AAAD,CAAC,AAfD,CAA2C,SAAS,GAenD;;AAED,IAAM,YAAY,GAAG,IAAI,qBAAqB,EAAE,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAE,CAAC"} -------------------------------------------------------------------------------- /android/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor/Capacitor.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | //! Project version number for bridge. 4 | FOUNDATION_EXPORT double CapacitorVersionNumber; 5 | 6 | //! Project version string for bridge. 7 | FOUNDATION_EXPORT const unsigned char CapacitorVersionString[]; 8 | 9 | #import "CAPPlugin.h" 10 | #import "CAPPluginCall.h" 11 | #import "CAPBridgedPlugin.h" 12 | #import "CAPPluginMethod.h" 13 | #import "DefaultPlugins.h" 14 | 15 | 16 | // In this header, you should import all the public headers of your framework using statements like #import 17 | 18 | 19 | -------------------------------------------------------------------------------- /android/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/network.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './index'; 2 | import { NetworkPlugin, NetworkStatus } from '../core-plugin-definitions'; 3 | export interface PluginListenerHandle { 4 | remove: () => void; 5 | } 6 | export declare class NetworkPluginWeb extends WebPlugin implements NetworkPlugin { 7 | listenerFunction: any; 8 | constructor(); 9 | getStatus(): Promise; 10 | addListener(eventName: 'networkStatusChange', listenerFunc: (status: NetworkStatus) => void): PluginListenerHandle; 11 | } 12 | declare const Network: NetworkPluginWeb; 13 | export { Network }; 14 | -------------------------------------------------------------------------------- /capacitor-mapbox/dist/esm/web.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,MAAM,OAAO,SAAU,SAAQ,SAAS;IACtC;QACE,KAAK,CAAC;YACJ,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC,KAAK,CAAC;SACnB,CAAC,CAAC;IACL,CAAC;IAEK,IAAI,CAAC,OAA0B;;YACnC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YAC7B,OAAO,OAAO,CAAC;QACjB,CAAC;KAAA;IAEK,OAAO,CAAC,QAAsC;;YAClD,OAAO,CAAC,GAAG,CAAC,cAAc,QAAQ,0BAA0B,CAAC,CAAC;QAChE,CAAC;KAAA;CACF;AAED,MAAM,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,CAAC;AAElB,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,iBAAiB,CAAC,MAAM,CAAC,CAAC"} -------------------------------------------------------------------------------- /capacitor-mapbox/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/cordova/MockCordovaInterfaceImpl.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor.cordova; 2 | 3 | import android.app.Activity; 4 | 5 | import org.apache.cordova.CordovaInterfaceImpl; 6 | import org.apache.cordova.CordovaPlugin; 7 | 8 | import java.util.concurrent.Executors; 9 | 10 | public class MockCordovaInterfaceImpl extends CordovaInterfaceImpl { 11 | public MockCordovaInterfaceImpl(Activity activity) { 12 | super(activity, Executors.newCachedThreadPool()); 13 | } 14 | 15 | public CordovaPlugin getActivityResultCallback(){ 16 | return this.activityResultCallback; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/global.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/global.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,uDAAuD;AACvD,iCAAiC;AACjC,IAAM,SAAS,GAAG,CAAC,UAAC,UAAe;IACjC,gFAAgF;IAChF,6DAA6D;IAC7D,+DAA+D;IAC/D,OAAO,UAAU,CAAC,SAAS,GAAG,CAAC,UAAU,CAAC,SAAS,IAAI,IAAI,YAAY,EAAE,CAAC,CAAC;AAC7E,CAAC,CAAC;AACA,0EAA0E;AAC1E,wEAAwE;AACxE,OAAO,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAC1H,CAAC;AAGF,IAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC"} -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/share.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"share.js","sourceRoot":"","sources":["../../../src/web/share.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AASpC;IAAoC,kCAAS;IAC3C;eACE,kBAAM;YACJ,IAAI,EAAE,OAAO;YACb,SAAS,EAAE,CAAC,KAAK,CAAC;SACnB,CAAC;IACJ,CAAC;IAED,8BAAK,GAAL,UAAM,OAAsB;QAC1B,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE;YACpB,OAAO,OAAO,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAAC;SACtD;QAED,OAAO,SAAS,CAAC,KAAK,CAAC;YACrB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,GAAG,EAAE,OAAO,CAAC,GAAG;SACjB,CAAC,CAAC;IACL,CAAC;IACH,qBAAC;AAAD,CAAC,AAnBD,CAAoC,SAAS,GAmB5C;;AAED,IAAM,KAAK,GAAG,IAAI,cAAc,EAAE,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAE,CAAC"} -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor/CAPLog.swift: -------------------------------------------------------------------------------- 1 | public class CAPLog { 2 | 3 | public static let config = CAPConfig() 4 | 5 | public static func print(_ items: Any..., separator: String = " ", terminator: String = "\n") { 6 | if !self.hideLogs() { 7 | for i in 0.. Bool { 14 | if let hideLogs = (config.getValue("ios.hideLogs") as? Bool) ?? (config.getValue("hideLogs") as? Bool) { 15 | return hideLogs 16 | } 17 | return false 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties: -------------------------------------------------------------------------------- 1 | #Thu May 21 09:47:12 CDT 2020 2 | C\:\\src\\ionic\\demos\\demo-capacitor-mapbox\\node_modules\\capacitor-mapbox\\android\\src\\main\\res\\layout\\map_activity.xml=C\:\\src\\ionic\\demos\\demo-capacitor-mapbox\\node_modules\\capacitor-mapbox\\android\\build\\intermediates\\packaged_res\\debug\\layout\\map_activity.xml 3 | C\:\\src\\ionic\\demos\\demo-capacitor-mapbox\\node_modules\\capacitor-mapbox\\android\\src\\main\\res\\layout\\bridge_layout_main.xml=C\:\\src\\ionic\\demos\\demo-capacitor-mapbox\\node_modules\\capacitor-mapbox\\android\\build\\intermediates\\packaged_res\\debug\\layout\\bridge_layout_main.xml 4 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/src/main/res/layout/bridge_layout_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/geolocation.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './index'; 2 | import { GeolocationPlugin, GeolocationOptions, GeolocationPosition, GeolocationWatchCallback } from '../core-plugin-definitions'; 3 | export declare class GeolocationPluginWeb extends WebPlugin implements GeolocationPlugin { 4 | constructor(); 5 | getCurrentPosition(options?: GeolocationOptions): Promise; 6 | watchPosition(options: GeolocationOptions, callback: GeolocationWatchCallback): string; 7 | clearWatch(options: { 8 | id: string; 9 | }): Promise; 10 | } 11 | declare const Geolocation: GeolocationPluginWeb; 12 | export { Geolocation }; 13 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/modals.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './index'; 2 | import { ModalsPlugin, AlertOptions, PromptOptions, PromptResult, ConfirmOptions, ConfirmResult, ActionSheetOptions, ActionSheetResult } from '../core-plugin-definitions'; 3 | export declare class ModalsPluginWeb extends WebPlugin implements ModalsPlugin { 4 | constructor(); 5 | alert(options: AlertOptions): Promise; 6 | prompt(options: PromptOptions): Promise; 7 | confirm(options: ConfirmOptions): Promise; 8 | showActions(options: ActionSheetOptions): Promise; 9 | } 10 | declare const Modals: ModalsPluginWeb; 11 | export { Modals }; 12 | -------------------------------------------------------------------------------- /src/app/home/home.page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Home 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Home 13 | 14 | 15 | 16 |
17 | Madison, WI 18 | Anchorage, AL 19 | San Diego, CA 20 |
21 |
22 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/tslib/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) Microsoft Corporation. 2 | 3 | Permission to use, copy, modify, and/or distribute this software for any 4 | purpose with or without fee is hereby granted. 5 | 6 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 7 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 8 | AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 9 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 10 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 11 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 12 | PERFORMANCE OF THIS SOFTWARE. -------------------------------------------------------------------------------- /src/test.ts: -------------------------------------------------------------------------------- 1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files 2 | 3 | import 'zone.js/dist/zone-testing'; 4 | import { getTestBed } from '@angular/core/testing'; 5 | import { 6 | BrowserDynamicTestingModule, 7 | platformBrowserDynamicTesting 8 | } from '@angular/platform-browser-dynamic/testing'; 9 | 10 | declare const require: any; 11 | 12 | // First, initialize the Angular testing environment. 13 | getTestBed().initTestEnvironment( 14 | BrowserDynamicTestingModule, 15 | platformBrowserDynamicTesting() 16 | ); 17 | // Then we find all the tests. 18 | const context = require.context('./', true, /\.spec\.ts$/); 19 | // And load the modules. 20 | context.keys().map(context); 21 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/packaged_res/debug/layout/bridge_layout_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/app.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './index'; 2 | import { AppPlugin, AppLaunchUrl, AppState } from '../core-plugin-definitions'; 3 | export declare class AppPluginWeb extends WebPlugin implements AppPlugin { 4 | constructor(); 5 | exitApp(): never; 6 | canOpenUrl(_options: { 7 | url: string; 8 | }): Promise<{ 9 | value: boolean; 10 | }>; 11 | openUrl(_options: { 12 | url: string; 13 | }): Promise<{ 14 | completed: boolean; 15 | }>; 16 | getLaunchUrl(): Promise; 17 | getState(): Promise; 18 | handleVisibilityChange(): void; 19 | } 20 | declare const App: AppPluginWeb; 21 | export { App }; 22 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/motion.js: -------------------------------------------------------------------------------- 1 | import { __extends } from "tslib"; 2 | import { WebPlugin } from './index'; 3 | var MotionPluginWeb = /** @class */ (function (_super) { 4 | __extends(MotionPluginWeb, _super); 5 | function MotionPluginWeb() { 6 | var _this = _super.call(this, { 7 | name: 'Motion' 8 | }) || this; 9 | _this.registerWindowListener('devicemotion', 'accel'); 10 | _this.registerWindowListener('deviceorientation', 'orientation'); 11 | return _this; 12 | } 13 | return MotionPluginWeb; 14 | }(WebPlugin)); 15 | export { MotionPluginWeb }; 16 | var Motion = new MotionPluginWeb(); 17 | export { Motion }; 18 | //# sourceMappingURL=motion.js.map -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/path-is-absolute/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | function posix(path) { 4 | return path.charAt(0) === '/'; 5 | } 6 | 7 | function win32(path) { 8 | // https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56 9 | var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; 10 | var result = splitDeviceRe.exec(path); 11 | var device = result[1] || ''; 12 | var isUnc = Boolean(device && device.charAt(1) !== ':'); 13 | 14 | // UNC paths are always absolute 15 | return Boolean(result[2] || isUnc); 16 | } 17 | 18 | module.exports = process.platform === 'win32' ? win32 : posix; 19 | module.exports.posix = posix; 20 | module.exports.win32 = win32; 21 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/incremental/packageDebugAssets/merger.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/environments/environment.ts: -------------------------------------------------------------------------------- 1 | // This file can be replaced during build by using the `fileReplacements` array. 2 | // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. 3 | // The list of file replacements can be found in `angular.json`. 4 | 5 | export const environment = { 6 | production: false 7 | }; 8 | 9 | /* 10 | * For easier debugging in development mode, you can import the following file 11 | * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. 12 | * 13 | * This import should be commented out in production mode because it will have a negative impact 14 | * on performance if an error is thrown. 15 | */ 16 | // import 'zone.js/dist/zone-error'; // Included with Angular CLI. 17 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web-plugins.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"web-plugins.js","sourceRoot":"","sources":["../../src/web-plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,cAAc,EAAa,MAAM,aAAa,CAAC;AAEzE,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAE5B,eAAe,CAAC,OAAO,CAAC,CAAC;AAEzB,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAAC,MAAiB;IACjD,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAClC,CAAC,CAAC"} -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/Capacitor.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'Capacitor' 3 | s.version = '2.1.0' 4 | s.summary = 'Capacitor for iOS' 5 | s.social_media_url = 'http://twitter.com/getcapacitor' 6 | s.license = 'MIT' 7 | s.homepage = 'https://capacitor.ionicframework.com/' 8 | s.ios.deployment_target = '11.0' 9 | s.authors = { 'Ionic Team' => 'hi@ionicframework.com' } 10 | s.source = { :git => 'https://github.com/ionic-team/capacitor.git', :tag => s.version.to_s } 11 | s.source_files = 'ios/Capacitor/Capacitor/*.{swift,h,m}', 'ios/Capacitor/Capacitor/Plugins/*.{swift,h,m}', 'ios/Capacitor/Capacitor/Plugins/**/*.{swift,h,m}' 12 | s.dependency 'CapacitorCordova', '2.1.0' 13 | s.swift_version = '5.0' 14 | end 15 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/CapacitorCordova.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "CapacitorCordova" 3 | s.module_name = 'Cordova' 4 | s.version = '2.1.0' 5 | s.summary = "Capacitor Cordova Compatibility Layer" 6 | s.homepage = "https://ionic-team.github.io/capacitor" 7 | s.license = 'MIT' 8 | s.authors = { 'Ionic Team' => 'hi@ionicframework.com' } 9 | s.source = { :git => 'https://github.com/ionic-team/capacitor', :tag => s.version.to_s } 10 | s.platform = :ios, 11.0 11 | s.source_files = 'ios/CapacitorCordova/**/*.{h,m}' 12 | s.public_header_files = 'ios/CapacitorCordova/CapacitorCordova/Classes/Public/*.h' 13 | s.requires_arc = true 14 | s.framework = "WebKit" 15 | end 16 | -------------------------------------------------------------------------------- /src/app/home/home.page.spec.ts: -------------------------------------------------------------------------------- 1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; 2 | import { IonicModule } from '@ionic/angular'; 3 | 4 | import { HomePage } from './home.page'; 5 | 6 | describe('HomePage', () => { 7 | let component: HomePage; 8 | let fixture: ComponentFixture; 9 | 10 | beforeEach(async(() => { 11 | TestBed.configureTestingModule({ 12 | declarations: [ HomePage ], 13 | imports: [IonicModule.forRoot()] 14 | }).compileComponents(); 15 | 16 | fixture = TestBed.createComponent(HomePage); 17 | component = fixture.componentInstance; 18 | fixture.detectChanges(); 19 | })); 20 | 21 | it('should create', () => { 22 | expect(component).toBeTruthy(); 23 | }); 24 | }); 25 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | 5 | repositories { 6 | google() 7 | jcenter() 8 | } 9 | dependencies { 10 | classpath 'com.android.tools.build:gradle:3.6.1' 11 | classpath 'com.google.gms:google-services:4.3.3' 12 | 13 | // NOTE: Do not place your application dependencies here; they belong 14 | // in the individual module build.gradle files 15 | } 16 | } 17 | 18 | apply from: "variables.gradle" 19 | 20 | allprojects { 21 | repositories { 22 | google() 23 | jcenter() 24 | } 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /android/app/src/main/java/io/ionic/demo/cap/mapbox/MainActivity.java: -------------------------------------------------------------------------------- 1 | package io.ionic.demo.cap.mapbox; 2 | 3 | import android.os.Bundle; 4 | 5 | import com.getcapacitor.BridgeActivity; 6 | import com.getcapacitor.Plugin; 7 | import com.ionicframework.cap.mapbox.Mapbox; 8 | 9 | import java.util.ArrayList; 10 | 11 | public class MainActivity extends BridgeActivity { 12 | @Override 13 | public void onCreate(Bundle savedInstanceState) { 14 | super.onCreate(savedInstanceState); 15 | 16 | // Initializes the Bridge 17 | this.init(savedInstanceState, new ArrayList>() {{ 18 | // Additional plugins you've installed go here 19 | // Ex: add(TotallyAwesomePlugin.class); 20 | add(Mapbox.class); 21 | }}); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/res/layout/bridge_layout_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | import { Platform } from '@ionic/angular'; 4 | import { SplashScreen } from '@ionic-native/splash-screen/ngx'; 5 | import { StatusBar } from '@ionic-native/status-bar/ngx'; 6 | 7 | @Component({ 8 | selector: 'app-root', 9 | templateUrl: 'app.component.html', 10 | styleUrls: ['app.component.scss'] 11 | }) 12 | export class AppComponent { 13 | constructor( 14 | private platform: Platform, 15 | private splashScreen: SplashScreen, 16 | private statusBar: StatusBar 17 | ) { 18 | this.initializeApp(); 19 | } 20 | 21 | initializeApp() { 22 | this.platform.ready().then(() => { 23 | this.statusBar.styleDefault(); 24 | this.splashScreen.hide(); 25 | }); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/CapacitorFirebaseMessagingService.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor; 2 | 3 | import com.getcapacitor.plugin.PushNotifications; 4 | import com.google.firebase.messaging.FirebaseMessagingService; 5 | import com.google.firebase.messaging.RemoteMessage; 6 | 7 | public class CapacitorFirebaseMessagingService extends FirebaseMessagingService { 8 | 9 | @Override 10 | public void onNewToken(String newToken) { 11 | super.onNewToken(newToken); 12 | PushNotifications.onNewToken(newToken); 13 | } 14 | 15 | @Override 16 | public void onMessageReceived(RemoteMessage remoteMessage) { 17 | super.onMessageReceived(remoteMessage); 18 | PushNotifications.sendRemoteMessage(remoteMessage); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /capacitor-mapbox/src/web.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from '@capacitor/core'; 2 | import { MapboxPlugin } from './definitions'; 3 | 4 | export class MapboxWeb extends WebPlugin implements MapboxPlugin { 5 | constructor() { 6 | super({ 7 | name: 'Mapbox', 8 | platforms: ['web'] 9 | }); 10 | } 11 | 12 | async echo(options: { value: string }): Promise<{value: string}> { 13 | console.log('ECHO', options); 14 | return options; 15 | } 16 | 17 | async openMap(location: { lat: number, long: number}): Promise { 18 | console.log(`Can't open Mapbox map - Web is not supported.`); 19 | } 20 | } 21 | 22 | const Mapbox = new MapboxWeb(); 23 | 24 | export { Mapbox }; 25 | 26 | import { registerWebPlugin } from '@capacitor/core'; 27 | registerWebPlugin(Mapbox); 28 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/toast.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../src/web/toast.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC;IAAoC,kCAAS;IAE3C;eACE,kBAAM;YACJ,IAAI,EAAE,OAAO;YACb,SAAS,EAAE,CAAC,KAAK,CAAC;SACnB,CAAC;IACJ,CAAC;IAEK,6BAAI,GAAV,UAAW,OAAyB;;;;gBAC9B,QAAQ,GAAG,IAAI,CAAC;gBACpB,IAAI,OAAO,CAAC,QAAQ,EAAE;oBACpB,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;iBACtD;gBACK,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,WAAW,CAAQ,CAAC;gBACzD,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;gBAC1B,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;gBAC7B,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;;;;KAClC;IACH,qBAAC;AAAD,CAAC,AAnBD,CAAoC,SAAS,GAmB5C;;AAED,IAAM,KAAK,GAAG,IAAI,cAAc,EAAE,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAE,CAAC"} -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor/CAPAppDelegate.swift: -------------------------------------------------------------------------------- 1 | public final class CAPAppDelegate { 2 | public static let shared = CAPAppDelegate() 3 | 4 | public func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { 5 | return CAPBridge.handleOpenUrl(url, options) 6 | } 7 | 8 | public func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { 9 | return CAPBridge.handleContinueActivity(userActivity, restorationHandler) 10 | } 11 | 12 | public func applicationDidBecomeActive(_ application: UIApplication) { 13 | return CAPBridge.handleAppBecameActive(application) 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web-plugins.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './web/index'; 2 | export * from './web/accessibility'; 3 | export * from './web/app'; 4 | export * from './web/browser'; 5 | export * from './web/camera'; 6 | export * from './web/clipboard'; 7 | export * from './web/filesystem'; 8 | export * from './web/geolocation'; 9 | export * from './web/device'; 10 | export * from './web/local-notifications'; 11 | export * from './web/share'; 12 | export * from './web/modals'; 13 | export * from './web/motion'; 14 | export * from './web/network'; 15 | export * from './web/permissions'; 16 | export * from './web/splash-screen'; 17 | export * from './web/storage'; 18 | export * from './web/toast'; 19 | export declare const registerWebPlugin: (plugin: WebPlugin) => void; 20 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor/DocLinks.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | enum DocLinks: String { 4 | case CAPPluginMethodSelector = "plugins/ios/#defining-methods" 5 | case NSPhotoLibraryAddUsageDescription = "https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW73" 6 | case NSPhotoLibraryUsageDescription = "https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW17" 7 | case NSCameraUsageDescription = "https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW24" 8 | } 9 | 10 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor/UILabel.swift: -------------------------------------------------------------------------------- 1 | extension UILabel { 2 | private struct AssociatedKeys { 3 | static var padding = UIEdgeInsets() 4 | } 5 | 6 | public var padding: UIEdgeInsets? { 7 | get { 8 | return objc_getAssociatedObject(self, &AssociatedKeys.padding) as? UIEdgeInsets 9 | } 10 | set { 11 | if let newValue = newValue { 12 | objc_setAssociatedObject(self, &AssociatedKeys.padding, newValue as UIEdgeInsets, objc_AssociationPolicy.OBJC_ASSOCIATION_RETAIN_NONATOMIC) 13 | } 14 | } 15 | } 16 | 17 | override open func draw(_ rect: CGRect) { 18 | if let insets = padding { 19 | self.drawText(in: rect.inset(by: insets)) 20 | } else { 21 | self.drawText(in: rect) 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/browser.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"browser.js","sourceRoot":"","sources":["../../../src/web/browser.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAQpC;IAAsC,oCAAS;IAG7C;eACE,kBAAM;YACJ,IAAI,EAAE,SAAS;YACf,SAAS,EAAE,CAAC,KAAK,CAAC;SACnB,CAAC;IACJ,CAAC;IAEK,+BAAI,GAAV,UAAW,OAA2B;;;gBACpC,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,UAAU,IAAI,QAAQ,CAAC,CAAC;gBAC5E,sBAAO,OAAO,CAAC,OAAO,EAAE,EAAC;;;KAC1B;IAEK,mCAAQ,GAAd,UAAe,QAAgC;;;gBAC7C,eAAe;gBACf,sBAAO,OAAO,CAAC,OAAO,EAAE,EAAC;;;KAC1B;IAEK,gCAAK,GAAX;;;gBACE,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;gBAC7C,sBAAO,OAAO,CAAC,OAAO,EAAE,EAAC;;;KAC1B;IACH,uBAAC;AAAD,CAAC,AAxBD,CAAsC,SAAS,GAwB9C;;AAED,IAAM,OAAO,GAAG,IAAI,gBAAgB,EAAE,CAAC;AAEvC,OAAO,EAAE,OAAO,EAAE,CAAC"} -------------------------------------------------------------------------------- /capacitor-mapbox/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 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/util.js: -------------------------------------------------------------------------------- 1 | export var extend = function (target) { 2 | var objs = []; 3 | for (var _i = 1; _i < arguments.length; _i++) { 4 | objs[_i - 1] = arguments[_i]; 5 | } 6 | objs.forEach(function (o) { 7 | if (o && typeof (o) === 'object') { 8 | for (var k in o) { 9 | if (o.hasOwnProperty(k)) { 10 | target[k] = o[k]; 11 | } 12 | } 13 | } 14 | }); 15 | return target; 16 | }; 17 | export var uuid4 = function () { 18 | return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { 19 | var r = Math.random() * 16 | 0, v = c === 'x' ? r : (r & 0x3 | 0x8); 20 | return v.toString(16); 21 | }); 22 | }; 23 | //# sourceMappingURL=util.js.map -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/plugin/Photos.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor.plugin; 2 | 3 | import com.getcapacitor.NativePlugin; 4 | import com.getcapacitor.Plugin; 5 | import com.getcapacitor.PluginCall; 6 | import com.getcapacitor.PluginMethod; 7 | 8 | @NativePlugin() 9 | public class Photos extends Plugin { 10 | 11 | @PluginMethod() 12 | public void getAlbums(PluginCall call) { 13 | call.unimplemented(); 14 | } 15 | 16 | @PluginMethod() 17 | public void getPhotos(PluginCall call) { 18 | call.unimplemented(); 19 | } 20 | 21 | @PluginMethod() 22 | public void createAlbum(PluginCall call) { 23 | call.unimplemented(); 24 | } 25 | 26 | @PluginMethod() 27 | public void savePhoto(PluginCall call) { 28 | call.unimplemented(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/ui/Toast.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor.ui; 2 | 3 | import android.content.Context; 4 | import android.os.Handler; 5 | import android.os.Looper; 6 | 7 | /** 8 | * Toast utility. "Yeah toast" echos softly in the distance. 9 | */ 10 | public class Toast { 11 | 12 | public static void show(Context c, String text) { 13 | show(c, text, android.widget.Toast.LENGTH_LONG); 14 | } 15 | 16 | public static void show(final Context c, final String text, final int duration) { 17 | new Handler(Looper.getMainLooper()).post(new Runnable() { 18 | @Override 19 | public void run() { 20 | android.widget.Toast toast = android.widget.Toast.makeText(c, text, duration); 21 | toast.show(); 22 | } 23 | }); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/inflight/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/inherits/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | 17 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/once/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Ionic App 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /android/app/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 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/minimatch/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/rimraf/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/wrappy/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/util.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/util.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,MAAM,GAAG,UAAC,MAAW;IAAE,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,6BAAc;;IAChD,IAAI,CAAC,OAAO,CAAC,UAAA,CAAC;QACZ,IAAI,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE;YAChC,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE;gBACf,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;oBACvB,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;iBAClB;aACF;SACF;IACH,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,KAAK,GAAG;IACnB,OAAO,sCAAsC,CAAC,OAAO,CAAC,OAAO,EAAE,UAAS,CAAC;QACvE,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;QACpE,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"} -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/CapacitorTests/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 | -------------------------------------------------------------------------------- /capacitor-mapbox/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 | -------------------------------------------------------------------------------- /src/app/app.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { BrowserModule } from '@angular/platform-browser'; 3 | import { RouteReuseStrategy } from '@angular/router'; 4 | 5 | import { IonicModule, IonicRouteStrategy } from '@ionic/angular'; 6 | import { SplashScreen } from '@ionic-native/splash-screen/ngx'; 7 | import { StatusBar } from '@ionic-native/status-bar/ngx'; 8 | 9 | import { AppComponent } from './app.component'; 10 | import { AppRoutingModule } from './app-routing.module'; 11 | 12 | @NgModule({ 13 | declarations: [AppComponent], 14 | entryComponents: [], 15 | imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule], 16 | providers: [ 17 | StatusBar, 18 | SplashScreen, 19 | { provide: RouteReuseStrategy, useClass: IonicRouteStrategy } 20 | ], 21 | bootstrap: [AppComponent] 22 | }) 23 | export class AppModule {} 24 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/permissions.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../../src/web/permissions.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,EACoD,cAAc,EACxE,MAAM,4BAA4B,CAAC;AAEpC;IAA0C,wCAAS;IACjD;eACE,kBAAM;YACJ,IAAI,EAAE,aAAa;SACpB,CAAC;IACJ,CAAC;IAEK,oCAAK,GAAX,UAAY,OAA2B;;;;;;wBAC/B,SAAS,GAAG,MAAM,CAAC,SAAgB,CAAC;wBAE1C,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;4BAC1B,sBAAO,OAAO,CAAC,MAAM,CAAC,mDAAmD,CAAC,EAAC;yBAC5E;wBAIK,IAAI,GAAG,OAAO,CAAC,IAAI,KAAK,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;wBAElE,qBAAM,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,IAAI,MAAA,EAAE,CAAC,EAAA;;wBAAjD,GAAG,GAAG,SAA2C;wBAEvD,sBAAO;gCACL,KAAK,EAAE,GAAG,CAAC,KAAK;6BACjB,EAAC;;;;KACH;IACH,2BAAC;AAAD,CAAC,AAxBD,CAA0C,SAAS,GAwBlD;;AAED,IAAM,WAAW,GAAG,IAAI,oBAAoB,EAAE,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,CAAC"} -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/wrappy/README.md: -------------------------------------------------------------------------------- 1 | # wrappy 2 | 3 | Callback wrapping utility 4 | 5 | ## USAGE 6 | 7 | ```javascript 8 | var wrappy = require("wrappy") 9 | 10 | // var wrapper = wrappy(wrapperFunction) 11 | 12 | // make sure a cb is called only once 13 | // See also: http://npm.im/once for this specific use case 14 | var once = wrappy(function (cb) { 15 | var called = false 16 | return function () { 17 | if (called) return 18 | called = true 19 | return cb.apply(this, arguments) 20 | } 21 | }) 22 | 23 | function printBoo () { 24 | console.log('boo') 25 | } 26 | // has some rando property 27 | printBoo.iAmBooPrinter = true 28 | 29 | var onlyPrintOnce = once(printBoo) 30 | 31 | onlyPrintOnce() // prints 'boo' 32 | onlyPrintOnce() // does nothing 33 | 34 | // random property is retained! 35 | assert.equal(onlyPrintOnce.iAmBooPrinter, true) 36 | ``` 37 | -------------------------------------------------------------------------------- /e2e/protractor.conf.js: -------------------------------------------------------------------------------- 1 | // Protractor configuration file, see link for more information 2 | // https://github.com/angular/protractor/blob/master/lib/config.ts 3 | 4 | const { SpecReporter } = require('jasmine-spec-reporter'); 5 | 6 | exports.config = { 7 | allScriptsTimeout: 11000, 8 | specs: [ 9 | './src/**/*.e2e-spec.ts' 10 | ], 11 | capabilities: { 12 | 'browserName': 'chrome' 13 | }, 14 | directConnect: true, 15 | baseUrl: 'http://localhost:4200/', 16 | framework: 'jasmine', 17 | jasmineNodeOpts: { 18 | showColors: true, 19 | defaultTimeoutInterval: 30000, 20 | print: function() {} 21 | }, 22 | onPrepare() { 23 | require('ts-node').register({ 24 | project: require('path').join(__dirname, './tsconfig.json') 25 | }); 26 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } })); 27 | } 28 | }; 29 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/accessibility.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"accessibility.js","sourceRoot":"","sources":["../../../src/web/accessibility.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAQpC;IAA4C,0CAAS;IACnD;eACE,kBAAM;YACJ,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,CAAC,KAAK,CAAC;SACnB,CAAC;IACJ,CAAC;IAED,sDAAqB,GAArB;QACE,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC;IAED,sCAAK,GAAL,UAAM,OAAkC;QACtC,IAAI,CAAC,CAAC,iBAAiB,IAAI,MAAM,CAAC,EAAE;YAClC,OAAO,OAAO,CAAC,MAAM,CAAC,mDAAmD,CAAC,CAAC;SAC5E;QAED,IAAI,SAAS,GAAG,IAAI,wBAAwB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAC5D,IAAI,OAAO,CAAC,QAAQ,EAAE;YACpB,SAAS,CAAC,IAAI,GAAG,OAAO,CAAC,QAAQ,CAAC;SACnC;QACD,MAAM,CAAC,eAAe,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACxC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IACH,6BAAC;AAAD,CAAC,AAxBD,CAA4C,SAAS,GAwBpD;;AAED,IAAM,aAAa,GAAG,IAAI,sBAAsB,EAAE,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,CAAC"} -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/storage.d.ts: -------------------------------------------------------------------------------- 1 | import { WebPlugin } from './index'; 2 | import { StoragePlugin } from '../core-plugin-definitions'; 3 | export declare class StoragePluginWeb extends WebPlugin implements StoragePlugin { 4 | KEY_PREFIX: string; 5 | constructor(); 6 | get(options: { 7 | key: string; 8 | }): Promise<{ 9 | value: string; 10 | }>; 11 | set(options: { 12 | key: string; 13 | value: string; 14 | }): Promise; 15 | remove(options: { 16 | key: string; 17 | }): Promise; 18 | keys(): Promise<{ 19 | keys: string[]; 20 | }>; 21 | clear(): Promise; 22 | makeKey(key: string): string; 23 | isKey(key: string): boolean; 24 | getKey(key: string): string; 25 | } 26 | declare const Storage: StoragePluginWeb; 27 | export { Storage }; 28 | -------------------------------------------------------------------------------- /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 | # Supports AndroidX 20 | android.useAndroidX=true 21 | android.enableJetifier=true -------------------------------------------------------------------------------- /capacitor-mapbox/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 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/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 | -------------------------------------------------------------------------------- /capacitor-mapbox/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 | # Supports AndroidX 20 | android.useAndroidX=true 21 | android.enableJetifier=true -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/inherits/inherits_browser.js: -------------------------------------------------------------------------------- 1 | if (typeof Object.create === 'function') { 2 | // implementation from standard node.js 'util' module 3 | module.exports = function inherits(ctor, superCtor) { 4 | if (superCtor) { 5 | ctor.super_ = superCtor 6 | ctor.prototype = Object.create(superCtor.prototype, { 7 | constructor: { 8 | value: ctor, 9 | enumerable: false, 10 | writable: true, 11 | configurable: true 12 | } 13 | }) 14 | } 15 | }; 16 | } else { 17 | // old school shim for old browsers 18 | module.exports = function inherits(ctor, superCtor) { 19 | if (superCtor) { 20 | ctor.super_ = superCtor 21 | var TempCtor = function () {} 22 | TempCtor.prototype = superCtor.prototype 23 | ctor.prototype = new TempCtor() 24 | ctor.prototype.constructor = ctor 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/CopyrightNotice.txt: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/generated/source/buildConfig/debug/com/ionicframework/cap/mapbox/capacitormapbox/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Automatically generated file. DO NOT MODIFY 3 | */ 4 | package com.ionicframework.cap.mapbox.capacitormapbox; 5 | 6 | public final class BuildConfig { 7 | public static final boolean DEBUG = Boolean.parseBoolean("true"); 8 | public static final String LIBRARY_PACKAGE_NAME = "com.ionicframework.cap.mapbox.capacitormapbox"; 9 | /** 10 | * @deprecated APPLICATION_ID is misleading in libraries. For the library package name use LIBRARY_PACKAGE_NAME 11 | */ 12 | @Deprecated 13 | public static final String APPLICATION_ID = "com.ionicframework.cap.mapbox.capacitormapbox"; 14 | public static final String BUILD_TYPE = "debug"; 15 | public static final String FLAVOR = ""; 16 | public static final int VERSION_CODE = 1; 17 | public static final String VERSION_NAME = "1.0"; 18 | } 19 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/PluginMethodHandle.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor; 2 | 3 | import java.lang.reflect.Method; 4 | 5 | public class PluginMethodHandle { 6 | // The reflect method reference 7 | private final Method method; 8 | // The name of the method 9 | private final String name; 10 | // The return type of the method (see PluginMethod for constants) 11 | private final String returnType; 12 | 13 | public PluginMethodHandle(Method method, PluginMethod methodDecorator) { 14 | this.method = method; 15 | 16 | this.name = method.getName(); 17 | 18 | this.returnType = methodDecorator.returnType(); 19 | } 20 | 21 | public String getReturnType() { 22 | return returnType; 23 | } 24 | 25 | public String getName() { 26 | return name; 27 | } 28 | 29 | public Method getMethod() { 30 | return method; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/splash-screen.js: -------------------------------------------------------------------------------- 1 | import { __extends } from "tslib"; 2 | import { WebPlugin } from './index'; 3 | var SplashScreenPluginWeb = /** @class */ (function (_super) { 4 | __extends(SplashScreenPluginWeb, _super); 5 | function SplashScreenPluginWeb() { 6 | return _super.call(this, { 7 | name: 'SplashScreen', 8 | platforms: ['web'] 9 | }) || this; 10 | } 11 | SplashScreenPluginWeb.prototype.show = function (_options, _callback) { 12 | return Promise.resolve(); 13 | }; 14 | SplashScreenPluginWeb.prototype.hide = function (_options, _callback) { 15 | return Promise.resolve(); 16 | }; 17 | return SplashScreenPluginWeb; 18 | }(WebPlugin)); 19 | export { SplashScreenPluginWeb }; 20 | var SplashScreen = new SplashScreenPluginWeb(); 21 | export { SplashScreen }; 22 | //# sourceMappingURL=splash-screen.js.map -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/tslib/CopyrightNotice.txt: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. 3 | 4 | Permission to use, copy, modify, and/or distribute this software for any 5 | purpose with or without fee is hereby granted. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 8 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 9 | AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 10 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 11 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 12 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 13 | PERFORMANCE OF THIS SOFTWARE. 14 | ***************************************************************************** */ 15 | 16 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 11 | 12 | 17 | 18 | 19 | 22 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/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 | # Supports AndroidX 20 | android.useAndroidX=true 21 | android.enableJetifier=true -------------------------------------------------------------------------------- /android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor.myapp; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.test.platform.app.InstrumentationRegistry; 6 | import androidx.test.ext.junit.runners.AndroidJUnit4; 7 | 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | 11 | import static org.junit.Assert.*; 12 | 13 | /** 14 | * Instrumented test, which will execute on an Android device. 15 | * 16 | * @see Testing documentation 17 | */ 18 | @RunWith(AndroidJUnit4.class) 19 | public class ExampleInstrumentedTest { 20 | @Test 21 | public void useAppContext() throws Exception { 22 | // Context of the app under test. 23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); 24 | 25 | assertEquals("com.getcapacitor.app", appContext.getPackageName()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/share.js: -------------------------------------------------------------------------------- 1 | import { __extends } from "tslib"; 2 | import { WebPlugin } from './index'; 3 | var SharePluginWeb = /** @class */ (function (_super) { 4 | __extends(SharePluginWeb, _super); 5 | function SharePluginWeb() { 6 | return _super.call(this, { 7 | name: 'Share', 8 | platforms: ['web'] 9 | }) || this; 10 | } 11 | SharePluginWeb.prototype.share = function (options) { 12 | if (!navigator.share) { 13 | return Promise.reject('Web Share API not available'); 14 | } 15 | return navigator.share({ 16 | title: options.title, 17 | text: options.text, 18 | url: options.url 19 | }); 20 | }; 21 | return SharePluginWeb; 22 | }(WebPlugin)); 23 | export { SharePluginWeb }; 24 | var Share = new SharePluginWeb(); 25 | export { Share }; 26 | //# sourceMappingURL=share.js.map -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor/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 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/global.js: -------------------------------------------------------------------------------- 1 | import { CapacitorWeb } from './web-runtime'; 2 | // Create our default Capacitor instance, which will be 3 | // overridden on native platforms 4 | var Capacitor = (function (globalThis) { 5 | // Create a new CapacitorWeb instance if one doesn't already exist on globalThis 6 | // Ensure the global is assigned the same Capacitor instance, 7 | // then export Capacitor so it can be imported in other modules 8 | return globalThis.Capacitor = (globalThis.Capacitor || new CapacitorWeb()); 9 | })( 10 | // figure out the current globalThis, such as "window", "self" or "global" 11 | // ensure errors are not thrown in an node SSR environment or web worker 12 | typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : {}); 13 | var Plugins = Capacitor.Plugins; 14 | export { Capacitor, Plugins }; 15 | //# sourceMappingURL=global.js.map -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/CapacitorCordova/CapacitorCordova/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 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web-plugins.js: -------------------------------------------------------------------------------- 1 | import { Plugins } from './global'; 2 | import { mergeWebPlugins, mergeWebPlugin } from './web/index'; 3 | export * from './web/accessibility'; 4 | export * from './web/app'; 5 | export * from './web/browser'; 6 | export * from './web/camera'; 7 | export * from './web/clipboard'; 8 | export * from './web/filesystem'; 9 | export * from './web/geolocation'; 10 | export * from './web/device'; 11 | export * from './web/local-notifications'; 12 | export * from './web/share'; 13 | export * from './web/modals'; 14 | export * from './web/motion'; 15 | export * from './web/network'; 16 | export * from './web/permissions'; 17 | export * from './web/splash-screen'; 18 | export * from './web/storage'; 19 | export * from './web/toast'; 20 | mergeWebPlugins(Plugins); 21 | export var registerWebPlugin = function (plugin) { 22 | mergeWebPlugin(Plugins, plugin); 23 | }; 24 | //# sourceMappingURL=web-plugins.js.map -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/library_manifest/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/CapacitorCordova/CapacitorCordova/CapacitorCordova.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | //! Project version number for CapacitorCordova. 4 | FOUNDATION_EXPORT double CapacitorCordovaVersionNumber; 5 | 6 | //! Project version string for CapacitorCordova. 7 | FOUNDATION_EXPORT const unsigned char CapacitorCordovaVersionString[]; 8 | 9 | // In this header, you should import all the public headers of your framework using statements like #import 10 | 11 | #import 12 | #import 13 | #import 14 | #import 15 | #import 16 | #import 17 | #import 18 | #import 19 | #import 20 | #import 21 | #import 22 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor.android; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.test.platform.app.InstrumentationRegistry; 6 | import androidx.test.ext.junit.runners.AndroidJUnit4; 7 | 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | 11 | import static org.junit.Assert.*; 12 | 13 | /** 14 | * Instrumented test, which will execute on an Android device. 15 | * 16 | * @see Testing documentation 17 | */ 18 | @RunWith(AndroidJUnit4.class) 19 | public class ExampleInstrumentedTest { 20 | @Test 21 | public void useAppContext() throws Exception { 22 | // Context of the app under test. 23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); 24 | 25 | assertEquals("com.getcapacitor.android", appContext.getPackageName()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor/Plugins/WebView.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | @objc(CAPWebViewPlugin) 4 | public class CAPWebViewPlugin : CAPPlugin { 5 | 6 | @objc func setServerBasePath(_ call: CAPPluginCall) { 7 | let path = call.getString("path") 8 | let vc = bridge.viewController as! CAPBridgeViewController 9 | vc.setServerBasePath(path: path!) 10 | call.success() 11 | } 12 | 13 | @objc func getServerBasePath(_ call: CAPPluginCall) { 14 | let vc = bridge.viewController as! CAPBridgeViewController 15 | let path = vc.getServerBasePath() 16 | call.success([ 17 | "path": path 18 | ]) 19 | } 20 | 21 | @objc func persistServerBasePath(_ call: CAPPluginCall) { 22 | let vc = bridge.viewController as! CAPBridgeViewController 23 | let path = vc.getServerBasePath() 24 | let defaults = UserDefaults.standard 25 | defaults.set(path, forKey: "serverBasePath") 26 | call.success() 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor.android; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.test.platform.app.InstrumentationRegistry; 6 | import androidx.test.ext.junit.runners.AndroidJUnit4; 7 | 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | 11 | import static org.junit.Assert.*; 12 | 13 | /** 14 | * Instrumented test, which will execute on an Android device. 15 | * 16 | * @see Testing documentation 17 | */ 18 | @RunWith(AndroidJUnit4.class) 19 | public class ExampleInstrumentedTest { 20 | @Test 21 | public void useAppContext() throws Exception { 22 | // Context of the app under test. 23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); 24 | 25 | assertEquals("com.getcapacitor.android.test", appContext.getPackageName()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // CDVPluginManager.h 3 | // CapacitorCordova 4 | // 5 | // Created by Julio Cesar Sanchez Hernandez on 26/2/18. 6 | // 7 | 8 | #import 9 | #import "CDVPlugin.h" 10 | #import "CDVConfigParser.h" 11 | #import "CDVCommandDelegate.h" 12 | 13 | @interface CDVPluginManager : NSObject 14 | 15 | @property (nonatomic, strong) NSMutableDictionary * pluginsMap; 16 | @property (nonatomic, strong) NSMutableDictionary * pluginObjects; 17 | @property (nonatomic, strong) NSMutableDictionary * settings; 18 | @property (nonatomic, strong) UIViewController * viewController; 19 | @property (nonatomic, strong) WKWebView * webView; 20 | @property (nonatomic, strong) id commandDelegate; 21 | 22 | - (id)initWithParser:(CDVConfigParser*)parser viewController:(UIViewController*)viewController webView:(WKWebView *)webview; 23 | - (CDVPlugin *)getCommandInstance:(NSString*)pluginName; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/plugin/background/BackgroundTaskService.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor.plugin.background; 2 | 3 | import android.app.IntentService; 4 | import android.content.Intent; 5 | 6 | import androidx.localbroadcastmanager.content.LocalBroadcastManager; 7 | 8 | import com.getcapacitor.Logger; 9 | 10 | public class BackgroundTaskService extends IntentService { 11 | public BackgroundTaskService() { 12 | super("CapacitorBackgroundTaskService"); 13 | } 14 | 15 | @Override 16 | protected void onHandleIntent(Intent intent) { 17 | // Gets data from the incoming Intent 18 | String taskId = intent.getStringExtra("taskId"); 19 | Logger.debug("Doing background task: " + taskId); 20 | 21 | Intent localIntent = new Intent(BackgroundTask.TASK_BROADCAST_ACTION) 22 | .putExtra("taskId", taskId); 23 | LocalBroadcastManager.getInstance(this).sendBroadcast(localIntent); 24 | // Do work here, based on the contents of dataString 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/fs.realpath/README.md: -------------------------------------------------------------------------------- 1 | # fs.realpath 2 | 3 | A backwards-compatible fs.realpath for Node v6 and above 4 | 5 | In Node v6, the JavaScript implementation of fs.realpath was replaced 6 | with a faster (but less resilient) native implementation. That raises 7 | new and platform-specific errors and cannot handle long or excessively 8 | symlink-looping paths. 9 | 10 | This module handles those cases by detecting the new errors and 11 | falling back to the JavaScript implementation. On versions of Node 12 | prior to v6, it has no effect. 13 | 14 | ## USAGE 15 | 16 | ```js 17 | var rp = require('fs.realpath') 18 | 19 | // async version 20 | rp.realpath(someLongAndLoopingPath, function (er, real) { 21 | // the ELOOP was handled, but it was a bit slower 22 | }) 23 | 24 | // sync version 25 | var real = rp.realpathSync(someLongAndLoopingPath) 26 | 27 | // monkeypatch at your own risk! 28 | // This replaces the fs.realpath/fs.realpathSync builtins 29 | rp.monkeypatch() 30 | 31 | // un-do the monkeypatching 32 | rp.unmonkeypatch() 33 | ``` 34 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.es2016.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | /// 22 | /// -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor/CAPNotifications.swift: -------------------------------------------------------------------------------- 1 | /** 2 | * Notificaton types for NSNotificationCenter 3 | */ 4 | @objc public enum CAPNotifications: Int { 5 | case URLOpen 6 | case UniversalLinkOpen 7 | case ContinueActivity 8 | case DidRegisterForRemoteNotificationsWithDeviceToken 9 | case DidFailToRegisterForRemoteNotificationsWithError 10 | case DecidePolicyForNavigationAction 11 | 12 | public func name() -> String { 13 | switch self { 14 | case .URLOpen: return "CAPNotificationsURLOpen" 15 | case .UniversalLinkOpen: return "CAPUniversalLinkOpen" 16 | case .ContinueActivity: return "CAPNotificationsContinueActivity" 17 | case .DidRegisterForRemoteNotificationsWithDeviceToken: return "CAPDidRegisterForRemoteNotificationsWithDeviceToken" 18 | case .DidFailToRegisterForRemoteNotificationsWithError: return "CAPDidFailToRegisterForRemoteNotificationsWithError" 19 | case .DecidePolicyForNavigationAction: return "CAPDecidePolicyForNavigationAction" 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/wrappy/wrappy.js: -------------------------------------------------------------------------------- 1 | // Returns a wrapper function that returns a wrapped callback 2 | // The wrapper function should do some stuff, and return a 3 | // presumably different callback function. 4 | // This makes sure that own properties are retained, so that 5 | // decorations and such are not lost along the way. 6 | module.exports = wrappy 7 | function wrappy (fn, cb) { 8 | if (fn && cb) return wrappy(fn)(cb) 9 | 10 | if (typeof fn !== 'function') 11 | throw new TypeError('need wrapper function') 12 | 13 | Object.keys(fn).forEach(function (k) { 14 | wrapper[k] = fn[k] 15 | }) 16 | 17 | return wrapper 18 | 19 | function wrapper() { 20 | var args = new Array(arguments.length) 21 | for (var i = 0; i < args.length; i++) { 22 | args[i] = arguments[i] 23 | } 24 | var ret = fn.apply(this, args) 25 | var cb = args[args.length-1] 26 | if (typeof ret === 'function' && ret !== cb) { 27 | Object.keys(cb).forEach(function (k) { 28 | ret[k] = cb[k] 29 | }) 30 | } 31 | return ret 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/glob/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | 17 | ## Glob Logo 18 | 19 | Glob's logo created by Tanya Brassie , licensed 20 | under a Creative Commons Attribution-ShareAlike 4.0 International License 21 | https://creativecommons.org/licenses/by-sa/4.0/ 22 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/BridgeWebViewClient.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor; 2 | 3 | import android.net.Uri; 4 | import android.webkit.WebResourceRequest; 5 | import android.webkit.WebResourceResponse; 6 | import android.webkit.WebView; 7 | import android.webkit.WebViewClient; 8 | 9 | public class BridgeWebViewClient extends WebViewClient { 10 | private Bridge bridge; 11 | 12 | public BridgeWebViewClient(Bridge bridge) { 13 | this.bridge = bridge; 14 | } 15 | 16 | @Override 17 | public WebResourceResponse shouldInterceptRequest(WebView view, WebResourceRequest request) { 18 | return bridge.getLocalServer().shouldInterceptRequest(request); 19 | } 20 | 21 | @Override 22 | public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) { 23 | Uri url = request.getUrl(); 24 | return bridge.launchIntent(url); 25 | } 26 | 27 | @Override 28 | public boolean shouldOverrideUrlLoading(WebView view, String url) { 29 | return bridge.launchIntent(Uri.parse(url)); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/NativePlugin.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor; 2 | 3 | import java.lang.annotation.Retention; 4 | import java.lang.annotation.RetentionPolicy; 5 | 6 | /** 7 | * Base annotation for all Plugins 8 | */ 9 | @Retention(RetentionPolicy.RUNTIME) 10 | public @interface NativePlugin { 11 | /** 12 | * Request codes this plugin uses and responds to, in order to tie 13 | * Android events back the plugin to handle 14 | */ 15 | int[] requestCodes() default {}; 16 | 17 | /** 18 | * Permissions this plugin needs, in order to make permission requests 19 | * easy if the plugin only needs basic permission prompting 20 | */ 21 | String[] permissions() default {}; 22 | 23 | /** 24 | * The request code to use when automatically requesting permissions 25 | */ 26 | int permissionRequestCode() default PluginRequestCodes.DEFAULT_CAPACITOR_REQUEST_PERMISSIONS; 27 | 28 | /** 29 | * A custom name for the plugin, otherwise uses the 30 | * simple class name. 31 | */ 32 | String name() default ""; 33 | } 34 | -------------------------------------------------------------------------------- /karma.conf.js: -------------------------------------------------------------------------------- 1 | // Karma configuration file, see link for more information 2 | // https://karma-runner.github.io/1.0/config/configuration-file.html 3 | 4 | module.exports = function (config) { 5 | config.set({ 6 | basePath: '', 7 | frameworks: ['jasmine', '@angular-devkit/build-angular'], 8 | plugins: [ 9 | require('karma-jasmine'), 10 | require('karma-chrome-launcher'), 11 | require('karma-jasmine-html-reporter'), 12 | require('karma-coverage-istanbul-reporter'), 13 | require('@angular-devkit/build-angular/plugins/karma') 14 | ], 15 | client: { 16 | clearContext: false // leave Jasmine Spec Runner output visible in browser 17 | }, 18 | coverageIstanbulReporter: { 19 | dir: require('path').join(__dirname, '../coverage'), 20 | reports: ['html', 'lcovonly', 'text-summary'], 21 | fixWebpackSourcePaths: true 22 | }, 23 | reporters: ['progress', 'kjhtml'], 24 | port: 9876, 25 | colors: true, 26 | logLevel: config.LOG_INFO, 27 | autoWatch: true, 28 | browsers: ['Chrome'], 29 | singleRun: false 30 | }); 31 | }; 32 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor/CAPPluginCall.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "CAPPluginCall.h" 4 | 5 | @implementation CAPPluginCallResult 6 | - (instancetype)init:(NSDictionary*)data { 7 | self.data = data; 8 | return self; 9 | } 10 | @end 11 | 12 | @implementation CAPPluginCallError 13 | 14 | - (instancetype)initWithMessage:(NSString *)message code:(NSString *) code error:(NSError *)error data:(NSDictionary *)data { 15 | self.message = message; 16 | self.code = code; 17 | self.error = error; 18 | self.data = data; 19 | return self; 20 | } 21 | 22 | @end 23 | 24 | @implementation CAPPluginCall 25 | 26 | - (instancetype)initWithCallbackId:(NSString *)callbackId options:(NSDictionary *)options success:(CAPPluginCallSuccessHandler) success error:(CAPPluginCallErrorHandler) error { 27 | self.callbackId = callbackId; 28 | self.options = options; 29 | self.successHandler = success; 30 | self.errorHandler = error; 31 | return self; 32 | } 33 | 34 | - (void)save { 35 | self.isSaved = true; 36 | } 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /capacitor-mapbox/.npmignore: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVURLProtocol.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | #import "CDVAvailability.h" 22 | 23 | @class CDVViewController; 24 | 25 | @interface CDVURLProtocol : NSURLProtocol {} 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/once/once.js: -------------------------------------------------------------------------------- 1 | var wrappy = require('wrappy') 2 | module.exports = wrappy(once) 3 | module.exports.strict = wrappy(onceStrict) 4 | 5 | once.proto = once(function () { 6 | Object.defineProperty(Function.prototype, 'once', { 7 | value: function () { 8 | return once(this) 9 | }, 10 | configurable: true 11 | }) 12 | 13 | Object.defineProperty(Function.prototype, 'onceStrict', { 14 | value: function () { 15 | return onceStrict(this) 16 | }, 17 | configurable: true 18 | }) 19 | }) 20 | 21 | function once (fn) { 22 | var f = function () { 23 | if (f.called) return f.value 24 | f.called = true 25 | return f.value = fn.apply(this, arguments) 26 | } 27 | f.called = false 28 | return f 29 | } 30 | 31 | function onceStrict (fn) { 32 | var f = function () { 33 | if (f.called) 34 | throw new Error(f.onceError) 35 | f.called = true 36 | return f.value = fn.apply(this, arguments) 37 | } 38 | var name = fn.name || 'Function wrapped with `once`' 39 | f.onceError = name + " shouldn't be called more than once" 40 | f.called = false 41 | return f 42 | } 43 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.esnext.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | /// 22 | /// 23 | /// 24 | /// 25 | -------------------------------------------------------------------------------- /capacitor-mapbox/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "capacitor-mapbox", 3 | "version": "0.0.1", 4 | "description": "Mapbox SDK", 5 | "main": "dist/esm/index.js", 6 | "types": "dist/esm/index.d.ts", 7 | "scripts": { 8 | "build": "npm run clean && tsc", 9 | "clean": "rimraf ./dist", 10 | "watch": "tsc --watch", 11 | "prepublishOnly": "npm run build" 12 | }, 13 | "author": "Ionic", 14 | "license": "MIT", 15 | "dependencies": { 16 | "@capacitor/core": "latest" 17 | }, 18 | "devDependencies": { 19 | "rimraf": "^3.0.0", 20 | "typescript": "^3.2.4", 21 | "@capacitor/ios": "latest", 22 | "@capacitor/android": "latest" 23 | }, 24 | "files": [ 25 | "dist/", 26 | "ios/", 27 | "android/", 28 | "CapacitorMapbox.podspec" 29 | ], 30 | "keywords": [ 31 | "capacitor", 32 | "plugin", 33 | "native" 34 | ], 35 | "capacitor": { 36 | "ios": { 37 | "src": "ios" 38 | }, 39 | "android": { 40 | "src": "android" 41 | } 42 | }, 43 | "repository": { 44 | "type": "git", 45 | "url": "no" 46 | }, 47 | "bugs": { 48 | "url": "no/issues" 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.esnext.symbol.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | interface Symbol { 22 | /** 23 | * expose the [[Description]] internal slot of a symbol directly 24 | */ 25 | readonly description: string; 26 | } 27 | -------------------------------------------------------------------------------- /src/assets/shapes.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2015-present Drifty Co. 2 | http://drifty.com/ 3 | 4 | MIT License 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining 7 | a copy of this software and associated documentation files (the 8 | "Software"), to deal in the Software without restriction, including 9 | without limitation the rights to use, copy, modify, merge, publish, 10 | distribute, sublicense, and/or sell copies of the Software, and to 11 | permit persons to whom the Software is furnished to do so, subject to 12 | the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be 15 | included in all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 20 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 21 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 22 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 23 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/Capacitor/Capacitor/CAPPluginMethod.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import "CAPPluginMethod.h" 3 | 4 | typedef void(^CAPCallback)(id _arg, NSInteger index); 5 | 6 | @implementation CAPPluginMethodArgument 7 | 8 | - (instancetype)initWithName:(NSString *)name nullability:(CAPPluginMethodArgumentNullability)nullability type:(NSString *)type { 9 | self.name = name; 10 | self.nullability = nullability; 11 | return self; 12 | } 13 | 14 | @end 15 | 16 | @implementation CAPPluginMethod { 17 | // NSInvocation's retainArguments doesn't work with our arguments 18 | // so we have to retain args manually 19 | NSMutableArray *_manualRetainArgs; 20 | // Retain invocation instance 21 | NSInvocation *_invocation; 22 | NSMutableArray *_methodArgumentCallbacks; 23 | CAPPluginCall *_call; 24 | SEL _selector; 25 | } 26 | 27 | -(instancetype)initWithName:(NSString *)name returnType:(CAPPluginReturnType *)returnType { 28 | self.name = name; 29 | self.selector = NSSelectorFromString([name stringByAppendingString:@":"]); 30 | self.returnType = returnType; 31 | return self; 32 | } 33 | 34 | 35 | @end 36 | 37 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/concat-map/LICENSE: -------------------------------------------------------------------------------- 1 | This software is released under the MIT license: 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 7 | the Software, and to permit persons to whom the Software is furnished to do so, 8 | subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.es2019.symbol.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | interface Symbol { 22 | /** 23 | * Expose the [[Description]] internal slot of a symbol directly. 24 | */ 25 | readonly description: string | undefined; 26 | } 27 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.es6.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/dist/esm/web/app.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/web/app.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAIpC;IAAkC,gCAAS;IACzC;QAAA,YACE,kBAAM;YACJ,IAAI,EAAE,KAAK;YACX,SAAS,EAAE,CAAC,KAAK,CAAC;SACnB,CAAC,SAKH;QAHC,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;YACnC,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,KAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,KAAI,CAAC,EAAE,KAAK,CAAC,CAAC;SAC9F;;IACH,CAAC;IAED,8BAAO,GAAP;QACE,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAED,iCAAU,GAAV,UAAW,QAA0B;QACnC,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1C,CAAC;IAED,8BAAO,GAAP,UAAQ,QAA0B;QAChC,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,mCAAY,GAAZ;QACE,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IACtC,CAAC;IAED,+BAAQ,GAAR;QACE,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,6CAAsB,GAAtB;QACE,IAAM,IAAI,GAAG;YACX,QAAQ,EAAE,QAAQ,CAAC,MAAM,KAAK,IAAI;SACnC,CAAC;QAEF,IAAI,CAAC,eAAe,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IACH,mBAAC;AAAD,CAAC,AAvCD,CAAkC,SAAS,GAuC1C;;AAED,IAAM,GAAG,GAAG,IAAI,YAAY,EAAE,CAAC;AAE/B,OAAO,EAAE,GAAG,EAAE,CAAC"} -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/inflight/README.md: -------------------------------------------------------------------------------- 1 | # inflight 2 | 3 | Add callbacks to requests in flight to avoid async duplication 4 | 5 | ## USAGE 6 | 7 | ```javascript 8 | var inflight = require('inflight') 9 | 10 | // some request that does some stuff 11 | function req(key, callback) { 12 | // key is any random string. like a url or filename or whatever. 13 | // 14 | // will return either a falsey value, indicating that the 15 | // request for this key is already in flight, or a new callback 16 | // which when called will call all callbacks passed to inflightk 17 | // with the same key 18 | callback = inflight(key, callback) 19 | 20 | // If we got a falsey value back, then there's already a req going 21 | if (!callback) return 22 | 23 | // this is where you'd fetch the url or whatever 24 | // callback is also once()-ified, so it can safely be assigned 25 | // to multiple events etc. First call wins. 26 | setTimeout(function() { 27 | callback(null, key) 28 | }, 100) 29 | } 30 | 31 | // only assigns a single setTimeout 32 | // when it dings, all cbs get called 33 | req('foo', cb1) 34 | req('foo', cb2) 35 | req('foo', cb3) 36 | req('foo', cb4) 37 | ``` 38 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.es2016.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.es2017.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.es2018.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.esnext.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.es2019.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.es2019.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.es2020.full.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/plugin/notification/NotificationDismissReceiver.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor.plugin.notification; 2 | 3 | import android.content.BroadcastReceiver; 4 | import android.content.Context; 5 | import android.content.Intent; 6 | import com.getcapacitor.Logger; 7 | 8 | 9 | /** 10 | * Receiver called when notification is dismissed by user 11 | */ 12 | public class NotificationDismissReceiver extends BroadcastReceiver { 13 | 14 | 15 | @Override 16 | public void onReceive(Context context, Intent intent) { 17 | int intExtra = intent.getIntExtra(LocalNotificationManager.NOTIFICATION_INTENT_KEY, Integer.MIN_VALUE); 18 | if (intExtra == Integer.MIN_VALUE) { 19 | Logger.error(Logger.tags("LN"), "Invalid notification dismiss operation", null); 20 | return; 21 | } 22 | boolean isRemovable = intent.getBooleanExtra(LocalNotificationManager.NOTIFICATION_IS_REMOVABLE_KEY, true); 23 | if (isRemovable) { 24 | NotificationStorage notificationStorage = new NotificationStorage(context); 25 | notificationStorage.deleteNotification(Integer.toString(intExtra)); 26 | } 27 | 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.es2020.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/balanced-match/LICENSE.md: -------------------------------------------------------------------------------- 1 | (MIT) 2 | 3 | Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 9 | of the Software, and to permit persons to whom the Software is furnished to do 10 | 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 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/brace-expansion/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2013 Julian Gruber 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 | -------------------------------------------------------------------------------- /src/global.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * App Global CSS 3 | * ---------------------------------------------------------------------------- 4 | * Put style rules here that you want to apply globally. These styles are for 5 | * the entire app and not just one component. Additionally, this file can be 6 | * used as an entry point to import other CSS/Sass files to be included in the 7 | * output CSS. 8 | * For more information on global stylesheets, visit the documentation: 9 | * https://ionicframework.com/docs/layout/global-stylesheets 10 | */ 11 | 12 | /* Core CSS required for Ionic components to work properly */ 13 | @import "~@ionic/angular/css/core.css"; 14 | 15 | /* Basic CSS for apps built with Ionic */ 16 | @import "~@ionic/angular/css/normalize.css"; 17 | @import "~@ionic/angular/css/structure.css"; 18 | @import "~@ionic/angular/css/typography.css"; 19 | @import '~@ionic/angular/css/display.css'; 20 | 21 | /* Optional CSS utils that can be commented out */ 22 | @import "~@ionic/angular/css/padding.css"; 23 | @import "~@ionic/angular/css/float-elements.css"; 24 | @import "~@ionic/angular/css/text-alignment.css"; 25 | @import "~@ionic/angular/css/text-transformation.css"; 26 | @import "~@ionic/angular/css/flex-utils.css"; 27 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/core/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2015-present Drifty Co. 2 | http://drifty.com/ 3 | 4 | MIT License 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining 7 | a copy of this software and associated documentation files (the 8 | "Software"), to deal in the Software without restriction, including 9 | without limitation the rights to use, copy, modify, merge, publish, 10 | distribute, sublicense, and/or sell copies of the Software, and to 11 | permit persons to whom the Software is furnished to do so, subject to 12 | the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be 15 | included in all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 20 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 21 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 22 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 23 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDV.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import "CDVAvailability.h" 21 | #import "CDVPlugin.h" 22 | #import "CDVPluginResult.h" 23 | #import "CDVCommandDelegate.h" 24 | #import "CDVInvokedUrlCommand.h" 25 | #import "CDVViewController.h" 26 | #import "CDVURLProtocol.h" 27 | #import "CDVScreenOrientationDelegate.h" 28 | 29 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVViewController.m: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | 21 | #import "CDVViewController.h" 22 | 23 | @interface CDVViewController () { 24 | 25 | } 26 | 27 | 28 | @property (nonatomic, readwrite, strong) NSMutableDictionary* pluginObjects; 29 | 30 | @end 31 | 32 | @implementation CDVViewController 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.webworker.importscripts.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | 22 | ///////////////////////////// 23 | /// WorkerGlobalScope APIs 24 | ///////////////////////////// 25 | // These are only available in a Web Worker 26 | declare function importScripts(...urls: string[]): void; 27 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/path-is-absolute/license: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Sindre Sorhus (sindresorhus.com) 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 13 | all 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 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.es2017.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | /// 27 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/typescript/lib/lib.es2018.d.ts: -------------------------------------------------------------------------------- 1 | /*! ***************************************************************************** 2 | Copyright (c) Microsoft Corporation. All rights reserved. 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | this file except in compliance with the License. You may obtain a copy of the 5 | License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 8 | KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED 9 | WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 10 | MERCHANTABLITY OR NON-INFRINGEMENT. 11 | 12 | See the Apache Version 2.0 License for specific language governing permissions 13 | and limitations under the License. 14 | ***************************************************************************** */ 15 | 16 | 17 | 18 | /// 19 | 20 | 21 | /// 22 | /// 23 | /// 24 | /// 25 | /// 26 | /// 27 | -------------------------------------------------------------------------------- /capacitor-mapbox/android/src/main/java/com/ionicframework/cap/mapbox/Mapbox.java: -------------------------------------------------------------------------------- 1 | package com.ionicframework.cap.mapbox; 2 | 3 | import android.Manifest; 4 | import android.content.Intent; 5 | import android.util.Log; 6 | 7 | import com.getcapacitor.JSObject; 8 | import com.getcapacitor.NativePlugin; 9 | import com.getcapacitor.Plugin; 10 | import com.getcapacitor.PluginCall; 11 | import com.getcapacitor.PluginMethod; 12 | 13 | @NativePlugin(permissions={ 14 | Manifest.permission.ACCESS_FINE_LOCATION 15 | }) 16 | public class Mapbox extends Plugin { 17 | 18 | @PluginMethod() 19 | public void echo(PluginCall call) { 20 | String value = call.getString("value"); 21 | 22 | JSObject ret = new JSObject(); 23 | ret.put("value", value); 24 | call.success(ret); 25 | } 26 | 27 | @PluginMethod() 28 | public void openMap(PluginCall call) { 29 | Double latitude = call.getDouble("lat"); 30 | Double longitude = call.getDouble("long"); 31 | 32 | Intent intent = new Intent("com.ionicframework.cap.mapbox.MapBoxActivity"); 33 | intent.putExtra("lat", latitude); 34 | intent.putExtra("long", longitude); 35 | startActivityForResult(call, intent, 1); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/LogUtils.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor; 2 | 3 | import android.text.TextUtils; 4 | 5 | /** 6 | * @deprecated 7 | */ 8 | public abstract class LogUtils { 9 | 10 | /** 11 | * @deprecated 12 | */ 13 | public static final String LOG_TAG_CORE = "Capacitor"; 14 | 15 | /** 16 | * @deprecated 17 | */ 18 | public static final String LOG_TAG_PLUGIN = LOG_TAG_CORE + "/Plugin"; 19 | 20 | /** 21 | * Creates a core log TAG 22 | * 23 | * @deprecated 24 | * @param subTags sub log tags joined by a slash 25 | */ 26 | public static String getCoreTag(String... subTags) { 27 | return getLogTag(LOG_TAG_CORE, subTags); 28 | } 29 | 30 | /** 31 | * Creates a plugin log TAG 32 | * 33 | * @deprecated 34 | * @param subTags sub log tags joined by a slash 35 | */ 36 | public static String getPluginTag(String... subTags) { 37 | return getLogTag(LOG_TAG_PLUGIN, subTags); 38 | } 39 | 40 | private static String getLogTag(String mainTag, String[] subTags) { 41 | if (subTags != null && subTags.length > 0) { 42 | return mainTag + "/" + TextUtils.join("/", subTags); 43 | } 44 | return mainTag; 45 | } 46 | 47 | 48 | } 49 | -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/cordova/CapacitorCordovaCookieManager.java: -------------------------------------------------------------------------------- 1 | package com.getcapacitor.cordova; 2 | 3 | import android.webkit.CookieManager; 4 | import android.webkit.WebView; 5 | import org.apache.cordova.ICordovaCookieManager; 6 | 7 | class CapacitorCordovaCookieManager implements ICordovaCookieManager { 8 | 9 | protected final WebView webView; 10 | private final CookieManager cookieManager; 11 | 12 | public CapacitorCordovaCookieManager(WebView webview) { 13 | webView = webview; 14 | cookieManager = CookieManager.getInstance(); 15 | cookieManager.setAcceptFileSchemeCookies(true); 16 | cookieManager.setAcceptThirdPartyCookies(webView, true); 17 | } 18 | 19 | public void setCookiesEnabled(boolean accept) { 20 | cookieManager.setAcceptCookie(accept); 21 | } 22 | 23 | public void setCookie(final String url, final String value) { 24 | cookieManager.setCookie(url, value); 25 | } 26 | 27 | public String getCookie(final String url) { 28 | return cookieManager.getCookie(url); 29 | } 30 | 31 | public void clearCookies() { 32 | cookieManager.removeAllCookie(); 33 | } 34 | 35 | public void flush() { 36 | cookieManager.flush(); 37 | } 38 | }; -------------------------------------------------------------------------------- /capacitor-mapbox/node_modules/@capacitor/ios/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUserAgentUtil.h: -------------------------------------------------------------------------------- 1 | /* 2 | Licensed to the Apache Software Foundation (ASF) under one 3 | or more contributor license agreements. See the NOTICE file 4 | distributed with this work for additional information 5 | regarding copyright ownership. The ASF licenses this file 6 | to you under the Apache License, Version 2.0 (the 7 | "License"); you may not use this file except in compliance 8 | with the License. You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, 13 | software distributed under the License is distributed on an 14 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | KIND, either express or implied. See the License for the 16 | specific language governing permissions and limitations 17 | under the License. 18 | */ 19 | 20 | #import 21 | 22 | @interface CDVUserAgentUtil : NSObject 23 | + (NSString*)originalUserAgent; 24 | + (void)acquireLock:(void (^)(NSInteger lockToken))block; 25 | + (void)releaseLock:(NSInteger*)lockToken; 26 | + (void)setUserAgent:(NSString*)value lockToken:(NSInteger)lockToken; 27 | @end 28 | --------------------------------------------------------------------------------