Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

fix(live-server): update android platform path #1407

Merged
merged 1 commit into from
Apr 18, 2018

Conversation

itslenny
Copy link
Contributor

@itslenny itslenny commented Mar 17, 2018

Short description of what this resolves:

Native plugins do not work with the live server for users using Cordova 8. The current path in the config is valid for Cordova < 8. However, if you install ionic today following the directions on the site you get Cordova 8 by default and therefore the live server can't find cordova. Anything attempting to do native operations results in the error message: Cordova is not available. Make sure to include cordova.js or run in a device/simulator (running in emulator)

This has been broken since at least this 11/26/2016 Stack Overflow post

To maintain backward compatibility for Cordova 7 I've changed the platform path variables to arrays of strings and included both possible platform paths.

Changes proposed in this pull request:

  • Add support for searching multiple platform paths to express middleware
  • Add Cordova 8+ android platform path value in server config

Fixes:

@itslenny itslenny force-pushed the fixAndroidAssetPath branch from 0d64575 to b3ccde1 Compare March 18, 2018 03:57
@itslenny
Copy link
Contributor Author

After submitting this I found another PR attempting to address this, but it isn't backward compatible.

#1393

@imhoffd imhoffd merged commit 1591c81 into ionic-team:master Apr 18, 2018
@imhoffd
Copy link
Contributor

imhoffd commented Apr 18, 2018

Great work, @itslenny! This is exactly what we need.

@adityapurwa
Copy link

Awesome! I haven't had time to fix #1393 - And you've done it better as now its backward compatible, appreciate it, thanks!

trsrm added a commit to powwowinc/ionic-app-scripts-tiny that referenced this pull request Jan 2, 2019
3.1.9:
* fix(2889): fix build error with --prod
* fix(serve): start listening when watch is ready
* fix(live-server): update android platform path (ionic-team#1407)
* docs(changelog): 3.1.9

3.1.10:
* Update node-sass dependency (ionic-team#1435)
Updating node-sass dependency from 4.7.2 to 4.9.0 to make it works with node 10 on windows (build fail with ionic start)
* chore(package): bump deps (ionic-team#1421)
* chore(deps): no package lock
* chore(changelog): 3.1.10

3.1.11:
* fix(serve): fix EADDRINUSE issue with dev logger server
fixes ionic-team/ionic-cli#3368
fixes ionic-team/ionic-cli#1678
fixes ionic-team/ionic-cli#1830
fixes ionic-team/ionic-cli#1721
fixes ionic-team/ionic-cli#1866
fixes ionic-team/ionic-cli#1808
fixes ionic-team/ionic-cli#3022
* docs(changelog): 3.1.11 changes

3.2.0:
* feat(environments): configuration via process.env.VAR replacement (ionic-team#1471)
* fix(sass): remove PostCSS warning (ionic-team#1364)
This removes following warning:
Remove warning: Without `from` option PostCSS could generate wrong source map or do not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning
`from: the input file name (most runners set it automatically).`
Source: https://github.com/postcss/postcss
Fixes ionic-team#1359 #13763
ionic-team#1359
ionic-team/ionic-framework#13763
* fix(serve): use wss protocol for secure websocket when page is using https (ionic-team#1358)
* docs(changelog): 3.2.0

3.2.1:
* docs(readme): add note about existing declaration
addresses ionic-team/ionic-cli#3541
* chore(deps): update webpack to 3.12.0 (ionic-team#1477)
* chore(deps): bump node-sass to 4.9.3 to fix security warnings (ionic-team#1483)
* chore(deps): bump node-sass to 4.10.0 to fix security warnings (ionic-team#1493)
* docs(changelog): 3.2.1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants