Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Obsolete] Add Android Export feature #545

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

Commits on Sep 3, 2017

  1. Add Android Export Handler

    - exportAndroid handler which initializes new Cordova project
    
    Add a new handler, `exportAndroid`. This takes the source as a
    parameter, and performs the same steps that the compile route performs,
    and calls `compileIfNeeded`.
    
    After compilation, the `initCordovaProject` function is invoked, which
    merely creates a stub cordova project, by making a subprocess call to
    the `cordova` executable. At this commit, it does not build the project.
    venkat24 committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    4665c67 View commit details
    Browse the repository at this point in the history
  2. Implement android builds and include assets

    - Create `android-resources` directory that holds app assets
    - Initialize `android-template` for using as a base for app builds
    - Handler copies compiled `js` files into template and invokes `cordova`
    
    A template directory is initialized with `cordova create` and assets
    are copied in from `android-resources`. Includes main view HTML, CSS,
    and App Icons.
    
    The handler clones the template directory to `data/<mode>/android/` and
    copies in the `js` files from the compilation step. `cordova build` is
    invoked and the generated `.apk` file is fetched as a binary blob and
    downloaded.
    venkat24 committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    8ce2284 View commit details
    Browse the repository at this point in the history
  3. Modify build scripts to install Cordova

    - Add Cordova and JDK installation to install.sh
    - Build Android template project building
    - Set android build tools paths in base.sh
    
    List of Dependencies for Android Exports -
    - Cordova >= 6.2.2
    - Android Build Tools
    - Android SDK >= 19
    - Gradle >= 3.4
    - All executables in path and $ANROID_HOME set
    venkat24 committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    9936c65 View commit details
    Browse the repository at this point in the history
  4. Allow user to set App Name

    - Add XML Parser TagSoup to set the App Name in `config.xml`
    - Add UI components to receive App Name input
    venkat24 committed Sep 3, 2017
    Configuration menu
    Copy the full SHA
    59ee7ab View commit details
    Browse the repository at this point in the history