From 5423a71585b5da1795d42c33b1b5423aba5f9ce9 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Sat, 28 Nov 2020 23:06:05 +0200 Subject: [PATCH] Change project structure. --- .../{grpc => nucuhub/domain}/EnvironmentSensorData.java | 2 +- .../nuculabs/{ => nucuhub}/grpc/EnvironmentSensorService.java | 3 ++- .../nucuhub/ui/sensors/EnvironmentSensorViewModel.java | 2 +- .../java/dev/nuculabs/nucuhub/ui/sensors/SensorsFragment.java | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) rename NucuHub.Android/app/src/main/java/dev/nuculabs/{grpc => nucuhub/domain}/EnvironmentSensorData.java (98%) rename NucuHub.Android/app/src/main/java/dev/nuculabs/{ => nucuhub}/grpc/EnvironmentSensorService.java (97%) diff --git a/NucuHub.Android/app/src/main/java/dev/nuculabs/grpc/EnvironmentSensorData.java b/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/domain/EnvironmentSensorData.java similarity index 98% rename from NucuHub.Android/app/src/main/java/dev/nuculabs/grpc/EnvironmentSensorData.java rename to NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/domain/EnvironmentSensorData.java index eff71bc..3122ae8 100644 --- a/NucuHub.Android/app/src/main/java/dev/nuculabs/grpc/EnvironmentSensorData.java +++ b/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/domain/EnvironmentSensorData.java @@ -1,4 +1,4 @@ -package dev.nuculabs.grpc; +package dev.nuculabs.nucuhub.domain; import NucuCarSensorsProto.NucuCarSensors; import android.util.Log; diff --git a/NucuHub.Android/app/src/main/java/dev/nuculabs/grpc/EnvironmentSensorService.java b/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/grpc/EnvironmentSensorService.java similarity index 97% rename from NucuHub.Android/app/src/main/java/dev/nuculabs/grpc/EnvironmentSensorService.java rename to NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/grpc/EnvironmentSensorService.java index 00b63d1..d253733 100644 --- a/NucuHub.Android/app/src/main/java/dev/nuculabs/grpc/EnvironmentSensorService.java +++ b/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/grpc/EnvironmentSensorService.java @@ -1,10 +1,11 @@ -package dev.nuculabs.grpc; +package dev.nuculabs.nucuhub.grpc; import NucuCarSensorsProto.EnvironmentSensorGrpcServiceGrpc; import NucuCarSensorsProto.NucuCarSensors; import android.util.Log; import androidx.lifecycle.LiveData; import androidx.lifecycle.MutableLiveData; +import dev.nuculabs.nucuhub.domain.EnvironmentSensorData; import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; import io.grpc.StatusRuntimeException; diff --git a/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/ui/sensors/EnvironmentSensorViewModel.java b/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/ui/sensors/EnvironmentSensorViewModel.java index 29c9386..4082441 100644 --- a/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/ui/sensors/EnvironmentSensorViewModel.java +++ b/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/ui/sensors/EnvironmentSensorViewModel.java @@ -3,7 +3,7 @@ package dev.nuculabs.nucuhub.ui.sensors; import androidx.lifecycle.LiveData; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.ViewModel; -import dev.nuculabs.grpc.EnvironmentSensorData; +import dev.nuculabs.nucuhub.domain.EnvironmentSensorData; import dev.nuculabs.nucuhub.R; public class EnvironmentSensorViewModel extends ViewModel { diff --git a/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/ui/sensors/SensorsFragment.java b/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/ui/sensors/SensorsFragment.java index 84a2251..aa6593a 100644 --- a/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/ui/sensors/SensorsFragment.java +++ b/NucuHub.Android/app/src/main/java/dev/nuculabs/nucuhub/ui/sensors/SensorsFragment.java @@ -11,8 +11,8 @@ import androidx.fragment.app.Fragment; import androidx.lifecycle.Observer; import androidx.lifecycle.ViewModelProviders; import com.google.android.material.chip.Chip; -import dev.nuculabs.grpc.EnvironmentSensorData; -import dev.nuculabs.grpc.EnvironmentSensorService; +import dev.nuculabs.nucuhub.domain.EnvironmentSensorData; +import dev.nuculabs.nucuhub.grpc.EnvironmentSensorService; import dev.nuculabs.nucuhub.R; public class SensorsFragment extends Fragment {