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

Dead link on Setup-Development-Environment-Of-Crosswalk-Cordova-Android #118

Open
wants to merge 62 commits into
base: master
Choose a base branch
from

Commits on May 6, 2014

  1. Configuration menu
    Copy the full SHA
    6d40adf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ec8d08 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a70191a View commit details
    Browse the repository at this point in the history

Commits on May 8, 2014

  1. Configuration menu
    Copy the full SHA
    df53dbd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    568d3b5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    82bc714 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2014

  1. Change CordovaWebView to derive from XWalkView.

    The plain Cordova app is able to run.
    
    TODO:
    1. Plugin
    2. Unit testing
    huningxin authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    bc84521 View commit details
    Browse the repository at this point in the history
  2. Enable remote debugging.

    huningxin authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    0400bd1 View commit details
    Browse the repository at this point in the history
  3. Use XWalkSettings

    huningxin authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    54732fd View commit details
    Browse the repository at this point in the history
  4. Add Looper to the threat that plugin runs in.

    This fixes the issue that Geolocation plugin does not work.
    In XWalk, the thread which ExposedJsApi.exec() runs in does not contain
    a message loop. As android.location.LocationManager need a loop to
    process message, we have to prepare a Looper manually.
    gaochun authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    39eeb01 View commit details
    Browse the repository at this point in the history
  5. Fix file transfer plugin crash issue.

    The root cause is the File Transfer API implementation leverages the android.webkit.CookieManager.
    But trying to getinstance() of CookieManager before the webview isn't instantiated would cause crash.
    In the cordova with xwalk backend solution, there doesn't exist webview.
    
    According to android official document:
    http://developer.android.com/reference/android/webkit/CookieManager.html#getInstance%28%29
    We need to call "CookieSyncManager.createInstance(Context)" first.
    
    Known issue:
    This only fix crash issue, the cookie support is faking.
    Still need to bridge xwalk cookie manager with default android.webkit.CookieManager.
    
    BUG=https://github.com/otcshare/cordova-xwalk-android/issues/13
    junmin-zhu authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    188cac1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a2a8418 View commit details
    Browse the repository at this point in the history
  7. Hook activity life-cycle events to XWalkView handlers.

    It needs to hook activity life-cycle events (resume, pause, destory and
    on activityresult) to XWalkView handlers. Otherwise, it causes black screen
    when pause-resume cycles for apps.
    
    BUG=https://github.com/otcshare/cordova-xwalk-android/issues/55
    huningxin authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    dd36604 View commit details
    Browse the repository at this point in the history
  8. Enable the pause and resume timers based on XWalkView.

    Enable them since XWalkView has the APIs.
    huningxin authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    74c1b48 View commit details
    Browse the repository at this point in the history
  9. Add xwalk extension system to cordova-xwalk-android.

    Changes in this patch:
     1. Implement XWalkRuntimeViewProvider interface for CordovaWebView.
     2. Add a public class CordovaXWalkCoreExtensionBridge to provide the
        functionalities of friendly class XWalkCoreExtensionBridge.
    gaochun authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    5dcb4f1 View commit details
    Browse the repository at this point in the history
  10. Add xwalk_core_library to git ignore path

    Otherwise, buildbot will not pack it into tarball.
    Shiliu Wang authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    c7b8adf View commit details
    Browse the repository at this point in the history
  11. Add empty implementation for loadDataForTest in CordovaWebView

    Otherwise, build is blocked for abstract function not implemented.
    Shiliu Wang authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    7c2ff25 View commit details
    Browse the repository at this point in the history
  12. Implement the destroyExtension interface

    It is introduced in XWalkRuntimeViewProvider to destroy the native
    resources occupied by extension.
    Hongbo Min authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    944b2c4 View commit details
    Browse the repository at this point in the history
  13. Update the README.md according to Crosswalk dependency.

    huningxin authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    1aa16fb View commit details
    Browse the repository at this point in the history
  14. Use XWalkExtensionManager to reuse the extension system

    This is a refactor to remove unnecessary interfaces exposed by
    XWalkRuntimeViewProvider. Reusing XWalkExtensionManager is enough to
    integrate the extension system into cordova container.
    Hongbo Min authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    ac38189 View commit details
    Browse the repository at this point in the history
  15. Change the CordovaWebView's onGeolocationPermissionsShowPrompt to xwalk.

    XWalk adds the onGeolocationPermissionsShowPrompt support. Change the
    CordovaWebView's implemenation to that.
    huningxin authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    f369fb9 View commit details
    Browse the repository at this point in the history
  16. Bring back the CordovaWebView's WebBackForwardList related code.

    XWalk adds the copyBackForwardList/saveState/restoreState API support,
    and also adds WebBackForwardList and WebHistoryItem class.
    Change the CordovaWebView's implemenation to that.
    junmin-zhu authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    153df46 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    389d0ea View commit details
    Browse the repository at this point in the history
  18. Update the README.md

    It includes:
    1. update the project wiki URL.
    2. add the python 2.6 into the requires.
    huningxin authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    050dd98 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    2f91f89 View commit details
    Browse the repository at this point in the history
  20. Update the README.md according to the wiki link update.

    huningxin authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    8af9a6f View commit details
    Browse the repository at this point in the history
  21. Fix typo in readme

    rscohn2 authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    8271b24 View commit details
    Browse the repository at this point in the history
  22. Enable create script for cordova-xwalk container on Linux

    Now the "create" script will not compile a cordova.jar,
    insteadly, it will setup dependency for newly created
    project.
    
    Currently, the script will assume xwalk_core_library is
    placed aside of cordova-xwalk-android.
    
    TODO:
    1. if core library not found, the "create" script should
    download it.
    2. Enable create.bat script on Windows.
    
    Usage:
    Assumpt the working folder is at /home/me/cordova
    1. mkdir /home/me/cordova
    2. cd /home/me/cordova
    3. git clone ssh://[email protected]/otcshare/cordova-xwalk-android.git
    4. download xwalk_core_library.tar.gz from xwalk release and extract it at
       /home/me/cordova/xwalk_core_library.
       (If the build you pick doesn't include
        crosswalk-project/crosswalk#847, you need to
        manually update the build.xml in xwalk_core_library to work)
    5. cd cordova-xwalk-android
    6. ./bin/create ../hello your.package.name YourAppName
    7. cd ../hello
    8. ant release/debug
       (you probably need to create you keystore first for release)
    
    BUG=https://github.com/otcshare/cordova-xwalk-android/issues/19
    Shiliu Wang authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    8aab9fb View commit details
    Browse the repository at this point in the history
  23. Copy assets from xwalk core library to cordova app

    Android library project doesn't handle assets according to
    http://developer.android.com/tools/projects/index.html.
    
    BUG=Input tag crashes cordova app
    Shiliu Wang authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    826f060 View commit details
    Browse the repository at this point in the history
  24. Move the xwalk_core_library path into framework

    It aims to optimize the CLI workflow. It requires the buildbot copies the
    xwalk_core_library into framework when producing cordova.tar.gz.
    
    With these changes, CLI users will not download xwalk_core_library separately.
    huningxin authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    04d624e View commit details
    Browse the repository at this point in the history
  25. Execute android update with host supported target.

    It avoids to use unsupported target on developers' system.
    huningxin authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    b2180ec View commit details
    Browse the repository at this point in the history
  26. Fix the build issue due to HttpAuthHandler API change in XwalkCoreLib…

    …rary
    
    BUG=https://crosswalk-project.org/jira/browse/XWALK-760
    
    Conflicts:
    	framework/src/org/apache/cordova/CordovaWebViewClient.java
    huningxin authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    29925f3 View commit details
    Browse the repository at this point in the history
  27. Temporarily to remove the APIs missing in the XWalk.

    Will bring it back when it's ready.
    junmin-zhu authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    d307a3f View commit details
    Browse the repository at this point in the history
  28. 1. Don't need to update the xwalk_core_library project second times.

    2. Copy the xwalk_core_library to target application
       that it's built with non shared mode.
    junmin-zhu authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    97a99a9 View commit details
    Browse the repository at this point in the history
  29. Modify the CordovaXWalkCoreExtensionBridge API due to the change of

    XWalkCoreExtensionBridge API in XWalk.
    junmin-zhu authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    c937c59 View commit details
    Browse the repository at this point in the history
  30. Run android update in framework

    Otherwise, build will fail due to no sdk_dir defined in local.properties.
    Shiliu Wang authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    fba479d View commit details
    Browse the repository at this point in the history
  31. Remove duplicate configurarion in the .classpath.

    junmin-zhu authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    dc8d83e View commit details
    Browse the repository at this point in the history
  32. Temporarily disable 5 unit test cases for Cordova xwalk

     container. Will fix these cases one by one.
    
     1. testViaHref
     2. testWebViewWhiteListRejection
     3. testWebViewRequestIntercept
     4. testUrl
     5. testOnscrollChanged.
    junmin-zhu authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    e8c942e View commit details
    Browse the repository at this point in the history
  33. Because testOnScrollChanged test case depends on third party library

    "robotium", which heavily relys on the Android WebView.
    So disable it for XWalkView.
    junmin-zhu authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    583a418 View commit details
    Browse the repository at this point in the history
  34. Fix testUrl test case failed issue.

    Add ErrorCodeConvertor for XWalk backend, because its error code is
    different with Cordova error code.
    junmin-zhu authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    2d2b62d View commit details
    Browse the repository at this point in the history
  35. Fix that CordovaChromeClient misses all the implementation in xwalk

    The implementation in xwalk is in XWalkDefaultWebChromeClient, however
    CordovaChromeClient extends XWalkWebChromeClient which barely has
    real implementation. That causes many features missing in cordova
    container.
    
    BUG=https://crosswalk-project.org/jira/browse/XWALK-954
    Shiliu Wang authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    699e007 View commit details
    Browse the repository at this point in the history
  36. Exit fullscreen mode first when back key pressed

    In fullscreen mode, back key is used to exit fullscreen
    prior to navigation.
    The overall back key handling priority is:
    1. Exit fullscreen
    2. Exit video
    3. Let JS handle
    4. Go backward
    5. Finish activity.
    Shiliu Wang authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    3ff4ff9 View commit details
    Browse the repository at this point in the history
  37. Fix that onNewIntent in CordovaWebView should return boolean as in XW…

    …alkView
    
    onNewIntent in XWalkView is introduced by Notification API, it needs
    return boolean to identify the intent is consumed or not.
    
    BUG=https://crosswalk-project.org/jira/browse/XWALK-1072
    Shiliu Wang authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    21f83ba View commit details
    Browse the repository at this point in the history
  38. Refactor the usage after the changes of extension mechanism in core l…

    …ibrary.
    
    Crosswalk core library is changed and the extension mechanism/implementation
    now is inside of core library. No need to call extension manager anymore.
    
    Besides, onPause/onResume/onDestroy functions are called in CordovaWebView.
    It's because we don't only pause/resume timers but also need to pause/resume
    video playback, popup dialog and others. All of these are handled in above
    functions.
    Yongsheng Zhu authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    c39e563 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    b57f49c View commit details
    Browse the repository at this point in the history
  40. Remove copy asset step from create script

    It's not needed anymore, assets from xwalk_core_library
    have been moved to res/raw.
    Shiliu Wang authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    e83c0b2 View commit details
    Browse the repository at this point in the history
  41. Fix the build error due to the rename of package name.

    XWalkDefaultWebChromeClient is moved from org.xwalk.core.client to
    org.xwalk.core. Change the package name in Cordova as well.
    
    BUG=https://crosswalk-project.org/jira/browse/XWALK-1227
    Yongsheng Zhu authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    efcc310 View commit details
    Browse the repository at this point in the history
  42. Fix the compile error caused by the change of onReceivedSslError.

    The parameters of XWalkClient.onReceivedSslError are changed due to
    a new fix. Change it as well here to pass the compilation.
    
    BUG=https://crosswalk-project.org/jira/browse/XWALK-1287
    Yongsheng Zhu authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    4b45a47 View commit details
    Browse the repository at this point in the history
  43. Remove unused import for SSL error handler.

    SSLErrorHandler was removed in crosswalk so there is no need to
    import it in Cordova.
    
    BUG=https://crosswalk-project.org/jira/browse/XWALK-1287
    Yongsheng Zhu authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    f1f6255 View commit details
    Browse the repository at this point in the history
  44. Refactor Cordova container to use the new API defined in Crosswalk.

    Crosswalk defines the new embedding API which is public to external users.
    Migrate Cordova container to use the new API. Due to some legacy issues,
    there are still some remaining dependencies in Cordova on Crosswalk internal
    classes, including XWalkSettings, XWalkClient, XWalkWebChromeClient and
    XWalkHttpAuthHandler.
    Next is to figure out how to remove above dependencies.
    
    BUG=https://crosswalk-project.org/jira/browse/XWALK-1375
    Yongsheng Zhu authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    b2f0a8e View commit details
    Browse the repository at this point in the history
  45. Don't use two classes XWalkUIClientImpl and XWalkResourceClientImpl.

    Both 2 classes are removed out of Crosswalk core library. Use
    the public classes XWalkUIClient and XWalkResourceClient.
    
    BUG=https://crosswalk-project.org/jira/browse/XWALK-1481
    Yongsheng Zhu authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    2b62207 View commit details
    Browse the repository at this point in the history
  46. Add two network related permissions to AndroidManifest.xml

    XWalk Core library will auto detect network status, and below two permissions are needed:
      android.permission.ACCESS_NETWORK_STATE
      android.permission.ACCESS_WIFI_STATE
    Add these two permissions to AndroidManifest.xml
    
    BUG=XWALK-1480
    kurli authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    f13617c View commit details
    Browse the repository at this point in the history
  47. Workaround the xwalk_core_library R.java missing issue.

    The root cause is when using custom_rules.xml, R.java of
    xwalk_core_library is not generated.
    
    TODO: need to discuss with upstream when integrating Crosswalk
    huningxin authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    a33426a View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    fa2530f View commit details
    Browse the repository at this point in the history
  49. Fix XWALK-1615 Cordova API test fails due to no JavaScript API exposed

    Update the ExposedJsApi according to annotation of
    XWalkView.addJavascriptInterface().
    See https://crosswalk-project.org/jira/browse/XWALK-1596 for details.
    
    BUG=https://crosswalk-project.org/jira/browse/XWALK-1615
    huningxin authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    e768be0 View commit details
    Browse the repository at this point in the history
  50. Fix that cordova activity uses XWalk API with null pointer check

    In some cases, XWalkView will fail to initialize, e.g. CPU
    architecture mismatch detected. Need to check null pointer
    to keep Cordova App from crash in such case.
    
    BUG=https://crosswalk-project.org/jira/browse/XWALK-1616
    Shiliu Wang authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    6fe0e77 View commit details
    Browse the repository at this point in the history
  51. Change layout of splash dialog when orientation changed

    Developer will provide two splash screen images for landscape and portrait mode.
    Currently it will auto stretch the splash screen layout when orientation changed.
    This fix can change the layout as developer needed for different orientations.
    
    BUG=XWALK-1810
    kurli authored and gaochun committed Jun 6, 2014
    Configuration menu
    Copy the full SHA
    2bc2599 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2014

  1. Configuration menu
    Copy the full SHA
    0e52381 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2014

  1. Merge pull request crosswalk-project#114 from gaochun/next

    Rebase crosswalk Cordova container to 3.5.0.
    huningxin committed Jun 9, 2014
    Configuration menu
    Copy the full SHA
    17d25ab View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2014

  1. Fix onPageStarted/Finished never called in subclass of CordovaWebView…

    …Client
    
    onPageStarted/Finished are methods of XWalkClient which is internal class.
    For subclass of CordovaWebViewClient usage, We need to route them out.
    
    BUG=https://crosswalk-project.org/jira/browse/XWALK-1882
    huningxin committed Jun 12, 2014
    Configuration menu
    Copy the full SHA
    18e03fc View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2014

  1. Merge pull request crosswalk-project#116 from huningxin/fix_onpagesta…

    …rted
    
    Fix onPageStarted/Finished never called in subclass of CordovaWebViewCl...
    huningxin committed Jun 13, 2014
    Configuration menu
    Copy the full SHA
    c761501 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2014

  1. Configuration menu
    Copy the full SHA
    dd93498 View commit details
    Browse the repository at this point in the history