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.

chore: Add MPL-2.0 LICENSE header to WearOS code

I will be initially licensing my contributions under the MPL-2.0 since I
consider it a fairer license than the GPL.
- See https://jhale.dev/posts/why-i-use-the-mpl/

Since the MPL is compatible with the GPL, this dual-licensing does not
create any licensing conflicts.

Any concerns about dual licensing can be sent to me privately. I am
happy to answer any questions and address any concerns.

Joseph Hale (Feb 26, 2024, 10:23 PM -0700) c1a2ba8f dac59fb7

+60 -1
+6 -1
app/src/main/java/com/example/util/simpletimetracker/wear/DomainAPI.kt
··· 1 - package com.example.util.simpletimetracker.wear 1 + /* 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 + */ 6 + package com.example.util.simpletimetracker.wear 2 7 3 8 import com.example.util.simpletimetracker.domain.interactor.PrefsInteractor 4 9 import com.example.util.simpletimetracker.domain.interactor.RecordTypeInteractor
+3
app/src/main/res/values/wear.xml
··· 1 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/. --> 2 5 <resources xmlns:tools="http://schemas.android.com/tools" 3 6 tools:keep="@array/android_wear_capabilities"> 4 7 <string-array name="android_wear_capabilities">
+6
wear/build.gradle.kts
··· 1 + /* 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 + */ 6 + 1 7 plugins { 2 8 id("com.android.application") 3 9 id("kotlin-android")
+5
wearrpc/build.gradle.kts
··· 1 + /* 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 + */ 1 6 plugins { 2 7 id("com.android.library") 3 8 id("org.jetbrains.kotlin.android")
+5
wearrpc/src/androidTest/java/com/example/util/simpletimetracker/wearrpc/ExampleInstrumentedTest.kt
··· 1 + /* 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 + */ 1 6 package com.example.util.simpletimetracker.wearrpc 2 7 3 8 import androidx.test.platform.app.InstrumentationRegistry
+5
wearrpc/src/main/java/com/example/util/simpletimetracker/wearrpc/DTO.kt
··· 1 + /* 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 + */ 1 6 package com.example.util.simpletimetracker.wearrpc 2 7 3 8 /**
+5
wearrpc/src/main/java/com/example/util/simpletimetracker/wearrpc/Messenger.kt
··· 1 + /* 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 + */ 1 6 package com.example.util.simpletimetracker.wearrpc 2 7 3 8 import android.content.Context
+5
wearrpc/src/main/java/com/example/util/simpletimetracker/wearrpc/Request.kt
··· 1 + /* 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 + */ 1 6 package com.example.util.simpletimetracker.wearrpc 2 7 3 8 object Request {
+5
wearrpc/src/main/java/com/example/util/simpletimetracker/wearrpc/SimpleTimeTrackerAPI.kt
··· 1 + /* 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 + */ 1 6 package com.example.util.simpletimetracker.wearrpc 2 7 3 8 interface SimpleTimeTrackerAPI {
+5
wearrpc/src/main/java/com/example/util/simpletimetracker/wearrpc/WearRPCClient.kt
··· 1 + /* 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 + */ 1 6 package com.example.util.simpletimetracker.wearrpc 2 7 3 8 import android.util.Log
+5
wearrpc/src/main/java/com/example/util/simpletimetracker/wearrpc/WearRPCException.kt
··· 1 + /* 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 + */ 1 6 package com.example.util.simpletimetracker.wearrpc 2 7 3 8 class WearRPCException(message: String) : Exception(message) {}
+5
wearrpc/src/test/java/com/example/util/simpletimetracker/wearrpc/WearRPCServerTest.kt
··· 1 + /* 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 + */ 1 6 package com.example.util.simpletimetracker.wearrpc 2 7 3 8 import org.junit.Test