Merge "docs: fix wear packaging for paid apps instructions" into klp-modular-dev
This commit is contained in:
@@ -102,22 +102,23 @@ if you are using another IDE or another method of building.
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ol>
|
<ol>
|
||||||
<li>Copy the signed wearable app into your handheld project's <code>assets/</code> directory,
|
<li>Copy the signed wearable app to your handheld project's <code>res/raw</code> directory. We'll
|
||||||
referred to as <code>path/to/wearable_app.apk</code>.</li>
|
refer to the APK as <code>wearable_app.apk</code>.</li>
|
||||||
<li>Create a <code>res/xml/wearable_app_desc.xml</code> file that contains the version and
|
<li>Create a <code>res/xml/wearable_app_desc.xml</code> file that contains the version and
|
||||||
path information of the wearable app:
|
path information of the wearable app:
|
||||||
<pre>
|
<pre>
|
||||||
<wearableApp package="com.google.android.wearable.myapp">
|
<wearableApp package="com.google.android.wearable.myapp">
|
||||||
<versionCode>1</versionCode>
|
<versionCode>1</versionCode>
|
||||||
<versionName>1.0</versionName>
|
<versionName>1.0</versionName>
|
||||||
<path>path/to/wearable_app.apk</path>
|
<rawPathResId>wearable_app</rawPathResId> <!-- Do not include the .apk extension -->
|
||||||
</wearableApp>
|
</wearableApp>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The <code>package</code>, <code>versionCode</code>, and <code>versionName</code> are the
|
The <code>package</code>, <code>versionCode</code>, and <code>versionName</code> are the
|
||||||
same as values specified in the wearable app's <code>AndroidManifest.xml</code> file.
|
same values specified in the wearable app's <code>AndroidManifest.xml</code> file.
|
||||||
The path is the full path of <code>wearable_app.apk</code>, relative to the <code>assets/</code>
|
The <code>rawPathResId</code> is the static variable name of the APK resource. For example,
|
||||||
directory.
|
for <code>wearable_app.apk</code>, the static variable name is <code>wearable_app</code>.
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
Reference in New Issue
Block a user