Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 2.56 KB

Publish.md

File metadata and controls

53 lines (36 loc) · 2.56 KB

Step 5: Publish

In your project's platforms directory, you have two complete native projects: one for Android, and one for iOS. You can build release versions of these projects and publish them to Google Play or to the iOS App Store.

Publish to the Play Store

To publish your Android application to the Play Store:

  1. Ensure that your app details are set.

    • android:versionName is set using the version key in www/manifest.json.
      • This also sets the version of your desktop packaged app.
    • android:versionCode can be set using the versionCode key in www/manifest.mobile.js.
      • If omitted, versionCode will default to major * 10000 + minor * 100 + rev (assuming version looks like "major.minor.rev")
  2. Generate a keystore and key pair (as explained in the Android developer docs).

    cca exec keytool -genkey -v -keystore FILENAME.keystore -alias YOUR_PETS_NAME -keyalg RSA -keysize 2048 -validity 10000
    
  • Create a password when prompted
  • Note: the "cca exec" prefix is required only if keytool is not already available on your PATH
  1. Put the following settings into a file called android-release-keys.properties at the root of your project (as a sibling to www/):

    storeFile=FILENAME.keystore
    storePassword=YOUR_STORE_PASSWORD
    keyAlias=YOUR_PETS_NAME
    keyPassword=YOUR_KEY_PASSWORD
    
    • Note: storePassword and keyPassword are optional. If omitted, you will be prompted for them when building.
  2. Build your project:

    cca build android --release
    
  3. Find your signed .apk(s) at platforms/android/out/*-release.apk.

  4. Upload your signed application to the Google Play developer console.

Publish to the iOS App Store

  1. Update the app version by setting the CFBundleVersion key in www/manifest.mobile.js. If not explicitly set, CFBundleVersion will default to the same value as version. If version contains a dash, only the part before the dash will be used for CFBundleVersion.

  2. Run cca prepare.

  3. Open the Xcode project file found under your platforms/ios directory:

    open platforms/ios/*.xcodeproj

  4. Follow Apple's App Distribution Guide.