Prepare to publish wearable

The steps for me for Wear 1.x (for which wear module must be inside handheld module) were the following.

  1. Ensure both handheld and wearable modules had same permissions and package names in their manifest files.
  2. Ensure both modules had the same version number in their build.gradle files.
  3. Ensure build.gradle of handheld module includes ‘wearApp project(‘:wearable’)’ within dependencies clause.
  4. Click Build, Generate Signed APK and select handheld module. Enter release key (see separate post).
  5. Publish handheld apk, which should contain wearable apk.

To publish Wear 2.0 wear app (which can be independent or semi-independent of handheld app) I did the following.

  1. Ensured all references to API level in wear modules build file were to 25, followed by sync and any prompted updates to support files.
  2. Add standalone meta data entry to wear manifest (see below).
  3. Click Build, Generate Signed APK and select wear module. Enter release key (see separate post).
  4. Publish wear apk. [This is currently being tested. Will update soon]
<meta-data
android:name="com.google.android.wearable.standalone"
android:value="true" />

 

This entry was posted in Android. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *