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

REM-902 - Remove voice control #257

Merged
merged 1 commit into from
Dec 27, 2024
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
10 changes: 0 additions & 10 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ jobs:
fail_on_error: true
ktlint_version: 0.47.1

- name: Run tests for Voice module
run: ./gradlew :voice-engine-ktx:test

- name: Upload Voice module Test results
uses: actions/upload-artifact@v4
if: ${{ always() }} # IMPORTANT: Upload reports regardless of status
with:
name: voice_reports
path: voice-engine-ktx/build/test-results # path to where the xml test results are stored

- name: Upload iCalendar module Test results
uses: actions/upload-artifact@v4
if: ${{ always() }} # IMPORTANT: Upload reports regardless of status
Expand Down
1 change: 0 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ fun getDate(): String {

dependencies {
implementation(project(":domain"))
implementation(project(":voice-engine-ktx"))
implementation(project(":logging-api"))
implementation(project(":repository-api"))
implementation(project(":logging"))
Expand Down
21 changes: 0 additions & 21 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -409,17 +409,6 @@
<activity
android:name=".reminder.create.fragments.recur.preset.PresetSelectionActivity"
android:exported="false" />
<activity
android:name=".core.dialogs.VoiceHelpActivity"
android:excludeFromRecents="true"
android:exported="false" />
<activity
android:name=".core.dialogs.VoiceResultDialog"
android:excludeFromRecents="true"
android:exported="false" />
<activity
android:name=".voice.ConversationActivity"
android:exported="false" />
<activity
android:name=".reminder.create.ConfigureActivity"
android:excludeFromRecents="true"
Expand Down Expand Up @@ -452,16 +441,6 @@
android:foregroundServiceType="location"
android:permission="android.permission.FOREGROUND_SERVICE_LOCATION" />

<activity
android:name=".voice.VoiceWidgetDialog"
android:configChanges="keyboardHidden|orientation"
android:excludeFromRecents="true"
android:exported="true">
<intent-filter>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>

<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="${apiKey}" />
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/com/elementary/tasks/ReminderApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import com.elementary.tasks.navigation.NavigationObservable
import com.elementary.tasks.navigation.navigationModule
import com.elementary.tasks.notes.noteModule
import com.elementary.tasks.reminder.reminderModule
import com.elementary.tasks.voice.voiceModule
import com.github.naz013.appwidgets.appWidgetsModule
import com.github.naz013.cloudapi.cloudApiModule
import com.github.naz013.common.platformCommonModule
Expand Down Expand Up @@ -107,7 +106,6 @@ class ReminderApp : MultiDexApplication(), KoinComponent {
calendarModule,
searchModule,
homeModule,
voiceModule,
googleTaskModule,
workModule,
noteModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,19 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.viewpager.widget.ViewPager
import com.elementary.tasks.R
import com.elementary.tasks.calendar.BaseCalendarFragment
import com.elementary.tasks.calendar.dayview.pager.DayPagerAdapter
import com.elementary.tasks.calendar.dayview.weekheader.WeekAdapter
import com.elementary.tasks.core.calendar.InfinitePagerAdapter
import com.elementary.tasks.core.calendar.InfiniteViewPager
import com.github.naz013.feature.common.livedata.nonNullObserve
import com.elementary.tasks.core.utils.ui.GlobalButtonObservable
import com.elementary.tasks.databinding.FragmentDayViewBinding
import com.github.naz013.feature.common.livedata.nonNullObserve
import com.github.naz013.logging.Logger
import org.koin.android.ext.android.inject
import org.koin.androidx.viewmodel.ext.android.viewModel
import org.threeten.bp.LocalDate

class WeekViewFragment : BaseCalendarFragment<FragmentDayViewBinding>() {

private val buttonObservable by inject<GlobalButtonObservable>()
lateinit var dayPagerAdapter: DayPagerAdapter
private val datePageChangeListener = DatePageChangeListener()
private val weekViewModel by viewModel<WeekViewModel>()
Expand All @@ -45,16 +41,6 @@ class WeekViewFragment : BaseCalendarFragment<FragmentDayViewBinding>() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
binding.weekGridView.adapter = weekAdapter

addMenu(R.menu.fragment_day_view, { menuItem ->
when (menuItem.itemId) {
R.id.action_voice -> {
buttonObservable.fireAction(requireView(), GlobalButtonObservable.Action.VOICE)
true
}
else -> false
}
})
binding.fab.setOnClickListener { tryToShowActionDialog() }
initPager()
initViewModel()
Expand Down

This file was deleted.

20 changes: 0 additions & 20 deletions app/src/main/java/com/elementary/tasks/core/dialogs/BaseDialog.kt

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading