- wear: Compose for Wear UI, polls api.anthropic.com, shows 5h/7d utilization - mobile: companion app — token input + Data Layer API + WiFi ADB install - ADB pairing via libadb-android (SPAKE2 + TLS), pm install on watch - Build: AGP 8.7.3, Gradle 8.13, Kotlin 1.9.22, compileSdk 35
41 lines
1.4 KiB
XML
41 lines
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<uses-feature android:name="android.hardware.type.watch" />
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
|
|
<application
|
|
android:label="Claude Meter"
|
|
android:theme="@android:style/Theme.DeviceDefault"
|
|
android:supportsRtl="true">
|
|
|
|
<uses-library
|
|
android:name="com.google.android.wearable"
|
|
android:required="false" />
|
|
|
|
<meta-data
|
|
android:name="com.google.android.wearable.standalone"
|
|
android:value="true" />
|
|
|
|
<activity
|
|
android:name=".MainActivity"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<!-- Ловит "/token" с телефона даже когда app закрыто -->
|
|
<service
|
|
android:name=".TokenReceiverService"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="com.google.android.gms.wearable.DATA_CHANGED" />
|
|
<data android:scheme="wear" android:host="*" android:path="/token" />
|
|
</intent-filter>
|
|
</service>
|
|
</application>
|
|
|
|
</manifest>
|