See it in action on an Android 2.2 (API 8) emulator :
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- WEAR APP DESCRIPTION --> | |
<meta-data android:name="com.google.android.wearable.beta.app" | |
android:resource="@xml/wear_desc"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
... | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.13.2' | |
} | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 21 | |
buildToolsVersion "21.0.1" | |
defaultConfig { | |
applicationId "com.octo.app" | |
minSdkVersion 18 | |
targetSdkVersion 21 | |
versionCode 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 21 | |
buildToolsVersion "21.0.1" | |
defaultConfig { | |
applicationId "com.octo.app" | |
minSdkVersion 20 | |
targetSdkVersion 21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> ./gradlew mobile:assembleRelease | |
:mobile:preBuild | |
:mobile:preReleaseBuild | |
... | |
:mobile:generateReleaseResValues UP-TO-DATE | |
:wear:preBuild | |
... | |
:wear:validateProductionSigning | |
:wear:packageRelease | |
:wear:zipalignRelease |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
... | |
productFlavors { | |
brandA { | |
applicationId "com.octo.app.a" | |
} | |
brandB { | |
applicationId "com.octo.app.b" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// wearApp project(':wear') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<wearableApp package="com.octo.app.a"> | |
<versionCode>1</versionCode> | |
<versionName>1.0</versionName> | |
<path>wear-brandA-release.apk</path> | |
</wearableApp> |
OlderNewer