Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move GMS dependency to full implementation #2155

Merged
merged 3 commits into from
Jan 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ dependencies {
implementation("com.google.android.material:material:1.4.0")

implementation("androidx.wear:wear-remote-interactions:1.0.0")
implementation("com.google.android.gms:play-services-wearable:17.1.0")

implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.1")
implementation("com.squareup.okhttp3:okhttp:4.9.3")
Expand All @@ -176,6 +175,7 @@ dependencies {
"fullImplementation"("com.google.firebase:firebase-messaging:23.0.0")
"fullImplementation"("io.sentry:sentry-android:5.5.2")
"fullImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.6.0")
"fullImplementation"("com.google.android.gms:play-services-wearable:17.1.0")

implementation("androidx.biometric:biometric:1.1.0")
implementation("androidx.webkit:webkit:1.4.0")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package io.homeassistant.companion.android.onboarding

class WearOnboardingListener {
// No op

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,8 @@ package io.homeassistant.companion.android.settings.wear
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import com.google.android.gms.wearable.CapabilityClient
import com.google.android.gms.wearable.CapabilityInfo

class SettingsWearActivity : AppCompatActivity(), CapabilityClient.OnCapabilityChangedListener {

override fun onCapabilityChanged(capabilityInfo: CapabilityInfo) {
// No op
}
class SettingsWearActivity : AppCompatActivity() {

companion object {
private const val TAG = "SettingsWearAct"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package io.homeassistant.companion.android.settings
package io.homeassistant.companion.android.settings.wear.views

import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import com.google.android.gms.wearable.DataClient
import com.google.android.gms.wearable.DataEventBuffer

class SettingsWearMainView : AppCompatActivity(), DataClient.OnDataChangedListener {
class SettingsWearMainView : AppCompatActivity() {

companion object {
private const val TAG = "SettingsWearMainView"
Expand All @@ -15,8 +13,4 @@ class SettingsWearMainView : AppCompatActivity(), DataClient.OnDataChangedListen
return Intent(context, SettingsWearMainView::class.java)
}
}

override fun onDataChanged(dataEvents: DataEventBuffer) {
// No op
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package io.homeassistant.companion.android.onboarding

class WearOnboardingListener {
// No op

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,8 @@ package io.homeassistant.companion.android.settings.wear
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import com.google.android.gms.wearable.CapabilityClient
import com.google.android.gms.wearable.CapabilityInfo

class SettingsWearActivity : AppCompatActivity(), CapabilityClient.OnCapabilityChangedListener {

override fun onCapabilityChanged(capabilityInfo: CapabilityInfo) {
// No op
}
class SettingsWearActivity : AppCompatActivity() {

companion object {
private const val TAG = "SettingsWearAct"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package io.homeassistant.companion.android.settings
package io.homeassistant.companion.android.settings.wear.views

import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import com.google.android.gms.wearable.DataClient
import com.google.android.gms.wearable.DataEventBuffer

class SettingsWearMainView : AppCompatActivity(), DataClient.OnDataChangedListener {
class SettingsWearMainView : AppCompatActivity() {

companion object {
private const val TAG = "SettingsWearMainView"
Expand All @@ -15,8 +13,4 @@ class SettingsWearMainView : AppCompatActivity(), DataClient.OnDataChangedListen
return Intent(context, SettingsWearMainView::class.java)
}
}

override fun onDataChanged(dataEvents: DataEventBuffer) {
// No op
}
}