Skip to main content

Android Wear Platform

Overview

  • Latest Android project
  • Kotlin Support
  • Support for Gradle 4.9

File Extension Support

Extenstions are defined via engines. Engines with androidwear support:

Requirements

Project Configuration

FeatureVersion
Gradle4.10.1
Android Gradle3.3.1
Kotlin1.3.20
Target SDK27

Run on Simulator

rnv run -p androidwear

Run on Device

rnv run -p androidwear -d

Deploy on Device

This will run production version on your device (not connected to metro bundler) You can configure each buildScheme ie -s release in your config file ./appConfigs/<YOUR_APP_CONFIG>/renative.json

rnv run -p androidwear -s release -d

Android X support

androidX is enabled by default

make sure you have this piece of script in package.json

"scripts" : {
"postinstall": "jetify"
}

Hermes support

Hermes can be enabled or disabled with "reactNativeEngine": "hermes" prop in renative.json:platforms.android.reactNativeEngine or renative.json:platforms.android.buildSchemes.[SCHEME].reactNativeEngine

NOTE: There is a bug in RN. for now you must NOT have running bundler ($ rnv start) in order for wear sim to work

Advanced

Clean and Re-build platform project

rnv run -p androidwear -r

Launch specific emulator:

rnv target launch -p androidwear -t Android_Wear_Round_API_28

Android X support

androidX is enabled by default

make sure you have this piece of script in package.json

"scripts" : {
"postinstall": "jetify"
}

Hermes support

Hermes can be enabled or disabled with "reactNativeEngine": "hermes" prop in renative.json:platforms.android.reactNativeEngine or renative.json:platforms.android.buildSchemes.[SCHEME].reactNativeEngine

App Config

see: Android based config