diff --git a/App/app/src/androidTest/java/com/gazeboindustries/sextafeiramobile/ExampleInstrumentedTest.java b/App/app/src/androidTest/java/com/gazeboindustries/friday/ExampleInstrumentedTest.java similarity index 93% rename from App/app/src/androidTest/java/com/gazeboindustries/sextafeiramobile/ExampleInstrumentedTest.java rename to App/app/src/androidTest/java/com/gazeboindustries/friday/ExampleInstrumentedTest.java index 128ecc1..f74ef87 100644 --- a/App/app/src/androidTest/java/com/gazeboindustries/sextafeiramobile/ExampleInstrumentedTest.java +++ b/App/app/src/androidTest/java/com/gazeboindustries/friday/ExampleInstrumentedTest.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile; +package com.gazeboindustries.friday; import android.content.Context; diff --git a/App/app/src/main/AndroidManifest.xml b/App/app/src/main/AndroidManifest.xml index b403e10..036cbd8 100644 --- a/App/app/src/main/AndroidManifest.xml +++ b/App/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ + package="com.gazeboindustries.friday"> diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/ConfigurationsFragment.java b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/ConfigurationsFragment.java similarity index 70% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/ConfigurationsFragment.java rename to App/app/src/main/java/com/gazeboindustries/friday/Fragments/ConfigurationsFragment.java index bea331d..4a41940 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/ConfigurationsFragment.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/ConfigurationsFragment.java @@ -1,17 +1,15 @@ -package com.gazeboindustries.sextafeiramobile.Fragments; +package com.gazeboindustries.friday.Fragments; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import android.widget.Button; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.ProjectsFragments.AddProjectFragment; -import com.gazeboindustries.sextafeiramobile.R; +import com.gazeboindustries.friday.R; public class ConfigurationsFragment extends Fragment { @Nullable diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/DevicesFragments/AddDeviceFragment.java b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/DevicesFragments/AddDeviceFragment.java similarity index 90% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/DevicesFragments/AddDeviceFragment.java rename to App/app/src/main/java/com/gazeboindustries/friday/Fragments/DevicesFragments/AddDeviceFragment.java index 3740946..c493eca 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/DevicesFragments/AddDeviceFragment.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/DevicesFragments/AddDeviceFragment.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile.Fragments.DevicesFragments; +package com.gazeboindustries.friday.Fragments.DevicesFragments; import android.os.Bundle; import android.view.LayoutInflater; @@ -12,8 +12,8 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import com.gazeboindustries.sextafeiramobile.R; -import com.gazeboindustries.sextafeiramobile.ServerConnection; +import com.gazeboindustries.friday.R; +import com.gazeboindustries.friday.ServerConnection; public class AddDeviceFragment extends Fragment { private Button btnAddDevice; diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/DevicesFragments/DevicesFragment.java b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/DevicesFragments/DevicesFragment.java similarity index 85% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/DevicesFragments/DevicesFragment.java rename to App/app/src/main/java/com/gazeboindustries/friday/Fragments/DevicesFragments/DevicesFragment.java index 0f2a288..5286d14 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/DevicesFragments/DevicesFragment.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/DevicesFragments/DevicesFragment.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile.Fragments.DevicesFragments; +package com.gazeboindustries.friday.Fragments.DevicesFragments; import android.content.Intent; import android.os.Bundle; @@ -14,11 +14,9 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import com.gazeboindustries.sextafeiramobile.Fragments.InteractionsFragments.AddInteractionFragment; -import com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.ProjectsFragments.ViewProjectsFragment; -import com.gazeboindustries.sextafeiramobile.ListItemRow; -import com.gazeboindustries.sextafeiramobile.R; -import com.gazeboindustries.sextafeiramobile.ServerConnection; +import com.gazeboindustries.friday.ListItemRow; +import com.gazeboindustries.friday.R; +import com.gazeboindustries.friday.ServerConnection; import org.json.JSONArray; import org.json.JSONException; diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/DevicesFragments/ViewDevicesFragment.java b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/DevicesFragments/ViewDevicesFragment.java similarity index 97% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/DevicesFragments/ViewDevicesFragment.java rename to App/app/src/main/java/com/gazeboindustries/friday/Fragments/DevicesFragments/ViewDevicesFragment.java index 4f49353..e8e2531 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/DevicesFragments/ViewDevicesFragment.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/DevicesFragments/ViewDevicesFragment.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile.Fragments.DevicesFragments; +package com.gazeboindustries.friday.Fragments.DevicesFragments; import android.annotation.SuppressLint; import android.app.AlertDialog; @@ -17,15 +17,12 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import com.gazeboindustries.sextafeiramobile.R; -import com.gazeboindustries.sextafeiramobile.ServerConnection; +import com.gazeboindustries.friday.R; +import com.gazeboindustries.friday.ServerConnection; -import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; -import java.util.ArrayList; - public class ViewDevicesFragment extends Fragment { private Intent intent; private EditText txtDevice; diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/HomeFragment.java b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/HomeFragment.java similarity index 85% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/HomeFragment.java rename to App/app/src/main/java/com/gazeboindustries/friday/Fragments/HomeFragment.java index ed4766b..b7eb8c7 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/HomeFragment.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/HomeFragment.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile.Fragments; +package com.gazeboindustries.friday.Fragments; import android.os.Bundle; import android.view.LayoutInflater; @@ -10,8 +10,8 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import com.gazeboindustries.sextafeiramobile.R; -import com.gazeboindustries.sextafeiramobile.ServerConnection; +import com.gazeboindustries.friday.R; +import com.gazeboindustries.friday.ServerConnection; public class HomeFragment extends Fragment { private Button startFriday; diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/InteractionsFragments/AddInteractionFragment.java b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/InteractionsFragments/AddInteractionFragment.java similarity index 92% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/InteractionsFragments/AddInteractionFragment.java rename to App/app/src/main/java/com/gazeboindustries/friday/Fragments/InteractionsFragments/AddInteractionFragment.java index 3d1e0ff..b65c9c0 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/InteractionsFragments/AddInteractionFragment.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/InteractionsFragments/AddInteractionFragment.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile.Fragments.InteractionsFragments; +package com.gazeboindustries.friday.Fragments.InteractionsFragments; import android.os.Bundle; import android.view.LayoutInflater; @@ -12,8 +12,8 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import com.gazeboindustries.sextafeiramobile.R; -import com.gazeboindustries.sextafeiramobile.ServerConnection; +import com.gazeboindustries.friday.R; +import com.gazeboindustries.friday.ServerConnection; public class AddInteractionFragment extends Fragment { private ServerConnection connection; diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/InteractionsFragments/InteractionFragment.java b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/InteractionsFragments/InteractionFragment.java similarity index 89% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/InteractionsFragments/InteractionFragment.java rename to App/app/src/main/java/com/gazeboindustries/friday/Fragments/InteractionsFragments/InteractionFragment.java index b56546c..7c22357 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/InteractionsFragments/InteractionFragment.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/InteractionsFragments/InteractionFragment.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile.Fragments.InteractionsFragments; +package com.gazeboindustries.friday.Fragments.InteractionsFragments; import android.content.Intent; import android.os.Bundle; @@ -14,16 +14,14 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.HomeworkFragments.ViewHomeWorkFragment; -import com.gazeboindustries.sextafeiramobile.ListItemRow; -import com.gazeboindustries.sextafeiramobile.R; -import com.gazeboindustries.sextafeiramobile.ServerConnection; +import com.gazeboindustries.friday.ListItemRow; +import com.gazeboindustries.friday.R; +import com.gazeboindustries.friday.ServerConnection; import org.json.JSONArray; import org.json.JSONException; import java.util.ArrayList; -import java.util.List; import static java.lang.Thread.sleep; diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/InteractionsFragments/ViewInteractionFragment.java b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/InteractionsFragments/ViewInteractionFragment.java similarity index 95% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/InteractionsFragments/ViewInteractionFragment.java rename to App/app/src/main/java/com/gazeboindustries/friday/Fragments/InteractionsFragments/ViewInteractionFragment.java index e463138..a718e45 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/InteractionsFragments/ViewInteractionFragment.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/InteractionsFragments/ViewInteractionFragment.java @@ -1,13 +1,10 @@ -package com.gazeboindustries.sextafeiramobile.Fragments.InteractionsFragments; +package com.gazeboindustries.friday.Fragments.InteractionsFragments; import android.annotation.SuppressLint; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; -import android.graphics.Canvas; -import android.graphics.ColorFilter; import android.graphics.drawable.Drawable; -import android.graphics.drawable.Icon; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; @@ -16,14 +13,12 @@ import android.widget.EditText; import android.widget.Toast; -import androidx.annotation.DrawableRes; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import com.gazeboindustries.sextafeiramobile.R; -import com.gazeboindustries.sextafeiramobile.ServerConnection; -import com.google.android.material.drawable.DrawableUtils; +import com.gazeboindustries.friday.R; +import com.gazeboindustries.friday.ServerConnection; public class ViewInteractionFragment extends Fragment { private Intent intent; diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/HomeworkFragments/AddHomeWorkFragment.java b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/HomeworkFragments/AddHomeWorkFragment.java similarity index 92% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/HomeworkFragments/AddHomeWorkFragment.java rename to App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/HomeworkFragments/AddHomeWorkFragment.java index 7ec3e94..0b1ebb5 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/HomeworkFragments/AddHomeWorkFragment.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/HomeworkFragments/AddHomeWorkFragment.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.HomeworkFragments; +package com.gazeboindustries.friday.Fragments.SkillsFragments.HomeworkFragments; import android.os.Bundle; import android.view.LayoutInflater; @@ -12,8 +12,8 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import com.gazeboindustries.sextafeiramobile.R; -import com.gazeboindustries.sextafeiramobile.ServerConnection; +import com.gazeboindustries.friday.R; +import com.gazeboindustries.friday.ServerConnection; import java.text.ParseException; import java.text.SimpleDateFormat; diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/HomeworkFragments/HomeWorkFragment.java b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/HomeworkFragments/HomeWorkFragment.java similarity index 83% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/HomeworkFragments/HomeWorkFragment.java rename to App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/HomeworkFragments/HomeWorkFragment.java index d076790..b365d41 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/HomeworkFragments/HomeWorkFragment.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/HomeworkFragments/HomeWorkFragment.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.HomeworkFragments; +package com.gazeboindustries.friday.Fragments.SkillsFragments.HomeworkFragments; import android.content.Intent; import android.os.Bundle; @@ -14,12 +14,9 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.ProjectsFragments.AddProjectFragment; -import com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.ProjectsFragments.ProjectFragment; -import com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.ProjectsFragments.ViewProjectsFragment; -import com.gazeboindustries.sextafeiramobile.ListItemRow; -import com.gazeboindustries.sextafeiramobile.R; -import com.gazeboindustries.sextafeiramobile.ServerConnection; +import com.gazeboindustries.friday.ListItemRow; +import com.gazeboindustries.friday.R; +import com.gazeboindustries.friday.ServerConnection; import org.json.JSONArray; import org.json.JSONException; diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/HomeworkFragments/ViewHomeWorkFragment.java b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/HomeworkFragments/ViewHomeWorkFragment.java similarity index 97% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/HomeworkFragments/ViewHomeWorkFragment.java rename to App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/HomeworkFragments/ViewHomeWorkFragment.java index 8c47197..84cc04a 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/HomeworkFragments/ViewHomeWorkFragment.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/HomeworkFragments/ViewHomeWorkFragment.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.HomeworkFragments; +package com.gazeboindustries.friday.Fragments.SkillsFragments.HomeworkFragments; import android.annotation.SuppressLint; import android.app.AlertDialog; @@ -17,8 +17,8 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import com.gazeboindustries.sextafeiramobile.R; -import com.gazeboindustries.sextafeiramobile.ServerConnection; +import com.gazeboindustries.friday.R; +import com.gazeboindustries.friday.ServerConnection; import java.text.ParseException; import java.text.SimpleDateFormat; diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/ProjectsFragments/AddProjectFragment.java b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/ProjectsFragments/AddProjectFragment.java similarity index 89% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/ProjectsFragments/AddProjectFragment.java rename to App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/ProjectsFragments/AddProjectFragment.java index 04a61d5..1b06c24 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/ProjectsFragments/AddProjectFragment.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/ProjectsFragments/AddProjectFragment.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.ProjectsFragments; +package com.gazeboindustries.friday.Fragments.SkillsFragments.ProjectsFragments; import android.os.Bundle; import android.view.LayoutInflater; @@ -12,8 +12,8 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import com.gazeboindustries.sextafeiramobile.R; -import com.gazeboindustries.sextafeiramobile.ServerConnection; +import com.gazeboindustries.friday.R; +import com.gazeboindustries.friday.ServerConnection; public class AddProjectFragment extends Fragment { private Button btnAddProject; diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/ProjectsFragments/ProjectFragment.java b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/ProjectsFragments/ProjectFragment.java similarity index 90% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/ProjectsFragments/ProjectFragment.java rename to App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/ProjectsFragments/ProjectFragment.java index 1272f65..2e6fc1f 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/ProjectsFragments/ProjectFragment.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/ProjectsFragments/ProjectFragment.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.ProjectsFragments; +package com.gazeboindustries.friday.Fragments.SkillsFragments.ProjectsFragments; import android.content.Intent; import android.os.Bundle; @@ -14,9 +14,9 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import com.gazeboindustries.sextafeiramobile.ListItemRow; -import com.gazeboindustries.sextafeiramobile.R; -import com.gazeboindustries.sextafeiramobile.ServerConnection; +import com.gazeboindustries.friday.ListItemRow; +import com.gazeboindustries.friday.R; +import com.gazeboindustries.friday.ServerConnection; import org.json.JSONArray; import org.json.JSONException; diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/ProjectsFragments/ViewProjectsFragment.java b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/ProjectsFragments/ViewProjectsFragment.java similarity index 96% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/ProjectsFragments/ViewProjectsFragment.java rename to App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/ProjectsFragments/ViewProjectsFragment.java index 54febc4..665991c 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/ProjectsFragments/ViewProjectsFragment.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/ProjectsFragments/ViewProjectsFragment.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.ProjectsFragments; +package com.gazeboindustries.friday.Fragments.SkillsFragments.ProjectsFragments; import android.annotation.SuppressLint; import android.app.AlertDialog; @@ -17,8 +17,8 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import com.gazeboindustries.sextafeiramobile.R; -import com.gazeboindustries.sextafeiramobile.ServerConnection; +import com.gazeboindustries.friday.R; +import com.gazeboindustries.friday.ServerConnection; public class ViewProjectsFragment extends Fragment { private Intent intent; diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/SkillsFragment.java b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/SkillsFragment.java similarity index 68% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/SkillsFragment.java rename to App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/SkillsFragment.java index 48f37a2..ffa6d0b 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/SkillsFragments/SkillsFragment.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/Fragments/SkillsFragments/SkillsFragment.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments; +package com.gazeboindustries.friday.Fragments.SkillsFragments; import android.os.Bundle; import android.view.LayoutInflater; @@ -10,12 +10,9 @@ import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; -import com.gazeboindustries.sextafeiramobile.Fragments.DevicesFragments.AddDeviceFragment; -import com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.HomeworkFragments.AddHomeWorkFragment; -import com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.HomeworkFragments.HomeWorkFragment; -import com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.ProjectsFragments.AddProjectFragment; -import com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.ProjectsFragments.ProjectFragment; -import com.gazeboindustries.sextafeiramobile.R; +import com.gazeboindustries.friday.Fragments.SkillsFragments.HomeworkFragments.HomeWorkFragment; +import com.gazeboindustries.friday.Fragments.SkillsFragments.ProjectsFragments.ProjectFragment; +import com.gazeboindustries.friday.R; public class SkillsFragment extends Fragment { @Nullable diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/ListItemRow.java b/App/app/src/main/java/com/gazeboindustries/friday/ListItemRow.java similarity index 97% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/ListItemRow.java rename to App/app/src/main/java/com/gazeboindustries/friday/ListItemRow.java index 8d484db..7a5e90b 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/ListItemRow.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/ListItemRow.java @@ -1,6 +1,5 @@ -package com.gazeboindustries.sextafeiramobile; +package com.gazeboindustries.friday; -import android.annotation.SuppressLint; import android.content.Context; import android.view.LayoutInflater; import android.view.View; diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/MainActivity.java b/App/app/src/main/java/com/gazeboindustries/friday/MainActivity.java similarity index 81% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/MainActivity.java rename to App/app/src/main/java/com/gazeboindustries/friday/MainActivity.java index c26fa1d..032df09 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/MainActivity.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/MainActivity.java @@ -1,12 +1,12 @@ -package com.gazeboindustries.sextafeiramobile; +package com.gazeboindustries.friday; import android.os.Bundle; -import com.gazeboindustries.sextafeiramobile.Fragments.ConfigurationsFragment; -import com.gazeboindustries.sextafeiramobile.Fragments.DevicesFragments.DevicesFragment; -import com.gazeboindustries.sextafeiramobile.Fragments.HomeFragment; -import com.gazeboindustries.sextafeiramobile.Fragments.InteractionsFragments.InteractionFragment; -import com.gazeboindustries.sextafeiramobile.Fragments.SkillsFragments.SkillsFragment; +import com.gazeboindustries.friday.Fragments.ConfigurationsFragment; +import com.gazeboindustries.friday.Fragments.DevicesFragments.DevicesFragment; +import com.gazeboindustries.friday.Fragments.HomeFragment; +import com.gazeboindustries.friday.Fragments.InteractionsFragments.InteractionFragment; +import com.gazeboindustries.friday.Fragments.SkillsFragments.SkillsFragment; import com.google.android.material.bottomnavigation.BottomNavigationView; import androidx.appcompat.app.AppCompatActivity; diff --git a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/ServerConnection.java b/App/app/src/main/java/com/gazeboindustries/friday/ServerConnection.java similarity index 99% rename from App/app/src/main/java/com/gazeboindustries/sextafeiramobile/ServerConnection.java rename to App/app/src/main/java/com/gazeboindustries/friday/ServerConnection.java index 0bc63b7..e445bb0 100644 --- a/App/app/src/main/java/com/gazeboindustries/sextafeiramobile/ServerConnection.java +++ b/App/app/src/main/java/com/gazeboindustries/friday/ServerConnection.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile; +package com.gazeboindustries.friday; import android.os.AsyncTask; diff --git a/App/app/src/test/java/com/gazeboindustries/sextafeiramobile/ExampleUnitTest.java b/App/app/src/test/java/com/gazeboindustries/friday/ExampleUnitTest.java similarity index 88% rename from App/app/src/test/java/com/gazeboindustries/sextafeiramobile/ExampleUnitTest.java rename to App/app/src/test/java/com/gazeboindustries/friday/ExampleUnitTest.java index e81e0dd..5ea5bfa 100644 --- a/App/app/src/test/java/com/gazeboindustries/sextafeiramobile/ExampleUnitTest.java +++ b/App/app/src/test/java/com/gazeboindustries/friday/ExampleUnitTest.java @@ -1,4 +1,4 @@ -package com.gazeboindustries.sextafeiramobile; +package com.gazeboindustries.friday; import org.junit.Test; diff --git a/Configurations.json b/Configurations.json index 00759ba..c5d52f8 100644 --- a/Configurations.json +++ b/Configurations.json @@ -1,17 +1,12 @@ { "FridayConfigs": { "ID": "Sexta-Feira", - "ServerHost": "192.168.0.5", + "ServerHost": "192.168.0.4", "Port": 5000 }, "ServerConfigs": { "ID": "Server", - "Host": "192.168.0.5", - "Port": 5000 - }, - "InterfaceConfigs": { - "ID": "Interface", - "ServerHost": "192.168.0.5", + "Host": "192.168.0.4", "Port": 5000 } } \ No newline at end of file diff --git a/Interface/SextaFeiraInterface/src/main/resources/styles/BackgroundFriday.jpg b/Images/BackgroundFriday.jpg similarity index 100% rename from Interface/SextaFeiraInterface/src/main/resources/styles/BackgroundFriday.jpg rename to Images/BackgroundFriday.jpg diff --git a/Images/BackgroundFriday.png b/Images/BackgroundFriday.png deleted file mode 100644 index e54aee0..0000000 Binary files a/Images/BackgroundFriday.png and /dev/null differ diff --git a/Interface/SextaFeiraInterface/nb-configuration.xml b/Interface/SextaFeiraInterface/nb-configuration.xml deleted file mode 100644 index ec4540c..0000000 --- a/Interface/SextaFeiraInterface/nb-configuration.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - none - - diff --git a/Interface/SextaFeiraInterface/nbactions.xml b/Interface/SextaFeiraInterface/nbactions.xml deleted file mode 100644 index 9c9ee62..0000000 --- a/Interface/SextaFeiraInterface/nbactions.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - run - - clean - package - org.codehaus.mojo:exec-maven-plugin:1.2.1:exec - - - -jar "${project.build.directory}/${project.build.finalName}.jar" - - - - debug - - clean - package - org.codehaus.mojo:exec-maven-plugin:1.2.1:exec - - - -Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -Dglass.disableGrab=true -jar "${project.build.directory}/${project.build.finalName}.jar" - true - - - diff --git a/Interface/SextaFeiraInterface/pom.xml b/Interface/SextaFeiraInterface/pom.xml deleted file mode 100644 index 0fa4503..0000000 --- a/Interface/SextaFeiraInterface/pom.xml +++ /dev/null @@ -1,108 +0,0 @@ - - - 4.0.0 - - Interface - SextaFeiraInterface - 6.0 - jar - - SextaFeiraInterface - - - UTF-8 - Interface.MainApp - - - - - Your Organisation - - - - - - org.apache.maven.plugins - maven-dependency-plugin - 2.6 - - - unpack-dependencies - package - - unpack-dependencies - - - system - junit,org.mockito,org.hamcrest - ${project.build.directory}/classes - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - - unpack-dependencies - - package - - exec - - - ${java.home}/../bin/javafxpackager - - -createjar - -nocss2bin - -appclass - ${mainClass} - -srcdir - ${project.build.directory}/classes - -outdir - ${project.build.directory} - -outfile - ${project.build.finalName}.jar - - - - - default-cli - - exec - - - ${java.home}/bin/java - ${runfx.args} - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - 1.7 - 1.7 - - ${sun.boot.class.path}${path.separator}${java.home}/lib/jfxrt.jar - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.16 - - - ${java.home}/lib/jfxrt.jar - - - - - - - diff --git a/Interface/SextaFeiraInterface/src/main/FridayComunication.json b/Interface/SextaFeiraInterface/src/main/FridayComunication.json deleted file mode 100644 index 757b33f..0000000 --- a/Interface/SextaFeiraInterface/src/main/FridayComunication.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "action": 1, - "content":{ - - }, - "url": ".com" -} \ No newline at end of file diff --git a/Interface/SextaFeiraInterface/src/main/java/Interface/Configurations.java b/Interface/SextaFeiraInterface/src/main/java/Interface/Configurations.java deleted file mode 100644 index 9c7b204..0000000 --- a/Interface/SextaFeiraInterface/src/main/java/Interface/Configurations.java +++ /dev/null @@ -1,32 +0,0 @@ -package Interface; - -import java.io.FileReader; -import java.io.IOException; - -import org.json.simple.JSONObject; -import org.json.simple.parser.JSONParser; -import org.json.simple.parser.ParseException; - -public class Configurations { - private static JSONObject jsonObject; - private static JSONObject jsonInterfaceObject; - private static JSONParser parser; - - public static String getConfig(String Config) { - jsonInterfaceObject = readJsonFile(); - return jsonInterfaceObject.get(Config).toString(); - } - - private static JSONObject readJsonFile() { - parser = new JSONParser(); - - try { - jsonObject = (JSONObject) parser.parse(new FileReader("E:\\Sexta-Feira-Mark_6\\Configurations.json")); - jsonInterfaceObject = (JSONObject) jsonObject.get("InterfaceConfigs"); - } catch (ParseException | IOException e) { - e.printStackTrace(); - } - - return jsonInterfaceObject; - } -} \ No newline at end of file diff --git a/Server/DevicesStatus.json b/Server/DevicesStatus.json index 139f56d..983de54 100644 --- a/Server/DevicesStatus.json +++ b/Server/DevicesStatus.json @@ -1,10 +1,12 @@ { "Friday": { "action": 0, + "content": {}, "url": ".com" }, "Interface": { - "action": 1, + "action": 2, + "content": {}, "url": ".com" } } \ No newline at end of file diff --git a/Server/Server.py b/Server/Server.py index 90bebf2..d25c518 100644 --- a/Server/Server.py +++ b/Server/Server.py @@ -44,7 +44,6 @@ def setDevicesStatus(receiverID, action, url): newJson[receiverID]['action'] = action newJson[receiverID]['url'] = url - newJson.update() writeFile = open('E:/Sexta-Feira-Mark_6/Server/DevicesStatus.json', 'w') json.dump(newJson, writeFile, indent=4) @@ -234,8 +233,6 @@ def handle(self): clientRequest['command']) self.request.send(json.dumps({'requestStatus': True}).encode()) - - else: break diff --git a/Sexta-Feira(A.I.)/Commands.py b/Sexta-Feira(A.I.)/Commands.py index 5006d5b..49d4241 100644 --- a/Sexta-Feira(A.I.)/Commands.py +++ b/Sexta-Feira(A.I.)/Commands.py @@ -19,32 +19,36 @@ def updateFriday(speech, connection): os.system('git reset --hard origin/master') def sendCloseToInterface(speech, connection): - connection.send(Functions.setRequestJson('setDevicesStatus', 'Interface', 0, '.com')) - + Functions.setFridayComunication(0, None, ".com") + def sendInteractionsToInterface(speech, connection): - connection.send(Functions.setRequestJson('setDevicesStatus', 'Interface', 1, '.com')) + response = connection.send(Functions.setRequestJson('getInteractions', 'Interface', 1, '.com')) + Functions.setFridayComunication(1, response, ".com") def sendHomeWorksToInterface(speech, connection): - connection.send(Functions.setRequestJson('setDevicesStatus', 'Interface', 2, '.com')) + response = connection.send(Functions.setRequestJson('getHomeWorks', 'Interface', 2, '.com')) + Functions.setFridayComunication(2, response, ".com") def sendProjectsToInterface(speech, connection): - connection.send(Functions.setRequestJson('setDevicesStatus', 'Interface', 3, '.com')) + response = connection.send(Functions.setRequestJson('getProjects', 'Interface', 3, '.com')) + Functions.setFridayComunication(3, response, ".com") def sendDevicesToInterface(speech, connection): - connection.send(Functions.setRequestJson('setDevicesStatus', 'Interface', 4, '.com')) + response = connection.send(Functions.setRequestJson('getDevice', 'Interface', 4, '.com')) + Functions.setFridayComunication(4, response, ".com") def sendPeriodicTableToInterface(speech, connection): - connection.send(Functions.setRequestJson('setDevicesStatus', 'Interface', 5, 'E:\\Sexta-Feira-Mark_6\\Images\\TabelaPeriodica.jpg')) + Functions.setFridayComunication(5, response, 'E:\\Sexta-Feira-Mark_6\\Images\\TabelaPeriodica.jpg') def sendPoliticalBrazilToInterface(speech, connection): - connection.send(Functions.setRequestJson('setDevicesStatus', 'Interface', 5, 'E:\\Sexta-Feira-Mark_6\\Images\\Brasil Político.jpg')) + Functions.setFridayComunication(5, response, 'E:\\Sexta-Feira-Mark_6\\Images\\Brasil Político.jpg') def sendEletronicDestToInterface(speech, connection): - connection.send(Functions.setRequestJson('setDevicesStatus', 'Interface', 5, 'E:\\Sexta-Feira-Mark_6\\Images\\diagrama-de-pauling.jpg')) + Functions.setFridayComunication(5, response, 'E:\\Sexta-Feira-Mark_6\\Images\\diagrama-de-pauling.jpg') def sendAnglesTableToInterface(speech, connection): - connection.send(Functions.setRequestJson('setDevicesStatus', 'Interface', 5, 'E:\\Sexta-Feira-Mark_6\\Images\\TabelaSenoCossenoTangente.png')) + Functions.setFridayComunication(5, response, 'E:\\Sexta-Feira-Mark_6\\Images\\TabelaSenoCossenoTangente.png') def sendFisicEquationsToInterface(speech, connection): - connection.send(Functions.setRequestJson('setDevicesStatus', 'Interface', 5, 'E:\\Sexta-Feira-Mark_6\\Images\\Equações Dinamica.png')) + Functions.setFridayComunication(5, response, 'E:\\Sexta-Feira-Mark_6\\Images\\Equações Dinamica.png') diff --git a/Sexta-Feira(A.I.)/Functions.py b/Sexta-Feira(A.I.)/Functions.py index 00df714..2642001 100644 --- a/Sexta-Feira(A.I.)/Functions.py +++ b/Sexta-Feira(A.I.)/Functions.py @@ -69,6 +69,8 @@ def setRequestJson(request, receiverID, action, url): return requestJson def setup(): + setFridayComunication(0, None, ".com") + server = ServerConnection() interactions = list(server.send(setRequestJson('getInteractions', 'server', 1, ".com")).items()) @@ -81,8 +83,6 @@ def setup(): else: speak('Boa noite chefe!') - devicesStatus = devicesStatusThread() - devicesStatus.start() return [server, interactions] @@ -111,10 +111,22 @@ def run(self): while True: response = server.send(setRequestJson('getDevicesStatus', 'server', 1, ".com")) - writeFile = open('E:/Sexta-Feira-Mark_6/Interface/Interface/FridayComunication.json', 'w') + writeFile = open('E:/Sexta-Feira-Mark_6/Sexta-FeiraInterface/src/com/friday/FridayComunication.json', 'w') json.dump(response['Interface'], writeFile, indent=4) +def setFridayComunication(action, content, url): + filePath = 'E:/Sexta-Feira-Mark_6/Sexta-FeiraInterface/src/com/friday/FridayComunication.json' + readFile = open(filePath) + newJson = json.load(readFile) + + print(newJson) + + newJson['action'] = action + newJson['content'] = content + newJson['url'] = url + writeFile = open(filePath, 'w') + json.dump(newJson, writeFile, indent=4) diff --git a/Sexta-Feira(A.I.)/__pycache__/Commands.cpython-36.pyc b/Sexta-Feira(A.I.)/__pycache__/Commands.cpython-36.pyc index a5a6a06..c661b22 100644 Binary files a/Sexta-Feira(A.I.)/__pycache__/Commands.cpython-36.pyc and b/Sexta-Feira(A.I.)/__pycache__/Commands.cpython-36.pyc differ diff --git a/Sexta-Feira(A.I.)/__pycache__/Functions.cpython-36.pyc b/Sexta-Feira(A.I.)/__pycache__/Functions.cpython-36.pyc index 6b6434d..6da6608 100644 Binary files a/Sexta-Feira(A.I.)/__pycache__/Functions.cpython-36.pyc and b/Sexta-Feira(A.I.)/__pycache__/Functions.cpython-36.pyc differ diff --git a/Sexta-FeiraInterface/build.xml b/Sexta-FeiraInterface/build.xml new file mode 100644 index 0000000..941caee --- /dev/null +++ b/Sexta-FeiraInterface/build.xml @@ -0,0 +1,53 @@ + + Builds, tests, and runs the project Sexta-FeiraInterface. + + + diff --git a/Sexta-FeiraInterface/build/built-jar.properties b/Sexta-FeiraInterface/build/built-jar.properties new file mode 100644 index 0000000..843e266 --- /dev/null +++ b/Sexta-FeiraInterface/build/built-jar.properties @@ -0,0 +1,4 @@ +#Tue, 28 Jul 2020 20:12:56 -0300 + + +E\:\\Sexta-Feira-Mark_6\\Sexta-FeiraInterface= diff --git a/Sexta-FeiraInterface/build/classes/com/friday/FridayComunication.class b/Sexta-FeiraInterface/build/classes/com/friday/FridayComunication.class new file mode 100644 index 0000000..d7afe37 Binary files /dev/null and b/Sexta-FeiraInterface/build/classes/com/friday/FridayComunication.class differ diff --git a/Sexta-FeiraInterface/build/classes/com/friday/FridayComunication.json b/Sexta-FeiraInterface/build/classes/com/friday/FridayComunication.json new file mode 100644 index 0000000..407630c --- /dev/null +++ b/Sexta-FeiraInterface/build/classes/com/friday/FridayComunication.json @@ -0,0 +1,5 @@ +{ + "action": 0, + "content": null, + "url": ".com" +} \ No newline at end of file diff --git a/Interface/SextaFeiraInterface/src/main/resources/fxml/Scene.fxml b/Sexta-FeiraInterface/build/classes/com/friday/Scene.fxml similarity index 97% rename from Interface/SextaFeiraInterface/src/main/resources/fxml/Scene.fxml rename to Sexta-FeiraInterface/build/classes/com/friday/Scene.fxml index d128a93..efd5b80 100644 --- a/Interface/SextaFeiraInterface/src/main/resources/fxml/Scene.fxml +++ b/Sexta-FeiraInterface/build/classes/com/friday/Scene.fxml @@ -8,7 +8,7 @@ - +