Giter VIP home page Giter VIP logo

ian's Introduction

ian

Android specific building

First, you need to setup a keystore. Inside the keystore, you can put your private keys that you need to sign the app with.

To create a keystore and a key, you can use this command to create a RSA key with 2048 bits and a validity of 10000 days:

keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

Config

You can add a config.json file in the root of the project to easily update the texts from a spreadsheet and have a easy way to sign your Android app.

Settings for the keystore / key for Android

When setting up the config.json, you can add a key object for Android specific signing. If you use a relative path to the store, don't forget that it starts in the directory ${PROJECT_DIR}/platforms/android/.

Settings for the random texts

There are three settings that need to be set for the texts.

  1. outputJson - In our case, this should always be src/js/texts.json. It will overwrite the existing texts with the new ones it reads from Google Spreadsheets.
  2. sheetId - The spreadsheet id.
  3. workheetIds - An array of the worksheets to use from the Google Spreadsheet.

It is crucial that the spreadsheet is shared for everyone. Otherwise the gulp texts task won't be able to download.

Full example

Here is a full example for a config.json:

{
  "key" : {
    "store" : "../../my-release-key.keystore",
    "storePassword" : "password-for-store",
    "alias" : "alias_name",
    "aliasPassword" : "password-for-key"
  },
  "outputJson" : "src/js/texts.json",
  "sheetId" : "1TmeO6jsf53wrvAbGfN0UrQn7Ycn3G7lNMffVvuBbXTg",
  "worksheetIds" : [
    "0"
  ]
}

ian's People

Contributors

mchunkytrunk avatar

Watchers

 avatar  avatar  avatar

Forkers

sitedata

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.