···33 * License, v. 2.0. If a copy of the MPL was not distributed with this
44 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
55 */
66-package com.example.util.simpletimetracker.wear
66+package com.example.util.simpletimetracker.feature_wear
7788import com.example.util.simpletimetracker.domain.interactor.PrefsInteractor
99import com.example.util.simpletimetracker.domain.interactor.RecordTagInteractor
···33 * License, v. 2.0. If a copy of the MPL was not distributed with this
44 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
55 */
66-package com.example.util.simpletimetracker.wear
66+package com.example.util.simpletimetracker.feature_wear
7788import com.example.util.simpletimetracker.domain.interactor.PrefsInteractor
99import com.example.util.simpletimetracker.domain.interactor.RecordTagInteractor
···11+<?xml version="1.0" encoding="utf-8"?>
22+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33+ xmlns:tools="http://schemas.android.com/tools">
44+55+ <!--
66+ ExportedService suppressed because WearableListenerService has internal check
77+ that request came from google play service and not some other app
88+ -->
99+ <application>
1010+ <service
1111+ android:name=".WearService"
1212+ android:exported="true"
1313+ tools:ignore="ExportedService">
1414+ <intent-filter>
1515+ <action android:name="com.google.android.gms.wearable.REQUEST_RECEIVED" />
1616+ <data
1717+ android:host="*"
1818+ android:pathPrefix="/stt"
1919+ android:scheme="wear" />
2020+ </intent-filter>
2121+ </service>
2222+ </application>
2323+</manifest>
+3-1
wearrpc/build.gradle.kts
···11+import com.example.util.simpletimetracker.Base
22+13/*
24 * This Source Code Form is subject to the terms of the Mozilla Public
35 * License, v. 2.0. If a copy of the MPL was not distributed with this
···1315 compileSdk = 34
14161517 defaultConfig {
1616- minSdk = 26
1818+ minSdk = Base.minSDK
17191820 testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1921 consumerProguardFiles("consumer-rules.pro")
wearrpc/consumer-rules.pro
This is a binary file and will not be displayed.
-21
wearrpc/proguard-rules.pro
···11-# Add project specific ProGuard rules here.
22-# You can control the set of applied configuration files using the
33-# proguardFiles setting in build.gradle.
44-#
55-# For more details, see
66-# http://developer.android.com/guide/developing/tools/proguard.html
77-88-# If your project uses WebView with JS, uncomment the following
99-# and specify the fully qualified class name to the JavaScript interface
1010-# class:
1111-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
1212-# public *;
1313-#}
1414-1515-# Uncomment this to preserve the line number information for
1616-# debugging stack traces.
1717-#-keepattributes SourceFile,LineNumberTable
1818-1919-# If you keep the line number information, uncomment this to
2020-# hide the original source file name.
2121-#-renamesourcefileattribute SourceFile
···11-/*
22- * This Source Code Form is subject to the terms of the Mozilla Public
33- * License, v. 2.0. If a copy of the MPL was not distributed with this
44- * file, You can obtain one at https://mozilla.org/MPL/2.0/.
55- */
66-package com.example.util.simpletimetracker.wearrpc
77-88-import androidx.test.platform.app.InstrumentationRegistry
99-import androidx.test.ext.junit.runners.AndroidJUnit4
1010-1111-import org.junit.Test
1212-import org.junit.runner.RunWith
1313-1414-import org.junit.Assert.*
1515-1616-/**
1717- * Instrumented test, which will execute on an Android device.
1818- *
1919- * See [testing documentation](http://d.android.com/tools/testing).
2020- */
2121-@RunWith(AndroidJUnit4::class)
2222-class ExampleInstrumentedTest {
2323- @Test
2424- fun useAppContext() {
2525- // Context of the app under test.
2626- val appContext = InstrumentationRegistry.getInstrumentation().targetContext
2727- assertEquals("com.example.util.simpletimetracker.wearrpc.test", appContext.packageName)
2828- }
2929-}