A fork of Simple Time Tracker with WearOS support. (Now integrated upstream)
0

Configure Feed

Select the types of activity you want to include in your feed.

use same app name and launcher icon for wear and main app

razeeman (Mar 2, 2024, 7:54 AM +0300) f16c5a95 ec9d01fe

+65 -85
+1 -1
wear/build.gradle.kts
··· 26 26 } 27 27 28 28 buildTypes { 29 - getByName("debug") { 29 + debug { 30 30 applicationIdSuffix = ".debug" 31 31 } 32 32 release {
-21
wear/proguard-rules.pro
··· 1 - # Add project specific ProGuard rules here. 2 - # You can control the set of applied configuration files using the 3 - # proguardFiles setting in build.gradle.kts. 4 - # 5 - # For more details, see 6 - # http://developer.android.com/guide/developing/tools/proguard.html 7 - 8 - # If your project uses WebView with JS, uncomment the following 9 - # and specify the fully qualified class name to the JavaScript interface 10 - # class: 11 - #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 - # public *; 13 - #} 14 - 15 - # Uncomment this to preserve the line number information for 16 - # debugging stack traces. 17 - #-keepattributes SourceFile,LineNumberTable 18 - 19 - # If you keep the line number information, uncomment this to 20 - # hide the original source file name. 21 - #-renamesourcefileattribute SourceFile
+1 -1
wear/src/main/AndroidManifest.xml
··· 26 26 <activity 27 27 android:name=".presentation.MainActivity" 28 28 android:exported="true" 29 - android:label="@string/app_name" 30 29 android:theme="@android:style/Theme.DeviceDefault"> 31 30 <intent-filter> 32 31 <action android:name="android.intent.action.MAIN" /> ··· 34 33 <category android:name="android.intent.category.LAUNCHER" /> 35 34 </intent-filter> 36 35 </activity> 36 + 37 37 </application> 38 38 39 39 </manifest>
-3
app/src/debug/res/values/strings.xml
··· 1 - <resources> 2 - <string name="app_name" translatable="false">Debug Simple Time Tracker</string> 3 - </resources>
-26
app/src/main/res/drawable/ic_launcher_monochrome.xml
··· 1 - <vector xmlns:android="http://schemas.android.com/apk/res/android" 2 - android:width="24dp" 3 - android:height="24dp" 4 - android:viewportWidth="24" 5 - android:viewportHeight="24"> 6 - <path 7 - android:pathData="M2.914,6.277L7.047,2.723L8.301,4.184L4.168,7.738ZM2.914,6.277" 8 - android:fillColor="#FFFFFF" 9 - android:fillType="nonZero" 10 - android:strokeColor="#00000000"/> 11 - <path 12 - android:pathData="M16.91,2.73L21.004,6.332L19.734,7.777L15.641,4.176ZM16.91,2.73" 13 - android:fillColor="#FFFFFF" 14 - android:fillType="nonZero" 15 - android:strokeColor="#00000000"/> 16 - <path 17 - android:pathData="M11.977,4.742C7.496,4.742 3.867,8.375 3.867,12.855C3.867,17.336 7.496,20.969 11.977,20.969C16.457,20.969 20.09,17.336 20.09,12.855C20.09,8.375 16.457,4.742 11.977,4.742ZM11.977,6.574C15.449,6.574 18.262,9.387 18.262,12.855C18.262,16.324 15.449,19.137 11.977,19.137C8.508,19.137 5.695,16.324 5.695,12.855C5.695,9.387 8.508,6.574 11.977,6.574ZM11.977,6.574" 18 - android:fillColor="#FFFFFF" 19 - android:fillType="nonZero" 20 - android:strokeColor="#00000000"/> 21 - <path 22 - android:pathData="M7.766,13.254L10.617,16.16L16.047,10.742L15.047,9.73L10.66,14.195L8.691,12.313ZM7.766,13.254" 23 - android:fillColor="#FFFFFF" 24 - android:fillType="nonZero" 25 - android:strokeColor="#00000000"/> 26 - </vector>
-10
app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
··· 1 - <?xml version="1.0" encoding="utf-8"?> 2 - <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> 3 - <background android:drawable="@color/colorPrimary"/> 4 - <foreground android:drawable="@mipmap/ic_launcher_foreground"/> 5 - <monochrome> 6 - <inset 7 - android:inset="20%" 8 - android:drawable="@drawable/ic_launcher_monochrome" /> 9 - </monochrome> 10 - </adaptive-icon>
app/src/main/res/mipmap-hdpi/ic_launcher.webp

This is a binary file and will not be displayed.

app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp

This is a binary file and will not be displayed.

app/src/main/res/mipmap-mdpi/ic_launcher.webp

This is a binary file and will not be displayed.

app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp

This is a binary file and will not be displayed.

app/src/main/res/mipmap-xhdpi/ic_launcher.webp

This is a binary file and will not be displayed.

app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp

This is a binary file and will not be displayed.

app/src/main/res/mipmap-xxhdpi/ic_launcher.webp

This is a binary file and will not be displayed.

app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp

This is a binary file and will not be displayed.

app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp

This is a binary file and will not be displayed.

app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp

This is a binary file and will not be displayed.

-3
app/src/main/res/values/strings.xml
··· 1 - <resources> 2 - <string name="app_name" translatable="false">Simple Time Tracker</string> 3 - </resources>
-15
app/src/main/res/values/wear.xml
··· 1 - <?xml version="1.0" encoding="utf-8"?> 2 - <!-- This Source Code Form is subject to the terms of the Mozilla Public 3 - - License, v. 2.0. If a copy of the MPL was not distributed with this 4 - - file, You can obtain one at https://mozilla.org/MPL/2.0/. --> 5 - <resources xmlns:tools="http://schemas.android.com/tools" 6 - tools:keep="@array/android_wear_capabilities"> 7 - <string-array name="android_wear_capabilities"> 8 - <item>/stt//GET/ping</item> 9 - <item>/stt//GET/activities</item> 10 - <item>/stt//GET/activities/current</item> 11 - <item>/stt//PUT/activities/current</item> 12 - <item>/stt//GET/activities/:ID/tags</item> 13 - <item>/stt//GET/settings</item> 14 - </string-array> 15 - </resources>
+3
resources/src/debug/res/values/app_name.xml
··· 1 + <resources> 2 + <string name="app_name" translatable="false">Debug Simple Time Tracker</string> 3 + </resources>
+26
resources/src/main/res/drawable/app_ic_launcher_monochrome.xml
··· 1 + <vector xmlns:android="http://schemas.android.com/apk/res/android" 2 + android:width="24dp" 3 + android:height="24dp" 4 + android:viewportWidth="24" 5 + android:viewportHeight="24"> 6 + <path 7 + android:pathData="M2.914,6.277L7.047,2.723L8.301,4.184L4.168,7.738ZM2.914,6.277" 8 + android:fillColor="#FFFFFF" 9 + android:fillType="nonZero" 10 + android:strokeColor="#00000000"/> 11 + <path 12 + android:pathData="M16.91,2.73L21.004,6.332L19.734,7.777L15.641,4.176ZM16.91,2.73" 13 + android:fillColor="#FFFFFF" 14 + android:fillType="nonZero" 15 + android:strokeColor="#00000000"/> 16 + <path 17 + android:pathData="M11.977,4.742C7.496,4.742 3.867,8.375 3.867,12.855C3.867,17.336 7.496,20.969 11.977,20.969C16.457,20.969 20.09,17.336 20.09,12.855C20.09,8.375 16.457,4.742 11.977,4.742ZM11.977,6.574C15.449,6.574 18.262,9.387 18.262,12.855C18.262,16.324 15.449,19.137 11.977,19.137C8.508,19.137 5.695,16.324 5.695,12.855C5.695,9.387 8.508,6.574 11.977,6.574ZM11.977,6.574" 18 + android:fillColor="#FFFFFF" 19 + android:fillType="nonZero" 20 + android:strokeColor="#00000000"/> 21 + <path 22 + android:pathData="M7.766,13.254L10.617,16.16L16.047,10.742L15.047,9.73L10.66,14.195L8.691,12.313ZM7.766,13.254" 23 + android:fillColor="#FFFFFF" 24 + android:fillType="nonZero" 25 + android:strokeColor="#00000000"/> 26 + </vector>
+10
resources/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
··· 1 + <?xml version="1.0" encoding="utf-8"?> 2 + <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> 3 + <background android:drawable="@color/launcherIconBackground"/> 4 + <foreground android:drawable="@mipmap/ic_launcher_foreground"/> 5 + <monochrome> 6 + <inset 7 + android:inset="20%" 8 + android:drawable="@drawable/app_ic_launcher_monochrome" /> 9 + </monochrome> 10 + </adaptive-icon>
resources/src/main/res/mipmap-hdpi/ic_launcher.webp

This is a binary file and will not be displayed.

resources/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp

This is a binary file and will not be displayed.

resources/src/main/res/mipmap-mdpi/ic_launcher.webp

This is a binary file and will not be displayed.

resources/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp

This is a binary file and will not be displayed.

resources/src/main/res/mipmap-xhdpi/ic_launcher.webp

This is a binary file and will not be displayed.

resources/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp

This is a binary file and will not be displayed.

resources/src/main/res/mipmap-xxhdpi/ic_launcher.webp

This is a binary file and will not be displayed.

resources/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp

This is a binary file and will not be displayed.

resources/src/main/res/mipmap-xxxhdpi/ic_launcher.webp

This is a binary file and will not be displayed.

resources/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp

This is a binary file and will not be displayed.

+3
resources/src/main/res/values/app_name.xml
··· 1 + <resources> 2 + <string name="app_name" translatable="false">Simple Time Tracker</string> 3 + </resources>
+6
resources/src/main/res/values/colors.xml
··· 1 + <?xml version="1.0" encoding="utf-8"?> 2 + <resources> 3 + 4 + <color name="launcherIconBackground">#37474f</color> 5 + 6 + </resources>
wear/src/main/res/mipmap-hdpi/ic_launcher.webp

This is a binary file and will not be displayed.

wear/src/main/res/mipmap-mdpi/ic_launcher.webp

This is a binary file and will not be displayed.

wear/src/main/res/mipmap-xhdpi/ic_launcher.webp

This is a binary file and will not be displayed.

wear/src/main/res/mipmap-xxhdpi/ic_launcher.webp

This is a binary file and will not be displayed.

wear/src/main/res/mipmap-xxxhdpi/ic_launcher.webp

This is a binary file and will not be displayed.

-5
wear/src/main/res/values/strings.xml
··· 1 1 <resources> 2 - <string name="app_name" translatable="false">Simple Time Tracker</string> 3 - <!-- 4 - This string is used for square devices and overridden by hello_world in 5 - values-round/strings.xml for round devices. 6 - --> 7 2 <string name="submit_button_default_content_description">Submit</string> 8 3 <string name="refresh_button_default_content_description">Refresh</string> 9 4 <string name="no_tags">No tags</string>
+15
features/feature_wear/src/main/res/values/wear.xml
··· 1 + <?xml version="1.0" encoding="utf-8"?> 2 + <!-- This Source Code Form is subject to the terms of the Mozilla Public 3 + - License, v. 2.0. If a copy of the MPL was not distributed with this 4 + - file, You can obtain one at https://mozilla.org/MPL/2.0/. --> 5 + <resources xmlns:tools="http://schemas.android.com/tools" 6 + tools:keep="@array/android_wear_capabilities"> 7 + <string-array name="android_wear_capabilities"> 8 + <item>/stt//GET/ping</item> 9 + <item>/stt//GET/activities</item> 10 + <item>/stt//GET/activities/current</item> 11 + <item>/stt//PUT/activities/current</item> 12 + <item>/stt//GET/activities/:ID/tags</item> 13 + <item>/stt//GET/settings</item> 14 + </string-array> 15 + </resources>