@kano/kit-app-shell-android
Android support for kit-app projects
Last updated 9 months ago by rpazdera .
MIT · Original npm · Tarball · package.json
$ cnpm install @kano/kit-app-shell-android 
SYNC missed versions from official npm registry.

KASH android

Android support for kit-app projects

Installation

yarn global add @kano/kit-app-shell-android

Usage

Create a project following the guide at @kano/kit-app-shell-core. Then run

kash run android ./

This will create an android application from your project, install it on a connected android device and launch the application. This application linked to your local sources. Your files are watched and the application will refresh on changes.

kash build android ./

This will create an .apk with your application, transpiled and compressed.

Options

In your project's kash-config file, you can configure the android build as follow:

/**
 * @type {import('@kano/kit-app-shell-core/types').KashConfig}
 */
module.exports = {
    android: {
        minSdkVersion: 21,
        maxSdkVersion: 28,
        preferences: {
            // Here drop cordova preferences for your project. See https://cordova.apache.org/docs/en/latest/config_ref/#preference
        },
        supportsScreens: {
            anyDensity: true,
            smallScreens: false,
            normalScreens: false,
            largeScreens: true,
            xlargeScreens: true,
        },
    },
};

In your project's config (config/*.json), you can add:

{
    "ICONS": {
        "ANDROID": "assets/app/android/icon.png"
    },
    "SPLASHSCREENS": {
        "ANDROID": "assets/app/android/screen.png"
    }
}

The icon will be used to generate all the necessary icons for an android project, so make sure it is at least 512x512, same thing goes for the splashcreen, it will be cropped to fit the screens. To support landsapce and portrait orientations, provide a large square splashcreen.

TODO:

Current Tags

  • 0.0.3-alpha.88                                ...           latest (9 months ago)

50 Versions

  • 0.0.3-alpha.88                                ...           9 months ago
  • 0.0.3-alpha.82                                ...           a year ago
  • 0.0.3-alpha.80                                ...           a year ago
  • 0.0.3-alpha.77                                ...           a year ago
  • 0.0.3-alpha.73                                ...           a year ago
  • 0.0.3-alpha.72                                ...           a year ago
  • 0.0.3-alpha.67                                ...           a year ago
  • 0.0.3-alpha.66                                ...           a year ago
  • 0.0.3-alpha.64                                ...           a year ago
  • 0.0.3-alpha.61                                ...           a year ago
  • 0.0.3-alpha.58                                ...           a year ago
  • 0.0.3-alpha.57                                ...           a year ago
  • 0.0.3-alpha.56                                ...           a year ago
  • 0.0.3-alpha.52                                ...           a year ago
  • 0.0.3-alpha.50                                ...           a year ago
  • 0.0.3-alpha.49                                ...           a year ago
  • 0.0.3-alpha.48                                ...           a year ago
  • 0.0.3-alpha.44                                ...           a year ago
  • 0.0.3-alpha.43                                ...           a year ago
  • 0.0.3-alpha.42                                ...           a year ago
  • 0.0.3-alpha.41                                ...           a year ago
  • 0.0.3-alpha.40                                ...           a year ago
  • 0.0.3-alpha.38                                ...           a year ago
  • 0.0.3-alpha.36                                ...           a year ago
  • 0.0.3-alpha.35                                ...           a year ago
  • 0.0.3-alpha.33                                ...           a year ago
  • 0.0.3-alpha.32                                ...           a year ago
  • 0.0.3-alpha.31                                ...           a year ago
  • 0.0.3-alpha.28                                ...           a year ago
  • 0.0.3-aplha.22                                ...           2 years ago
  • 0.0.3-alpha.19                                ...           2 years ago
  • 0.0.3-alpha.17                                ...           2 years ago
  • 0.0.3-alpha.16                                ...           2 years ago
  • 0.0.3-alpha.14                                ...           2 years ago
  • 0.0.3-alpha.13                                ...           2 years ago
  • 0.0.3-alpha.12                                ...           2 years ago
  • 0.0.3-alpha.11                                ...           2 years ago
  • 0.0.3-alpha.10                                ...           2 years ago
  • 0.0.3-alpha.9                                ...           2 years ago
  • 0.0.3-alpha.8                                ...           2 years ago
  • 0.0.3-alpha.7                                ...           2 years ago
  • 0.0.3-alpha.6                                ...           2 years ago
  • 0.0.3-alpha.5                                ...           2 years ago
  • 0.0.3-alpha.4                                ...           2 years ago
  • 0.0.3-alpha.3                                ...           2 years ago
  • 0.0.3-alpha.2                                ...           2 years ago
  • 0.0.3-alpha.1                                ...           2 years ago
  • 0.0.3-alpha.0                                ...           2 years ago
  • 0.0.2-alpha.2                                ...           2 years ago
  • 0.0.2-alpha.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (8)
Dev Dependencies (6)

Copyright 2014 - 2016 © taobao.org |